docknet

package
v0.0.0-...-a17b09b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: Apache-2.0 Imports: 9 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 DeleteDockNet

func DeleteDockNet(tenantName, networkName, serviceName string) error

DeleteDockNet deletes a network in docker daemon

func GetDocknetName

func GetDocknetName(tenantName, networkName, epgName string) string

GetDocknetName trims default tenant from network 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 (*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