Documentation ¶
Index ¶
- type StateRepository
- func (r *StateRepository) DeleteInterfaces(ids []string) error
- func (r *StateRepository) DeleteKey(id string) error
- func (r *StateRepository) Interfaces() ([]*structs.Interface, error)
- func (r *StateRepository) KeyByID(id string) (*nic.PrivateKey, error)
- func (r *StateRepository) Name() string
- func (r *StateRepository) UpsertInterface(iface *structs.Interface) error
- func (r *StateRepository) UpsertKey(key *nic.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateRepository ¶
type StateRepository struct {
// contains filtered or unexported fields
}
StateRepository ...
func NewStateRepository ¶
func NewStateRepository(path string) (*StateRepository, error)
NewStateRepository creates a new BoltDB state repository
func (*StateRepository) DeleteInterfaces ¶
func (r *StateRepository) DeleteInterfaces(ids []string) error
DeleteInterfaces :
func (*StateRepository) DeleteKey ¶
func (r *StateRepository) DeleteKey(id string) error
func (*StateRepository) Interfaces ¶
func (r *StateRepository) Interfaces() ([]*structs.Interface, error)
Interfaces :
func (*StateRepository) KeyByID ¶
func (r *StateRepository) KeyByID(id string) (*nic.PrivateKey, error)
func (*StateRepository) UpsertInterface ¶
func (r *StateRepository) UpsertInterface(iface *structs.Interface) error
UpsertInterface :
func (*StateRepository) UpsertKey ¶
func (r *StateRepository) UpsertKey(key *nic.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.