control

package
v0.1.0-rc.41 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Overview

Package controlclient calls the tnl control API.

responses cannot exceed 64 KiB. a successful response other than HTTP 204 must contain one non-null JSON value that matches the generated schema. most requests time out after 20 seconds; certificate requests time out after 150 seconds. requests do not follow redirects. network and read failures wrap ErrUnavailable, but caller cancellation, invalid responses, and oversized responses do not. known server problem codes take precedence over status.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthenticated      = failure.Wrap("authenticate control request", failure.Authentication, errors.New("controlclient: unauthenticated"))
	ErrNotFound             = failure.Wrap("read control resource", failure.ServerResourceNotFound, errors.New("controlclient: not found"))
	ErrNameUnavailable      = failure.Wrap("select public URL hostname", failure.ServerConflict, errors.New("controlclient: public URL hostname unavailable"))
	ErrStatusConflict       = failure.Wrap("update control state", failure.ServerConflict, errors.New("controlclient: status conflict"))
	ErrProjectManaged       = failure.Wrap("change project-managed resource", failure.ServerConflict, fmt.Errorf("resource is managed by project configuration: %w", ErrStatusConflict))
	ErrCertificateStatus    = failure.Wrap("issue public URL certificate", failure.CertificateUnavailable, errors.New("controlclient: certificate status conflict"))
	ErrDNSProofPending      = failure.Wrap("configure domain DNS", failure.DNSPending, errors.New("controlclient: DNS setup pending"))
	ErrRateLimited          = failure.Wrap("request control API", failure.ServerRateLimited, errors.New("controlclient: rate limited"))
	ErrUnavailable          = failure.Wrap("request control API", failure.ServerUnavailable, errors.New("controlclient: temporarily unavailable"))
	ErrUnsupported          = failure.Wrap("request control API", failure.ServerResponseInvalid, errors.New("controlclient: unsupported"))
	ErrGuestTrialExhausted  = failure.Wrap("publish guest demo", failure.GuestTrialExhausted, errors.New("controlclient: guest demo trial exhausted"))
	ErrGuestDemoOnly        = failure.Wrap("publish guest demo", failure.GuestDemoOnly, errors.New("controlclient: guest demo only"))
	ErrGuestIPChanged       = failure.Wrap("publish guest demo", failure.GuestIPChanged, errors.New("controlclient: guest demo source IP changed"))
	ErrGuestIssuanceLimited = failure.Wrap("create guest demo", failure.GuestIssuanceLimited, errors.New("controlclient: guest demo issuance limited"))
	ErrMemberHostnameDepth  = failure.Wrap("select public URL hostname", failure.MemberHostnameDepthExceeded, errors.New("managed-domain member hostname depth exceeded"))
)

Functions

func IngressTransportTLSConfig

func IngressTransportTLSConfig(trust controlv1.IngressTransportTrust) (*tls.Config, error)

the control HTTPS response authenticates this private transport trust anchor. normal chain/hostname verification stays enabled; the extra pin binds the peer key and URI to one ingress process lease, for either QUIC or TLS/TCP.

Types

type Client

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

func New

func New(server string, httpClient *http.Client, access credentials.AccessToken) (*Client, error)

func NewExternallyAuthenticated

func NewExternallyAuthenticated(server string, httpClient *http.Client) (*Client, error)

NewExternallyAuthenticated creates a client whose HTTP transport adds authorization.

func (*Client) AcceptServiceInvitation

func (c *Client) AcceptServiceInvitation(ctx context.Context, secret string) (controlv1.ServiceGrant, error)

func (*Client) AcceptVisitorInvitation

func (c *Client) AcceptVisitorInvitation(ctx context.Context, secret string) (controlv1.VisitorGrant, error)

func (*Client) AcknowledgePublisherGroupConfiguration

func (c *Client) AcknowledgePublisherGroupConfiguration(ctx context.Context, token string, body controlv1.PublisherGroupAcknowledgement) error

func (*Client) AddPreviewPublicURL

