headscale

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupHeadscaleClient

func SetupHeadscaleClient()

Types

type HeadscaleClient

type HeadscaleClient struct {
	Client headscale.HeadscaleServiceClient
	// contains filtered or unexported fields
}
var Client *HeadscaleClient

func (*HeadscaleClient) Close

func (c *HeadscaleClient) Close()

func (*HeadscaleClient) DeleteMachine added in v1.1.0

func (c *HeadscaleClient) DeleteMachine(machineId uint64) error

func (*HeadscaleClient) DeleteRoute added in v1.1.0

func (c *HeadscaleClient) DeleteRoute(routeId uint64) error

func (*HeadscaleClient) EnableRoute

func (c *HeadscaleClient) EnableRoute(routeId uint64, enable bool) error

func (*HeadscaleClient) GetMachine added in v1.1.0

func (c *HeadscaleClient) GetMachine(machineId uint64) (*v1.GetMachineResponse, error)

func (*HeadscaleClient) ListMachineRoutes

func (c *HeadscaleClient) ListMachineRoutes(machineId uint64) (*v1.GetMachineRoutesResponse, error)

func (*HeadscaleClient) ListMachines

func (c *HeadscaleClient) ListMachines() (*v1.ListMachinesResponse, error)

func (*HeadscaleClient) NewContext

func (c *HeadscaleClient) NewContext() (context.Context, context.CancelFunc)

func (*HeadscaleClient) RenameMachine added in v1.1.0

func (c *HeadscaleClient) RenameMachine(machineId uint64, name string) (*v1.RenameMachineResponse, error)

func (*HeadscaleClient) SetMachineTags added in v1.1.0

func (c *HeadscaleClient) SetMachineTags(machineId uint64, tags []string) (*v1.SetTagsResponse, error)

Jump to

Keyboard shortcuts

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