Documentation ¶
Index ¶
- Constants
- func NewCmdIsolateProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, ...) *cobra.Command
- func NewCmdJoinProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, ...) *cobra.Command
- func NewCmdMakeGlobalProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, ...) *cobra.Command
- func NewCmdPodNetwork(name, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type IsolateOptions
- type JoinOptions
- type MakeGlobalOptions
- type ProjectOptions
- func (p *ProjectOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error
- func (p *ProjectOptions) GetProjects() ([]*projectv1.Project, error)
- func (p *ProjectOptions) UpdatePodNetwork(nsName string, action networkapihelpers.PodNetworkAction, args string) error
- func (p *ProjectOptions) Validate() error
Constants ¶
View Source
const IsolateProjectsNetworkCommandName = "isolate-projects"
View Source
const JoinProjectsNetworkCommandName = "join-projects"
View Source
const MakeGlobalProjectsNetworkCommandName = "make-projects-global"
View Source
const PodNetworkCommandName = "pod-network"
Variables ¶
This section is empty.
Functions ¶
func NewCmdPodNetwork ¶
Types ¶
type IsolateOptions ¶
type IsolateOptions struct {
Options *ProjectOptions
}
func NewIsolateOptions ¶
func NewIsolateOptions(streams genericclioptions.IOStreams) *IsolateOptions
func (*IsolateOptions) Run ¶
func (o *IsolateOptions) Run() error
func (*IsolateOptions) Validate ¶
func (o *IsolateOptions) Validate() error
type JoinOptions ¶
type JoinOptions struct { Options *ProjectOptions // contains filtered or unexported fields }
func NewJoinOptions ¶
func NewJoinOptions(streams genericclioptions.IOStreams) *JoinOptions
func (*JoinOptions) Run ¶
func (o *JoinOptions) Run() error
func (*JoinOptions) Validate ¶
func (o *JoinOptions) Validate() error
type MakeGlobalOptions ¶
type MakeGlobalOptions struct {
Options *ProjectOptions
}
func NewMakeGlobalOptions ¶
func NewMakeGlobalOptions(streams genericclioptions.IOStreams) *MakeGlobalOptions
func (*MakeGlobalOptions) Run ¶
func (o *MakeGlobalOptions) Run() error
func (*MakeGlobalOptions) Validate ¶
func (o *MakeGlobalOptions) Validate() error
type ProjectOptions ¶
type ProjectOptions struct { DefaultNamespace string NetClient networkv1typedclient.NetworkV1Interface KubeClient kubernetes.Interface Builder *resource.Builder ProjectNames []string // Common optional params Selector string CheckSelector bool genericclioptions.IOStreams }
func NewProjectOptions ¶
func NewProjectOptions(streams genericclioptions.IOStreams) *ProjectOptions
func (*ProjectOptions) GetProjects ¶
func (p *ProjectOptions) GetProjects() ([]*projectv1.Project, error)
func (*ProjectOptions) UpdatePodNetwork ¶
func (p *ProjectOptions) UpdatePodNetwork(nsName string, action networkapihelpers.PodNetworkAction, args string) error
Click to show internal directories.
Click to hide internal directories.