feat: add provisioner key cli commands (#13875)

This commit is contained in:
Garrett Delfosse
2024-07-18 14:44:20 -04:00
committed by GitHub
parent 91cbe679c0
commit f975701b34
11 changed files with 361 additions and 6 deletions

View File

@ -267,10 +267,10 @@ func (c *Client) ServeProvisionerDaemon(ctx context.Context, req ServeProvisione
}
type ProvisionerKey struct {
ID uuid.UUID `json:"id" format:"uuid"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
OrganizationID uuid.UUID `json:"organization" format:"uuid"`
Name string `json:"name"`
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"`
// HashedSecret - never include the access token in the API response
}