Documentation ¶
Overview ¶
Package models implements the agent models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { AccountID int64 `json:"account_id" validate:"required,gt=0"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` Email string `json:"email" validate:"required,email"` }
Account is the account.
type Action ¶
type Action struct { ActionID string `json:"action_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` ResourceID string `json:"resource_id" validate:"required,isuuid"` Name string `json:"name" validate:"required"` }
Action is the entity representing the user or role
type Domain ¶
type Domain struct { DomainID string `json:"domain_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` ProjectID string `json:"project_id" validate:"required,isuuid"` Name string `json:"name" validate:"required"` }
Domain is the entity representing the user or role
type Identity ¶
type Identity struct { IdentityID string `json:"identity_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` TenantID string `json:"tenant_id" validate:"required,isuuid"` Kind string `json:"identity_type" validate:"required,oneof='user' 'role'"` Name string `json:"name" validate:"required"` }
Identity is the entity representing the user or role
type Project ¶
type Project struct { ProjectID string `json:"project_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` Name string `json:"name"` }
Project is the project.
type Resource ¶
type Resource struct { ResourceID string `json:"resource_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` DomainID string `json:"domain_id" validate:"required,isuuid"` Name string `json:"name" validate:"required"` }
Resource is the entity representing the user or role
type Tenant ¶
type Tenant struct { TenantID string `json:"tenant_id" validate:"required,isuuid"` CreatedAt time.Time `json:"created_at" validate:"required"` UpdatedAt time.Time `json:"updated_at" validate:"required"` AccountID int64 `json:"account_id" validate:"required,gt=0"` Name string `json:"name"` }
Tenant is the tenant.
Click to show internal directories.
Click to hide internal directories.