v1

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNetworkNameCannotBeEmpty      = errors.New("the network name cannot be empty")
	ErrNetworkNameCannotStartWithDot = errors.New("the network name cannot start with a `.`")
	ErrNetworkNameCannotContainSlash = errors.New("the network name cannot contain `\\` nor `/`")
)

Functions

This section is empty.

Types

type FileStore added in v0.69.0

type FileStore struct {
	// contains filtered or unexported fields
}

func InitialiseStore

func InitialiseStore(vegaPaths paths.Paths) (*FileStore, error)

func (*FileStore) DeleteNetwork added in v0.69.0

func (s *FileStore) DeleteNetwork(name string) error

func (*FileStore) GetNetwork added in v0.69.0

func (s *FileStore) GetNetwork(name string) (*network.Network, error)

func (*FileStore) GetNetworkPath added in v0.69.0

func (s *FileStore) GetNetworkPath(name string) string

func (*FileStore) GetNetworksPath added in v0.69.0

func (s *FileStore) GetNetworksPath() string

func (*FileStore) ListNetworks added in v0.69.0

func (s *FileStore) ListNetworks() ([]string, error)

func (*FileStore) NetworkExists added in v0.69.0

func (s *FileStore) NetworkExists(name string) (bool, error)

func (*FileStore) RenameNetwork added in v0.69.0

func (s *FileStore) RenameNetwork(currentName, newName string) error

func (*FileStore) SaveNetwork added in v0.69.0

func (s *FileStore) SaveNetwork(net *network.Network) error

Jump to

Keyboard shortcuts

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