func (c *Client) AddPreviewPublicURL(ctx context.Context, id, publicURLID string) (controlv1.Preview, error)

func (*Client) AdminDrainRelay

func (c *Client) AdminDrainRelay(ctx context.Context, relayID string, body controlv1.AdminDrainRelayRequest) (controlv1.AdminRelayLease, error)

func (*Client) AdminListMaintenanceControls

func (c *Client) AdminListMaintenanceControls(ctx context.Context) ([]controlv1.MaintenanceControl, error)

func (*Client) AdminListRelays

func (c *Client) AdminListRelays(ctx context.Context) (controlv1.AdminRelayPage, error)

func (*Client) AdminServerStatus

func (c *Client) AdminServerStatus(ctx context.Context) (controlv1.AdminServerStatus, error)

func (*Client) AdminSetMaintenanceControl

func (c *Client) AdminSetMaintenanceControl(ctx context.Context, name controlv1.MaintenanceControlName, allowed bool) (controlv1.MaintenanceControl, error)

func (*Client) AllocateGuestDemoNumber

func (c *Client) AllocateGuestDemoNumber(ctx context.Context) (controlv1.GuestDemoNumber, error)

func (*Client) AllocatePublisherPublicURL

func (c *Client) AllocatePublisherPublicURL(ctx context.Context, token string, b controlv1.AllocateEphemeralPublicURLRequest) (controlv1.PublicURL, error)

func (*Client) AppendFeedbackEvent

func (c *Client) AppendFeedbackEvent(ctx context.Context, id, key string, body controlv1.AppendFeedbackEventRequest) (controlv1.FeedbackEvent, error)

func (*Client) AppendReviewerFeedbackEvent

func (c *Client) AppendReviewerFeedbackEvent(ctx context.Context, runID, id, key string, body controlv1.AppendReviewerFeedbackEventRequest, token credentials.PublishRunToken) (controlv1.FeedbackEvent, error)

func (*Client) CheckBrowserAccess

func (c *Client) CheckBrowserAccess(ctx context.Context, runID string, version uint64, secret string, token credentials.PublishRunToken) (controlv1.BrowserAccessResponse, error)

func (*Client) CheckServiceBrowserSession

func (c *Client) CheckServiceBrowserSession(ctx context.Context, service, run string, token credentials.ServiceRunToken, input controlv1.ServiceBrowserRequest) (controlv1.BrowserAccessResponse, error)

func (*Client) CheckWorkloadService

func (c *Client) CheckWorkloadService(ctx context.Context, credential, service string) (controlv1.WorkloadServiceAuthorization, error)

func (*Client) ClientIP

func (c *Client) ClientIP(ctx context.Context) (controlv1.ClientIPResponse, error)

func (*Client) ClosePublishRun

func (c *Client) ClosePublishRun(ctx context.Context, publishRunID string, token credentials.PublishRunToken) error

func (*Client) CloseServiceRun

func (c *Client) CloseServiceRun(ctx context.Context, serviceID, runID string, token credentials.ServiceRunToken) error

func (*Client) ConfigureService

func (c *Client) ConfigureService(ctx context.Context, id string, metadata controlv1.ServiceMetadata) (controlv1.Service, error)

func (*Client) ControlURL

func (c *Client) ControlURL() string

func (*Client) CreateCertificateIssuance

func (c *Client) CreateCertificateIssuance(ctx context.Context, publishRunID string, publishRunNumber uint64, token credentials.PublishRunToken, csrDER []byte, idempotencyKey string) (controlv1.CertificateIssuance, error)

func (*Client) CreateFeedbackReport

func (*Client) CreateGuestDemo

func (c *Client) CreateGuestDemo(ctx context.Context) (controlv1.GuestDemoSession, error)

func (*Client) CreateIdentityVisitorGrant

func (c *Client) CreateIdentityVisitorGrant(ctx context.Context, id, key string, body controlv1.CreateIdentityVisitorGrantRequest) (controlv1.VisitorGrant, error)

