Documentation
¶
Index ¶
- type Resource
- func (s *Resource) GetInputTaskModifier(_ *v1alpha1.TaskSpec, path string) (v1alpha1.TaskModifier, error)
- func (s Resource) GetName() string
- func (s *Resource) GetOutputTaskModifier(_ *v1alpha1.TaskSpec, _ string) (v1alpha1.TaskModifier, error)
- func (s Resource) GetType() resource.PipelineResourceType
- func (s *Resource) GetURL() string
- 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 string `json:"name"`
Type resource.PipelineResourceType `json:"type"`
URL string `json:"url"`
// Git revision (branch, tag, commit SHA or ref) to clone. See
// https://git-scm.com/docs/gitrevisions#_specifying_revisions for more
// information.
Revision string `json:"revision"`
Submodules bool `json:"submodules"`
Depth uint `json:"depth"`
SSLVerify bool `json:"sslVerify"`
HTTPProxy string `json:"httpProxy"`
HTTPSProxy string `json:"httpsProxy"`
NOProxy string `json:"noProxy"`
GitImage string `json:"-"`
}
Resource is an endpoint from which to get data which is required by a Build/Task for context (e.g. a repo from which to build an image).
func NewResource ¶
func NewResource(gitImage string, r *resource.PipelineResource) (*Resource, error)
NewResource creates a new git resource to pass to a Task
func (*Resource) GetInputTaskModifier ¶
func (s *Resource) GetInputTaskModifier(_ *v1alpha1.TaskSpec, path string) (v1alpha1.TaskModifier, error)
GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.
func (*Resource) GetOutputTaskModifier ¶
func (s *Resource) GetOutputTaskModifier(_ *v1alpha1.TaskSpec, _ string) (v1alpha1.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 "Git"
func (*Resource) Replacements ¶
Replacements is used for template replacement on a GitResource inside of a Taskrun.
Click to show internal directories.
Click to hide internal directories.