network

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 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(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