Documentation
¶
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
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeAttest ¶ added in v0.10.0
func ParseAnnotations ¶ added in v0.12.0
func ParseAnnotations(inp []string) (map[exptypes.AnnotationKey]string, error)
func ParseAttest ¶ added in v0.11.0
func ParseAttest(in string) (*controllerapi.Attest, error)
func ParseAttests ¶ added in v0.10.0
func ParseAttests(in []string) ([]*controllerapi.Attest, error)
func ParseCacheEntry ¶
func ParseCacheEntry(in []string) ([]*controllerapi.CacheOptionsEntry, error)
func ParseCallFunc ¶ added in v0.17.0
func ParseCallFunc(str string) (*controllerapi.CallFunc, error)
func ParseContextNames ¶ added in v0.11.0
func ParseEntitlements ¶
func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)
func ParseExports ¶ added in v0.11.0
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 ¶ added in v0.19.0
type CacheOptionsEntry struct {
Type string `json:"type"`
Attrs map[string]string `json:"attrs,omitempty"`
}
func (*CacheOptionsEntry) Equal ¶ added in v0.19.0
func (e *CacheOptionsEntry) Equal(other *CacheOptionsEntry) bool
func (*CacheOptionsEntry) FromCtyValue ¶ added in v0.19.0
func (*CacheOptionsEntry) IsActive ¶ added in v0.19.0
func (e *CacheOptionsEntry) IsActive() bool
func (*CacheOptionsEntry) MarshalJSON ¶ added in v0.19.0
func (e *CacheOptionsEntry) MarshalJSON() ([]byte, error)
func (*CacheOptionsEntry) String ¶ added in v0.19.0
func (e *CacheOptionsEntry) String() string
func (*CacheOptionsEntry) ToCtyValue ¶ added in v0.19.0
func (e *CacheOptionsEntry) ToCtyValue() cty.Value
func (*CacheOptionsEntry) ToPB ¶ added in v0.19.0
func (e *CacheOptionsEntry) ToPB() *controllerapi.CacheOptionsEntry
func (*CacheOptionsEntry) UnmarshalJSON ¶ added in v0.19.0
func (e *CacheOptionsEntry) UnmarshalJSON(data []byte) error
func (*CacheOptionsEntry) UnmarshalText ¶ added in v0.19.0
func (e *CacheOptionsEntry) UnmarshalText(text []byte) error
type ExportEntry ¶ added in v0.19.0
type ExportEntry struct {
Type string `json:"type"`
Attrs map[string]string `json:"attrs,omitempty"`
Destination string `json:"dest,omitempty"`
}
func (*ExportEntry) Equal ¶ added in v0.19.0
func (e *ExportEntry) Equal(other *ExportEntry) bool
func (*ExportEntry) FromCtyValue ¶ added in v0.19.0
func (*ExportEntry) MarshalJSON ¶ added in v0.19.0
func (e *ExportEntry) MarshalJSON() ([]byte, error)
func (*ExportEntry) String ¶ added in v0.19.0
func (e *ExportEntry) String() string
func (*ExportEntry) ToCtyValue ¶ added in v0.19.0
func (e *ExportEntry) ToCtyValue() cty.Value
func (*ExportEntry) ToPB ¶ added in v0.19.0
func (e *ExportEntry) ToPB() *controllerapi.ExportEntry
func (*ExportEntry) UnmarshalJSON ¶ added in v0.19.0
func (e *ExportEntry) UnmarshalJSON(data []byte) error
func (*ExportEntry) UnmarshalText ¶ added in v0.19.0
func (e *ExportEntry) UnmarshalText(text []byte) error
type SSH ¶ added in v0.19.0
type SSH struct {
ID string `json:"id,omitempty" cty:"id"`
Paths []string `json:"paths,omitempty" cty:"paths"`
}
func (*SSH) FromCtyValue ¶ added in v0.19.0
func (*SSH) ToCtyValue ¶ added in v0.19.0
func (*SSH) ToPB ¶ added in v0.19.0
func (s *SSH) ToPB() *controllerapi.SSH
func (*SSH) UnmarshalText ¶ added in v0.19.0
type Secret ¶ added in v0.19.0
type Secret struct {
ID string `json:"id,omitempty"`
FilePath string `json:"src,omitempty"`
Env string `json:"env,omitempty"`
}
func (*Secret) FromCtyValue ¶ added in v0.19.0
func (*Secret) ToCtyValue ¶ added in v0.19.0
func (*Secret) ToPB ¶ added in v0.19.0
func (s *Secret) ToPB() *controllerapi.Secret
func (*Secret) UnmarshalText ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.