headscale

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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) Close

func (h *HeadscaleClient) Close() error

Close client

func (*HeadscaleClient) CreateNamespace

func (h *HeadscaleClient) CreateNamespace(name string) error

func (*HeadscaleClient) CreatePreAuthKey

func (h *HeadscaleClient) CreatePreAuthKey(namespace string, expiration time.Time) (key string, err error)

func (*HeadscaleClient) GetControlPlaneAddress

func (h *HeadscaleClient) GetControlPlaneAddress() string

func (*HeadscaleClient) NamespaceExists

func (h *HeadscaleClient) NamespaceExists(name string) bool

Jump to

Keyboard shortcuts

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