network

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 NewCmdIsolateProjectsNetwork

func NewCmdIsolateProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdJoinProjectsNetwork

func NewCmdJoinProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdMakeGlobalProjectsNetwork

func NewCmdMakeGlobalProjectsNetwork(commandName, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdPodNetwork

func NewCmdPodNetwork(name, fullName string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

Types

type IsolateOptions

type IsolateOptions struct {
	Options *ProjectOptions
}

func NewIsolateOptions

func NewIsolateOptions(streams genericclioptions.IOStreams) *IsolateOptions

func (*IsolateOptions) Complete

func (o *IsolateOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error

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) Complete

func (o *JoinOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error

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) Complete

func (o *MakeGlobalOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error

func (*MakeGlobalOptions) Run

func (o *MakeGlobalOptions) Run() error

func (*MakeGlobalOptions) Validate

func (o *MakeGlobalOptions) Validate() error

type ProjectOptions

type ProjectOptions struct {
	DefaultNamespace string
	Oclient          networkclientinternal.Interface
	Kclient          kclientset.Interface

	RESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error)

	Builder *resource.Builder

	ProjectNames []string

	// Common optional params
	Selector      string
	CheckSelector bool

	genericclioptions.IOStreams
}

func NewProjectOptions

func NewProjectOptions(streams genericclioptions.IOStreams) *ProjectOptions

func (*ProjectOptions) Complete

func (p *ProjectOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error

func (*ProjectOptions) GetProjects

func (p *ProjectOptions) GetProjects() ([]*projectapi.Project, error)

func (*ProjectOptions) UpdatePodNetwork

func (p *ProjectOptions) UpdatePodNetwork(nsName string, action networkapi.PodNetworkAction, args string) error

func (*ProjectOptions) Validate

func (p *ProjectOptions) Validate() error

Common validations

Jump to

Keyboard shortcuts

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