resource

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateNamespaceCmd

func NewCreateNamespaceCmd(o *CreateNamespaceOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewGetCmd

func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewListCmd

func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

func NewResourceCmd

func NewResourceCmd() *cobra.Command

Types

type AnnotationsTableValue

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

func NewAnnotationsTableValue

func NewAnnotationsTableValue(status map[string]interface{}) AnnotationsTableValue

func (AnnotationsTableValue) Compare

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

func (AnnotationsTableValue) String

func (t AnnotationsTableValue) String() string

func (AnnotationsTableValue) Value

type ConditionsTableValue

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

func NewConditionsTableValue

func NewConditionsTableValue(status map[string]interface{}) ConditionsTableValue

func (ConditionsTableValue) Compare

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

func (ConditionsTableValue) NeedsAttention

func (t ConditionsTableValue) NeedsAttention() bool

func (ConditionsTableValue) String

func (t ConditionsTableValue) String() string

func (ConditionsTableValue) Value

type CreateNamespaceOptions

type CreateNamespaceOptions struct {
	NamespaceFlags    cmdcore.NamespaceFlags
	GenerateNameFlags cmdcore.GenerateNameFlags
	// contains filtered or unexported fields
}

func NewCreateNamespaceOptions

func NewCreateNamespaceOptions(depsFactory cmdcore.DepsFactory, ui ui.UI) *CreateNamespaceOptions

func (*CreateNamespaceOptions) Run

func (o *CreateNamespaceOptions) Run() error

type DeleteOptions

type DeleteOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	ObjectFlags    ObjectFlags
	// contains filtered or unexported fields
}

func NewDeleteOptions

func NewDeleteOptions(depsFactory cmdcore.DepsFactory, ui ui.UI) *DeleteOptions

func (*DeleteOptions) Run

func (o *DeleteOptions) Run() error

type GetOptions

type GetOptions struct {
	NamespaceFlags cmdcore.NamespaceFlags
	ObjectFlags    ObjectFlags
	// contains filtered or unexported fields
}

func NewGetOptions

func NewGetOptions(depsFactory cmdcore.DepsFactory, ui ui.UI) *GetOptions

func (*GetOptions) Run

func (o *GetOptions) Run() error

type LabelsTableValue

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

func NewLabelsTableValue

func NewLabelsTableValue(status map[string]interface{}) LabelsTableValue

func (LabelsTableValue) Compare

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

func (LabelsTableValue) String

func (t LabelsTableValue) String() string

func (LabelsTableValue) Value

func (t LabelsTableValue) Value() uitable.Value

type ListOptions

type ListOptions struct {
	NamespaceFlags      cmdcore.NamespaceFlags
	ResourceFilterFlags ResourceFilterFlags
	// contains filtered or unexported fields
}

func NewListOptions

func NewListOptions(depsFactory cmdcore.DepsFactory, ui ui.UI) *ListOptions

func (*ListOptions) Run

func (o *ListOptions) Run() error

type ObjectFlags

type ObjectFlags struct {
	Ref ctlres.ObjectRef
}

func (*ObjectFlags) Set

func (s *ObjectFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type ResourceFilterFlags

type ResourceFilterFlags struct {
	ObjectFlags

	NameIncludes       string
	LabelIncludes      string
	AnnotationIncludes string
}

func (*ResourceFilterFlags) Set

func (s *ResourceFilterFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type ResourceFlags

type ResourceFlags struct {
	Ref ctlres.ResourceRef
}

func (*ResourceFlags) Set

func (s *ResourceFlags) Set(cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory)

type ResourceRefFlag

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

func NewResourceRefFlag

func NewResourceRefFlag(value *ctlres.ResourceRef) *ResourceRefFlag

func (*ResourceRefFlag) Set

func (s *ResourceRefFlag) Set(val string) error

func (*ResourceRefFlag) String

func (s *ResourceRefFlag) String() string

func (*ResourceRefFlag) Type

func (s *ResourceRefFlag) Type() string

type ShortConditionsTableValue

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

func NewShortConditionsTableValue

func NewShortConditionsTableValue(status map[string]interface{}) ShortConditionsTableValue

func (ShortConditionsTableValue) Compare

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

func (ShortConditionsTableValue) NeedsAttention

func (t ShortConditionsTableValue) NeedsAttention() bool

func (ShortConditionsTableValue) String

func (t ShortConditionsTableValue) String() string

func (ShortConditionsTableValue) Value

type StatusTableValue

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

func NewStatusTableValue

func NewStatusTableValue(status map[string]interface{}) StatusTableValue

func (StatusTableValue) Compare

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

func (StatusTableValue) String

func (t StatusTableValue) String() string

func (StatusTableValue) Value

func (t StatusTableValue) Value() uitable.Value

Jump to

Keyboard shortcuts

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