Documentation ¶
Index ¶
- type Operator
- func (o *Operator) AddNewProject(p project.ID)
- func (o *Operator) AddNewWorkspace(workspace accountdomain.WorkspaceID)
- func (o *Operator) AllMaintainableProjects() project.IDList
- func (o *Operator) AllMaintainingWorkspaces() user.WorkspaceIDList
- func (o *Operator) AllOwningProjects() project.IDList
- func (o *Operator) AllOwningWorkspaces() user.WorkspaceIDList
- func (o *Operator) AllReadableProjects() project.IDList
- func (o *Operator) AllReadableWorkspaces() user.WorkspaceIDList
- func (o *Operator) AllWritableProjects() project.IDList
- func (o *Operator) AllWritableWorkspaces() user.WorkspaceIDList
- func (o *Operator) CanUpdate(obj Ownable) bool
- func (o *Operator) IsMaintainingProject(projects ...project.ID) bool
- func (o *Operator) IsMaintainingWorkspace(workspace ...accountdomain.WorkspaceID) bool
- func (o *Operator) IsOwningProject(projects ...project.ID) bool
- func (o *Operator) IsOwningWorkspace(workspace ...accountdomain.WorkspaceID) bool
- func (o *Operator) IsReadableProject(projects ...project.ID) bool
- func (o *Operator) IsReadableWorkspace(workspace ...accountdomain.WorkspaceID) bool
- func (o *Operator) IsWritableProject(projects ...project.ID) bool
- func (o *Operator) IsWritableWorkspace(workspace ...accountdomain.WorkspaceID) bool
- func (o *Operator) Operator() operator.Operator
- func (o *Operator) Owns(obj Ownable) bool
- func (o *Operator) Projects(r workspace.Role) project.IDList
- func (o *Operator) RoleByProject(pid id.ProjectID) workspace.Role
- func (o *Operator) Workspaces(r workspace.Role) []accountdomain.WorkspaceID
- type Ownable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct { Integration *integration.ID Machine bool Lang string ReadableProjects project.IDList WritableProjects project.IDList OwningProjects project.IDList MaintainableProjects project.IDList AcOperator *accountusecase.Operator }
func (*Operator) AddNewProject ¶
func (*Operator) AddNewWorkspace ¶
func (o *Operator) AddNewWorkspace(workspace accountdomain.WorkspaceID)
func (*Operator) AllMaintainableProjects ¶
func (*Operator) AllMaintainingWorkspaces ¶
func (o *Operator) AllMaintainingWorkspaces() user.WorkspaceIDList
func (*Operator) AllOwningProjects ¶
func (*Operator) AllOwningWorkspaces ¶
func (o *Operator) AllOwningWorkspaces() user.WorkspaceIDList
func (*Operator) AllReadableProjects ¶
func (*Operator) AllReadableWorkspaces ¶
func (o *Operator) AllReadableWorkspaces() user.WorkspaceIDList
func (*Operator) AllWritableProjects ¶
func (*Operator) AllWritableWorkspaces ¶
func (o *Operator) AllWritableWorkspaces() user.WorkspaceIDList
func (*Operator) IsMaintainingProject ¶
func (*Operator) IsMaintainingWorkspace ¶
func (o *Operator) IsMaintainingWorkspace(workspace ...accountdomain.WorkspaceID) bool
func (*Operator) IsOwningWorkspace ¶
func (o *Operator) IsOwningWorkspace(workspace ...accountdomain.WorkspaceID) bool
func (*Operator) IsReadableProject ¶
func (*Operator) IsReadableWorkspace ¶
func (o *Operator) IsReadableWorkspace(workspace ...accountdomain.WorkspaceID) bool
func (*Operator) IsWritableProject ¶
func (*Operator) IsWritableWorkspace ¶
func (o *Operator) IsWritableWorkspace(workspace ...accountdomain.WorkspaceID) bool
func (*Operator) Workspaces ¶
func (o *Operator) Workspaces(r workspace.Role) []accountdomain.WorkspaceID
type Ownable ¶
type Ownable interface { User() *accountdomain.UserID Integration() *id.IntegrationID Project() id.ProjectID }
Directories ¶
Path | Synopsis |
---|---|
gatewaymock
Package gatewaymock is a generated GoMock package.
|
Package gatewaymock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.