Documentation
¶
Index ¶
- Variables
- type DownCommand
- type ExecCommand
- type ExecuteExtensionCommand
- type ExtensionChoicesQuery
- type LogsQuery
- type Manager
- func (m *Manager) Down(ctx context.Context, cmd DownCommand) error
- func (m *Manager) ExecOrRun(ctx context.Context, cmd ExecCommand) error
- func (m *Manager) ExecuteExtension(ctx context.Context, cmd ExecuteExtensionCommand) error
- func (m *Manager) ExtensionChoices(ctx context.Context, _ ExtensionChoicesQuery) ([]workspace.Choice, error)
- func (m *Manager) Logs(ctx context.Context, query LogsQuery) error
- func (m *Manager) ServiceChoices(ctx context.Context, _ ServiceChoicesQuery) ([]workspace.Choice, error)
- func (m *Manager) ShowComposeCommand(ctx context.Context, query ShowComposeCommandQuery) error
- func (m *Manager) ShowComposeConfig(ctx context.Context, query ShowComposeConfigQuery) error
- func (m *Manager) Up(ctx context.Context, cmd UpCommand) error
- type ServiceChoicesQuery
- type ShowComposeCommandQuery
- type ShowComposeConfigQuery
- type UpCommand
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnknownService = errors.New("unknown service") ErrNoProject = errors.New("no project") )
Functions ¶
This section is empty.
Types ¶
type DownCommand ¶
func (DownCommand) MessageName ¶
func (DownCommand) MessageName() string
type ExecCommand ¶
type ExecCommand struct {
bus.Returns[bus.Void]
Workspace string
Project string
Service string
Args []string
}
func (ExecCommand) MessageName ¶
func (ExecCommand) MessageName() string
type ExecuteExtensionCommand ¶
type ExecuteExtensionCommand struct {
bus.Returns[bus.Void]
Workspace string
Project string
Name string
Args []string
}
func (ExecuteExtensionCommand) MessageName ¶
func (ExecuteExtensionCommand) MessageName() string
type ExtensionChoicesQuery ¶ added in v0.20.0
type ExtensionChoicesQuery struct {
bus.Returns[[]workspace.Choice]
Workspace string
Project string
}
ExtensionChoicesQuery lists the project's extensions, with their descriptions.
func (ExtensionChoicesQuery) MessageName ¶ added in v0.20.0
func (ExtensionChoicesQuery) MessageName() string
type LogsQuery ¶
func (LogsQuery) MessageName ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the commands that run a workspace or project's compose stack.
func NewManager ¶
func NewManager(compose compose) *Manager
func (*Manager) ExecuteExtension ¶
func (m *Manager) ExecuteExtension(ctx context.Context, cmd ExecuteExtensionCommand) error
func (*Manager) ExtensionChoices ¶ added in v0.20.0
func (*Manager) ServiceChoices ¶ added in v0.20.0
func (*Manager) ShowComposeCommand ¶
func (m *Manager) ShowComposeCommand(ctx context.Context, query ShowComposeCommandQuery) error
func (*Manager) ShowComposeConfig ¶
func (m *Manager) ShowComposeConfig(ctx context.Context, query ShowComposeConfigQuery) error
type ServiceChoicesQuery ¶ added in v0.20.0
ServiceChoicesQuery lists the services in the project's compose file.
func (ServiceChoicesQuery) MessageName ¶ added in v0.20.0
func (ServiceChoicesQuery) MessageName() string
type ShowComposeCommandQuery ¶
func (ShowComposeCommandQuery) MessageName ¶
func (ShowComposeCommandQuery) MessageName() string
type ShowComposeConfigQuery ¶
func (ShowComposeConfigQuery) MessageName ¶
func (ShowComposeConfigQuery) MessageName() string