cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplyCmd

func NewApplyCmd() (cmd *cobra.Command)

func NewCasCCMD

func NewCasCCMD() (cascCmd *cobra.Command)

func NewExportCmd

func NewExportCmd() (cmd *cobra.Command)

func NewOpenCmd

func NewOpenCmd() (cmd *cobra.Command)

func NewReloadCmd

func NewReloadCmd() (cmd *cobra.Command)

func NewSchemaCmd

func NewSchemaCmd() (cascSchemaCmd *cobra.Command)

Types

type CASCApplyOption

type CASCApplyOption struct {
	RoundTripper http.RoundTripper
}

CASCApplyOption as the options of apply configuration as code

func (*CASCApplyOption) RunE

func (c *CASCApplyOption) RunE(cmd *cobra.Command, _ []string) error

type CASCExportOption

type CASCExportOption struct {
	RoundTripper http.RoundTripper
}

CASCExportOption as the options of reload configuration as code

func (*CASCExportOption) RunE

func (c *CASCExportOption) RunE(cmd *cobra.Command, _ []string) (err error)

type CASCOpenOption

type CASCOpenOption struct {
	ExecContext util.ExecContext

	Browser string
}

CASCOpenOption is the option of casc open cmd

func (*CASCOpenOption) PreRun

func (c *CASCOpenOption) PreRun(_ *cobra.Command, _ []string)

func (*CASCOpenOption) RunE

func (c *CASCOpenOption) RunE(_ *cobra.Command, _ []string) (err error)

type CASCOptions

type CASCOptions struct {
	common.Option
}

CASCOptions is the option of casc

func (*CASCOptions) Check

func (o *CASCOptions) Check() (err error)

Check do the health check of casc cmd

type CASCReloadOption

type CASCReloadOption struct {
	RoundTripper http.RoundTripper
}

CASCReloadOption as the options of reload configuration as code

func (*CASCReloadOption) RunE

func (c *CASCReloadOption) RunE(cmd *cobra.Command, _ []string) error

type CASCSchemaOption

type CASCSchemaOption struct {
	RoundTripper http.RoundTripper
}

CASCSchemaOption as the options of reload configuration as code

func (*CASCSchemaOption) RunE

func (c *CASCSchemaOption) RunE(cmd *cobra.Command, _ []string) (err error)

Jump to

Keyboard shortcuts

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