Documentation ¶
Index ¶
- func New(user string, client headscale_service.ClientService) gateway.Tailnet
- type HeadscaleGateway
- func (g *HeadscaleGateway) CreatePreauthKey(ctx context.Context, ephemeral bool) (tailnet.PreauthKey, error)
- func (g *HeadscaleGateway) DeleteDevice(ctx context.Context, id tailnet.DeviceIdentifier) error
- func (g *HeadscaleGateway) DeletePreauthKey(ctx context.Context, key tailnet.PreauthKey) error
- func (g *HeadscaleGateway) EnableExitNode(ctx context.Context, id tailnet.DeviceIdentifier) error
- func (g *HeadscaleGateway) GetDeviceId(ctx context.Context, name tailnet.DeviceName) (tailnet.DeviceIdentifier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(user string, client headscale_service.ClientService) gateway.Tailnet
Types ¶
type HeadscaleGateway ¶
type HeadscaleGateway struct {
// contains filtered or unexported fields
}
func (*HeadscaleGateway) CreatePreauthKey ¶
func (g *HeadscaleGateway) CreatePreauthKey(ctx context.Context, ephemeral bool) (tailnet.PreauthKey, error)
func (*HeadscaleGateway) DeleteDevice ¶
func (g *HeadscaleGateway) DeleteDevice(ctx context.Context, id tailnet.DeviceIdentifier) error
func (*HeadscaleGateway) DeletePreauthKey ¶
func (g *HeadscaleGateway) DeletePreauthKey(ctx context.Context, key tailnet.PreauthKey) error
func (*HeadscaleGateway) EnableExitNode ¶
func (g *HeadscaleGateway) EnableExitNode(ctx context.Context, id tailnet.DeviceIdentifier) error
func (*HeadscaleGateway) GetDeviceId ¶
func (g *HeadscaleGateway) GetDeviceId(ctx context.Context, name tailnet.DeviceName) (tailnet.DeviceIdentifier, error)
Click to show internal directories.
Click to hide internal directories.