Documentation ¶
Index ¶
- type Resource
- func (s *Resource) GetInputTaskModifier(_ *v1beta1.TaskSpec, _ string) (v1beta1.TaskModifier, error)
- func (s Resource) GetName() string
- func (s *Resource) GetOutputTaskModifier(_ *v1beta1.TaskSpec, _ string) (v1beta1.TaskModifier, error)
- func (s Resource) GetType() resource.PipelineResourceType
- func (s *Resource) Replacements() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { // Name is the name used to reference to the PipelineResource Name string `json:"name"` // Type must be `PipelineResourceTypeCloudEvent` Type resource.PipelineResourceType `json:"type"` // TargetURI is the URI of the sink which the cloud event is develired to TargetURI string `json:"targetURI"` }
Resource is an event sink to which events are delivered when a TaskRun has finished
func NewResource ¶
func NewResource(name string, r *resource.PipelineResource) (*Resource, error)
NewResource creates a new CloudEvent resource to pass to a Task
func (*Resource) GetInputTaskModifier ¶
func (s *Resource) GetInputTaskModifier(_ *v1beta1.TaskSpec, _ string) (v1beta1.TaskModifier, error)
GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.
func (*Resource) GetOutputTaskModifier ¶
func (s *Resource) GetOutputTaskModifier(_ *v1beta1.TaskSpec, _ string) (v1beta1.TaskModifier, error)
GetOutputTaskModifier returns a No-op TaskModifier.
func (Resource) GetType ¶
func (s Resource) GetType() resource.PipelineResourceType
GetType returns the type of the resource, in this case "cloudEvent"
func (*Resource) Replacements ¶
Replacements is used for template replacement on an CloudEventResource inside of a Taskrun.
Click to show internal directories.
Click to hide internal directories.