func (*Client) CreatePreview

func (c *Client) CreatePreview(ctx context.Context, teamID, key string) (controlv1.Preview, error)

func (*Client) CreatePublicURL

func (c *Client) CreatePublicURL(ctx context.Context, body controlv1.CreatePublicURLRequest, idempotencyKey string) (controlv1.PublicURL, error)

func (*Client) CreatePublishRun

func (c *Client) CreatePublishRun(ctx context.Context, publicURLID, idempotencyKey string) (controlv1.PublishRunSetup, error)

func (*Client) CreatePublishRunPreview

func (c *Client) CreatePublishRunPreview(ctx context.Context, runID string, version uint64, token credentials.PublishRunToken) (controlv1.Preview, error)

func (*Client) CreatePublisherGroupEnrollment

func (c *Client) CreatePublisherGroupEnrollment(ctx context.Context, project, group string, body controlv1.CreatePublisherGroupEnrollmentRequest) (controlv1.PublisherGroupEnrollment, error)

func (*Client) CreatePublisherRun

func (c *Client) CreatePublisherRun(ctx context.Context, id, retry, token, proof string) (controlv1.PublishRunSetup, error)

func (*Client) CreatePublisherRunWithTraffic

func (c *Client) CreatePublisherRunWithTraffic(ctx context.Context, id, retry, token, proof string, selection *trafficlimits.Selection) (controlv1.PublishRunSetup, error)

CreatePublisherRunWithTraffic preserves the publisher proof boundary while carrying an optional selection through the typed control API request.

func (*Client) CreateService

func (c *Client) CreateService(ctx context.Context, team, name, key string, metadata ...controlv1.ServiceMetadata) (controlv1.Service, error)

a person's control session may create the saved service and issue an exact enrollment. the resulting publisher uses only its scoped grant for runs.

func (*Client) CreateServiceAt

func (c *Client) CreateServiceAt(ctx context.Context, team, name, key string, placement *controlv1.ServicePlacement, metadata ...controlv1.ServiceMetadata) (controlv1.Service, error)

func (*Client) CreateServiceCertificateIssuance

func (c *Client) CreateServiceCertificateIssuance(ctx context.Context, service, run string, number int64, token credentials.ServiceRunToken, csr []byte, key string) (controlv1.ServiceCertificateIssuance, error)

func (*Client) CreateServiceHTTPGrant

func (c *Client) CreateServiceHTTPGrant(ctx context.Context, service string, input controlv1.CreateServiceHTTPGrantRequest) (controlv1.ServiceHTTPGrant, error)

func (*Client) CreateShare

func (c *Client) CreateShare(ctx context.Context, previewID, key string, body controlv1.CreateShareRequest) (controlv1.Share, error)

func (*Client) CreateTeamVisitorGrant

func (c *Client) CreateTeamVisitorGrant(ctx context.Context, id, key string, body controlv1.CreateTeamVisitorGrantRequest) (controlv1.VisitorGrant, error)

func (*Client) CreateURLShare

func (c *Client) CreateURLShare(ctx context.Context, key string, body controlv1.CreateShareRequest) (controlv1.Share, error)

func (*Client) CreateVisitorIngressAssignment

func (c *Client) CreateVisitorIngressAssignment(ctx context.Context, serviceID, deviceID, excludeIngressID, key string) (controlv1.ConnectorSessionSetup, error)

func (*Client) CreateVisitorIngressAssignments

func (c *Client) CreateVisitorIngressAssignments(ctx context.Context, serviceID, deviceID, key string) ([]controlv1.ConnectorSessionSetup, error)

func (*Client) CreateVisitorInvitation

func (c *Client) CreateVisitorInvitation(ctx context.Context, id, key string, body controlv1.CreateVisitorInvitationRequest) (controlv1.VisitorInvitation, error)

func (*Client) CreateWorkloadIngressAssignmentSet

