server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCmd = &cobra.Command{
	Use:   "server",
	Short: "start a server to simulate deploying applications in k8s cluster",
	Run: func(cmd *cobra.Command, args []string) {
		if err := run(&options); err != nil {
			fmt.Printf("run server error: %s", err.Error())
			os.Exit(1)
		}
	},
}

ServerCmd is only for debug

Functions

This section is empty.

Types

type Options

type Options struct {
	Kubeconfig string
	Master     string
}

Options is the combined set of options for all operating modes.

func (*Options) AddFlags

func (options *Options) AddFlags(fs *pflag.FlagSet)

AddFlags will add the flag to the pflag.FlagSet

Jump to

Keyboard shortcuts

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