cni

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistedNamespaceConfig

type PersistedNamespaceConfig struct {
	ContainerID  string
	HostUniqueID guid.GUID
	// contains filtered or unexported fields
}

PersistedNamespaceConfig is the registry version of the `NamespaceID` to UVM map.

func LoadPersistedNamespaceConfig

func LoadPersistedNamespaceConfig(namespaceID string) (*PersistedNamespaceConfig, error)

LoadPersistedNamespaceConfig loads a persisted config from the registry that matches `namespaceID`. If not found returns `regstate.NotFoundError`

func NewPersistedNamespaceConfig

func NewPersistedNamespaceConfig(namespaceID, containerID string, containerHostUniqueID guid.GUID) *PersistedNamespaceConfig

NewPersistedNamespaceConfig creates an in-memory namespace config that can be persisted to the registry.

func (*PersistedNamespaceConfig) Remove

func (pnc *PersistedNamespaceConfig) Remove() error

Remove removes any persisted state associated with this config. If the config is not found in the registery `Remove` returns no error.

func (*PersistedNamespaceConfig) Store

func (pnc *PersistedNamespaceConfig) Store() error

Store stores or updates the in-memory config to its registry state. If the store failes returns the store error.

Jump to

Keyboard shortcuts

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