Help us shape the future of Go! Take the 2026 Go Developer Survey

options

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 22 Imported by: 9

Documentation

Index

Constants

View Source
const (
	ResourceNamePipeline         = "pipeline"
	ResourceNamePipelineRun      = "pipelinerun"
	ResourceNamePipelineResource = "pipelineresource"
	ResourceNameTask             = "task"
	ResourceNameTaskRun          = "taskrun"
	ResourceNameClusterTask      = "clustertask"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOptions

type DeleteOptions struct {
	Resource           string
	ParentResource     string
	ParentResourceName string
	ForceDelete        bool
	DeleteRelated      bool
	DeleteAllNs        bool
	DeleteAll          bool
	Keep               int
}

func (*DeleteOptions) CheckOptions

func (o *DeleteOptions) CheckOptions(s *cli.Stream, resourceNames []string, ns string) error

type DescribeOptions added in v0.10.0

type DescribeOptions struct {
	Params               cli.Params
	PipelineName         string
	PipelineRunName      string
	PipelineResourceName string
	ClusterTaskName      string
	TaskName             string
	TaskrunName          string
	Tasks                []string
	Limit                int
	AskOpts              survey.AskOpt
	Fzf                  bool
	Last                 bool
}

func NewDescribeOptions added in v0.10.0

func NewDescribeOptions(p cli.Params) *DescribeOptions

func (*DescribeOptions) Ask added in v0.10.0

func (opts *DescribeOptions) Ask(resource string, options []string) error

func (*DescribeOptions) FuzzyAsk added in v0.10.0

func (opts *DescribeOptions) FuzzyAsk(resource string, options []string) error

func (*DescribeOptions) ValidateOpts added in v0.10.0

func (opts *DescribeOptions) ValidateOpts() error

type InteractiveOpts added in v0.10.0

type InteractiveOpts struct {
	Stream          *cli.Stream
	CliParams       cli.Params
	InputResources  []string
	OutputResources []string
	Params          []string
	Workspaces      []string
	AskOpts         survey.AskOpt
	Ns              string
}

func (*InteractiveOpts) ClusterTaskInputResources added in v0.12.0

func (intOpts *InteractiveOpts) ClusterTaskInputResources(clustertask *v1beta1.ClusterTask, f func(v1alpha1.PipelineResourceType, survey.AskOpt, cli.Params, *cli.Stream) (*v1alpha1.PipelineResource, error)) error

func (*InteractiveOpts) ClusterTaskOutputResources added in v0.12.0

func (intOpts *InteractiveOpts) ClusterTaskOutputResources(clustertask *v1beta1.ClusterTask, f func(v1alpha1.PipelineResourceType, survey.AskOpt, cli.Params, *cli.Stream) (*v1alpha1.PipelineResource, error)) error

func (*InteractiveOpts) ClusterTaskParams added in v0.12.0

func (intOpts *InteractiveOpts) ClusterTaskParams(clustertask *v1beta1.ClusterTask, useParamDefaults bool) error

func (*InteractiveOpts) ClusterTaskWorkspaces added in v0.12.0

func (intOpts *InteractiveOpts) ClusterTaskWorkspaces(clustertask *v1beta1.ClusterTask) error

func (*InteractiveOpts) TaskInputResources added in v0.10.0

func (*InteractiveOpts) TaskOutputResources added in v0.10.0

func (*InteractiveOpts) TaskParams added in v0.10.0

func (intOpts *InteractiveOpts) TaskParams(task *v1beta1.Task, useParamDefaults bool) error

func (*InteractiveOpts) TaskWorkspaces added in v0.10.0

func (intOpts *InteractiveOpts) TaskWorkspaces(task *v1beta1.Task) error

type LogOptions

type LogOptions struct {
	AllSteps        bool
	Follow          bool
	Params          cli.Params
	PipelineName    string
	PipelineRunName string
	TaskName        string
	TaskrunName     string
	Stream          *cli.Stream
	Streamer        stream.NewStreamerFunc
	Tasks           []string
	Steps           []string
	Last            bool
	Limit           int
	AskOpts         survey.AskOpt
	Fzf             bool
	Tail            int64

	// ActivityTimeout is the amount of time to wait for some activity
	// (e.g. Pod ready) before giving up.
	ActivityTimeout time.Duration
}

func NewLogOptions

func NewLogOptions(p cli.Params) *LogOptions

func (*LogOptions) Ask

func (opts *LogOptions) Ask(resource string, options []string) error

func (*LogOptions) FuzzyAsk

func (opts *LogOptions) FuzzyAsk(resource string, options []string) error

func (*LogOptions) ValidateOpts

func (opts *LogOptions) ValidateOpts() error

type TaskRunOpts added in v0.13.0

type TaskRunOpts struct {
	CliParams  cli.Params
	Last       bool
	UseTaskRun string
	PrefixName string
}

func (*TaskRunOpts) UseTaskRunFrom added in v0.13.0

func (taskRunOpts *TaskRunOpts) UseTaskRunFrom(tr *v1beta1.TaskRun, cs *cli.Clients, tname string, taskKind string) error

Jump to

Keyboard shortcuts

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