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) (key string, 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) 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.