activities

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationString

func DurationString(start, end *metav1.Time) string

DurationString returns the duration between start and end time as string

Types

type Options

type Options struct {
	options.BaseOptions

	Format       string
	Namespace    string
	Filter       string
	BuildNumber  string
	Watch        bool
	Sort         bool
	KubeClient   kubernetes.Interface
	JXClient     versioned.Interface
	TektonClient tektonclient.Interface
	Out          io.Writer
	Results      []v1.PipelineActivity
}

Options containers the CLI options

func NewCmdActivities

func NewCmdActivities() (*cobra.Command, *Options)

NewCmdActivities creates the new command for: jx get version

func (*Options) Run

func (o *Options) Run() error

Run implements this command

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies things are setup correctly

func (*Options) WatchActivities

func (o *Options) WatchActivities(t *table.Table, jxClient versioned.Interface, ns string) error

Jump to

Keyboard shortcuts

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