tools

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 16 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, _ cmdcore.FlagsFactory) *cobra.Command

func NewInspectCmd

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

func NewValueResourceOwner added in v0.10.0

func NewValueResourceOwner(resource ctlres.Resource) uitable.ValueString

Types

type AppFilterFlags added in v0.62.0

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

func (*AppFilterFlags) AppFilter added in v0.62.0

func (s *AppFilterFlags) AppFilter() (app.AppFilter, error)

func (*AppFilterFlags) Labels added in v0.62.0

func (s *AppFilterFlags) Labels() []string

func (*AppFilterFlags) Set added in v0.62.0

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

func (*AppFilterFlags) Times added in v0.62.0

func (s *AppFilterFlags) Times() (*time.Time, *time.Time, error)

type DiffChangeView added in v0.10.0

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

func (DiffChangeView) ApplyOp added in v0.10.0

func (DiffChangeView) ApplyStrategyOp added in v0.62.0

func (DiffChangeView) ClusterOriginalResource added in v0.62.0

func (v DiffChangeView) ClusterOriginalResource() ctlres.Resource

func (DiffChangeView) ConfigurableTextDiff added in v0.62.0

func (v DiffChangeView) ConfigurableTextDiff() *ctldiff.ConfigurableTextDiff

func (DiffChangeView) Resource added in v0.10.0

func (v DiffChangeView) Resource() ctlres.Resource

func (DiffChangeView) WaitOp added in v0.10.0

Since we are diffing changes without a cluster, there will be no wait operations

type DiffFlags

type DiffFlags struct {
	ctlcap.ChangeSetViewOpts
	ctldiff.ChangeSetOpts
	ctldiff.ChangeSetFilter

	Run        bool
	ExitStatus bool
	UI         bool

	AnchoredDiff bool
}

func (*DiffFlags) SetWithPrefix

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

type DiffOptions

type DiffOptions struct {
	FileFlags  FileFlags
	FileFlags2 FileFlags2
	DiffFlags  DiffFlags

	FileSystem fs.FS
	// 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
	Sort  bool
}

func (*FileFlags) Set

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

type FileFlags2

type FileFlags2 struct {
	Files []string
}

func (*FileFlags2) Set

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

type InspectOptions

type InspectOptions struct {
	FileFlags           FileFlags
	ResourceFilterFlags ResourceFilterFlags
	Raw                 bool

	FileSystem fs.FS
	// 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 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, logger logger.Logger) *ListLabelsOptions

func (*ListLabelsOptions) Run

func (o *ListLabelsOptions) Run() error

type ResourceFilterFlags

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

func (*ResourceFilterFlags) ResourceFilter

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

func (*ResourceFilterFlags) Set

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

func (*ResourceFilterFlags) Times added in v0.12.0

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

type ValueColored

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

func (ValueColored) Compare

func (t ValueColored) Compare(_ 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