Documentation ¶
Index ¶
- func NewHeadscaleServiceClient() (headscale.HeadscaleServiceClient, *grpc.ClientConn, context.CancelFunc, error)
- func SetupHeadscaleClient()
- type HeadscaleClient
- func (c *HeadscaleClient) Close()
- func (c *HeadscaleClient) DeleteMachine(machineId uint64) error
- func (c *HeadscaleClient) DeleteRoute(routeId uint64) error
- func (c *HeadscaleClient) EnableRoute(routeId uint64, enable bool) error
- func (c *HeadscaleClient) GetMachine(machineId uint64) (*v1.GetMachineResponse, error)
- func (c *HeadscaleClient) ListMachineRoutes(machineId uint64) (*v1.GetMachineRoutesResponse, error)
- func (c *HeadscaleClient) ListMachines() (*v1.ListMachinesResponse, error)
- func (c *HeadscaleClient) NewContext() (context.Context, context.CancelFunc)
- func (c *HeadscaleClient) RenameMachine(machineId uint64, name string) (*v1.RenameMachineResponse, error)
- func (c *HeadscaleClient) SetMachineTags(machineId uint64, tags []string) (*v1.SetTagsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHeadscaleServiceClient ¶
func NewHeadscaleServiceClient() (headscale.HeadscaleServiceClient, *grpc.ClientConn, context.CancelFunc, error)
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)
Click to show internal directories.
Click to hide internal directories.