v1

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 19 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 added in v0.15.0

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 added in v0.25.0

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

func (*Attestation) Validate

func (m *Attestation) Validate() error

Validate checks the field values on Attestation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attestation) ValidateAll

func (m *Attestation) ValidateAll() error

ValidateAll checks the field values on Attestation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttestationMultiError, or nil if none found.

type AttestationMultiError

type AttestationMultiError []error

AttestationMultiError is an error wrapping multiple validation errors returned by Attestation.ValidateAll() if the designated constraints aren't met.

func (AttestationMultiError) AllErrors

func (m AttestationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttestationMultiError) Error

func (m AttestationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AttestationValidationError

type AttestationValidationError struct {
	// contains filtered or unexported fields
}

AttestationValidationError is the validation error returned by Attestation.Validate if the designated constraints aren't met.

func (AttestationValidationError) Cause

Cause function returns cause value.

func (AttestationValidationError) Error

Error satisfies the builtin error interface

func (AttestationValidationError) ErrorName

func (e AttestationValidationError) ErrorName() string

ErrorName returns error name.

func (AttestationValidationError) Field

Field function returns field value.

func (AttestationValidationError) Key

Key function returns key value.

func (AttestationValidationError) Reason

Reason function returns reason value.

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 added in v0.15.0

func (x *Attestation_Material) GetAnnotations() map[string]string

func (*Attestation_Material) GetArtifact

func (*Attestation_Material) GetContainerImage

func (*Attestation_Material) GetInlineCas added in v0.14.0

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 added in v0.11.1

func (x *Attestation_Material) GetUploadedToCas() bool

func (*Attestation_Material) NormalizedOutput added in v0.9.0

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

func (*Attestation_Material) Validate

func (m *Attestation_Material) Validate() error

Validate checks the field values on Attestation_Material with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attestation_Material) ValidateAll

func (m *Attestation_Material) ValidateAll() error

ValidateAll checks the field values on Attestation_Material with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Attestation_MaterialMultiError, or nil if none found.

type Attestation_MaterialMultiError

type Attestation_MaterialMultiError []error

Attestation_MaterialMultiError is an error wrapping multiple validation errors returned by Attestation_Material.ValidateAll() if the designated constraints aren't met.

func (Attestation_MaterialMultiError) AllErrors

func (m Attestation_MaterialMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Attestation_MaterialMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Attestation_MaterialValidationError

type Attestation_MaterialValidationError struct {
	// contains filtered or unexported fields
}

Attestation_MaterialValidationError is the validation error returned by Attestation_Material.Validate if the designated constraints aren't met.

func (Attestation_MaterialValidationError) Cause

Cause function returns cause value.

func (Attestation_MaterialValidationError) Error

Error satisfies the builtin error interface

func (Attestation_MaterialValidationError) ErrorName

ErrorName returns error name.

func (Attestation_MaterialValidationError) Field

Field function returns field value.

func (Attestation_MaterialValidationError) Key

Key function returns key value.

func (Attestation_MaterialValidationError) Reason

Reason function returns reason value.

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 added in v0.14.0

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

func (*Attestation_Material_Artifact) Validate

func (m *Attestation_Material_Artifact) Validate() error

Validate checks the field values on Attestation_Material_Artifact with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attestation_Material_Artifact) ValidateAll

func (m *Attestation_Material_Artifact) ValidateAll() error

ValidateAll checks the field values on Attestation_Material_Artifact with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Attestation_Material_ArtifactMultiError, or nil if none found.

type Attestation_Material_ArtifactMultiError

type Attestation_Material_ArtifactMultiError []error

Attestation_Material_ArtifactMultiError is an error wrapping multiple validation errors returned by Attestation_Material_Artifact.ValidateAll() if the designated constraints aren't met.

