Documentation ¶
Index ¶
- type AccountWorkspace
- type Data
- func (d *Data) CheckLdapGroups(authorizationType auth.AuthenticationType) error
- func (d *Data) SetAccountData(accountData *proto.GetAccountDataResponse) *Data
- func (d *Data) SetWorkspaceID(workspaceID uuid.UUID) *Data
- func (d *Data) ToBytes() []byte
- func (d *Data) ToWorkspace() *Workspace
- func (d *Data) Validate() error
- type Response
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountWorkspace ¶
type AccountWorkspace struct { WorkspaceID uuid.UUID `json:"workspaceID"` AccountID uuid.UUID `json:"accountID"` Role account.Role `json:"role"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func (*AccountWorkspace) ToResponse ¶
func (a *AccountWorkspace) ToResponse() *role.Response
func (*AccountWorkspace) ToResponseWithEmailAndUsername ¶
func (a *AccountWorkspace) ToResponseWithEmailAndUsername(email, username string) *role.Response
func (*AccountWorkspace) Update ¶
func (a *AccountWorkspace) Update(data *role.Data)
type Data ¶
type Data struct { WorkspaceID uuid.UUID `json:"workspaceID" swaggerignore:"true"` AccountID uuid.UUID `json:"accountID" swaggerignore:"true"` Name string `json:"name"` Description string `json:"description"` AuthzMember []string `json:"authzMember"` AuthzAdmin []string `json:"authzAdmin"` Permissions []string `json:"permissions" swaggerignore:"true"` IsApplicationAdmin bool `json:"isApplicationAdmin" swaggerignore:"true"` }
func (*Data) CheckLdapGroups ¶
func (d *Data) CheckLdapGroups(authorizationType auth.AuthenticationType) error
func (*Data) SetAccountData ¶
func (d *Data) SetAccountData(accountData *proto.GetAccountDataResponse) *Data
func (*Data) ToWorkspace ¶
type Response ¶
type Response struct { WorkspaceID uuid.UUID `json:"workspaceID"` Name string `json:"name"` Role account.Role `json:"role"` Description string `json:"description"` AuthzMember pq.StringArray `json:"authzMember" gorm:"type:text[]"` AuthzAdmin pq.StringArray `json:"authzAdmin" gorm:"type:text[]"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` RepositoriesCount int `json:"repositoriesCount"` }
type Workspace ¶
type Workspace struct { WorkspaceID uuid.UUID `json:"workspaceID" gorm:"primary_key"` Name string `json:"name"` Description string `json:"description"` AuthzMember pq.StringArray `json:"authzMember" gorm:"type:text[]"` AuthzAdmin pq.StringArray `json:"authzAdmin" gorm:"type:text[]"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func (*Workspace) ToAccountWorkspace ¶
func (*Workspace) ToUpdateMap ¶
func (*Workspace) ToWorkspaceResponse ¶
Click to show internal directories.
Click to hide internal directories.