Documentation
¶
Index ¶
- type Endpoint
- type Option
- func WithMemoryRepository(repo portrepos.MemoryRepository) Option
- func WithSandboxPolicyRepository(repo portrepos.SandboxPolicyRepository) Option
- func WithSessionProfileRepository(repo portrepos.SessionProfileRepository) Option
- func WithSlackBotRepository(repo portrepos.SlackBotRepository) Option
- func WithTaskGroupRepository(repo portrepos.TaskGroupRepository) Option
- func WithTaskRepository(repo portrepos.TaskRepository) Option
- func WithWebhookRepository(repo portrepos.WebhookRepository) Option
- type Request
- type ResourceType
- type Result
- type UseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
Scope entities.ResourceScope `json:"scope"`
UserID string `json:"user_id,omitempty"`
TeamID string `json:"team_id,omitempty"`
}
type Option ¶
type Option func(*UseCase)
func WithMemoryRepository ¶
func WithMemoryRepository(repo portrepos.MemoryRepository) Option
func WithSandboxPolicyRepository ¶
func WithSandboxPolicyRepository(repo portrepos.SandboxPolicyRepository) Option
func WithSessionProfileRepository ¶
func WithSessionProfileRepository(repo portrepos.SessionProfileRepository) Option
func WithSlackBotRepository ¶
func WithSlackBotRepository(repo portrepos.SlackBotRepository) Option
func WithTaskGroupRepository ¶
func WithTaskGroupRepository(repo portrepos.TaskGroupRepository) Option
func WithTaskRepository ¶
func WithTaskRepository(repo portrepos.TaskRepository) Option
func WithWebhookRepository ¶
func WithWebhookRepository(repo portrepos.WebhookRepository) Option
type Request ¶
type Request struct {
ResourceType ResourceType
ResourceID string
TargetScope entities.ResourceScope
TargetUserID string
TargetTeamID string
DryRun bool
Actor *entities.User
}
type ResourceType ¶
type ResourceType string
const ( ResourceMemory ResourceType = "memory" ResourceTask ResourceType = "task" ResourceTaskGroup ResourceType = "task_group" ResourceWebhook ResourceType = "webhook" ResourceSlackBot ResourceType = "slackbot" ResourceSessionProfile ResourceType = "session_profile" ResourceSandboxPolicy ResourceType = "sandbox_policy" )
Click to show internal directories.
Click to hide internal directories.