func (c *Client) CreateWorkloadIngressAssignmentSet(ctx context.Context, credential, service, key string, count int, exclude string) (controlv1.WorkloadIngressAssignments, error)

func (*Client) CreateWorkloadIngressAssignments

func (c *Client) CreateWorkloadIngressAssignments(ctx context.Context, credential, service, key string) (controlv1.WorkloadIngressAssignments, error)

func (*Client) DeletePublicURL

func (c *Client) DeletePublicURL(ctx context.Context, publicURLID string) error

func (*Client) DeletePublisherPublicURL

func (c *Client) DeletePublisherPublicURL(ctx context.Context, token, id string) error

func (*Client) DeleteService

func (c *Client) DeleteService(ctx context.Context, id string) error

func (*Client) Discovery

func (c *Client) Discovery(ctx context.Context) (controlv1.ControlDiscovery, error)

func (*Client) EnableShareAccess

func (c *Client) EnableShareAccess(ctx context.Context, runID string, version uint64, previewID string, token credentials.PublishRunToken) error

func (*Client) EnrollGuestPublisher

func (c *Client) EnrollGuestPublisher(ctx context.Context, id string, public ed25519.PublicKey) (controlv1.GuestPublisherIdentity, error)

func (*Client) EnrollVisitorDevice

func (c *Client) EnrollVisitorDevice(ctx context.Context, key ed25519.PublicKey) (controlv1.VisitorDevice, error)

func (*Client) GetCertificateIssuance

func (c *Client) GetCertificateIssuance(ctx context.Context, issuanceID string, token credentials.PublishRunToken) (controlv1.CertificateIssuance, error)

func (*Client) GetFeedbackThread

func (c *Client) GetFeedbackThread(ctx context.Context, id string) (controlv1.FeedbackThread, error)

func (*Client) GetLocalProjectService

func (c *Client) GetLocalProjectService(ctx context.Context, project, service string, params controlv1.GetLocalProjectServiceParams) (controlv1.LocalProjectService, error)

func (*Client) GetPreview

func (c *Client) GetPreview(ctx context.Context, id string) (controlv1.Preview, error)

func (*Client) GetProjectConfiguration

func (c *Client) GetProjectConfiguration(ctx context.Context, team, project string) (controlv1.AppliedProjectConfiguration, error)

func (*Client) GetProjectPublicMetadata

func (c *Client) GetProjectPublicMetadata(ctx context.Context, team, project string) (controlv1.ProjectPublicMetadata, error)

func (*Client) GetProjectService

func (c *Client) GetProjectService(ctx context.Context, project, service string, params controlv1.GetProjectServiceParams) (controlv1.Service, error)

func (*Client) GetPublicURL

func (c *Client) GetPublicURL(ctx context.Context, publicURLID string) (controlv1.PublicURL, error)

func (*Client) GetPublicURLByHostname

func (c *Client) GetPublicURLByHostname(ctx context.Context, teamID, hostname string) (controlv1.PublicURL, error)

GetPublicURLByHostname uses one filtered request instead of paging through a team's public URLs. reject unfiltered responses from servers ignoring the filter.

func (*Client) GetPublishRunShareState

func (c *Client) GetPublishRunShareState(ctx context.Context, runID string, version uint64, token credentials.PublishRunToken) (controlv1.PublishRunShareState, error)

func (*Client) GetPublisherGroupAssignments

func (c *Client) GetPublisherGroupAssignments(ctx context.Context, token string) (controlv1.PublisherGroupAssignments, error)

func (*Client) GetPublisherService

func (c *Client) GetPublisherService(ctx context.Context, publisherAccess string) (controlv1.Service, error)

func (*Client) GetReviewerFeedbackThread

func (c *Client) GetReviewerFeedbackThread(ctx context.Context, runID, id string, body controlv1.ReviewerFeedbackReadRequest, token credentials.PublishRunToken) (controlv1.FeedbackThread, error)

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, id string) (controlv1.Service, error)

func (*Client) GetServiceCertificateIssuance

