Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPrincipal ¶
type AuthPrincipal struct { // The API key used to authenticate the request. Authenticated bool }
type CreateKeyBody ¶
type CreateKeyBody struct { // Custom attributes (optional) Attributes interface{} `json:"attributes,omitempty"` // Organization ID (optional) OrganizationID *string `json:"organizationId,omitempty"` // Project ID (optional) ProjectID *string `json:"projectId,omitempty"` // User ID (optional) UserID *string `json:"userId,omitempty"` }
CreateKeyBody create key body
swagger:model CreateKeyBody
func (*CreateKeyBody) ContextValidate ¶
ContextValidate validates this create key body based on context it is used
func (*CreateKeyBody) MarshalBinary ¶
func (m *CreateKeyBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateKeyBody) UnmarshalBinary ¶
func (m *CreateKeyBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateKeyResult ¶
type CreateKeyResult struct { // Database record id ID string `json:"id,omitempty"` // Unmasked API key Key string `json:"key,omitempty"` }
CreateKeyResult create key result
swagger:model CreateKeyResult
func (*CreateKeyResult) ContextValidate ¶
ContextValidate validates this create key result based on context it is used
func (*CreateKeyResult) MarshalBinary ¶
func (m *CreateKeyResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateKeyResult) UnmarshalBinary ¶
func (m *CreateKeyResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetKeysResult ¶
type GetKeysResult struct { // Custom attributes (optional) Attributes interface{} `json:"attributes,omitempty"` // Database record id ID string `json:"id,omitempty"` // Masked API key (asterisks in the middle) Key string `json:"key,omitempty"` // Organization ID (optional) OrganizationID *string `json:"organizationId,omitempty"` // Project ID (optional) ProjectID *string `json:"projectId,omitempty"` // User ID (optional) UserID *string `json:"userId,omitempty"` }
GetKeysResult get keys result
swagger:model GetKeysResult
func (*GetKeysResult) ContextValidate ¶
ContextValidate validates this get keys result based on context it is used
func (*GetKeysResult) MarshalBinary ¶
func (m *GetKeysResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetKeysResult) UnmarshalBinary ¶
func (m *GetKeysResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Key ¶
type Key struct { gorm.Model ID string `gorm:"primaryKey"` Key string OrganizationID *string ProjectID *string UserID *string Attributes interface{} `sql:"type:jsonb; not null;" gorm:"type:jsonb; default:'{}'; not null"` CreatedAt time.Time // Automatically managed by GORM for creation time UpdatedAt time.Time // Automatically managed by GORM for update time }