image

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Name           string                                `json:"name"`
	Type           resourcev1alpha1.PipelineResourceType `json:"type"`
	URL            string                                `json:"url"`
	Digest         string                                `json:"digest"`
	OutputImageDir string
}

Resource defines an endpoint where artifacts can be stored, such as images.

func NewResource

func NewResource(name string, r *resourcev1alpha1.PipelineResource) (*Resource, error)

NewResource creates a new ImageResource from a PipelineResourcev1alpha1.

func (*Resource) GetInputTaskModifier

func (s *Resource) GetInputTaskModifier(_ *pipelinev1beta1.TaskSpec, _ string) (pipelinev1beta1.TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (Resource) GetName

func (s Resource) GetName() string

GetName returns the name of the resource

func (*Resource) GetOutputTaskModifier

func (s *Resource) GetOutputTaskModifier(_ *pipelinev1beta1.TaskSpec, _ string) (pipelinev1beta1.TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (Resource) GetType

GetType returns the type of the resource, in this case "image"

func (*Resource) Replacements

func (s *Resource) Replacements() map[string]string

Replacements is used for template replacement on an ImageResource inside of a Taskrun.

func (Resource) String

func (s Resource) String() string

Jump to

Keyboard shortcuts

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