func (c *Client) GetServiceCertificateIssuance(ctx context.Context, service, run, issuance string, token credentials.ServiceRunToken) (controlv1.ServiceCertificateIssuance, error)

func (*Client) GetShare

func (c *Client) GetShare(ctx context.Context, id string) (controlv1.Share, error)

func (*Client) GetVisitorIngressTransportTrust

func (c *Client) GetVisitorIngressTransportTrust(ctx context.Context, sessionID string) (controlv1.IngressTransportTrust, error)

func (*Client) GetWorkloadIngressTransportTrust

func (c *Client) GetWorkloadIngressTransportTrust(ctx context.Context, credential, session string) (controlv1.IngressTransportTrust, error)

func (*Client) HeartbeatPublishRun

func (c *Client) HeartbeatPublishRun(ctx context.Context, publishRunID string, publishRunNumber uint64, token credentials.PublishRunToken) (controlv1.PublishRunHeartbeat, error)

func (*Client) HeartbeatServiceRun

func (c *Client) HeartbeatServiceRun(ctx context.Context, serviceID, runID string, token credentials.ServiceRunToken) (controlv1.ServiceRunState, error)

func (*Client) HeartbeatServiceRunHealth

func (c *Client) HeartbeatServiceRunHealth(ctx context.Context, serviceID, runID string, token credentials.ServiceRunToken, health controlv1.ServiceRunHeartbeat) (controlv1.ServiceRunState, error)

func (*Client) InviteServiceVisitor

func (c *Client) InviteServiceVisitor(ctx context.Context, service, key string, body controlv1.CreateServiceInvitationRequest) (controlv1.ServiceInvitation, error)

func (*Client) IssueServiceClientCertificate

func (c *Client) IssueServiceClientCertificate(ctx context.Context, service, device string, csr []byte) (controlv1.ServiceClientCertificate, error)

func (*Client) IssueWorkloadServiceClientCertificate

func (c *Client) IssueWorkloadServiceClientCertificate(ctx context.Context, credential, service string, csr []byte) (controlv1.ServiceClientCertificate, error)

func (*Client) ListAvailablePublicURLs

func (c *Client) ListAvailablePublicURLs(ctx context.Context, teamID, cursor string) (controlv1.AvailablePublicURLPage, error)

func (*Client) ListAvailableServices

func (c *Client) ListAvailableServices(ctx context.Context) ([]controlv1.Service, error)

ListAvailableServices returns only services the signed-in identity may visit. publisher inventory and a friendly name are not visitor grants.

func (*Client) ListFeedbackEvents

func (c *Client) ListFeedbackEvents(ctx context.Context, teamID string, after uint64) (controlv1.FeedbackEventPage, error)

func (*Client) ListFeedbackThreadEvents

func (c *Client) ListFeedbackThreadEvents(ctx context.Context, id string, after uint64) (controlv1.FeedbackEventPage, error)

func (*Client) ListFeedbackThreads

func (c *Client) ListFeedbackThreads(ctx context.Context, teamID string) ([]controlv1.FeedbackThreadSummary, uint64, error)

func (*Client) ListPublicURLs

func (c *Client) ListPublicURLs(ctx context.Context, teamID string) ([]controlv1.PublicURL, error)

func (*Client) ListPublisherIdentities

func (c *Client) ListPublisherIdentities(ctx context.Context, team, after string) (controlv1.PublisherIdentityPage, error)

func (*Client) ListReviewerFeedbackEvents

func (c *Client) ListReviewerFeedbackEvents(ctx context.Context, runID, id string, body controlv1.ReviewerFeedbackReadRequest, token credentials.PublishRunToken) (controlv1.FeedbackEventPage, error)

func (*Client) ListServiceAudit

func (c *Client) ListServiceAudit(ctx context.Context, team string, params controlv1.ListServiceAuditParams) (controlv1.ServiceAuditPage, error)

ListServiceAudit reads one manager-authorized page using the person's session. callers retain filters and advance the returned cursor when reading more pages.

func (*Client) ListServiceGrants

