docknet

package
v0.0.0-...-8dd92da Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockNet

func CreateDockNet(tenantName, networkName, serviceName string, nwCfg *mastercfg.CfgNetworkState) error

CreateDockNet Creates a network in docker daemon

func CreateDockNetState

func CreateDockNetState(tenantName, networkName, serviceName, docknetID string) error

CreateDockNetState creates an entry in the docknet state store

func DeleteDockNet

func DeleteDockNet(tenantName, networkName, serviceName string) error

DeleteDockNet deletes a network in docker daemon

func DeleteDockNetState

func DeleteDockNetState(tenantName, networkName, serviceName string) error

DeleteDockNetState delete the docknet entry from state store

func GetDocknetName

func GetDocknetName(tenantName, networkName, epgName string) string

GetDocknetName trims default tenant from network name

func UpdateDockerV2PluginName

func UpdateDockerV2PluginName(netDriver string, ipamDriver string)

UpdateDockerV2PluginName update the docker v2 plugin name

Types

type DnetOperState

type DnetOperState struct {
	core.CommonState
	TenantName  string `json:"tenantName"`
	NetworkName string `json:"networkName"`
	ServiceName string `json:"serviceName"`
	DocknetUUID string `json:"docknetUUID"`
}

DnetOperState has oper state of docker network

func FindDocknetByUUID

func FindDocknetByUUID(dnetID string) (*DnetOperState, error)

FindDocknetByUUID find the docknet by UUID

func GetDocknetState

func GetDocknetState(tenantName, networkName, serviceName string) (*DnetOperState, error)

GetDocknetState gets the docknet entry from state store

func (*DnetOperState) Clear

func (s *DnetOperState) Clear() error

Clear removes the state.

func (*DnetOperState) Read

func (s *DnetOperState) Read(id string) error

Read the state for a given identifier

func (*DnetOperState) ReadAll

func (s *DnetOperState) ReadAll() ([]core.State, error)

ReadAll state and return the collection.

func (*DnetOperState) WatchAll

func (s *DnetOperState) WatchAll(rsps chan core.WatchState) error

WatchAll state transitions and send them through the channel.

func (*DnetOperState) Write

func (s *DnetOperState) Write() error

Write the state.

Jump to

Keyboard shortcuts

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