usecase

package
v0.0.0-...-6d13978 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (o *Operator) AddNewProject(p project.ID)

func (*Operator) AddNewWorkspace

func (o *Operator) AddNewWorkspace(workspace accountdomain.WorkspaceID)

func (*Operator) AllMaintainableProjects

func (o *Operator) AllMaintainableProjects() project.IDList

func (*Operator) AllMaintainingWorkspaces

func (o *Operator) AllMaintainingWorkspaces() user.WorkspaceIDList

func (*Operator) AllOwningProjects

func (o *Operator) AllOwningProjects() project.IDList

func (*Operator) AllOwningWorkspaces

func (o *Operator) AllOwningWorkspaces() user.WorkspaceIDList

func (*Operator) AllReadableProjects

func (o *Operator) AllReadableProjects() project.IDList

func (*Operator) AllReadableWorkspaces

func (o *Operator) AllReadableWorkspaces() user.WorkspaceIDList

func (*Operator) AllWritableProjects

func (o *Operator) AllWritableProjects() project.IDList

func (*Operator) AllWritableWorkspaces

func (o *Operator) AllWritableWorkspaces() user.WorkspaceIDList

func (*Operator) CanUpdate

func (o *Operator) CanUpdate(obj Ownable) bool

func (*Operator) IsMaintainingProject

func (o *Operator) IsMaintainingProject(projects ...project.ID) bool

func (*Operator) IsMaintainingWorkspace

func (o *Operator) IsMaintainingWorkspace(workspace ...accountdomain.WorkspaceID) bool

func (*Operator) IsOwningProject

func (o *Operator) IsOwningProject(projects ...project.ID) bool

func (*Operator) IsOwningWorkspace

func (o *Operator) IsOwningWorkspace(workspace ...accountdomain.WorkspaceID) bool

func (*Operator) IsReadableProject

func (o *Operator) IsReadableProject(projects ...project.ID) bool

func (*Operator) IsReadableWorkspace

func (o *Operator) IsReadableWorkspace(workspace ...accountdomain.WorkspaceID) bool

func (*Operator) IsWritableProject

func (o *Operator) IsWritableProject(projects ...project.ID) bool

func (*Operator) IsWritableWorkspace

func (o *Operator) IsWritableWorkspace(workspace ...accountdomain.WorkspaceID) bool

func (*Operator) Operator

func (o *Operator) Operator() operator.Operator

func (*Operator) Owns

func (o *Operator) Owns(obj Ownable) bool

func (*Operator) Projects

func (o *Operator) Projects(r workspace.Role) project.IDList

func (*Operator) RoleByProject

func (o *Operator) RoleByProject(pid id.ProjectID) workspace.Role

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL