Documentation ¶
Index ¶
- Constants
- func NewCmdIsolateProjectsNetwork(commandName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdJoinProjectsNetwork(commandName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdMakeGlobalProjectsNetwork(commandName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdPodNetwork(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- type IsolateOptions
- type JoinOptions
- type MakeGlobalOptions
- type ProjectOptions
- func (p *ProjectOptions) Complete(f *clientcmd.Factory, c *cobra.Command, args []string, out io.Writer) error
- func (p *ProjectOptions) CreateOrUpdateNetNamespace(name string, id uint) error
- func (p *ProjectOptions) GetNetID(name string) (uint, error)
- func (p *ProjectOptions) GetNetNamespaces() (*sdnapi.NetNamespaceList, error)
- func (p *ProjectOptions) GetProjects() ([]*api.Project, 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 ¶
Types ¶
type IsolateOptions ¶
type IsolateOptions struct {
Options *ProjectOptions
}
func (*IsolateOptions) Run ¶
func (i *IsolateOptions) Run() error
type JoinOptions ¶
type JoinOptions struct { Options *ProjectOptions // contains filtered or unexported fields }
func (*JoinOptions) Run ¶
func (j *JoinOptions) Run() error
func (*JoinOptions) Validate ¶
func (j *JoinOptions) Validate() error
type MakeGlobalOptions ¶
type MakeGlobalOptions struct {
Options *ProjectOptions
}
func (*MakeGlobalOptions) Run ¶
func (m *MakeGlobalOptions) Run() error
type ProjectOptions ¶
type ProjectOptions struct { DefaultNamespace string Oclient *osclient.Client Kclient *kclient.Client Out io.Writer Mapper meta.RESTMapper Typer runtime.ObjectTyper RESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error) ProjectNames []string // Common optional params Selector string CheckSelector bool }
func (*ProjectOptions) CreateOrUpdateNetNamespace ¶
func (p *ProjectOptions) CreateOrUpdateNetNamespace(name string, id uint) error
func (*ProjectOptions) GetNetNamespaces ¶
func (p *ProjectOptions) GetNetNamespaces() (*sdnapi.NetNamespaceList, error)
func (*ProjectOptions) GetProjects ¶
func (p *ProjectOptions) GetProjects() ([]*api.Project, error)
Click to show internal directories.
Click to hide internal directories.