network

package
Version: v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 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 kcmdutil.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
	JoinProject *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
	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) Complete

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

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

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