v1

package
v0.87.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_attestation_v1_crafting_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

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"`
	// 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) 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) 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) 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"`
	// 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) GetTag added in v0.86.0

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"`
	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() 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 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"`
	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 added in v0.81.1

func (x *WorkflowMetadata) GetOrganization() string

func (*WorkflowMetadata) GetProject

func (x *WorkflowMetadata) GetProject() string

func (*WorkflowMetadata) GetSchemaRevision

func (x *WorkflowMetadata) GetSchemaRevision() string

func (*WorkflowMetadata) GetTeam

func (x *WorkflowMetadata) GetTeam() string

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