tailscale

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServiceRequest

type CreateServiceRequest struct {
	Name        string            `json:"name,omitempty"`
	Addrs       []netip.Addr      `json:"addrs,omitempty"`
	Comment     string            `json:"comment,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
	Ports       []string          `json:"ports,omitempty"`
	Tags        []string          `json:"tags,omitempty"`
}

type ListServicesResponse

type ListServicesResponse struct {
	VIPServices []ServiceInfo `json:"vipServices"`
}

type ServiceClient

type ServiceClient struct {
	// contains filtered or unexported fields
}

func NewServiceClient

func NewServiceClient(clientID, clientSecret, tailnet string) *ServiceClient

func (*ServiceClient) CreateService

func (c *ServiceClient) CreateService(ctx context.Context, serviceName string, req CreateServiceRequest) (*ServiceInfo, error)

func (*ServiceClient) DeleteService

func (c *ServiceClient) DeleteService(ctx context.Context, serviceName string) error

func (*ServiceClient) GetService

func (c *ServiceClient) GetService(ctx context.Context, serviceName string) (*ServiceInfo, error)

func (*ServiceClient) ListServices

func (c *ServiceClient) ListServices(ctx context.Context) ([]ServiceInfo, error)

type ServiceInfo

type ServiceInfo struct {
	Name        string            `json:"name,omitempty"`
	Addrs       []netip.Addr      `json:"addrs,omitempty"`
	Comment     string            `json:"comment,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
	Ports       []string          `json:"ports,omitempty"`
	Tags        []string          `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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