func (c *Client) ListServiceGrants(ctx context.Context, service string) ([]controlv1.ServiceGrant, error)

func (*Client) ListServiceHTTPGrants

func (c *Client) ListServiceHTTPGrants(ctx context.Context, service string) ([]controlv1.ServiceHTTPGrantSummary, error)

func (*Client) ListServiceInvitations

func (c *Client) ListServiceInvitations(ctx context.Context, service string) ([]controlv1.ServiceInvitation, error)

func (*Client) ListServices

func (c *Client) ListServices(ctx context.Context, team string) ([]controlv1.Service, error)

func (*Client) ListShares

func (c *Client) ListShares(ctx context.Context, previewID string) ([]controlv1.Share, error)

func (*Client) ListTeamShares

func (c *Client) ListTeamShares(ctx context.Context, teamID string) ([]controlv1.Share, error)

func (*Client) ListVisitorGrants

func (c *Client) ListVisitorGrants(ctx context.Context, id string) ([]controlv1.VisitorGrant, error)

func (*Client) ListVisitorInvitations

func (c *Client) ListVisitorInvitations(ctx context.Context, id string) ([]controlv1.VisitorInvitation, error)

func (*Client) ListWorkloadServices

func (c *Client) ListWorkloadServices(ctx context.Context, credential string) (controlv1.WorkloadServices, error)

func (*Client) MarkPublishRunCertificateInstalled

func (c *Client) MarkPublishRunCertificateInstalled(ctx context.Context, publishRunID string, publishRunNumber uint64, issuanceID string, notAfter time.Time, token credentials.PublishRunToken) error

func (*Client) MarkPublishRunReady

func (c *Client) MarkPublishRunReady(ctx context.Context, publishRunID string, publishRunNumber uint64, token credentials.PublishRunToken) error

func (*Client) MarkServiceCertificateInstalled

func (c *Client) MarkServiceCertificateInstalled(ctx context.Context, service, run string, number int64, issuance string, expires time.Time, token credentials.ServiceRunToken) error

func (*Client) PrepareServiceRun

func (c *Client) PrepareServiceRun(ctx context.Context, serviceID, key, publisherAccess string, declared controlv1.ServiceRunDeclaration) (controlv1.ServiceRunPreparation, error)

func (*Client) PublisherPublicURL

func (c *Client) PublisherPublicURL(ctx context.Context, token string) (controlv1.PublicURL, error)

func (*Client) RealizeLocalProjectService

func (c *Client) RealizeLocalProjectService(ctx context.Context, project, service string, body controlv1.RealizeLocalProjectServiceRequest) (controlv1.LocalProjectService, error)

func (*Client) RedeemBrowserHandoff

func (c *Client) RedeemBrowserHandoff(ctx context.Context, runID string, version uint64, ticket string, token credentials.PublishRunToken) (controlv1.BrowserHandoffResponse, error)

func (*Client) RedeemPublishRunShare

func (c *Client) RedeemPublishRunShare(ctx context.Context, runID string, body controlv1.RedeemShareRequest, token credentials.PublishRunToken) (controlv1.ShareRedemption, error)

func (*Client) RedeemPublisherGroupEnrollment

func (c *Client) RedeemPublisherGroupEnrollment(ctx context.Context, key string, public ed25519.PublicKey) (controlv1.PublisherGroupMember, error)

func (*Client) RedeemServiceBrowserHandoff

func (c *Client) RedeemServiceBrowserHandoff(ctx context.Context, service, run string, token credentials.ServiceRunToken, input controlv1.ServiceBrowserRequest) (controlv1.BrowserHandoffResponse, error)

func (*Client) ReleaseVisitorIngressAssignment

func (c *Client) ReleaseVisitorIngressAssignment(ctx context.Context, sessionID string) error

func (*Client) ReleaseWorkloadIngressAssignment

func (c *Client) ReleaseWorkloadIngressAssignment(ctx context.Context, credential, session string) error

func (*Client) RenamePublisherGroup

