Versions in this module Expand all Collapse all v0 v0.1.0 Feb 13, 2026 Changes in this version + func IsRateLimitError(err error) bool + type Client interface + DeleteProvisionerKey func(ctx context.Context, coderURL, sessionToken, orgName, keyName string) error + EnsureProvisionerKey func(context.Context, EnsureProvisionerKeyRequest) (EnsureProvisionerKeyResponse, error) + EnsureWorkspaceProxy func(context.Context, RegisterWorkspaceProxyRequest) (RegisterWorkspaceProxyResponse, error) + Entitlements func(ctx context.Context, coderURL, sessionToken string) (codersdk.Entitlements, error) + type EnsureOperatorTokenRequest struct + ExistingToken string + OperatorEmail string + OperatorUsername string + PostgresURL string + TokenLifetime time.Duration + TokenName string + type EnsureProvisionerKeyRequest struct + CoderURL string + KeyName string + OrganizationName string + SessionToken string + Tags map[string]string + type EnsureProvisionerKeyResponse struct + Key string + KeyID uuid.UUID + KeyName string + OrganizationID uuid.UUID + type OperatorAccessProvisioner interface + EnsureOperatorToken func(context.Context, EnsureOperatorTokenRequest) (string, error) + RevokeOperatorToken func(context.Context, RevokeOperatorTokenRequest) error + type PostgresOperatorAccessProvisioner struct + func NewPostgresOperatorAccessProvisioner() *PostgresOperatorAccessProvisioner + func (p *PostgresOperatorAccessProvisioner) EnsureOperatorToken(ctx context.Context, req EnsureOperatorTokenRequest) (string, error) + func (p *PostgresOperatorAccessProvisioner) RevokeOperatorToken(ctx context.Context, req RevokeOperatorTokenRequest) error + type RegisterWorkspaceProxyRequest struct + CoderURL string + DisplayName string + Icon string + ProxyName string + SessionToken string + type RegisterWorkspaceProxyResponse struct + ProxyName string + ProxyToken string + type RevokeOperatorTokenRequest struct + OperatorUsername string + PostgresURL string + TokenName string + type SDKClient struct + func NewSDKClient() *SDKClient + func (c *SDKClient) DeleteProvisionerKey(ctx context.Context, coderURL, sessionToken, orgName, keyName string) error + func (c *SDKClient) EnsureProvisionerKey(ctx context.Context, req EnsureProvisionerKeyRequest) (EnsureProvisionerKeyResponse, error) + func (c *SDKClient) EnsureWorkspaceProxy(ctx context.Context, req RegisterWorkspaceProxyRequest) (RegisterWorkspaceProxyResponse, error) + func (c *SDKClient) Entitlements(ctx context.Context, coderURL, sessionToken string) (codersdk.Entitlements, error)