state

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentState

type CurrentState struct {
	Netbird NetbirdState `json:"netbird"`
	// contains filtered or unexported fields
}

func GetState

func GetState(path string) (*CurrentState, error)

func (*CurrentState) Clear

func (s *CurrentState) Clear()

func (*CurrentState) Delete added in v1.9.0

func (s *CurrentState) Delete() error

func (*CurrentState) Export

func (s *CurrentState) Export() error

func (*CurrentState) GetNetbirdGroupID

func (s *CurrentState) GetNetbirdGroupID() string

func (*CurrentState) GetNetbirdRouteID

func (s *CurrentState) GetNetbirdRouteID() string

func (*CurrentState) GetNetbirdSetupKey

func (s *CurrentState) GetNetbirdSetupKey() string

func (*CurrentState) GetNetbirdSetupKeyID

func (s *CurrentState) GetNetbirdSetupKeyID() string

func (*CurrentState) GetNetbirdToken

func (s *CurrentState) GetNetbirdToken() string

func (*CurrentState) IsFullyConfigured

func (s *CurrentState) IsFullyConfigured() bool

func (*CurrentState) SetFullyConfigured

func (s *CurrentState) SetFullyConfigured()

func (*CurrentState) SetNetbirdGroupID

func (s *CurrentState) SetNetbirdGroupID(id string)

func (*CurrentState) SetNetbirdRouteID

func (s *CurrentState) SetNetbirdRouteID(id string)

func (*CurrentState) SetNetbirdSetupKey

func (s *CurrentState) SetNetbirdSetupKey(key string)

func (*CurrentState) SetNetbirdSetupKeyID

func (s *CurrentState) SetNetbirdSetupKeyID(id string)

func (*CurrentState) SetNetbirdToken

func (s *CurrentState) SetNetbirdToken(token string)

type NetbirdState

type NetbirdState struct {
	FullyConfigured   bool   `json:"fully_configured"`
	NetbirdToken      string `json:"netbird_token"`
	NetbirdSetupKey   string `json:"netbird_setup_key"`
	NetbirdSetupKeyID string `json:"netbird_setup_key_id"`
	NetbirdGroupID    string `json:"netbird_group_id"`
	NetbirdRouteID    string `json:"netbird_route_id"`
}

Jump to

Keyboard shortcuts

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