Documentation ¶
Index ¶
- Constants
- func LoadConfig(conf *types.NetConf, args *skel.CmdArgs, data *OvsSavedData) error
- func SaveConfig(conf *types.NetConf, args *skel.CmdArgs, data *OvsSavedData) error
- func SetDefaultExecCommand()
- func SetExecCommand(o ExecCommandInterface)
- type CniOvs
- func (cniOvs CniOvs) AddOnContainer(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, ...) (*v1.Pod, error)
- func (cniOvs CniOvs) AddOnHost(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, ...) error
- func (cniOvs CniOvs) DelFromContainer(conf *types.NetConf, args *skel.CmdArgs, sharedDir string, pod *v1.Pod) error
- func (cniOvs CniOvs) DelFromHost(conf *types.NetConf, args *skel.CmdArgs, sharedDir string) error
- type ExecCommandInterface
- type FakeExecCommand
- type OvsSavedData
Constants ¶
View Source
const (
DefaultHostVhostuserBaseDir = "/var/lib/vhost_sockets/"
)
Constants
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func SaveConfig ¶
SaveConfig() - Some data needs to be saved for cmdDel().
This function squirrels the data away to be retrieved later.
func SetDefaultExecCommand ¶
func SetDefaultExecCommand()
func SetExecCommand ¶
func SetExecCommand(o ExecCommandInterface)
Types ¶
type CniOvs ¶
type CniOvs struct { }
Types
func (CniOvs) AddOnContainer ¶
func (CniOvs) AddOnHost ¶
func (cniOvs CniOvs) AddOnHost(conf *types.NetConf, args *skel.CmdArgs, kubeClient kubernetes.Interface, sharedDir string, ipResult *current.Result) error
API Functions
func (CniOvs) DelFromContainer ¶
type ExecCommandInterface ¶
type ExecCommandInterface interface {
// contains filtered or unexported methods
}
type FakeExecCommand ¶
type OvsSavedData ¶
type OvsSavedData struct { Vhostname string `json:"vhostname"` // Vhost Port name VhostMac string `json:"vhostmac"` // Vhost port MAC address IfMac string `json:"ifmac"` // Interface Mac address }
This structure is a union of all the OVS data (for all types of interfaces) that need to be preserved for later use.
Click to show internal directories.
Click to hide internal directories.