Documentation
¶
Index ¶
- type CurrentState
- func (s *CurrentState) Clear()
- func (s *CurrentState) Delete() error
- func (s *CurrentState) Export() error
- func (s *CurrentState) GetNetbirdGroupID() string
- func (s *CurrentState) GetNetbirdRouteID() string
- func (s *CurrentState) GetNetbirdSetupKey() string
- func (s *CurrentState) GetNetbirdSetupKeyID() string
- func (s *CurrentState) GetNetbirdToken() string
- func (s *CurrentState) IsFullyConfigured() bool
- func (s *CurrentState) SetFullyConfigured()
- func (s *CurrentState) SetNetbirdGroupID(id string)
- func (s *CurrentState) SetNetbirdRouteID(id string)
- func (s *CurrentState) SetNetbirdSetupKey(key string)
- func (s *CurrentState) SetNetbirdSetupKeyID(id string)
- func (s *CurrentState) SetNetbirdToken(token string)
- type NetbirdState
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"` }
Click to show internal directories.
Click to hide internal directories.