Documentation
¶
Index ¶
- type HeadscaleClient
- func (h *HeadscaleClient) Close() error
- func (h *HeadscaleClient) CreateNamespace(name string) error
- func (h *HeadscaleClient) CreatePreAuthKey(namespace string, expiration time.Time, isEphemeral bool) (key string, err error)
- func (h *HeadscaleClient) DescribeMachine(machineid, projectID string) (connected bool, err error)
- func (h *HeadscaleClient) GetControlPlaneAddress() string
- func (h *HeadscaleClient) NamespaceExists(name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadscaleClient ¶
type HeadscaleClient struct {
// contains filtered or unexported fields
}
func NewHeadscaleClient ¶
func NewHeadscaleClient(addr, controlPlaneAddr, apiKey string, logger *zap.SugaredLogger) (client *HeadscaleClient, err error)
func (*HeadscaleClient) CreateNamespace ¶
func (h *HeadscaleClient) CreateNamespace(name string) error
func (*HeadscaleClient) CreatePreAuthKey ¶
func (*HeadscaleClient) DescribeMachine ¶ added in v0.21.2
func (h *HeadscaleClient) DescribeMachine(machineid, projectID string) (connected bool, err error)
func (*HeadscaleClient) GetControlPlaneAddress ¶
func (h *HeadscaleClient) GetControlPlaneAddress() string
func (*HeadscaleClient) NamespaceExists ¶
func (h *HeadscaleClient) NamespaceExists(name string) bool
Click to show internal directories.
Click to hide internal directories.