Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAnnotation(name string) string
- type Attestation
- func (*Attestation) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation) GetAnnotations() map[string]string
- func (x *Attestation) GetEnvVars() map[string]string
- func (x *Attestation) GetFinishedAt() *timestamppb.Timestamp
- func (x *Attestation) GetHead() *Commit
- func (x *Attestation) GetInitializedAt() *timestamppb.Timestamp
- func (x *Attestation) GetMaterials() map[string]*Attestation_Material
- func (x *Attestation) GetPolicyEvaluations() []*PolicyEvaluation
- func (x *Attestation) GetRunnerType() v1.CraftingSchema_Runner_RunnerType
- func (x *Attestation) GetRunnerUrl() string
- func (x *Attestation) GetWorkflow() *WorkflowMetadata
- func (*Attestation) ProtoMessage()
- func (x *Attestation) ProtoReflect() protoreflect.Message
- func (x *Attestation) Reset()
- func (x *Attestation) String() string
- type Attestation_Material
- func (m *Attestation_Material) CraftingStateToIntotoDescriptor(name string) (*intoto.ResourceDescriptor, error)
- func (*Attestation_Material) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material) GetAddedAt() *timestamppb.Timestamp
- func (x *Attestation_Material) GetAnnotations() map[string]string
- func (x *Attestation_Material) GetArtifact() *Attestation_Material_Artifact
- func (x *Attestation_Material) GetContainerImage() *Attestation_Material_ContainerImage
- func (m *Attestation_Material) GetEvaluableContent(value string) ([]byte, error)
- func (m *Attestation_Material) GetID() string
- func (x *Attestation_Material) GetInlineCas() bool
- func (m *Attestation_Material) GetM() isAttestation_Material_M
- func (x *Attestation_Material) GetMaterialType() v1.CraftingSchema_Material_MaterialType
- func (x *Attestation_Material) GetSbomArtifact() *Attestation_Material_SBOMArtifact
- func (x *Attestation_Material) GetString_() *Attestation_Material_KeyVal
- func (x *Attestation_Material) GetUploadedToCas() bool
- func (m *Attestation_Material) NormalizedOutput() (*NormalizedMaterialOutput, error)
- func (*Attestation_Material) ProtoMessage()
- func (x *Attestation_Material) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material) Reset()
- func (x *Attestation_Material) String() string
- type Attestation_Material_Artifact
- func (*Attestation_Material_Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_Artifact) GetContent() []byte
- func (x *Attestation_Material_Artifact) GetDigest() string
- func (x *Attestation_Material_Artifact) GetId() string
- func (x *Attestation_Material_Artifact) GetIsSubject() bool
- func (x *Attestation_Material_Artifact) GetName() string
- func (*Attestation_Material_Artifact) ProtoMessage()
- func (x *Attestation_Material_Artifact) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_Artifact) Reset()
- func (x *Attestation_Material_Artifact) String() string
- type Attestation_Material_Artifact_
- type Attestation_Material_ContainerImage
- func (*Attestation_Material_ContainerImage) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_ContainerImage) GetDigest() string
- func (x *Attestation_Material_ContainerImage) GetHasLatestTag() *wrapperspb.BoolValue
- func (x *Attestation_Material_ContainerImage) GetId() string
- func (x *Attestation_Material_ContainerImage) GetIsSubject() bool
- func (x *Attestation_Material_ContainerImage) GetName() string
- func (x *Attestation_Material_ContainerImage) GetSignature() string
- func (x *Attestation_Material_ContainerImage) GetSignatureDigest() string
- func (x *Attestation_Material_ContainerImage) GetSignatureProvider() string
- func (x *Attestation_Material_ContainerImage) GetTag() string
- func (*Attestation_Material_ContainerImage) ProtoMessage()
- func (x *Attestation_Material_ContainerImage) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_ContainerImage) Reset()
- func (x *Attestation_Material_ContainerImage) String() string
- type Attestation_Material_ContainerImage_
- type Attestation_Material_KeyVal
- func (*Attestation_Material_KeyVal) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_KeyVal) GetDigest() string
- func (x *Attestation_Material_KeyVal) GetId() string
- func (x *Attestation_Material_KeyVal) GetValue() string
- func (*Attestation_Material_KeyVal) ProtoMessage()
- func (x *Attestation_Material_KeyVal) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_KeyVal) Reset()
- func (x *Attestation_Material_KeyVal) String() string
- type Attestation_Material_SBOMArtifact
- func (*Attestation_Material_SBOMArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_SBOMArtifact) GetArtifact() *Attestation_Material_Artifact
- func (x *Attestation_Material_SBOMArtifact) GetMainComponent() *Attestation_Material_SBOMArtifact_MainComponent
- func (*Attestation_Material_SBOMArtifact) ProtoMessage()
- func (x *Attestation_Material_SBOMArtifact) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_SBOMArtifact) Reset()
- func (x *Attestation_Material_SBOMArtifact) String() string
- type Attestation_Material_SBOMArtifact_MainComponent
- func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetKind() string
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetName() string
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetVersion() string
- func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage()
- func (x *Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_SBOMArtifact_MainComponent) Reset()
- func (x *Attestation_Material_SBOMArtifact_MainComponent) String() string
- type Attestation_Material_SbomArtifact
- type Attestation_Material_String_
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetAuthorEmail() string
- func (x *Commit) GetAuthorName() string
- func (x *Commit) GetDate() *timestamppb.Timestamp
- func (x *Commit) GetHash() string
- func (x *Commit) GetMessage() string
- func (x *Commit) GetRemotes() []*Commit_Remote
- func (x *Commit) GetSignature() string
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type Commit_Remote
- func (*Commit_Remote) Descriptor() ([]byte, []int)deprecated
- func (x *Commit_Remote) GetName() string
- func (x *Commit_Remote) GetUrl() string
- func (*Commit_Remote) ProtoMessage()
- func (x *Commit_Remote) ProtoReflect() protoreflect.Message
- func (x *Commit_Remote) Reset()
- func (x *Commit_Remote) String() string
- type CraftingState
- func (*CraftingState) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingState) GetAttestation() *Attestation
- func (x *CraftingState) GetDryRun() bool
- func (x *CraftingState) GetInputSchema() *v1.CraftingSchema
- func (*CraftingState) ProtoMessage()
- func (x *CraftingState) ProtoReflect() protoreflect.Message
- func (x *CraftingState) Reset()
- func (x *CraftingState) String() string
- func (state *CraftingState) ValidateComplete(dryRun bool) error
- type NormalizedMaterialOutput
- type PolicyEvaluation
- func (*PolicyEvaluation) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation) GetAnnotations() map[string]string
- func (x *PolicyEvaluation) GetBody() stringdeprecated
- func (x *PolicyEvaluation) GetDescription() string
- func (x *PolicyEvaluation) GetGroupReference() *PolicyEvaluation_Reference
- func (x *PolicyEvaluation) GetMaterialName() string
- func (x *PolicyEvaluation) GetName() string
- func (x *PolicyEvaluation) GetPolicyReference() *PolicyEvaluation_Reference
- func (x *PolicyEvaluation) GetReferenceDigest() stringdeprecated
- func (x *PolicyEvaluation) GetReferenceName() stringdeprecated
- func (x *PolicyEvaluation) GetRequirements() []string
- func (x *PolicyEvaluation) GetSkipReasons() []string
- func (x *PolicyEvaluation) GetSkipped() bool
- func (x *PolicyEvaluation) GetSources() []string
- func (x *PolicyEvaluation) GetType() v1.CraftingSchema_Material_MaterialType
- func (x *PolicyEvaluation) GetViolations() []*PolicyEvaluation_Violation
- func (x *PolicyEvaluation) GetWith() map[string]string
- func (*PolicyEvaluation) ProtoMessage()
- func (x *PolicyEvaluation) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation) Reset()
- func (x *PolicyEvaluation) String() string
- type PolicyEvaluation_Reference
- func (*PolicyEvaluation_Reference) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation_Reference) GetDigest() string
- func (x *PolicyEvaluation_Reference) GetName() string
- func (x *PolicyEvaluation_Reference) GetOrgName() string
- func (x *PolicyEvaluation_Reference) GetUri() string
- func (*PolicyEvaluation_Reference) ProtoMessage()
- func (x *PolicyEvaluation_Reference) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation_Reference) Reset()
- func (x *PolicyEvaluation_Reference) String() string
- type PolicyEvaluation_Violation
- func (*PolicyEvaluation_Violation) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation_Violation) GetMessage() string
- func (x *PolicyEvaluation_Violation) GetSubject() string
- func (*PolicyEvaluation_Violation) ProtoMessage()
- func (x *PolicyEvaluation_Violation) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation_Violation) Reset()
- func (x *PolicyEvaluation_Violation) String() string
- type ProjectVersion
- func (*ProjectVersion) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectVersion) GetMarkAsReleased() bool
- func (x *ProjectVersion) GetPrerelease() bool
- func (x *ProjectVersion) GetVersion() string
- func (*ProjectVersion) ProtoMessage()
- func (x *ProjectVersion) ProtoReflect() protoreflect.Message
- func (x *ProjectVersion) Reset()
- func (x *ProjectVersion) String() string
- type ResourceDescriptor
- func (*ResourceDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceDescriptor) GetAnnotations() *structpb.Struct
- func (x *ResourceDescriptor) GetContent() []byte
- func (x *ResourceDescriptor) GetDigest() map[string]string
- func (x *ResourceDescriptor) GetDownloadLocation() string
- func (x *ResourceDescriptor) GetMediaType() string
- func (x *ResourceDescriptor) GetName() string
- func (x *ResourceDescriptor) GetUri() string
- func (*ResourceDescriptor) ProtoMessage()
- func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message
- func (x *ResourceDescriptor) Reset()
- func (x *ResourceDescriptor) String() string
- type WorkflowMetadata
- func (*WorkflowMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *WorkflowMetadata) GetContractName() string
- func (x *WorkflowMetadata) GetName() string
- func (x *WorkflowMetadata) GetOrganization() string
- func (x *WorkflowMetadata) GetProject() string
- func (x *WorkflowMetadata) GetProjectVersion() stringdeprecated
- func (x *WorkflowMetadata) GetSchemaRevision() string
- func (x *WorkflowMetadata) GetTeam() string
- func (x *WorkflowMetadata) GetVersion() *ProjectVersion
- func (x *WorkflowMetadata) GetWorkflowId() string
- func (x *WorkflowMetadata) GetWorkflowRunId() string
- func (*WorkflowMetadata) ProtoMessage()
- func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message
- func (x *WorkflowMetadata) Reset()
- func (x *WorkflowMetadata) String() string
Constants ¶
const AnnotationPrefix = "chainloop."
Variables ¶
var ( AnnotationMaterialType = CreateAnnotation("material.type") AnnotationMaterialName = CreateAnnotation("material.name") AnnotationMaterialSignature = CreateAnnotation("material.signature") AnnotationSignatureDigest = CreateAnnotation("material.signature.digest") AnnotationSignatureProvider = CreateAnnotation("material.signature.provider") AnnotationMaterialCAS = CreateAnnotation("material.cas") AnnotationMaterialInlineCAS = CreateAnnotation("material.cas.inline") AnnotationContainerTag = CreateAnnotation("material.image.tag") AnnotationsContainerLatestTag = CreateAnnotation("material.image.is_latest_tag") AnnotationsSBOMMainComponentName = CreateAnnotation("material.sbom.main_component.name") AnnotationsSBOMMainComponentType = CreateAnnotation("material.sbom.main_component.type") AnnotationsSBOMMainComponentVersion = CreateAnnotation("material.sbom.main_component.version") )
var File_attestation_v1_crafting_state_proto protoreflect.FileDescriptor
Functions ¶
func CreateAnnotation ¶ added in v0.97.4
Types ¶
type Attestation ¶
type Attestation struct { InitializedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=initialized_at,json=initializedAt,proto3" json:"initialized_at,omitempty"` FinishedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` Workflow *WorkflowMetadata `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` Materials map[string]*Attestation_Material `` /* 159-byte string literal not displayed */ // Annotations for the attestation Annotations map[string]string `` /* 163-byte string literal not displayed */ // List of env variables EnvVars map[string]string `` /* 170-byte string literal not displayed */ RunnerUrl string `protobuf:"bytes,7,opt,name=runner_url,json=runnerUrl,proto3" json:"runner_url,omitempty"` RunnerType v1.CraftingSchema_Runner_RunnerType `` /* 150-byte string literal not displayed */ // Head Commit of the environment where the attestation was executed (optional) Head *Commit `protobuf:"bytes,9,opt,name=head,proto3" json:"head,omitempty"` // Policies that materials in this attestation were validated against PolicyEvaluations []*PolicyEvaluation `protobuf:"bytes,10,rep,name=policy_evaluations,json=policyEvaluations,proto3" json:"policy_evaluations,omitempty"` // contains filtered or unexported fields }
func (*Attestation) Descriptor
deprecated
func (*Attestation) Descriptor() ([]byte, []int)
Deprecated: Use Attestation.ProtoReflect.Descriptor instead.
func (*Attestation) GetAnnotations ¶
func (x *Attestation) GetAnnotations() map[string]string
func (*Attestation) GetEnvVars ¶
func (x *Attestation) GetEnvVars() map[string]string
func (*Attestation) GetFinishedAt ¶
func (x *Attestation) GetFinishedAt() *timestamppb.Timestamp
func (*Attestation) GetHead ¶
func (x *Attestation) GetHead() *Commit
func (*Attestation) GetInitializedAt ¶
func (x *Attestation) GetInitializedAt() *timestamppb.Timestamp
func (*Attestation) GetMaterials ¶
func (x *Attestation) GetMaterials() map[string]*Attestation_Material
func (*Attestation) GetPolicyEvaluations ¶
func (x *Attestation) GetPolicyEvaluations() []*PolicyEvaluation
func (*Attestation) GetRunnerType ¶
func (x *Attestation) GetRunnerType() v1.CraftingSchema_Runner_RunnerType
func (*Attestation) GetRunnerUrl ¶
func (x *Attestation) GetRunnerUrl() string
func (*Attestation) GetWorkflow ¶
func (x *Attestation) GetWorkflow() *WorkflowMetadata
func (*Attestation) ProtoMessage ¶
func (*Attestation) ProtoMessage()
func (*Attestation) ProtoReflect ¶
func (x *Attestation) ProtoReflect() protoreflect.Message
func (*Attestation) Reset ¶
func (x *Attestation) Reset()
func (*Attestation) String ¶
func (x *Attestation) String() string
type Attestation_Material ¶
type Attestation_Material struct { // Types that are assignable to M: // // *Attestation_Material_String_ // *Attestation_Material_ContainerImage_ // *Attestation_Material_Artifact_ // *Attestation_Material_SbomArtifact M isAttestation_Material_M `protobuf_oneof:"m"` AddedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` MaterialType v1.CraftingSchema_Material_MaterialType `` /* 160-byte string literal not displayed */ // Whether the material has been uploaded to the CAS UploadedToCas bool `protobuf:"varint,7,opt,name=uploaded_to_cas,json=uploadedToCas,proto3" json:"uploaded_to_cas,omitempty"` // If the material content has been injected inline in the attestation // leveraging a form of inline CAS InlineCas bool `protobuf:"varint,8,opt,name=inline_cas,json=inlineCas,proto3" json:"inline_cas,omitempty"` // Annotations for the material Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Attestation_Material) CraftingStateToIntotoDescriptor ¶ added in v0.97.4
func (m *Attestation_Material) CraftingStateToIntotoDescriptor(name string) (*intoto.ResourceDescriptor, error)
CraftingStateToIntotoDescriptor creates an intoto descriptor from a material in crafting state
func (*Attestation_Material) Descriptor
deprecated
func (*Attestation_Material) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material.ProtoReflect.Descriptor instead.
func (*Attestation_Material) GetAddedAt ¶
func (x *Attestation_Material) GetAddedAt() *timestamppb.Timestamp
func (*Attestation_Material) GetAnnotations ¶
func (x *Attestation_Material) GetAnnotations() map[string]string
func (*Attestation_Material) GetArtifact ¶
func (x *Attestation_Material) GetArtifact() *Attestation_Material_Artifact
func (*Attestation_Material) GetContainerImage ¶
func (x *Attestation_Material) GetContainerImage() *Attestation_Material_ContainerImage
func (*Attestation_Material) GetEvaluableContent ¶ added in v0.97.4
func (m *Attestation_Material) GetEvaluableContent(value string) ([]byte, error)
GetEvaluableContent returns the content to be sent to policy evaluations
func (*Attestation_Material) GetID ¶ added in v0.97.4
func (m *Attestation_Material) GetID() string
func (*Attestation_Material) GetInlineCas ¶
func (x *Attestation_Material) GetInlineCas() bool
func (*Attestation_Material) GetM ¶
func (m *Attestation_Material) GetM() isAttestation_Material_M
func (*Attestation_Material) GetMaterialType ¶
func (x *Attestation_Material) GetMaterialType() v1.CraftingSchema_Material_MaterialType
func (*Attestation_Material) GetSbomArtifact ¶ added in v0.139.0
func (x *Attestation_Material) GetSbomArtifact() *Attestation_Material_SBOMArtifact
func (*Attestation_Material) GetString_ ¶
func (x *Attestation_Material) GetString_() *Attestation_Material_KeyVal
func (*Attestation_Material) GetUploadedToCas ¶
func (x *Attestation_Material) GetUploadedToCas() bool
func (*Attestation_Material) NormalizedOutput ¶
func (m *Attestation_Material) NormalizedOutput() (*NormalizedMaterialOutput, error)
NormalizedOutput returns a common representation of the properties of a material regardless of how it's been encoded. For example, it's common to have materials based on artifacts, so we want to normalize the output
func (*Attestation_Material) ProtoMessage ¶
func (*Attestation_Material) ProtoMessage()
func (*Attestation_Material) ProtoReflect ¶
func (x *Attestation_Material) ProtoReflect() protoreflect.Message
func (*Attestation_Material) Reset ¶
func (x *Attestation_Material) Reset()
func (*Attestation_Material) String ¶
func (x *Attestation_Material) String() string
type Attestation_Material_Artifact ¶
type Attestation_Material_Artifact struct { // ID of the artifact Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // filename, use for record purposes Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the digest is enough to retrieve the artifact since it's stored in a CAS // which also has annotated the fileName Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` IsSubject bool `protobuf:"varint,4,opt,name=is_subject,json=isSubject,proto3" json:"is_subject,omitempty"` // Inline content of the artifact. // This is optional and is used for small artifacts that can be stored inline in the attestation Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Attestation_Material_Artifact) Descriptor
deprecated
func (*Attestation_Material_Artifact) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_Artifact.ProtoReflect.Descriptor instead.
func (*Attestation_Material_Artifact) GetContent ¶
func (x *Attestation_Material_Artifact) GetContent() []byte
func (*Attestation_Material_Artifact) GetDigest ¶
func (x *Attestation_Material_Artifact) GetDigest() string
func (*Attestation_Material_Artifact) GetId ¶
func (x *Attestation_Material_Artifact) GetId() string
func (*Attestation_Material_Artifact) GetIsSubject ¶
func (x *Attestation_Material_Artifact) GetIsSubject() bool
func (*Attestation_Material_Artifact) GetName ¶
func (x *Attestation_Material_Artifact) GetName() string
func (*Attestation_Material_Artifact) ProtoMessage ¶
func (*Attestation_Material_Artifact) ProtoMessage()
func (*Attestation_Material_Artifact) ProtoReflect ¶
func (x *Attestation_Material_Artifact) ProtoReflect() protoreflect.Message
func (*Attestation_Material_Artifact) Reset ¶
func (x *Attestation_Material_Artifact) Reset()
func (*Attestation_Material_Artifact) String ¶
func (x *Attestation_Material_Artifact) String() string
type Attestation_Material_Artifact_ ¶
type Attestation_Material_Artifact_ struct {
Artifact *Attestation_Material_Artifact `protobuf:"bytes,3,opt,name=artifact,proto3,oneof"`
}
type Attestation_Material_ContainerImage ¶
type Attestation_Material_ContainerImage struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` IsSubject bool `protobuf:"varint,4,opt,name=is_subject,json=isSubject,proto3" json:"is_subject,omitempty"` // provided tag Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` // Digest of the found signature for the image SignatureDigest string `protobuf:"bytes,6,opt,name=signature_digest,json=signatureDigest,proto3" json:"signature_digest,omitempty"` // The provider in charge of the signature SignatureProvider string `protobuf:"bytes,7,opt,name=signature_provider,json=signatureProvider,proto3" json:"signature_provider,omitempty"` // Base64 encoded signature payload, aka the OCI Signature Manifest Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` // Indicates if the image has the latest tag. The image being checked // might not explicitly have the latest tag, but it could also be tagged // with the latest tag. HasLatestTag *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=has_latest_tag,json=hasLatestTag,proto3" json:"has_latest_tag,omitempty"` // contains filtered or unexported fields }
func (*Attestation_Material_ContainerImage) Descriptor
deprecated
func (*Attestation_Material_ContainerImage) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_ContainerImage.ProtoReflect.Descriptor instead.
func (*Attestation_Material_ContainerImage) GetDigest ¶
func (x *Attestation_Material_ContainerImage) GetDigest() string
func (*Attestation_Material_ContainerImage) GetHasLatestTag ¶ added in v0.139.0
func (x *Attestation_Material_ContainerImage) GetHasLatestTag() *wrapperspb.BoolValue
func (*Attestation_Material_ContainerImage) GetId ¶
func (x *Attestation_Material_ContainerImage) GetId() string
func (*Attestation_Material_ContainerImage) GetIsSubject ¶
func (x *Attestation_Material_ContainerImage) GetIsSubject() bool
func (*Attestation_Material_ContainerImage) GetName ¶
func (x *Attestation_Material_ContainerImage) GetName() string
func (*Attestation_Material_ContainerImage) GetSignature ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignature() string
func (*Attestation_Material_ContainerImage) GetSignatureDigest ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignatureDigest() string
func (*Attestation_Material_ContainerImage) GetSignatureProvider ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignatureProvider() string
func (*Attestation_Material_ContainerImage) GetTag ¶
func (x *Attestation_Material_ContainerImage) GetTag() string
func (*Attestation_Material_ContainerImage) ProtoMessage ¶
func (*Attestation_Material_ContainerImage) ProtoMessage()
func (*Attestation_Material_ContainerImage) ProtoReflect ¶
func (x *Attestation_Material_ContainerImage) ProtoReflect() protoreflect.Message
func (*Attestation_Material_ContainerImage) Reset ¶
func (x *Attestation_Material_ContainerImage) Reset()
func (*Attestation_Material_ContainerImage) String ¶
func (x *Attestation_Material_ContainerImage) String() string
type Attestation_Material_ContainerImage_ ¶
type Attestation_Material_ContainerImage_ struct {
ContainerImage *Attestation_Material_ContainerImage `protobuf:"bytes,2,opt,name=container_image,json=containerImage,proto3,oneof"`
}
type Attestation_Material_KeyVal ¶
type Attestation_Material_KeyVal struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
func (*Attestation_Material_KeyVal) Descriptor
deprecated
func (*Attestation_Material_KeyVal) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_KeyVal.ProtoReflect.Descriptor instead.
func (*Attestation_Material_KeyVal) GetDigest ¶ added in v0.146.0
func (x *Attestation_Material_KeyVal) GetDigest() string
func (*Attestation_Material_KeyVal) GetId ¶
func (x *Attestation_Material_KeyVal) GetId() string
func (*Attestation_Material_KeyVal) GetValue ¶
func (x *Attestation_Material_KeyVal) GetValue() string
func (*Attestation_Material_KeyVal) ProtoMessage ¶
func (*Attestation_Material_KeyVal) ProtoMessage()
func (*Attestation_Material_KeyVal) ProtoReflect ¶
func (x *Attestation_Material_KeyVal) ProtoReflect() protoreflect.Message
func (*Attestation_Material_KeyVal) Reset ¶
func (x *Attestation_Material_KeyVal) Reset()
func (*Attestation_Material_KeyVal) String ¶
func (x *Attestation_Material_KeyVal) String() string
type Attestation_Material_SBOMArtifact ¶ added in v0.139.0
type Attestation_Material_SBOMArtifact struct { // The actual SBOM artifact Artifact *Attestation_Material_Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` // The Main component if any the SBOM is related to MainComponent *Attestation_Material_SBOMArtifact_MainComponent `protobuf:"bytes,2,opt,name=main_component,json=mainComponent,proto3" json:"main_component,omitempty"` // contains filtered or unexported fields }
func (*Attestation_Material_SBOMArtifact) Descriptor
deprecated
added in
v0.139.0
func (*Attestation_Material_SBOMArtifact) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_SBOMArtifact.ProtoReflect.Descriptor instead.
func (*Attestation_Material_SBOMArtifact) GetArtifact ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) GetArtifact() *Attestation_Material_Artifact
func (*Attestation_Material_SBOMArtifact) GetMainComponent ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) GetMainComponent() *Attestation_Material_SBOMArtifact_MainComponent
func (*Attestation_Material_SBOMArtifact) ProtoMessage ¶ added in v0.139.0
func (*Attestation_Material_SBOMArtifact) ProtoMessage()
func (*Attestation_Material_SBOMArtifact) ProtoReflect ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) ProtoReflect() protoreflect.Message
func (*Attestation_Material_SBOMArtifact) Reset ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) Reset()
func (*Attestation_Material_SBOMArtifact) String ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) String() string
type Attestation_Material_SBOMArtifact_MainComponent ¶ added in v0.139.0
type Attestation_Material_SBOMArtifact_MainComponent struct { // The name of the main component Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The version of the main component Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // The kind of the main component Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
The main component of the SBOM
func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor
deprecated
added in
v0.139.0
func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_SBOMArtifact_MainComponent.ProtoReflect.Descriptor instead.
func (*Attestation_Material_SBOMArtifact_MainComponent) GetKind ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetKind() string
func (*Attestation_Material_SBOMArtifact_MainComponent) GetName ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetName() string
func (*Attestation_Material_SBOMArtifact_MainComponent) GetVersion ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetVersion() string
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage ¶ added in v0.139.0
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage()
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect() protoreflect.Message
func (*Attestation_Material_SBOMArtifact_MainComponent) Reset ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) Reset()
func (*Attestation_Material_SBOMArtifact_MainComponent) String ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) String() string
type Attestation_Material_SbomArtifact ¶ added in v0.139.0
type Attestation_Material_SbomArtifact struct {
SbomArtifact *Attestation_Material_SBOMArtifact `protobuf:"bytes,4,opt,name=sbom_artifact,json=sbomArtifact,proto3,oneof"`
}
type Attestation_Material_String_ ¶
type Attestation_Material_String_ struct {
String_ *Attestation_Material_KeyVal `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}
type Commit ¶
type Commit struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Commit authors might not include email i.e "Flux <>" AuthorEmail string `protobuf:"bytes,2,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"` AuthorName string `protobuf:"bytes,3,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"` Remotes []*Commit_Remote `protobuf:"bytes,6,rep,name=remotes,proto3" json:"remotes,omitempty"` Signature string `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Commit) Descriptor
deprecated
func (*Commit) GetAuthorEmail ¶
func (*Commit) GetAuthorName ¶
func (*Commit) GetDate ¶
func (x *Commit) GetDate() *timestamppb.Timestamp
func (*Commit) GetMessage ¶
func (*Commit) GetRemotes ¶
func (x *Commit) GetRemotes() []*Commit_Remote
func (*Commit) GetSignature ¶ added in v0.114.0
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
type Commit_Remote ¶
type Commit_Remote struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Commit_Remote) Descriptor
deprecated
func (*Commit_Remote) Descriptor() ([]byte, []int)
Deprecated: Use Commit_Remote.ProtoReflect.Descriptor instead.
func (*Commit_Remote) GetName ¶
func (x *Commit_Remote) GetName() string
func (*Commit_Remote) GetUrl ¶
func (x *Commit_Remote) GetUrl() string
func (*Commit_Remote) ProtoMessage ¶
func (*Commit_Remote) ProtoMessage()
func (*Commit_Remote) ProtoReflect ¶
func (x *Commit_Remote) ProtoReflect() protoreflect.Message
func (*Commit_Remote) Reset ¶
func (x *Commit_Remote) Reset()
func (*Commit_Remote) String ¶
func (x *Commit_Remote) String() string
type CraftingState ¶
type CraftingState struct { InputSchema *v1.CraftingSchema `protobuf:"bytes,1,opt,name=input_schema,json=inputSchema,proto3" json:"input_schema,omitempty"` Attestation *Attestation `protobuf:"bytes,2,opt,name=attestation,proto3" json:"attestation,omitempty"` DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` // contains filtered or unexported fields }
Intermediate information that will get stored in the system while the run is being executed
func (*CraftingState) Descriptor
deprecated
func (*CraftingState) Descriptor() ([]byte, []int)
Deprecated: Use CraftingState.ProtoReflect.Descriptor instead.
func (*CraftingState) GetAttestation ¶
func (x *CraftingState) GetAttestation() *Attestation
func (*CraftingState) GetDryRun ¶
func (x *CraftingState) GetDryRun() bool
func (*CraftingState) GetInputSchema ¶
func (x *CraftingState) GetInputSchema() *v1.CraftingSchema
func (*CraftingState) ProtoMessage ¶
func (*CraftingState) ProtoMessage()
func (*CraftingState) ProtoReflect ¶
func (x *CraftingState) ProtoReflect() protoreflect.Message
func (*CraftingState) Reset ¶
func (x *CraftingState) Reset()
func (*CraftingState) String ¶
func (x *CraftingState) String() string
func (*CraftingState) ValidateComplete ¶
func (state *CraftingState) ValidateComplete(dryRun bool) error
ValidateComplete makes sure that the crafting state has been completed before it gets passed to the renderer
type PolicyEvaluation ¶
type PolicyEvaluation struct { // The policy name from the policy spec Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` MaterialName string `protobuf:"bytes,2,opt,name=material_name,json=materialName,proto3" json:"material_name,omitempty"` // the body of the policy. This field will be empty if there is a FQDN reference to the policy // // Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto. Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // Base64 representation of run scripts. It might be empty if there is a FQDN reference to the policy Sources []string `protobuf:"bytes,12,rep,name=sources,proto3" json:"sources,omitempty"` // fully qualified reference to the policy // i.e // http://my-domain.com/foo.yaml // file://foo.yaml // chainloop://my-provider.com/foo@sha256:1234 // NOTE: embedded policies will not have a reference // Deprecated: use policy_reference instead // // Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto. ReferenceDigest string `protobuf:"bytes,10,opt,name=reference_digest,json=referenceDigest,proto3" json:"reference_digest,omitempty"` // Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto. ReferenceName string `protobuf:"bytes,11,opt,name=reference_name,json=referenceName,proto3" json:"reference_name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Annotations map[string]string `` /* 163-byte string literal not displayed */ // The policy violations, if any Violations []*PolicyEvaluation_Violation `protobuf:"bytes,4,rep,name=violations,proto3" json:"violations,omitempty"` // arguments, as they come from the policy attachment With map[string]string `` /* 149-byte string literal not displayed */ // material type, if any, of the evaluated policy Type v1.CraftingSchema_Material_MaterialType `protobuf:"varint,8,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"type,omitempty"` // whether this evaluation was skipped or not (because of an invalid input, for example) Skipped bool `protobuf:"varint,13,opt,name=skipped,proto3" json:"skipped,omitempty"` // Evaluation messages, intended to communicate evaluation errors (invalid input) SkipReasons []string `protobuf:"bytes,14,rep,name=skip_reasons,json=skipReasons,proto3" json:"skip_reasons,omitempty"` // Group this evaluated policy belongs to, if any PolicyReference *PolicyEvaluation_Reference `protobuf:"bytes,15,opt,name=policy_reference,json=policyReference,proto3" json:"policy_reference,omitempty"` GroupReference *PolicyEvaluation_Reference `protobuf:"bytes,16,opt,name=group_reference,json=groupReference,proto3" json:"group_reference,omitempty"` // List of requirements this policy contributes to satisfy Requirements []string `protobuf:"bytes,17,rep,name=requirements,proto3" json:"requirements,omitempty"` // contains filtered or unexported fields }
A policy executed against an attestation or material
func (*PolicyEvaluation) Descriptor
deprecated
func (*PolicyEvaluation) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation) GetAnnotations ¶
func (x *PolicyEvaluation) GetAnnotations() map[string]string
func (*PolicyEvaluation) GetBody
deprecated
func (x *PolicyEvaluation) GetBody() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetDescription ¶
func (x *PolicyEvaluation) GetDescription() string
func (*PolicyEvaluation) GetGroupReference ¶ added in v0.102.0
func (x *PolicyEvaluation) GetGroupReference() *PolicyEvaluation_Reference
func (*PolicyEvaluation) GetMaterialName ¶
func (x *PolicyEvaluation) GetMaterialName() string
func (*PolicyEvaluation) GetName ¶
func (x *PolicyEvaluation) GetName() string
func (*PolicyEvaluation) GetPolicyReference ¶ added in v0.96.5
func (x *PolicyEvaluation) GetPolicyReference() *PolicyEvaluation_Reference
func (*PolicyEvaluation) GetReferenceDigest
deprecated
added in
v0.96.6
func (x *PolicyEvaluation) GetReferenceDigest() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetReferenceName
deprecated
added in
v0.96.6
func (x *PolicyEvaluation) GetReferenceName() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetRequirements ¶ added in v0.112.0
func (x *PolicyEvaluation) GetRequirements() []string
func (*PolicyEvaluation) GetSkipReasons ¶ added in v0.96.21
func (x *PolicyEvaluation) GetSkipReasons() []string
func (*PolicyEvaluation) GetSkipped ¶ added in v0.96.21
func (x *PolicyEvaluation) GetSkipped() bool
func (*PolicyEvaluation) GetSources ¶ added in v0.96.9
func (x *PolicyEvaluation) GetSources() []string
func (*PolicyEvaluation) GetType ¶ added in v0.96.3
func (x *PolicyEvaluation) GetType() v1.CraftingSchema_Material_MaterialType
func (*PolicyEvaluation) GetViolations ¶
func (x *PolicyEvaluation) GetViolations() []*PolicyEvaluation_Violation
func (*PolicyEvaluation) GetWith ¶ added in v0.96.0
func (x *PolicyEvaluation) GetWith() map[string]string
func (*PolicyEvaluation) ProtoMessage ¶
func (*PolicyEvaluation) ProtoMessage()
func (*PolicyEvaluation) ProtoReflect ¶
func (x *PolicyEvaluation) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation) Reset ¶
func (x *PolicyEvaluation) Reset()
func (*PolicyEvaluation) String ¶
func (x *PolicyEvaluation) String() string
type PolicyEvaluation_Reference ¶ added in v0.102.0
type PolicyEvaluation_Reference struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` OrgName string `protobuf:"bytes,4,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"` // contains filtered or unexported fields }
func (*PolicyEvaluation_Reference) Descriptor
deprecated
added in
v0.102.0
func (*PolicyEvaluation_Reference) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation_Reference.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation_Reference) GetDigest ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetDigest() string
func (*PolicyEvaluation_Reference) GetName ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetName() string
func (*PolicyEvaluation_Reference) GetOrgName ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetOrgName() string
func (*PolicyEvaluation_Reference) GetUri ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetUri() string
func (*PolicyEvaluation_Reference) ProtoMessage ¶ added in v0.102.0
func (*PolicyEvaluation_Reference) ProtoMessage()
func (*PolicyEvaluation_Reference) ProtoReflect ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation_Reference) Reset ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) Reset()
func (*PolicyEvaluation_Reference) String ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) String() string
type PolicyEvaluation_Violation ¶
type PolicyEvaluation_Violation struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PolicyEvaluation_Violation) Descriptor
deprecated
func (*PolicyEvaluation_Violation) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation_Violation.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation_Violation) GetMessage ¶
func (x *PolicyEvaluation_Violation) GetMessage() string
func (*PolicyEvaluation_Violation) GetSubject ¶
func (x *PolicyEvaluation_Violation) GetSubject() string
func (*PolicyEvaluation_Violation) ProtoMessage ¶
func (*PolicyEvaluation_Violation) ProtoMessage()
func (*PolicyEvaluation_Violation) ProtoReflect ¶
func (x *PolicyEvaluation_Violation) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation_Violation) Reset ¶
func (x *PolicyEvaluation_Violation) Reset()
func (*PolicyEvaluation_Violation) String ¶
func (x *PolicyEvaluation_Violation) String() string
type ProjectVersion ¶ added in v0.98.0
type ProjectVersion struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // if it's pre-release Prerelease bool `protobuf:"varint,2,opt,name=prerelease,proto3" json:"prerelease,omitempty"` MarkAsReleased bool `protobuf:"varint,3,opt,name=mark_as_released,json=markAsReleased,proto3" json:"mark_as_released,omitempty"` // contains filtered or unexported fields }
func (*ProjectVersion) Descriptor
deprecated
added in
v0.98.0
func (*ProjectVersion) Descriptor() ([]byte, []int)
Deprecated: Use ProjectVersion.ProtoReflect.Descriptor instead.
func (*ProjectVersion) GetMarkAsReleased ¶ added in v0.98.0
func (x *ProjectVersion) GetMarkAsReleased() bool
func (*ProjectVersion) GetPrerelease ¶ added in v0.98.0
func (x *ProjectVersion) GetPrerelease() bool
func (*ProjectVersion) GetVersion ¶ added in v0.98.0
func (x *ProjectVersion) GetVersion() string
func (*ProjectVersion) ProtoMessage ¶ added in v0.98.0
func (*ProjectVersion) ProtoMessage()
func (*ProjectVersion) ProtoReflect ¶ added in v0.98.0
func (x *ProjectVersion) ProtoReflect() protoreflect.Message
func (*ProjectVersion) Reset ¶ added in v0.98.0
func (x *ProjectVersion) Reset()
func (*ProjectVersion) String ¶ added in v0.98.0
func (x *ProjectVersion) String() string
type ResourceDescriptor ¶ added in v0.96.5
type ResourceDescriptor struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` Digest map[string]string `` /* 153-byte string literal not displayed */ Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` DownloadLocation string `protobuf:"bytes,5,opt,name=download_location,json=downloadLocation,proto3" json:"download_location,omitempty"` MediaType string `protobuf:"bytes,6,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` // Per the Struct protobuf spec, this type corresponds to // a JSON Object, which is truly a map<string, Value> under the hood. // So, the Struct a) is still consistent with our specification for // the `annotations` field, and b) has native support in some language // bindings making their use easier in implementations. // See: https://pkg.go.dev/google.golang.org/protobuf/types/known/structpb#Struct Annotations *structpb.Struct `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` // contains filtered or unexported fields }
Proto representation of the in-toto v1 ResourceDescriptor. https://github.com/in-toto/attestation/blob/main/spec/v1/resource_descriptor.md Validation of all fields is left to the users of this proto.
func (*ResourceDescriptor) Descriptor
deprecated
added in
v0.96.5
func (*ResourceDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead.
func (*ResourceDescriptor) GetAnnotations ¶ added in v0.96.5
func (x *ResourceDescriptor) GetAnnotations() *structpb.Struct
func (*ResourceDescriptor) GetContent ¶ added in v0.96.5
func (x *ResourceDescriptor) GetContent() []byte
func (*ResourceDescriptor) GetDigest ¶ added in v0.96.5
func (x *ResourceDescriptor) GetDigest() map[string]string
func (*ResourceDescriptor) GetDownloadLocation ¶ added in v0.96.5
func (x *ResourceDescriptor) GetDownloadLocation() string
func (*ResourceDescriptor) GetMediaType ¶ added in v0.96.5
func (x *ResourceDescriptor) GetMediaType() string
func (*ResourceDescriptor) GetName ¶ added in v0.96.5
func (x *ResourceDescriptor) GetName() string
func (*ResourceDescriptor) GetUri ¶ added in v0.96.5
func (x *ResourceDescriptor) GetUri() string
func (*ResourceDescriptor) ProtoMessage ¶ added in v0.96.5
func (*ResourceDescriptor) ProtoMessage()
func (*ResourceDescriptor) ProtoReflect ¶ added in v0.96.5
func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message
func (*ResourceDescriptor) Reset ¶ added in v0.96.5
func (x *ResourceDescriptor) Reset()
func (*ResourceDescriptor) String ¶ added in v0.96.5
func (x *ResourceDescriptor) String() string
type WorkflowMetadata ¶
type WorkflowMetadata struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // kept for backwards compatibility with remote state storage // // Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto. ProjectVersion string `protobuf:"bytes,9,opt,name=project_version,json=projectVersion,proto3" json:"project_version,omitempty"` // project version Version *ProjectVersion `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` Team string `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"` WorkflowId string `protobuf:"bytes,5,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` WorkflowRunId string `protobuf:"bytes,6,opt,name=workflow_run_id,json=workflowRunId,proto3" json:"workflow_run_id,omitempty"` // Not required since we might be doing a dry-run SchemaRevision string `protobuf:"bytes,7,opt,name=schema_revision,json=schemaRevision,proto3" json:"schema_revision,omitempty"` // contract name (contract version is "schema_revision") ContractName string `protobuf:"bytes,11,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // organization name Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` // contains filtered or unexported fields }
func (*WorkflowMetadata) Descriptor
deprecated
func (*WorkflowMetadata) Descriptor() ([]byte, []int)
Deprecated: Use WorkflowMetadata.ProtoReflect.Descriptor instead.
func (*WorkflowMetadata) GetContractName ¶ added in v0.146.0
func (x *WorkflowMetadata) GetContractName() string
func (*WorkflowMetadata) GetName ¶
func (x *WorkflowMetadata) GetName() string
func (*WorkflowMetadata) GetOrganization ¶
func (x *WorkflowMetadata) GetOrganization() string
func (*WorkflowMetadata) GetProject ¶
func (x *WorkflowMetadata) GetProject() string
func (*WorkflowMetadata) GetProjectVersion
deprecated
added in
v0.97.5
func (x *WorkflowMetadata) GetProjectVersion() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*WorkflowMetadata) GetSchemaRevision ¶
func (x *WorkflowMetadata) GetSchemaRevision() string
func (*WorkflowMetadata) GetTeam ¶
func (x *WorkflowMetadata) GetTeam() string
func (*WorkflowMetadata) GetVersion ¶ added in v0.98.1
func (x *WorkflowMetadata) GetVersion() *ProjectVersion
func (*WorkflowMetadata) GetWorkflowId ¶
func (x *WorkflowMetadata) GetWorkflowId() string
func (*WorkflowMetadata) GetWorkflowRunId ¶
func (x *WorkflowMetadata) GetWorkflowRunId() string
func (*WorkflowMetadata) ProtoMessage ¶
func (*WorkflowMetadata) ProtoMessage()
func (*WorkflowMetadata) ProtoReflect ¶
func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message
func (*WorkflowMetadata) Reset ¶
func (x *WorkflowMetadata) Reset()
func (*WorkflowMetadata) String ¶
func (x *WorkflowMetadata) String() string