Documentation
¶
Index ¶
- Constants
- type BuildConfig
- type BuildKitComplete
- type BuildKitMetadata
- type BuildStep
- type Environment
- type GitSource
- type HTTPSource
- type ImageSource
- type LocalSource
- type Parameters
- type ProvenanceBuildDefinitionSLSA1
- type ProvenanceConfigSourceSLSA1
- type ProvenanceCustomEnv
- type ProvenanceExternalParametersSLSA1
- type ProvenanceInternalParametersSLSA1
- type ProvenanceInvocationSLSA02
- type ProvenanceMetadataSLSA1
- type ProvenanceMetadataSLSA02
- type ProvenancePredicateSLSA1
- type ProvenancePredicateSLSA02
- type ProvenanceRunDetailsSLSA1
- type ProvenanceSLSA
- type SSH
- type Secret
- type Source
- type SourceInfo
- type Sources
Constants ¶
View Source
const ( BuildKitBuildType1 = "https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-definitions.md" BuildKitBuildType02 = "https://mobyproject.org/buildkit@v1" ProvenanceSLSA1 = ProvenanceSLSA("v1") ProvenanceSLSA02 = ProvenanceSLSA("v0.2") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildKitComplete ¶ added in v0.23.0
type BuildKitMetadata ¶
type BuildKitMetadata struct {
VCS map[string]string `json:"vcs,omitempty"`
Source *Source `json:"source,omitempty"`
Layers map[string][][]ocispecs.Descriptor `json:"layers,omitempty"`
SysUsage []*resourcestypes.SysSample `json:"sysUsage,omitempty"`
}
type Environment ¶
type Environment struct {
Platform string `json:"platform"`
ProvenanceCustomEnv
}
func (Environment) MarshalJSON ¶ added in v0.25.1
func (p Environment) MarshalJSON() ([]byte, error)
func (*Environment) UnmarshalJSON ¶ added in v0.25.1
func (p *Environment) UnmarshalJSON(data []byte) error
type HTTPSource ¶
type ImageSource ¶
type LocalSource ¶
type LocalSource struct {
Name string `json:"name"`
}
type Parameters ¶
type ProvenanceBuildDefinitionSLSA1 ¶ added in v0.23.0
type ProvenanceBuildDefinitionSLSA1 struct {
slsa1.ProvenanceBuildDefinition
ExternalParameters ProvenanceExternalParametersSLSA1 `json:"externalParameters"`
InternalParameters ProvenanceInternalParametersSLSA1 `json:"internalParameters"`
}
type ProvenanceConfigSourceSLSA1 ¶ added in v0.23.0
type ProvenanceCustomEnv ¶ added in v0.25.0
type ProvenanceExternalParametersSLSA1 ¶ added in v0.23.0
type ProvenanceExternalParametersSLSA1 struct {
ConfigSource ProvenanceConfigSourceSLSA1 `json:"configSource"`
Request Parameters `json:"request"`
}
type ProvenanceInternalParametersSLSA1 ¶ added in v0.23.0
type ProvenanceInternalParametersSLSA1 struct {
BuildConfig *BuildConfig `json:"buildConfig,omitempty"`
BuilderPlatform string `json:"builderPlatform"`
ProvenanceCustomEnv
}
func (ProvenanceInternalParametersSLSA1) MarshalJSON ¶ added in v0.25.1
func (p ProvenanceInternalParametersSLSA1) MarshalJSON() ([]byte, error)
MarshalJSON flattens ProvenanceCustomEnv into top level.
func (*ProvenanceInternalParametersSLSA1) UnmarshalJSON ¶ added in v0.25.1
func (p *ProvenanceInternalParametersSLSA1) UnmarshalJSON(data []byte) error
UnmarshalJSON fills both struct fields and flattened custom env.
type ProvenanceInvocationSLSA02 ¶ added in v0.23.0
type ProvenanceInvocationSLSA02 struct {
ConfigSource slsa02.ConfigSource `json:"configSource"`
Parameters Parameters `json:"parameters"`
Environment Environment `json:"environment"`
}
type ProvenanceMetadataSLSA1 ¶ added in v0.23.0
type ProvenanceMetadataSLSA1 struct {
slsa1.BuildMetadata
BuildKitMetadata BuildKitMetadata `json:"buildkit_metadata"`
Hermetic bool `json:"buildkit_hermetic,omitempty"`
Completeness BuildKitComplete `json:"buildkit_completeness"`
Reproducible bool `json:"buildkit_reproducible,omitempty"`
}
type ProvenanceMetadataSLSA02 ¶ added in v0.23.0
type ProvenanceMetadataSLSA02 struct {
slsa02.ProvenanceMetadata
BuildKitMetadata BuildKitMetadata `json:"https://mobyproject.org/buildkit@v1#metadata"`
Hermetic bool `json:"https://mobyproject.org/buildkit@v1#hermetic,omitempty"`
}
type ProvenancePredicateSLSA1 ¶ added in v0.23.0
type ProvenancePredicateSLSA1 struct {
slsa1.ProvenancePredicate
BuildDefinition ProvenanceBuildDefinitionSLSA1 `json:"buildDefinition"`
RunDetails ProvenanceRunDetailsSLSA1 `json:"runDetails"`
}
func (*ProvenancePredicateSLSA1) ConvertToSLSA02 ¶ added in v0.24.0
func (p *ProvenancePredicateSLSA1) ConvertToSLSA02() *ProvenancePredicateSLSA02
ConvertToSLSA02 converts to a SLSA v0.2 provenance predicate.
type ProvenancePredicateSLSA02 ¶ added in v0.23.0
type ProvenancePredicateSLSA02 struct {
slsa02.ProvenancePredicate
Invocation ProvenanceInvocationSLSA02 `json:"invocation"`
BuildConfig *BuildConfig `json:"buildConfig,omitempty"`
Metadata *ProvenanceMetadataSLSA02 `json:"metadata,omitempty"`
}
func (*ProvenancePredicateSLSA02) ConvertToSLSA1 ¶ added in v0.24.0
func (p *ProvenancePredicateSLSA02) ConvertToSLSA1() *ProvenancePredicateSLSA1
ConvertToSLSA1 converts to a SLSA v1 provenance predicate.
type ProvenanceRunDetailsSLSA1 ¶ added in v0.23.0
type ProvenanceRunDetailsSLSA1 struct {
slsa1.ProvenanceRunDetails
Metadata *ProvenanceMetadataSLSA1 `json:"metadata,omitempty"`
}
type ProvenanceSLSA ¶ added in v0.23.0
type ProvenanceSLSA string
func (*ProvenanceSLSA) Validate ¶ added in v0.23.0
func (ps *ProvenanceSLSA) Validate() error
type Source ¶
type Source struct {
Locations map[string]*pb.Locations `json:"locations,omitempty"`
Infos []SourceInfo `json:"infos,omitempty"`
}
type SourceInfo ¶
type Sources ¶
type Sources struct {
Images []ImageSource
Git []GitSource
HTTP []HTTPSource
Local []LocalSource
}
Click to show internal directories.
Click to hide internal directories.