Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdClusternet ¶
func NewCmdClusternet(streams genericclioptions.IOStreams) *cobra.Command
NewCmdClusternet provides a cobra command wrapping ClusternetOptions
Types ¶
type ClusternetGetter ¶
type ClusternetGetter struct { Delegate genericclioptions.RESTClientGetter ClusterID *string }
ClusternetGetter wraps rest.Config for Clusternet.
func NewClusternetGetter ¶
func NewClusternetGetter(delegate genericclioptions.RESTClientGetter, clusterID *string) *ClusternetGetter
func (*ClusternetGetter) ToDiscoveryClient ¶
func (f *ClusternetGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*ClusternetGetter) ToRESTConfig ¶
func (f *ClusternetGetter) ToRESTConfig() (*rest.Config, error)
ToRESTConfig implements RESTClientGetter. Returns a REST client configuration based on a provided path to a .kubeconfig file, loading rules, and config flag overrides. Expects the AddFlags method to have been called.
func (*ClusternetGetter) ToRESTMapper ¶
func (f *ClusternetGetter) ToRESTMapper() (meta.RESTMapper, error)
ToRESTMapper returns a mapper.
func (*ClusternetGetter) ToRawKubeConfigLoader ¶
func (f *ClusternetGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
type ClusternetOptions ¶
type ClusternetOptions struct { genericclioptions.IOStreams // contains filtered or unexported fields }
ClusternetOptions provides information required to make requests to Clusternet
func NewClusternetOptions ¶
func NewClusternetOptions(streams genericclioptions.IOStreams) *ClusternetOptions
NewClusternetOptions provides an instance of ClusternetOptions with default values
func (*ClusternetOptions) AddFlags ¶ added in v0.5.0
func (o *ClusternetOptions) AddFlags(pfs *flag.FlagSet)
func (*ClusternetOptions) Complete ¶
func (o *ClusternetOptions) Complete() error
Complete fills in fields required to have valid data
func (*ClusternetOptions) Run ¶
func (o *ClusternetOptions) Run() error
func (*ClusternetOptions) Validate ¶
func (o *ClusternetOptions) Validate() error
Validate ensures that all required arguments and flag values are provided
func (*ClusternetOptions) WrapConfigFn ¶ added in v0.5.0
func (o *ClusternetOptions) WrapConfigFn(config *rest.Config) *rest.Config