tools

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func NewDiffCmd

func NewDiffCmd(o *DiffOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewInspectCmd

func NewInspectCmd(o *InspectOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewListImagesCmd

func NewListImagesCmd(o *ListImagesOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewListLabelsCmd

func NewListLabelsCmd(o *ListLabelsOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewValueResourceManagedBy

func NewValueResourceManagedBy(resource ctlres.Resource) uitable.ValueString

Types

type DiffFlags

type DiffFlags struct {
	ctldiff.ChangeSetViewOpts
	ctldiff.ChangeSetOpts

	Run bool
}

func (*DiffFlags) SetWithPrefix

func (s *DiffFlags) SetWithPrefix(prefix string, cmd *cobra.Command)

type DiffOptions

type DiffOptions struct {
	FileFlags  FileFlags
	FileFlags2 FileFlags2
	DiffFlags  DiffFlags
	// contains filtered or unexported fields
}

func NewDiffOptions

func NewDiffOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *DiffOptions

func (*DiffOptions) Run

func (o *DiffOptions) Run() error

type FileFlags

type FileFlags struct {
	Files     []string
	Recursive bool
	Sort      bool
}

func (*FileFlags) Set

func (s *FileFlags) Set(cmd *cobra.Command)

type FileFlags2

type FileFlags2 struct {
	Files     []string
	Recursive bool
}

func (*FileFlags2) Set

func (s *FileFlags2) Set(cmd *cobra.Command)

type InspectOptions

type InspectOptions struct {
	FileFlags           FileFlags
	ResourceFilterFlags ResourceFilterFlags
	Raw                 bool
	// contains filtered or unexported fields
}

func NewInspectOptions

func NewInspectOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *InspectOptions

func (*InspectOptions) Run

func (o *InspectOptions) Run() error

type InspectTreeView

type InspectTreeView struct {
	Source    string
	Resources []ctlres.Resource
	Sort      bool
}

func (InspectTreeView) Print

func (v InspectTreeView) Print(ui ui.UI)

type InspectView

type InspectView struct {
	Source    string
	Resources []ctlres.Resource
	Sort      bool
}

func (InspectView) Print

func (v InspectView) Print(ui ui.UI)

type ListImagesOptions

type ListImagesOptions struct {
	FileFlags FileFlags
	// contains filtered or unexported fields
}

func NewListImagesOptions

func NewListImagesOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *ListImagesOptions

func (*ListImagesOptions) Run

func (o *ListImagesOptions) Run() error

type ListLabelsOptions

type ListLabelsOptions struct {
	FileFlags FileFlags
	Accessor  string
	Values    bool
	// contains filtered or unexported fields
}

func NewListLabelsOptions

func NewListLabelsOptions(ui ui.UI, depsFactory cmdcore.DepsFactory) *ListLabelsOptions

func (*ListLabelsOptions) Run

func (o *ListLabelsOptions) Run() error

type ResourceFilterFlags

type ResourceFilterFlags struct {
	// contains filtered or unexported fields
}

func (*ResourceFilterFlags) AfterTime

func (s *ResourceFilterFlags) AfterTime() (*time.Time, error)

func (*ResourceFilterFlags) ResourceFilter

func (s *ResourceFilterFlags) ResourceFilter() (ctlres.ResourceFilter, error)

func (*ResourceFilterFlags) Set

func (s *ResourceFilterFlags) Set(cmd *cobra.Command)

type ResourceWithSource

type ResourceWithSource struct {
	ctlres.Resource
	Source string
}

type ValueColored

type ValueColored struct {
	S    string
	Func func(string, ...interface{}) string
}

func NewValueColored

func NewValueColored(str string, f func(string, ...interface{}) string) ValueColored

func (ValueColored) Compare

func (t ValueColored) Compare(other uitable.Value) int

func (ValueColored) Fprintf

func (t ValueColored) Fprintf(w io.Writer, pattern string, rest ...interface{}) (int, error)

func (ValueColored) String

func (t ValueColored) String() string

func (ValueColored) Value

func (t ValueColored) Value() uitable.Value

Jump to

Keyboard shortcuts

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