storage

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func New

func New(storage_path string) (*Store, error)

func (*Store) AddCert

func (storage *Store) AddCert(name string, certificate []byte, key []byte) (int64, error)

func (*Store) AddCred

func (storage *Store) AddCred(name string, server string, cacert []byte, operatorcert []byte, operatorkey []byte) error

func (*Store) AddOperator

func (storage *Store) AddOperator(name string, certId int64) error

func (*Store) AddRelay

func (storage *Store) AddRelay(tun_alias string, agent_hash string) error

func (*Store) AddTun

func (storage *Store) AddTun(alias string, name string, isLoopback bool) error

func (*Store) DelCert

func (storage *Store) DelCert(name string) error

func (*Store) DelCred

func (storage *Store) DelCred(id int) error

func (*Store) DelOperator

func (storage *Store) DelOperator(name string) error

func (*Store) DelRelay

func (storage *Store) DelRelay(agent_hash string) error

func (*Store) DelTun

func (storage *Store) DelTun(alias string) error

func (*Store) GetAgentTun

func (storage *Store) GetAgentTun(agent_hash string) (*agentsRow, error)

func (*Store) GetCert

func (storage *Store) GetCert(name string) (*certsRow, error)

func (*Store) GetCerts

func (storage *Store) GetCerts() ([]certsRow, error)

func (*Store) GetCreds

func (storage *Store) GetCreds() ([]credsRow, error)

func (*Store) GetOperator

func (storage *Store) GetOperator(name string) (*operatorsRow, error)

func (*Store) GetOperators

func (storage *Store) GetOperators() ([]operatorsRow, error)

func (*Store) GetTuns

func (storage *Store) GetTuns() ([]tunsRow, error)

func (*Store) InitClient

func (storage *Store) InitClient() error

func (*Store) InitServer

func (storage *Store) InitServer() error

func (*Store) RenameTun added in v1.0.2

func (storage *Store) RenameTun(oldAlias, newAlias string) error

Jump to

Keyboard shortcuts

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