mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add tags to provisioner keys api (#13989)
This commit is contained in:
@@ -274,15 +274,17 @@ func (c *Client) ServeProvisionerDaemon(ctx context.Context, req ServeProvisione
|
||||
}
|
||||
|
||||
type ProvisionerKey struct {
|
||||
ID uuid.UUID `json:"id" table:"-" format:"uuid"`
|
||||
CreatedAt time.Time `json:"created_at" table:"created_at" format:"date-time"`
|
||||
OrganizationID uuid.UUID `json:"organization" table:"organization_id" format:"uuid"`
|
||||
Name string `json:"name" table:"name,default_sort"`
|
||||
ID uuid.UUID `json:"id" table:"-" format:"uuid"`
|
||||
CreatedAt time.Time `json:"created_at" table:"created_at" format:"date-time"`
|
||||
OrganizationID uuid.UUID `json:"organization" table:"organization_id" format:"uuid"`
|
||||
Name string `json:"name" table:"name,default_sort"`
|
||||
Tags map[string]string `json:"tags" table:"tags"`
|
||||
// HashedSecret - never include the access token in the API response
|
||||
}
|
||||
|
||||
type CreateProvisionerKeyRequest struct {
|
||||
Name string `json:"name"`
|
||||
Name string `json:"name"`
|
||||
Tags map[string]string `json:"tags"`
|
||||
}
|
||||
|
||||
type CreateProvisionerKeyResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user