package buildflags
import "github.com/docker/buildx/util/buildflags"
Index ¶
- func CanonicalizeAttest(attestType string, in string) string
- func IsGitSSH(repo string) bool
- func ParseAnnotations(inp []string) (map[exptypes.AnnotationKey]string, error)
- func ParseContextNames(values []string) (map[string]string, error)
- func ParseEntitlements(in []string) ([]string, error)
- type Attest
- func (a *Attest) Equal(other *Attest) bool
- func (e *Attest) FromCtyValue(in cty.Value, p cty.Path) error
- func (a *Attest) MarshalJSON() ([]byte, error)
- func (a *Attest) String() string
- func (e *Attest) ToCtyValue() cty.Value
- func (a *Attest) UnmarshalJSON(data []byte) error
- func (a *Attest) UnmarshalText(text []byte) error
- type Attests
- func ParseAttests(in []string) (Attests, error)
- func (e *Attests) FromCtyValue(in cty.Value, p cty.Path) error
- func (a Attests) Merge(other Attests) Attests
- func (a Attests) Normalize() Attests
- func (e Attests) ToCtyValue() cty.Value
- func (a Attests) ToMap() map[string]*string
- type CacheOptions
- func ParseCacheEntry(in []string) (CacheOptions, error)
- func (o *CacheOptions) FromCtyValue(in cty.Value, p cty.Path) error
- func (o CacheOptions) Merge(other CacheOptions) CacheOptions
- func (o CacheOptions) Normalize() CacheOptions
- func (o CacheOptions) ToCtyValue() cty.Value
- type CacheOptionsEntry
- func (e *CacheOptionsEntry) Equal(other *CacheOptionsEntry) bool
- func (o *CacheOptionsEntry) FromCtyValue(in cty.Value, p cty.Path) error
- func (e *CacheOptionsEntry) MarshalJSON() ([]byte, error)
- func (e *CacheOptionsEntry) String() string
- func (o *CacheOptionsEntry) ToCtyValue() cty.Value
- func (e *CacheOptionsEntry) UnmarshalJSON(data []byte) error
- func (e *CacheOptionsEntry) UnmarshalText(text []byte) error
- type CallFunc
- type ExportEntry
- func ParseExports(inp []string) ([]*ExportEntry, error)
- func (e *ExportEntry) Equal(other *ExportEntry) bool
- func (e *ExportEntry) FromCtyValue(in cty.Value, p cty.Path) error
- func (e *ExportEntry) MarshalJSON() ([]byte, error)
- func (e *ExportEntry) String() string
- func (e *ExportEntry) ToCtyValue() cty.Value
- func (e *ExportEntry) UnmarshalJSON(data []byte) error
- func (e *ExportEntry) UnmarshalText(text []byte) error
- type Exports
- func (e *Exports) FromCtyValue(in cty.Value, p cty.Path) error
- func (e Exports) Merge(other Exports) Exports
- func (e Exports) Normalize() Exports
- func (e Exports) ToCtyValue() cty.Value
- type SSH
- func ParseSSHSpecs(sl []string) ([]*SSH, error)
- func (s *SSH) Equal(other *SSH) bool
- func (e *SSH) FromCtyValue(in cty.Value, p cty.Path) error
- func (s *SSH) Less(other *SSH) int
- func (s *SSH) String() string
- func (e *SSH) ToCtyValue() cty.Value
- func (s *SSH) UnmarshalJSON(data []byte) error
- func (s *SSH) UnmarshalText(text []byte) error
- type SSHKeys
- func (s *SSHKeys) FromCtyValue(in cty.Value, p cty.Path) error
- func (s SSHKeys) Merge(other SSHKeys) SSHKeys
- func (s SSHKeys) Normalize() SSHKeys
- func (s SSHKeys) ToCtyValue() cty.Value
- type Secret
- func (s *Secret) Equal(other *Secret) bool
- func (e *Secret) FromCtyValue(in cty.Value, p cty.Path) error
- func (s *Secret) String() string
- func (e *Secret) ToCtyValue() cty.Value
- func (s *Secret) UnmarshalJSON(data []byte) error
- func (s *Secret) UnmarshalText(text []byte) error
- type Secrets
- func ParseSecretSpecs(sl []string) (Secrets, error)
- func (s *Secrets) FromCtyValue(in cty.Value, p cty.Path) error
- func (s Secrets) Merge(other Secrets) Secrets
- func (s Secrets) Normalize() Secrets
- func (s Secrets) ToCtyValue() cty.Value
- type Seq
Functions ¶
func CanonicalizeAttest ¶
func IsGitSSH ¶
IsGitSSH returns true if the given repo URL is accessed over ssh
func ParseAnnotations ¶
func ParseAnnotations(inp []string) (map[exptypes.AnnotationKey]string, error)
func ParseContextNames ¶
func ParseEntitlements ¶
Types ¶
type Attest ¶
type Attest struct { Type string `json:"type"` Disabled bool `json:"disabled,omitempty"` Attrs map[string]string `json:"attrs,omitempty"` }
func (*Attest) Equal ¶
func (*Attest) FromCtyValue ¶
func (*Attest) MarshalJSON ¶
func (*Attest) String ¶
func (*Attest) ToCtyValue ¶
func (*Attest) UnmarshalJSON ¶
func (*Attest) UnmarshalText ¶
type Attests ¶
type Attests []*Attest
func ParseAttests ¶
func (*Attests) FromCtyValue ¶
func (Attests) Merge ¶
func (Attests) Normalize ¶
func (Attests) ToCtyValue ¶
func (Attests) ToMap ¶
type CacheOptions ¶
type CacheOptions []*CacheOptionsEntry
func ParseCacheEntry ¶
func ParseCacheEntry(in []string) (CacheOptions, error)
func (*CacheOptions) FromCtyValue ¶
func (CacheOptions) Merge ¶
func (o CacheOptions) Merge(other CacheOptions) CacheOptions
func (CacheOptions) Normalize ¶
func (o CacheOptions) Normalize() CacheOptions
func (CacheOptions) ToCtyValue ¶
func (o CacheOptions) ToCtyValue() cty.Value
type CacheOptionsEntry ¶
type CacheOptionsEntry struct { Type string `json:"type"` Attrs map[string]string `json:"attrs,omitempty"` }
func (*CacheOptionsEntry) Equal ¶
func (e *CacheOptionsEntry) Equal(other *CacheOptionsEntry) bool
func (*CacheOptionsEntry) FromCtyValue ¶
func (*CacheOptionsEntry) MarshalJSON ¶
func (e *CacheOptionsEntry) MarshalJSON() ([]byte, error)
func (*CacheOptionsEntry) String ¶
func (e *CacheOptionsEntry) String() string
func (*CacheOptionsEntry) ToCtyValue ¶
func (o *CacheOptionsEntry) ToCtyValue() cty.Value
func (*CacheOptionsEntry) UnmarshalJSON ¶
func (e *CacheOptionsEntry) UnmarshalJSON(data []byte) error
func (*CacheOptionsEntry) UnmarshalText ¶
func (e *CacheOptionsEntry) UnmarshalText(text []byte) error
type CallFunc ¶
func ParseCallFunc ¶
func (*CallFunc) String ¶
type ExportEntry ¶
type ExportEntry struct { Type string `json:"type"` Attrs map[string]string `json:"attrs,omitempty"` Destination string `json:"dest,omitempty"` }
func ParseExports ¶
func ParseExports(inp []string) ([]*ExportEntry, error)
func (*ExportEntry) Equal ¶
func (e *ExportEntry) Equal(other *ExportEntry) bool
func (*ExportEntry) FromCtyValue ¶
func (*ExportEntry) MarshalJSON ¶
func (e *ExportEntry) MarshalJSON() ([]byte, error)
func (*ExportEntry) String ¶
func (e *ExportEntry) String() string
func (*ExportEntry) ToCtyValue ¶
func (e *ExportEntry) ToCtyValue() cty.Value
func (*ExportEntry) UnmarshalJSON ¶
func (e *ExportEntry) UnmarshalJSON(data []byte) error
func (*ExportEntry) UnmarshalText ¶
func (e *ExportEntry) UnmarshalText(text []byte) error
type Exports ¶
type Exports []*ExportEntry
func (*Exports) FromCtyValue ¶
func (Exports) Merge ¶
func (Exports) Normalize ¶
func (Exports) ToCtyValue ¶
type SSH ¶
type SSH struct { ID string `json:"id,omitempty" cty:"id"` Paths []string `json:"paths,omitempty" cty:"paths"` }
func ParseSSHSpecs ¶
func (*SSH) Equal ¶
func (*SSH) FromCtyValue ¶
func (*SSH) Less ¶
func (*SSH) String ¶
func (*SSH) ToCtyValue ¶
func (*SSH) UnmarshalJSON ¶
func (*SSH) UnmarshalText ¶
type SSHKeys ¶
type SSHKeys []*SSH
func (*SSHKeys) FromCtyValue ¶
func (SSHKeys) Merge ¶
func (SSHKeys) Normalize ¶
func (SSHKeys) ToCtyValue ¶
type Secret ¶
type Secret struct { ID string `json:"id,omitempty"` FilePath string `json:"src,omitempty"` Env string `json:"env,omitempty"` }
func (*Secret) Equal ¶
func (*Secret) FromCtyValue ¶
func (*Secret) String ¶
func (*Secret) ToCtyValue ¶
func (*Secret) UnmarshalJSON ¶
func (*Secret) UnmarshalText ¶
type Secrets ¶
type Secrets []*Secret
func ParseSecretSpecs ¶
func (*Secrets) FromCtyValue ¶
func (Secrets) Merge ¶
func (Secrets) Normalize ¶
func (Secrets) ToCtyValue ¶
type Seq ¶
Seq is a temporary definition of iter.Seq until we are able to migrate to using go1.23 as our minimum version. This can be removed when go1.24 is released and usages can be changed to use rangefunc.
Source Files ¶
attests.go attests_cty.go cache.go cache_cty.go callfunc.go context.go entitlements.go export.go export_cty.go secrets.go secrets_cty.go ssh.go ssh_cty.go utils.go
- Version
- v0.25.0-rc2
- Published
- Jun 16, 2025
- Platform
- darwin/amd64
- Imports
- 24 packages
- Last checked
- 4 hours ago –
Tools for package owners.