network

package
v0.7.26 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	io.Closer

	// Get gets a network snapshot
	Get(id networksnapshot.ID) (*networksnapshot.NetworkSnapshot, error)

	// GetByIndex gets a network snapshot by index
	GetByIndex(index networksnapshot.Index) (*networksnapshot.NetworkSnapshot, error)

	// Create creates a new network snapshot
	Create(snapshot *networksnapshot.NetworkSnapshot) error

	// Update updates an existing network snapshot
	Update(snapshot *networksnapshot.NetworkSnapshot) error

	// Delete deletes a network snapshot
	Delete(snapshot *networksnapshot.NetworkSnapshot) error

	// List lists network snapshots
	List(chan<- *networksnapshot.NetworkSnapshot) (stream.Context, error)

	// Watch watches the network snapshot store for changes
	Watch(chan<- stream.Event) (stream.Context, error)
}

Store stores NetworkSnapshots

func NewAtomixStore

func NewAtomixStore(cluster cluster.Cluster, config config.Config) (Store, error)

NewAtomixStore returns a new persistent Store

func NewLocalStore

func NewLocalStore() (Store, error)

NewLocalStore returns a new local network snapshot store

Jump to

Keyboard shortcuts

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