v1

package
v0.68.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 10 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 Store

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

func InitialiseStore

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

func (*Store) DeleteNetwork

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

func (*Store) GetNetwork

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

func (*Store) GetNetworkPath

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

func (*Store) GetNetworksPath

func (s *Store) GetNetworksPath() string

func (*Store) ListNetworks

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

func (*Store) NetworkExists

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

func (*Store) SaveNetwork

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

Jump to

Keyboard shortcuts

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