buildflags

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 24 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeAttest added in v0.10.0

func CanonicalizeAttest(attestType string, in string) string

func IsGitSSH

func IsGitSSH(repo string) bool

IsGitSSH returns true if the given repo URL is accessed over ssh

func ParseAnnotations added in v0.12.0

func ParseAnnotations(inp []string) (map[exptypes.AnnotationKey]string, error)

func ParseContextNames added in v0.11.0

func ParseContextNames(values []string) (map[string]string, error)

func ParseEntitlements

func ParseEntitlements(in []string) ([]string, error)

Types

type Attest added in v0.20.0

type Attest struct {
	Type     string            `json:"type"`
	Disabled bool              `json:"disabled,omitempty"`
	Attrs    map[string]string `json:"attrs,omitempty"`
}

func (*Attest) Equal added in v0.20.0

func (a *Attest) Equal(other *Attest) bool

func (*Attest) FromCtyValue added in v0.20.0

func (e *Attest) FromCtyValue(in cty.Value, p cty.Path) error

func (*Attest) MarshalJSON added in v0.20.0

func (a *Attest) MarshalJSON() ([]byte, error)

func (*Attest) String added in v0.20.0

func (a *Attest) String() string

func (*Attest) ToCtyValue added in v0.20.0

func (e *Attest) ToCtyValue() cty.Value

func (*Attest) UnmarshalJSON added in v0.20.0

func (a *Attest) UnmarshalJSON(data []byte) error

func (*Attest) UnmarshalText added in v0.20.0

func (a *Attest) UnmarshalText(text []byte) error

type Attests added in v0.20.0

type Attests []*Attest

func ParseAttests added in v0.10.0

func ParseAttests(in []string) (Attests, error)

func (*Attests) FromCtyValue added in v0.20.0

func (e *Attests) FromCtyValue(in cty.Value, p cty.Path) error

func (Attests) Merge added in v0.20.0

func (a Attests) Merge(other Attests) Attests

func (Attests) Normalize added in v0.20.0

func (a Attests) Normalize() Attests

func (Attests) ToCtyValue added in v0.20.0

func (e Attests) ToCtyValue() cty.Value

func (Attests) ToMap added in v0.25.0

func (a Attests) ToMap() map[string]*string

type CacheOptions added in v0.20.0

type CacheOptions []*CacheOptionsEntry

func ParseCacheEntry

func ParseCacheEntry(in []string) (CacheOptions, error)

func (*CacheOptions) FromCtyValue added in v0.20.0

func (o *CacheOptions) FromCtyValue(in cty.Value, p cty.Path) error

func (CacheOptions) Merge added in v0.20.0

func (o CacheOptions) Merge(other CacheOptions) CacheOptions

func (CacheOptions) Normalize added in v0.20.0

func (o CacheOptions) Normalize() CacheOptions

func (CacheOptions) ToCtyValue added in v0.20.0

func (o CacheOptions) ToCtyValue() cty.Value

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 (o *CacheOptionsEntry) FromCtyValue(in cty.Value, p cty.Path) error

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 (o *CacheOptionsEntry) ToCtyValue() cty.Value

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 CallFunc added in v0.25.0

type CallFunc struct {
	Name         string
	Format       string
	IgnoreStatus bool
}

func ParseCallFunc added in v0.17.0

func ParseCallFunc(str string) (*CallFunc, error)

func (*CallFunc) String added in v0.25.0

func (x *CallFunc) String() string

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 ParseExports added in v0.11.0

func ParseExports(inp []string) ([]*ExportEntry, error)

func (*ExportEntry) Equal added in v0.19.0

func (e *ExportEntry) Equal(other *ExportEntry) bool

func (*ExportEntry) FromCtyValue added in v0.19.0

func (e *ExportEntry) FromCtyValue(in cty.Value, p cty.Path) error

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) 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 Exports added in v0.20.0

type Exports []*ExportEntry

func (*Exports) FromCtyValue added in v0.20.0

func (e *Exports) FromCtyValue(in cty.Value, p cty.Path) error

func (Exports) Merge added in v0.20.0

func (e Exports) Merge(other Exports) Exports

func (Exports) Normalize added in v0.20.0

func (e Exports) Normalize() Exports

func (Exports) ToCtyValue added in v0.20.0

func (e Exports) ToCtyValue() cty.Value

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 ParseSSHSpecs

func ParseSSHSpecs(sl []string) ([]*SSH, error)

func (*SSH) Equal added in v0.19.0

func (s *SSH) Equal(other *SSH) bool

func (*SSH) FromCtyValue added in v0.19.0

func (e *SSH) FromCtyValue(in cty.Value, p cty.Path) error

func (*SSH) Less added in v0.19.0

func (s *SSH) Less(other *SSH) int

func (*SSH) String added in v0.19.0

func (s *SSH) String() string

func (*SSH) ToCtyValue added in v0.19.0

func (e *SSH) ToCtyValue() cty.Value

func (*SSH) UnmarshalJSON added in v0.20.1

func (s *SSH) UnmarshalJSON(data []byte) error

func (*SSH) UnmarshalText added in v0.19.0

func (s *SSH) UnmarshalText(text []byte) error

type SSHKeys added in v0.20.0

type SSHKeys []*SSH

func (*SSHKeys) FromCtyValue added in v0.20.0

func (s *SSHKeys) FromCtyValue(in cty.Value, p cty.Path) error

func (SSHKeys) Merge added in v0.20.0

func (s SSHKeys) Merge(other SSHKeys) SSHKeys

func (SSHKeys) Normalize added in v0.20.0

func (s SSHKeys) Normalize() SSHKeys

func (SSHKeys) ToCtyValue added in v0.20.0

func (s SSHKeys) ToCtyValue() cty.Value

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) Equal added in v0.19.0

func (s *Secret) Equal(other *Secret) bool

func (*Secret) FromCtyValue added in v0.19.0

func (e *Secret) FromCtyValue(in cty.Value, p cty.Path) error

func (*Secret) String added in v0.19.0

func (s *Secret) String() string

func (*Secret) ToCtyValue added in v0.19.0

func (e *Secret) ToCtyValue() cty.Value

func (*Secret) UnmarshalJSON added in v0.20.1

func (s *Secret) UnmarshalJSON(data []byte) error

func (*Secret) UnmarshalText added in v0.19.0

func (s *Secret) UnmarshalText(text []byte) error

type Secrets added in v0.20.0

type Secrets []*Secret

func ParseSecretSpecs

func ParseSecretSpecs(sl []string) (Secrets, error)

func (*Secrets) FromCtyValue added in v0.20.0

func (s *Secrets) FromCtyValue(in cty.Value, p cty.Path) error

func (Secrets) Merge added in v0.20.0

func (s Secrets) Merge(other Secrets) Secrets

func (Secrets) Normalize added in v0.20.0

func (s Secrets) Normalize() Secrets

func (Secrets) ToCtyValue added in v0.20.0

func (s Secrets) ToCtyValue() cty.Value

type Seq added in v0.21.0

type Seq[V any] func(yield func(V) bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL