Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationPrefix = "chainloop."

Variables

View Source
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")
)
View Source
var File_attestation_v1_crafting_state_proto protoreflect.FileDescriptor

Functions

func CreateAnnotation added in v0.97.4

func CreateAnnotation(name string) string

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_
	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 (*Attestation_Material) GetContainerImage

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 (*Attestation_Material) GetString_

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 (*Attestation_Material_Artifact) GetIsSubject

func (x *Attestation_Material_Artifact) GetIsSubject() bool

func (*Attestation_Material_Artifact) GetName

func (*Attestation_Material_Artifact) ProtoMessage

func (*Attestation_Material_Artifact) ProtoMessage()

func (*Attestation_Material_Artifact) ProtoReflect

func (*Attestation_Material_Artifact) Reset

func (x *Attestation_Material_Artifact) Reset()

func (*Attestation_Material_Artifact) 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"`
	// 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 (*Attestation_Material_ContainerImage) GetId

func (*Attestation_Material_ContainerImage) GetIsSubject

func (x *Attestation_Material_ContainerImage) GetIsSubject() bool

func (*Attestation_Material_ContainerImage) GetName

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 (*Attestation_Material_ContainerImage) ProtoMessage

func (*Attestation_Material_ContainerImage) ProtoMessage()

func (*Attestation_Material_ContainerImage) ProtoReflect

func (*Attestation_Material_ContainerImage) Reset

func (*Attestation_Material_ContainerImage) 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"`
	// 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) GetId

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 (*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_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"`
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

func (*Commit) Descriptor() ([]byte, []int)

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthorEmail

func (x *Commit) GetAuthorEmail() string

func (*Commit) GetAuthorName

func (x *Commit) GetAuthorName() string

func (*Commit) GetDate

func (x *Commit) GetDate() *timestamppb.Timestamp

func (*Commit) GetHash

func (x *Commit) GetHash() string

func (*Commit) GetMessage

func (x *Commit) GetMessage() string

func (*Commit) GetRemotes

func (x *Commit) GetRemotes() []*Commit_Remote

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

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 NormalizedMaterialOutput

type NormalizedMaterialOutput struct {
	Name, Digest string
	IsOutput     bool
	Content      []byte
}

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"`
	// 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) 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 (*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 (*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 (*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"`
	// 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) 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

Jump to

Keyboard shortcuts

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