resource

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdResource

func NewCmdResource(streams options.IOStreams) *cobra.Command

func NewCmdResourceDelete

func NewCmdResourceDelete(o *ResourceOptions) *cobra.Command

func NewCmdResourceList

func NewCmdResourceList(o *ResourceOptions) *cobra.Command

func NewCmdResourcePush

func NewCmdResourcePush(o *ResourceOptions) *cobra.Command

Types

type ResourceOptions

type ResourceOptions struct {
	options.IOStreams
	PrintFlags *printer.PrintFlags

	List   string
	Push   string
	Delete string

	Type    string
	Name    string
	Version string
	Arch    string

	Pkg string
	// contains filtered or unexported fields
}

func NewResourceOptions

func NewResourceOptions(streams options.IOStreams) *ResourceOptions

func (*ResourceOptions) Complete

func (o *ResourceOptions) Complete() error

func (*ResourceOptions) ReadMetadata

func (o *ResourceOptions) ReadMetadata(node string) (*kc.ComponentMetas, error)

func (*ResourceOptions) ResourceDelete

func (o *ResourceOptions) ResourceDelete() error

func (*ResourceOptions) ResourceList

func (o *ResourceOptions) ResourceList() error

func (*ResourceOptions) ResourcePkgRules

func (o *ResourceOptions) ResourcePkgRules() error

func (*ResourceOptions) ResourcePush

func (o *ResourceOptions) ResourcePush() error

func (*ResourceOptions) ValidateArgs

func (o *ResourceOptions) ValidateArgs(cmd *cobra.Command) error

func (*ResourceOptions) ValidateArgsDelete

func (o *ResourceOptions) ValidateArgsDelete(cmd *cobra.Command) error

func (*ResourceOptions) ValidateArgsPush

func (o *ResourceOptions) ValidateArgsPush(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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