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 ParseAttest(in string) (*controllerapi.Attest, error)
- func ParseAttests(in []string) ([]*controllerapi.Attest, error)
- func ParseCacheEntry(in []string) ([]*controllerapi.CacheOptionsEntry, error)
- func ParseCallFunc(str string) (*controllerapi.CallFunc, error)
- func ParseContextNames(values []string) (map[string]string, error)
- func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)
- func ParseExports(inp []string) ([]*controllerapi.ExportEntry, error)
- func ParseSSHSpecs(sl []string) ([]*controllerapi.SSH, error)
- func ParseSecretSpecs(sl []string) ([]*controllerapi.Secret, error)
- type CacheOptionsEntry
- func (e *CacheOptionsEntry) Equal(other *CacheOptionsEntry) bool
- func (e *CacheOptionsEntry) FromCtyValue(in cty.Value, p cty.Path) error
- func (e *CacheOptionsEntry) IsActive() bool
- func (e *CacheOptionsEntry) MarshalJSON() ([]byte, error)
- func (e *CacheOptionsEntry) String() string
- func (e *CacheOptionsEntry) ToCtyValue() cty.Value
- func (e *CacheOptionsEntry) ToPB() *controllerapi.CacheOptionsEntry
- func (e *CacheOptionsEntry) UnmarshalJSON(data []byte) error
- func (e *CacheOptionsEntry) UnmarshalText(text []byte) error
- type ExportEntry
- 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) ToPB() *controllerapi.ExportEntry
- func (e *ExportEntry) UnmarshalJSON(data []byte) error
- func (e *ExportEntry) UnmarshalText(text []byte) error
- type SSH
- func (s *SSH) Equal(other *SSH) bool
- func (e *SSH) FromCtyValue(in cty.Value, p cty.Path) (err error)
- func (s *SSH) Less(other *SSH) int
- func (s *SSH) String() string
- func (e *SSH) ToCtyValue() cty.Value
- func (s *SSH) ToPB() *controllerapi.SSH
- func (s *SSH) UnmarshalText(text []byte) error
- type Secret
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 ParseAttest ¶
func ParseAttest(in string) (*controllerapi.Attest, error)
func ParseAttests ¶
func ParseAttests(in []string) ([]*controllerapi.Attest, error)
func ParseCacheEntry ¶
func ParseCacheEntry(in []string) ([]*controllerapi.CacheOptionsEntry, error)
func ParseCallFunc ¶
func ParseCallFunc(str string) (*controllerapi.CallFunc, error)
func ParseContextNames ¶
func ParseEntitlements ¶
func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)
func ParseExports ¶
func ParseExports(inp []string) ([]*controllerapi.ExportEntry, error)
func ParseSSHSpecs ¶
func ParseSSHSpecs(sl []string) ([]*controllerapi.SSH, error)
func ParseSecretSpecs ¶
func ParseSecretSpecs(sl []string) ([]*controllerapi.Secret, error)
Types ¶
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) IsActive ¶
func (e *CacheOptionsEntry) IsActive() bool
func (*CacheOptionsEntry) MarshalJSON ¶
func (e *CacheOptionsEntry) MarshalJSON() ([]byte, error)
func (*CacheOptionsEntry) String ¶
func (e *CacheOptionsEntry) String() string
func (*CacheOptionsEntry) ToCtyValue ¶
func (e *CacheOptionsEntry) ToCtyValue() cty.Value
func (*CacheOptionsEntry) ToPB ¶
func (e *CacheOptionsEntry) ToPB() *controllerapi.CacheOptionsEntry
func (*CacheOptionsEntry) UnmarshalJSON ¶
func (e *CacheOptionsEntry) UnmarshalJSON(data []byte) error
func (*CacheOptionsEntry) UnmarshalText ¶
func (e *CacheOptionsEntry) UnmarshalText(text []byte) error
type ExportEntry ¶
type ExportEntry struct { Type string `json:"type"` Attrs map[string]string `json:"attrs,omitempty"` Destination string `json:"dest,omitempty"` }
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) ToPB ¶
func (e *ExportEntry) ToPB() *controllerapi.ExportEntry
func (*ExportEntry) UnmarshalJSON ¶
func (e *ExportEntry) UnmarshalJSON(data []byte) error
func (*ExportEntry) UnmarshalText ¶
func (e *ExportEntry) UnmarshalText(text []byte) error
type SSH ¶
type SSH struct { ID string `json:"id,omitempty" cty:"id"` Paths []string `json:"paths,omitempty" cty:"paths"` }
func (*SSH) Equal ¶
func (*SSH) FromCtyValue ¶
func (*SSH) Less ¶
func (*SSH) String ¶
func (*SSH) ToCtyValue ¶
func (*SSH) ToPB ¶
func (s *SSH) ToPB() *controllerapi.SSH
func (*SSH) UnmarshalText ¶
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) ToPB ¶
func (s *Secret) ToPB() *controllerapi.Secret
func (*Secret) UnmarshalText ¶
Source Files ¶
attests.go cache.go callfunc.go context.go cty.go entitlements.go export.go secrets.go ssh.go
- Version
- v0.19.0-rc1
- Published
- Nov 21, 2024
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- 12 hours ago –
Tools for package owners.