options

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 22 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ResourceNamePipeline              = "pipeline"
	ResourceNamePipelineRun           = "pipelinerun"
	ResourceNameTask                  = "task"
	ResourceNameTaskRun               = "taskrun"
	ResourceNameClusterTask           = "clustertask"
	ResourceNameTriggerTemplate       = "triggertemplate"
	ResourceNameTriggerBinding        = "triggerbinding"
	ResourceNameClusterTriggerBinding = "clustertriggerbinding"
	ResourceNameEventListener         = "eventlistener"
)

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
	KeepSince                int
	IgnoreRunning            bool
	IgnoreRunningPipelinerun bool
	LabelSelector            string
}

func (*DeleteOptions) CheckOptions

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

func (*DeleteOptions) TakeInput added in v0.24.1

func (o *DeleteOptions) TakeInput(s *cli.Stream, formattedNames string) error

type DescribeOptions added in v0.10.0

type DescribeOptions struct {
	Params                    cli.Params
	PipelineName              string
	PipelineRunName           string
	ClusterTaskName           string
	TaskName                  string
	TaskrunName               string
	Tasks                     []string
	TriggerTemplateName       string
	TriggerBindingName        string
	EventListenerName         string
	ClusterTriggerBindingName 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
	SkipOptionalWorkspace bool
}

func (*InteractiveOpts) ClusterTaskParams added in v0.12.0

func (intOpts *InteractiveOpts) ClusterTaskParams(clustertask *v1beta1.ClusterTask, skipParams map[string]string, useParamDefaults bool) error

func (*InteractiveOpts) ClusterTaskWorkspaces added in v0.12.0

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

func (*InteractiveOpts) TaskParams added in v0.10.0

func (intOpts *InteractiveOpts) TaskParams(task *v1beta1.Task, skipParams map[string]string, 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
	ClusterTaskName string
	TaskrunName     string
	Stream          *cli.Stream
	Streamer        stream.NewStreamerFunc
	Tasks           []string
	Steps           []string
	Last            bool
	Limit           int
	AskOpts         survey.AskOpt
	Fzf             bool
	Tail            int64
	Timestamps      bool
	Prefixing       bool
	ExitWithPrError bool
	// 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