cniextend

package
v0.0.0-...-c4e93b7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VlanResult

type VlanResult struct {
	current.Result
	VlanNum int `json:"vlan,omitempty"`
}

func DelegateAdd

func DelegateAdd(delegatePlugin string, netconf []byte) (*VlanResult, error)

DelegateAdd calls the given delegate plugin with the CNI ADD action and JSON configuration

func ExecAdd

func ExecAdd(plugin string, netconf []byte) (*VlanResult, error)

func ExecPluginWithVlanResult

func ExecPluginWithVlanResult(pluginPath string, netconf []byte, args invoke.CNIArgs, exec invoke.Exec) (*VlanResult, error)

func (*VlanResult) ConvertToResult

func (r *VlanResult) ConvertToResult() (current.Result, error)

func (*VlanResult) Print

func (r *VlanResult) Print() error

func (*VlanResult) Vlan

func (r *VlanResult) Vlan() int

Jump to

Keyboard shortcuts

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