func (c *Client) RenamePublisherGroup(ctx context.Context, project, group string, body controlv1.RenamePublisherGroupRequest) (controlv1.AppliedProjectConfiguration, error)

func (*Client) RenamePublisherNamespace

func (c *Client) RenamePublisherNamespace(ctx context.Context, project, group string, body controlv1.RenamePublisherNamespaceRequest) (controlv1.AppliedProjectConfiguration, error)

func (*Client) ReplaceVisitorAccess

func (c *Client) ReplaceVisitorAccess(ctx context.Context, id string, body controlv1.ReplaceVisitorAccessRequest) (controlv1.PublicURL, error)

func (*Client) ReportPublisherServiceObservations

func (c *Client) ReportPublisherServiceObservations(ctx context.Context, runID string, number uint64, token credentials.PublishRunToken, batch serviceaudit.Batch) error

func (*Client) RevokeBrowserAccess

func (c *Client) RevokeBrowserAccess(ctx context.Context, runID string, version uint64, secret string, token credentials.PublishRunToken) error

func (*Client) RevokePublisherGrant

func (c *Client) RevokePublisherGrant(ctx context.Context, team, id, grant string) error

func (*Client) RevokePublisherGroupMember

func (c *Client) RevokePublisherGroupMember(ctx context.Context, team, project, group, publisher string) error

func (*Client) RevokePublisherIdentity

func (c *Client) RevokePublisherIdentity(ctx context.Context, team, id string) error

func (*Client) RevokeServiceBrowserSession

func (c *Client) RevokeServiceBrowserSession(ctx context.Context, service, run string, token credentials.ServiceRunToken, input controlv1.ServiceBrowserRequest) error

func (*Client) RevokeServiceGrant

func (c *Client) RevokeServiceGrant(ctx context.Context, service, id string) error

func (*Client) RevokeServiceHTTPGrant

func (c *Client) RevokeServiceHTTPGrant(ctx context.Context, service, id string) error

func (*Client) RevokeServiceInvitation

func (c *Client) RevokeServiceInvitation(ctx context.Context, service, id string) error

func (*Client) RevokeShare

func (c *Client) RevokeShare(ctx context.Context, id string) (controlv1.Share, error)

func (*Client) RevokeVisitorDevice

func (c *Client) RevokeVisitorDevice(ctx context.Context, id string) error

func (*Client) RevokeVisitorGrant

func (c *Client) RevokeVisitorGrant(ctx context.Context, id, grantID string) error

func (*Client) RevokeVisitorInvitation

func (c *Client) RevokeVisitorInvitation(ctx context.Context, id, inviteID string) error

func (*Client) SelectServiceRun

func (c *Client) SelectServiceRun(ctx context.Context, serviceID, deviceID string) (controlv1.ServiceSelection, error)

func (*Client) SelectWorkloadServiceRun

func (c *Client) SelectWorkloadServiceRun(ctx context.Context, credential, service string) (controlv1.ServiceSelection, error)

func (*Client) SetPreviewTeamAccess

func (c *Client) SetPreviewTeamAccess(ctx context.Context, id string, enabled bool) (controlv1.Preview, error)

func (*Client) StartServiceRun

func (c *Client) StartServiceRun(ctx context.Context, service, run, access string, number int64) (controlv1.ServiceRunSetup, error)

func (*Client) UpdatePublicURL

func (c *Client) UpdatePublicURL(ctx context.Context, publicURLID string, body controlv1.UpdatePublicURLRequest) (controlv1.PublicURL, error)

type ProblemError

type ProblemError struct {
	Status  int
	Problem controlv1.Problem
}

func (*ProblemError) Error

func (e *ProblemError) Error() string

type RateLimitError

type RateLimitError struct{ RetryAfter time.Duration }

func (*RateLimitError) Error

func (e *RateLimitError) Error() string

func (*RateLimitError) Unwrap

func (e *RateLimitError) Unwrap() error

Jump to

Keyboard shortcuts

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