package cni
import "github.com/Microsoft/hcsshim/internal/cni"
Index ¶
- type PersistedNamespaceConfig
- func LoadPersistedNamespaceConfig(namespaceID string) (*PersistedNamespaceConfig, error)
- func NewPersistedNamespaceConfig(namespaceID, containerID string, containerHostUniqueID guid.GUID) *PersistedNamespaceConfig
- func (pnc *PersistedNamespaceConfig) Remove() error
- func (pnc *PersistedNamespaceConfig) Store() error
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.
Source Files ¶
- Version
- v0.7.14
- Published
- Nov 6, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 39 minutes ago –
Tools for package owners.