Documentation
¶
Index ¶
- type APIResponse
- type ApproveDeviceRequest
- type ApproveDeviceResponse
- type DeviceApproval
- type DeviceRegistrationRequest
- type DeviceRegistrationResponse
- type ErrorResponse
- type GetDeviceApprovalResponse
- type GetSecretResponse
- type GetWorkspaceKeyResponse
- type InitializeWorkspaceKeyRequest
- type InitializeWorkspaceKeyResponse
- type ListDeviceApprovalsResponse
- type ListSecretsResponse
- type ListWorkspacesResponse
- type LoginRequest
- type LoginResponse
- type RejectDeviceResponse
- type Secret
- type SecretWithValue
- type SetSecretRequest
- type SetSecretResponse
- type ValidationErrorResponse
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
Success bool `json:"success"`
Message string `json:"message"`
Errors []string `json:"errors,omitempty"`
Data json.RawMessage `json:"data,omitempty"`
}
type ApproveDeviceRequest ¶
type ApproveDeviceRequest struct {
WrappedWorkspaceKey string `json:"wrapped_workspace_key"`
}
type ApproveDeviceResponse ¶
type ApproveDeviceResponse struct {
DeviceApproval DeviceApproval `json:"device_approval"`
}
type DeviceApproval ¶
type DeviceApproval struct {
ID int `json:"id"`
Status string `json:"status"`
InsertedAt string `json:"inserted_at"`
UpdatedAt string `json:"updated_at"`
Device struct {
ID int `json:"id"`
Name string `json:"name"`
PublicKeyEd25519 string `json:"public_key_ed25519"`
PublicKeyX25519 string `json:"public_key_x25519"`
} `json:"device"`
WorkspaceMembership struct {
ID int `json:"id"`
Role string `json:"role"`
Status string `json:"status"`
User struct {
ID int `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
Surname string `json:"surname"`
} `json:"user"`
Workspace struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Organization struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"organization"`
} `json:"workspace"`
} `json:"workspace_membership"`
ApprovedByUser *struct {
ID int `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
Surname string `json:"surname"`
} `json:"approved_by_user"`
}
type ErrorResponse ¶
type GetDeviceApprovalResponse ¶
type GetDeviceApprovalResponse struct {
DeviceApproval DeviceApproval `json:"device_approval"`
}
type GetSecretResponse ¶
type GetSecretResponse struct {
Secret SecretWithValue `json:"secret"`
}
type GetWorkspaceKeyResponse ¶
type InitializeWorkspaceKeyRequest ¶
type InitializeWorkspaceKeyRequest struct {
WrappedWorkspaceKey string `json:"wrapped_workspace_key"`
}
type ListDeviceApprovalsResponse ¶
type ListDeviceApprovalsResponse struct {
DeviceApprovals []DeviceApproval `json:"device_approvals"`
}
type ListSecretsResponse ¶
type ListWorkspacesResponse ¶
type ListWorkspacesResponse struct {
Workspaces []Workspace `json:"workspaces"`
}
type LoginRequest ¶
type LoginResponse ¶
type RejectDeviceResponse ¶
type RejectDeviceResponse struct {
DeviceApproval DeviceApproval `json:"device_approval"`
}
type Secret ¶
type Secret struct {
ID int `json:"id"`
Key string `json:"key"`
Version int `json:"version"`
WorkspaceID int `json:"workspace_id"`
CreatedByDevice struct {
ID int `json:"id"`
DeviceID string `json:"device_id"`
Name string `json:"name"`
} `json:"created_by_device"`
InsertedAt string `json:"inserted_at"`
UpdatedAt string `json:"updated_at"`
}
type SecretWithValue ¶
type SetSecretRequest ¶
type SetSecretResponse ¶
type SetSecretResponse struct {
Secret Secret `json:"secret"`
}
type ValidationErrorResponse ¶
type Workspace ¶
type Workspace struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
CompositeSlug string `json:"composite_slug"`
Description string `json:"description"`
KeyInitialized bool `json:"key_initialized"`
KeyVersion int `json:"key_version"`
Role string `json:"role"`
Organization struct {
ID int `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"organization"`
}
Click to show internal directories.
Click to hide internal directories.