create

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAgr

func CheckAgr(o *Options) error

func NewCmdCreate

func NewCmdCreate() *cobra.Command

func NewConfigCmd

func NewConfigCmd() *cobra.Command

func NewJobCmd

func NewJobCmd() *cobra.Command

Types

type ConfigOptions

type ConfigOptions struct {
	Template string
	Path     string
}

func (*ConfigOptions) GenerateInspectConfig

func (c *ConfigOptions) GenerateInspectConfig() error

func (*ConfigOptions) GenerateInspectPlan

func (c *ConfigOptions) GenerateInspectPlan() error

func (*ConfigOptions) GenerateInspectRule

func (c *ConfigOptions) GenerateInspectRule() error

func (*ConfigOptions) GetFileName

func (c *ConfigOptions) GetFileName(temp *template.Template) string

func (*ConfigOptions) RenderConfigFile

func (c *ConfigOptions) RenderConfigFile(temp *template.Template, data map[string]interface{}) error

type Options

type Options struct {
	Clients    *kube.KubernetesClient
	TaskName   string
	ResultName string
	JobType    string
	// contains filtered or unexported fields
}

func NewJobOptions

func NewJobOptions() *Options

func (*Options) Run

func (o *Options) Run(cmd context.Context) error

Jump to

Keyboard shortcuts

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