Documentation
¶
Index ¶
- type CreateServiceRequest
- type ListServicesResponse
- type ServiceClient
- func (c *ServiceClient) CreateService(ctx context.Context, serviceName string, req CreateServiceRequest) (*ServiceInfo, error)
- func (c *ServiceClient) DeleteService(ctx context.Context, serviceName string) error
- func (c *ServiceClient) GetService(ctx context.Context, serviceName string) (*ServiceInfo, error)
- func (c *ServiceClient) ListServices(ctx context.Context) ([]ServiceInfo, error)
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateServiceRequest ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.