v1

package
v0.0.0-...-589da53 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 11 Imported by: 0

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

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

func InitialiseStore

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

func (*FileStore) DeleteNetwork

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

func (*FileStore) GetNetwork

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

func (*FileStore) GetNetworkPath

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

func (*FileStore) GetNetworksPath

func (s *FileStore) GetNetworksPath() string

func (*FileStore) ListNetworks

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

func (*FileStore) NetworkExists

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

func (*FileStore) RenameNetwork

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

func (*FileStore) SaveNetwork

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