create

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	pipelinectx.Options
	File             string
	Name             string
	Namespace        string
	EnvPattern       string
	NoWatchJob       bool
	NoDeleteResource bool
	LogResource      bool
	VerifyResult     bool
	Env              map[string]string
	EnvVars          []string
	KubeClient       kubernetes.Interface
	DynamicClient    dynamic.Interface
	Ctx              context.Context
	Client           dynamic.ResourceInterface
	CommandRunner    cmdrunner.CommandRunner
}

Options the options for the command

func NewCmdCreate

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

NewCmdCreate creates a command object for the command

func (*Options) GetContext

func (o *Options) GetContext() context.Context

GetContext lazily creates a context if it doesn't exist already

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) Validate

func (o *Options) Validate() error

Validate validates options

Jump to

Keyboard shortcuts

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