options

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionsFromFederationConfig added in v0.0.9

func GetOptionsFromFederationConfig(hostConfig *rest.Config, namespace string) (apiextv1b1.ResourceScope, string, error)

Types

type CommonSubcommandOptions added in v0.0.9

type CommonSubcommandOptions struct {
	ClusterName     string
	ClusterContext  string
	HostClusterName string
}

CommonSubcommandOptions holds the common configuration required by some of the subcommands of `kubefed2`.

func (*CommonSubcommandOptions) CommonSubcommandBind added in v0.0.9

func (o *CommonSubcommandOptions) CommonSubcommandBind(flags *pflag.FlagSet)

CommonSubcommandBind adds the common subcommand flags to the flagset passed in.

func (*CommonSubcommandOptions) SetName added in v0.0.9

func (o *CommonSubcommandOptions) SetName(args []string) error

SetName sets the name from the args passed in for the required positional argument.

type FederationConfigOptions added in v0.0.9

type FederationConfigOptions struct {
	ClusterNamespace string
}

type GlobalSubcommandOptions added in v0.0.9

type GlobalSubcommandOptions struct {
	HostClusterContext  string
	FederationNamespace string
	Kubeconfig          string
	DryRun              bool
}

GlobalSubcommandOptions holds the configuration required by the subcommands of `kubefed2`.

func (*GlobalSubcommandOptions) GlobalSubcommandBind added in v0.0.9

func (o *GlobalSubcommandOptions) GlobalSubcommandBind(flags *pflag.FlagSet)

GlobalSubcommandBind adds the global subcommand flags to the flagset passed in.

Jump to

Keyboard shortcuts

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