Documentation
¶
Index ¶
Constants ¶
View Source
const (
MappingFilename = "mapping.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationConfig ¶ added in v0.1.8
type AttestationConfig struct { Style AttestationStyle `yaml:"style"` Repo string `yaml:"repo"` }
type AttestationStyle ¶
type AttestationStyle string
const ( AttestationStyleAttached AttestationStyle = "attached" AttestationStyleReferrers AttestationStyle = "referrers" )
type PolicyMapping ¶
type PolicyMapping struct { Id string `yaml:"id"` Description string `yaml:"description"` Files []PolicyMappingFile `yaml:"files"` Attestations *AttestationConfig `yaml:"attestations"` }
type PolicyMappingFile ¶
type PolicyMappingFile struct {
Path string `yaml:"path"`
}
type PolicyMappings ¶
type PolicyMappings struct { Version string Kind string Policies map[string]*PolicyMapping Rules []*PolicyRule }
func LoadLocalMappings ¶
func LoadLocalMappings(configDir string) (*PolicyMappings, error)
func LoadTufMappings ¶
func LoadTufMappings(tufClient tuf.TUFClient, localTargetsDir string) (*PolicyMappings, error)
Click to show internal directories.
Click to hide internal directories.