cni

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 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