client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func NewWithBaseURL

func NewWithBaseURL(baseURL string) *Client

func (*Client) ApproveDevice

func (c *Client) ApproveDevice(approvalID string, wrappedWorkspaceKey string) (*types.DeviceApproval, error)

func (*Client) DeleteSecret

func (c *Client) DeleteSecret(orgSlug, workspaceSlug, secretKey string) error

func (*Client) GetDeviceApproval

func (c *Client) GetDeviceApproval(approvalID string) (*types.DeviceApproval, error)

func (*Client) GetSecret

func (c *Client) GetSecret(orgSlug, workspaceSlug, secretKey string) (*types.SecretWithValue, error)

func (*Client) GetWorkspaceBySlug

func (c *Client) GetWorkspaceBySlug(orgSlug, workspaceSlug string) (*types.Workspace, error)

func (*Client) GetWrappedWorkspaceKey

func (c *Client) GetWrappedWorkspaceKey(orgSlug, workspaceSlug string) (string, error)

func (*Client) InitializeWorkspaceKey

func (c *Client) InitializeWorkspaceKey(orgSlug, workspaceSlug string, wrappedKey []byte) error

func (*Client) ListDeviceApprovals

func (c *Client) ListDeviceApprovals() ([]types.DeviceApproval, error)

func (*Client) ListSecrets

func (c *Client) ListSecrets(orgSlug, workspaceSlug string) ([]types.Secret, error)

func (*Client) ListWorkspaces

func (c *Client) ListWorkspaces() ([]types.Workspace, error)

func (*Client) Login

func (c *Client) Login(email, password string) (*types.LoginResponse, error)

func (*Client) RegisterDevice

func (c *Client) RegisterDevice(
	token, name string,
	signingPublicKey ed25519.PublicKey,
	encryptionPublicKey []byte,
) (*types.DeviceRegistrationResponse, error)

func (*Client) RejectDevice

func (c *Client) RejectDevice(approvalID string) (*types.DeviceApproval, error)

func (*Client) SetSecret

func (c *Client) SetSecret(
	orgSlug, workspaceSlug, key string, encryptedValue, nonce []byte, description string, force bool,
) (*types.Secret, error)

Jump to

Keyboard shortcuts

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