Documentation
¶
Index ¶
- type Client
- func (c *Client) ApproveDevice(approvalID string, wrappedWorkspaceKey string) (*types.DeviceApproval, error)
- func (c *Client) DeleteSecret(orgSlug, workspaceSlug, secretKey string) error
- func (c *Client) GetDeviceApproval(approvalID string) (*types.DeviceApproval, error)
- func (c *Client) GetSecret(orgSlug, workspaceSlug, secretKey string) (*types.SecretWithValue, error)
- func (c *Client) GetWorkspaceBySlug(orgSlug, workspaceSlug string) (*types.Workspace, error)
- func (c *Client) GetWrappedWorkspaceKey(orgSlug, workspaceSlug string) (string, error)
- func (c *Client) InitializeWorkspaceKey(orgSlug, workspaceSlug string, wrappedKey []byte) error
- func (c *Client) ListDeviceApprovals() ([]types.DeviceApproval, error)
- func (c *Client) ListSecrets(orgSlug, workspaceSlug string) ([]types.Secret, error)
- func (c *Client) ListWorkspaces() ([]types.Workspace, error)
- func (c *Client) Login(email, password string) (*types.LoginResponse, error)
- func (c *Client) RegisterDevice(token, name string, signingPublicKey ed25519.PublicKey, ...) (*types.DeviceRegistrationResponse, error)
- func (c *Client) RejectDevice(approvalID string) (*types.DeviceApproval, error)
- func (c *Client) SetSecret(orgSlug, workspaceSlug, key string, encryptedValue, nonce []byte, ...) (*types.Secret, error)
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 NewWithBaseURL ¶
func (*Client) ApproveDevice ¶
func (*Client) DeleteSecret ¶
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 (*Client) GetWrappedWorkspaceKey ¶
func (*Client) InitializeWorkspaceKey ¶
func (*Client) ListDeviceApprovals ¶
func (c *Client) ListDeviceApprovals() ([]types.DeviceApproval, error)
func (*Client) ListSecrets ¶
func (*Client) RegisterDevice ¶
func (*Client) RejectDevice ¶
func (c *Client) RejectDevice(approvalID string) (*types.DeviceApproval, error)
Click to show internal directories.
Click to hide internal directories.