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.
Click to show internal directories.
Click to hide internal directories.