Documentation ¶
Index ¶
- type Resource
- func (s *Resource) GetInputTaskModifier(_ *pipelinev1beta1.TaskSpec, _ string) (pipelinev1beta1.TaskModifier, error)
- func (s Resource) GetName() string
- func (s *Resource) GetOutputTaskModifier(_ *pipelinev1beta1.TaskSpec, _ string) (pipelinev1beta1.TaskModifier, error)
- func (s Resource) GetType() resourcev1alpha1.PipelineResourceType
- func (s *Resource) Replacements() map[string]string
- func (s Resource) String() string
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) GetOutputTaskModifier ¶
func (s *Resource) GetOutputTaskModifier(_ *pipelinev1beta1.TaskSpec, _ string) (pipelinev1beta1.TaskModifier, error)
GetOutputTaskModifier returns a No-op TaskModifier.
func (Resource) GetType ¶
func (s Resource) GetType() resourcev1alpha1.PipelineResourceType
GetType returns the type of the resource, in this case "image"
func (*Resource) Replacements ¶
Replacements is used for template replacement on an ImageResource inside of a Taskrun.
Click to show internal directories.
Click to hide internal directories.