func (Attestation_Material_ArtifactMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Attestation_Material_ArtifactMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Attestation_Material_ArtifactValidationError

type Attestation_Material_ArtifactValidationError struct {
	// contains filtered or unexported fields
}

Attestation_Material_ArtifactValidationError is the validation error returned by Attestation_Material_Artifact.Validate if the designated constraints aren't met.

func (Attestation_Material_ArtifactValidationError) Cause

Cause function returns cause value.

func (Attestation_Material_ArtifactValidationError) Error

Error satisfies the builtin error interface

func (Attestation_Material_ArtifactValidationError) ErrorName

ErrorName returns error name.

func (Attestation_Material_ArtifactValidationError) Field

Field function returns field value.

func (Attestation_Material_ArtifactValidationError) Key

Key function returns key value.

func (Attestation_Material_ArtifactValidationError) Reason

Reason function returns reason value.

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

func (*Attestation_Material_ContainerImage) ProtoMessage()

func (*Attestation_Material_ContainerImage) ProtoReflect

func (*Attestation_Material_ContainerImage) Reset

func (*Attestation_Material_ContainerImage) String

func (*Attestation_Material_ContainerImage) Validate

Validate checks the field values on Attestation_Material_ContainerImage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attestation_Material_ContainerImage) ValidateAll

func (m *Attestation_Material_ContainerImage) ValidateAll() error

ValidateAll checks the field values on Attestation_Material_ContainerImage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Attestation_Material_ContainerImageMultiError, or nil if none found.

type Attestation_Material_ContainerImageMultiError

type Attestation_Material_ContainerImageMultiError []error

Attestation_Material_ContainerImageMultiError is an error wrapping multiple validation errors returned by Attestation_Material_ContainerImage.ValidateAll() if the designated constraints aren't met.

func (Attestation_Material_ContainerImageMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Attestation_Material_ContainerImageMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Attestation_Material_ContainerImageValidationError

type Attestation_Material_ContainerImageValidationError struct {
	// contains filtered or unexported fields
}

Attestation_Material_ContainerImageValidationError is the validation error returned by Attestation_Material_ContainerImage.Validate if the designated constraints aren't met.

func (Attestation_Material_ContainerImageValidationError) Cause

Cause function returns cause value.

func (Attestation_Material_ContainerImageValidationError) Error

Error satisfies the builtin error interface

func (Attestation_Material_ContainerImageValidationError) ErrorName

ErrorName returns error name.

func (Attestation_Material_ContainerImageValidationError) Field

Field function returns field value.

func (Attestation_Material_ContainerImageValidationError) Key

Key function returns key value.

func (Attestation_Material_ContainerImageValidationError) Reason

Reason function returns reason value.

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

func (*Attestation_Material_KeyVal) Validate

func (m *Attestation_Material_KeyVal) Validate() error

Validate checks the field values on Attestation_Material_KeyVal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attestation_Material_KeyVal) ValidateAll

func (m *Attestation_Material_KeyVal) ValidateAll() error

ValidateAll checks the field values on Attestation_Material_KeyVal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Attestation_Material_KeyValMultiError, or nil if none found.

type Attestation_Material_KeyValMultiError

type Attestation_Material_KeyValMultiError []error

Attestation_Material_KeyValMultiError is an error wrapping multiple validation errors returned by Attestation_Material_KeyVal.ValidateAll() if the designated constraints aren't met.

