cosign

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const TaskKindSign = "sign"
View Source
const TaskKindSignImage = "sign-image"
View Source
const TaskKindUpload = "upload"
View Source
const ToolKind = "cosign"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSpec

type FileSpec struct {
	rs.BaseField `yaml:"-"`

	// Path to local blob/wasm file
	Path string `yaml:"path"`

	// ContentType of the local file
	ContentType string `yaml:"content_type"`
}

type TaskSign added in v0.5.1

type TaskSign struct {
	rs.BaseField `yaml:"-"`

	TaskName string `yaml:"name"`

	tools.BaseTask `yaml:",inline"`

	Options blobSigningOptions `yaml:",inline"`

	// Files to sign
	Files []*blobSigningFileSpec `yaml:"files"`
}

TaskSign signs blob

func (*TaskSign) GetExecSpecs added in v0.5.1

func (c *TaskSign) GetExecSpecs(
	rc dukkha.TaskExecContext, options dukkha.TaskMatrixExecOptions,
) ([]dukkha.TaskExecSpec, error)

func (*TaskSign) Key added in v0.7.0

func (c *TaskSign) Key() dukkha.TaskKey

func (*TaskSign) Kind added in v0.7.0

func (c *TaskSign) Kind() dukkha.TaskKind

func (*TaskSign) Name added in v0.7.0

func (c *TaskSign) Name() dukkha.TaskName

type TaskSignImage added in v0.5.1

type TaskSignImage struct {
	rs.BaseField

	TaskName string `yaml:"name"`

	tools.BaseTask `yaml:",inline"`

	Options imageSigningOptions `yaml:",inline"`

	// ImageNames
	ImageNames []buildah.ImageNameSpec `yaml:"image_names"`
}

func (*TaskSignImage) GetExecSpecs added in v0.5.1

func (*TaskSignImage) Key added in v0.7.0

func (c *TaskSignImage) Key() dukkha.TaskKey

func (*TaskSignImage) Kind added in v0.7.0

func (c *TaskSignImage) Kind() dukkha.TaskKind

func (*TaskSignImage) Name added in v0.7.0

func (c *TaskSignImage) Name() dukkha.TaskName

type TaskUpload

type TaskUpload struct {
	rs.BaseField `yaml:"-"`

	TaskName string `yaml:"name"`

	tools.BaseTask `yaml:",inline"`

	// Kind is either blob or wasm
	//
	// Defaults to `"blob"`
	UploadKind string `yaml:"kind"`

	// Files to upload at one batch
	Files []FileSpec `yaml:"files"`

	// Signing sign uploaded images
	Signing signingSpec `yaml:"signing"`

	// ImageNames
	ImageNames []buildah.ImageNameSpec `yaml:"image_names"`
}

func (*TaskUpload) GetExecSpecs

func (*TaskUpload) Key added in v0.7.0

func (c *TaskUpload) Key() dukkha.TaskKey

func (*TaskUpload) Kind added in v0.7.0

func (c *TaskUpload) Kind() dukkha.TaskKind

func (*TaskUpload) Name added in v0.7.0

func (c *TaskUpload) Name() dukkha.TaskName

type Tool

type Tool struct {
	rs.BaseField `yaml:"-"`

	ToolName dukkha.ToolName `yaml:"name"`

	tools.BaseTool `yaml:",inline"`
}

func (*Tool) Init

func (t *Tool) Init(cacheFS *fshelper.OSFS) error

func (*Tool) Key added in v0.7.0

func (t *Tool) Key() dukkha.ToolKey

func (*Tool) Kind added in v0.7.0

func (t *Tool) Kind() dukkha.ToolKind

func (*Tool) Name added in v0.7.0

func (t *Tool) Name() dukkha.ToolName

Jump to

Keyboard shortcuts

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