func (Attestation_Material_KeyValMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Attestation_Material_KeyValMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Attestation_Material_KeyValValidationError

type Attestation_Material_KeyValValidationError struct {
	// contains filtered or unexported fields
}

Attestation_Material_KeyValValidationError is the validation error returned by Attestation_Material_KeyVal.Validate if the designated constraints aren't met.

func (Attestation_Material_KeyValValidationError) Cause

Cause function returns cause value.

func (Attestation_Material_KeyValValidationError) Error

Error satisfies the builtin error interface

func (Attestation_Material_KeyValValidationError) ErrorName

ErrorName returns error name.

func (Attestation_Material_KeyValValidationError) Field

Field function returns field value.

func (Attestation_Material_KeyValValidationError) Key

Key function returns key value.

func (Attestation_Material_KeyValValidationError) Reason

Reason function returns reason value.

type Attestation_Material_String_

type Attestation_Material_String_ struct {
	String_ *Attestation_Material_KeyVal `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}

type Commit added in v0.25.0

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 added in v0.25.0

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthorEmail added in v0.25.0

func (x *Commit) GetAuthorEmail() string

func (*Commit) GetAuthorName added in v0.25.0

func (x *Commit) GetAuthorName() string

func (*Commit) GetDate added in v0.25.0

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

func (*Commit) GetHash added in v0.25.0

func (x *Commit) GetHash() string

func (*Commit) GetMessage added in v0.25.0

func (x *Commit) GetMessage() string

func (*Commit) GetRemotes added in v0.25.0

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

func (*Commit) ProtoMessage added in v0.25.0

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect added in v0.25.0

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

func (*Commit) Reset added in v0.25.0

func (x *Commit) Reset()

func (*Commit) String added in v0.25.0

func (x *Commit) String() string

func (*Commit) Validate added in v0.25.0

func (m *Commit) Validate() error

Validate checks the field values on Commit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Commit) ValidateAll added in v0.25.0

func (m *Commit) ValidateAll() error

ValidateAll checks the field values on Commit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommitMultiError, or nil if none found.

type CommitMultiError added in v0.25.0

type CommitMultiError []error

CommitMultiError is an error wrapping multiple validation errors returned by Commit.ValidateAll() if the designated constraints aren't met.

func (CommitMultiError) AllErrors added in v0.25.0

func (m CommitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitMultiError) Error added in v0.25.0

func (m CommitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CommitValidationError added in v0.25.0

type CommitValidationError struct {
	// contains filtered or unexported fields
}

CommitValidationError is the validation error returned by Commit.Validate if the designated constraints aren't met.

func (CommitValidationError) Cause added in v0.25.0

func (e CommitValidationError) Cause() error

Cause function returns cause value.

func (CommitValidationError) Error added in v0.25.0

func (e CommitValidationError) Error() string

Error satisfies the builtin error interface

func (CommitValidationError) ErrorName added in v0.25.0

func (e CommitValidationError) ErrorName() string

ErrorName returns error name.

func (CommitValidationError) Field added in v0.25.0

func (e CommitValidationError) Field() string

Field function returns field value.

func (CommitValidationError) Key added in v0.25.0

func (e CommitValidationError) Key() bool

Key function returns key value.

func (CommitValidationError) Reason added in v0.25.0

func (e CommitValidationError) Reason() string

Reason function returns reason value.

type Commit_Remote added in v0.25.0

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 added in v0.25.0

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

Deprecated: Use Commit_Remote.ProtoReflect.Descriptor instead.

func (*Commit_Remote) GetName added in v0.25.0

func (x *Commit_Remote) GetName() string

func (*Commit_Remote) GetUrl added in v0.25.0

func (x *Commit_Remote) GetUrl() string

func (*Commit_Remote) ProtoMessage added in v0.25.0

func (*Commit_Remote) ProtoMessage()

func (*Commit_Remote) ProtoReflect added in v0.25.0

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

func (*Commit_Remote) Reset added in v0.25.0

func (x *Commit_Remote) Reset()

func (*Commit_Remote) String added in v0.25.0

func (x *Commit_Remote) String() string

func (*Commit_Remote) Validate added in v0.25.0

func (m *Commit_Remote) Validate() error

Validate checks the field values on Commit_Remote with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Commit_Remote) ValidateAll added in v0.25.0

func (m *Commit_Remote) ValidateAll() error

ValidateAll checks the field values on Commit_Remote with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Commit_RemoteMultiError, or nil if none found.

type Commit_RemoteMultiError added in v0.25.0

type Commit_RemoteMultiError []error

Commit_RemoteMultiError is an error wrapping multiple validation errors returned by Commit_Remote.ValidateAll() if the designated constraints aren't met.

func (Commit_RemoteMultiError) AllErrors added in v0.25.0

func (m Commit_RemoteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Commit_RemoteMultiError) Error added in v0.25.0

func (m Commit_RemoteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Commit_RemoteValidationError added in v0.25.0

type Commit_RemoteValidationError struct {
	// contains filtered or unexported fields
}

Commit_RemoteValidationError is the validation error returned by Commit_Remote.Validate if the designated constraints aren't met.

func (Commit_RemoteValidationError) Cause added in v0.25.0

Cause function returns cause value.

func (Commit_RemoteValidationError) Error added in v0.25.0

Error satisfies the builtin error interface

func (Commit_RemoteValidationError) ErrorName added in v0.25.0

func (e Commit_RemoteValidationError) ErrorName() string

ErrorName returns error name.

func (Commit_RemoteValidationError) Field added in v0.25.0

Field function returns field value.

func (Commit_RemoteValidationError) Key added in v0.25.0

Key function returns key value.

func (Commit_RemoteValidationError) Reason added in v0.25.0

Reason function returns reason value.

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) Validate

func (m *CraftingState) Validate() error

Validate checks the field values on CraftingState with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CraftingState) ValidateAll

func (m *CraftingState) ValidateAll() error

ValidateAll checks the field values on CraftingState with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CraftingStateMultiError, or nil if none found.

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 CraftingStateMultiError

type CraftingStateMultiError []error

CraftingStateMultiError is an error wrapping multiple validation errors returned by CraftingState.ValidateAll() if the designated constraints aren't met.

func (CraftingStateMultiError) AllErrors

func (m CraftingStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CraftingStateMultiError) Error

func (m CraftingStateMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CraftingStateValidationError

type CraftingStateValidationError struct {
	// contains filtered or unexported fields
}

CraftingStateValidationError is the validation error returned by CraftingState.Validate if the designated constraints aren't met.

func (CraftingStateValidationError) Cause

Cause function returns cause value.

func (CraftingStateValidationError) Error

Error satisfies the builtin error interface

func (CraftingStateValidationError) ErrorName

func (e CraftingStateValidationError) ErrorName() string

ErrorName returns error name.

func (CraftingStateValidationError) Field

Field function returns field value.

func (CraftingStateValidationError) Key

Key function returns key value.

func (CraftingStateValidationError) Reason

Reason function returns reason value.

type NormalizedMaterialOutput added in v0.9.0

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

func (*WorkflowMetadata) Validate

func (m *WorkflowMetadata) Validate() error

Validate checks the field values on WorkflowMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WorkflowMetadata) ValidateAll

func (m *WorkflowMetadata) ValidateAll() error

ValidateAll checks the field values on WorkflowMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WorkflowMetadataMultiError, or nil if none found.

type WorkflowMetadataMultiError

type WorkflowMetadataMultiError []error

WorkflowMetadataMultiError is an error wrapping multiple validation errors returned by WorkflowMetadata.ValidateAll() if the designated constraints aren't met.

func (WorkflowMetadataMultiError) AllErrors

func (m WorkflowMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WorkflowMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WorkflowMetadataValidationError

type WorkflowMetadataValidationError struct {
	// contains filtered or unexported fields
}

WorkflowMetadataValidationError is the validation error returned by WorkflowMetadata.Validate if the designated constraints aren't met.

func (WorkflowMetadataValidationError) Cause

Cause function returns cause value.

func (WorkflowMetadataValidationError) Error

Error satisfies the builtin error interface

func (WorkflowMetadataValidationError) ErrorName

ErrorName returns error name.

func (WorkflowMetadataValidationError) Field

Field function returns field value.

func (WorkflowMetadataValidationError) Key

Key function returns key value.

func (WorkflowMetadataValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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