features

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditOutputHandler

type EditOutputHandler struct {
	// contains filtered or unexported fields
}

func NewEditOutputHandler

func NewEditOutputHandler(
	presenter EditPresenter,
	vscodeProcess interfaces.VSCodeProcessManager,
	vscodeExtensions interfaces.VSCodeExtensionsManager,
) EditOutputHandler

func (EditOutputHandler) HandleOutput

func (e EditOutputHandler) HandleOutput(output features.EditOutput) error

type EditPresenter

type EditPresenter interface {
	PresentToView(EditResponse)
}

type EditResponse

type EditResponse struct {
	Error   error
	Content EditResponseContent
}

type EditResponseContent

type EditResponseContent struct {
	EnvName string
}

type InitOutputHandler

type InitOutputHandler struct {
	// contains filtered or unexported fields
}

func NewInitOutputHandler

func NewInitOutputHandler(
	userConfig interfaces.UserConfigManager,
	presenter InitPresenter,
	agentClientBuilder agent.ClientBuilder,
	github interfaces.GitHubManager,
	logger interfaces.Logger,
	sshConfig interfaces.SSHConfigManager,
	sshKeys interfaces.SSHKeysManager,
	sshKnownHosts interfaces.SSHKnownHostsManager,
) InitOutputHandler

func (InitOutputHandler) HandleOutput

func (i InitOutputHandler) HandleOutput(output features.InitOutput) error

type InitPresenter

type InitPresenter interface {
	PresentToView(InitResponse)
}

type InitResponse

type InitResponse struct {
	Error   error
	Content InitResponseContent
}

type InitResponseContent

type InitResponseContent struct {
	EnvName                   string
	EnvLocalSSHConfigHostname string
	EnvPublicIPAddress        string
	EnvAlreadyCreated         bool
	EnvRuntimes               entities.EnvRuntimes
}

type LoginFeature

type LoginFeature struct {
	// contains filtered or unexported fields
}

func (LoginFeature) Execute

func (l LoginFeature) Execute(input LoginInput) error

type LoginInput

type LoginInput struct{}

type LoginPresenter

type LoginPresenter interface {
	PresentToView(LoginResponse)
}

type LoginResponse

type LoginResponse struct {
	Error   error
	Content LoginResponseContent
}

type LoginResponseContent

type LoginResponseContent struct{}

type RemoveOutputHandler

type RemoveOutputHandler struct {
	// contains filtered or unexported fields
}

func NewRemoveOutputHandler

func NewRemoveOutputHandler(
	presenter RemovePresenter,
) RemoveOutputHandler

func (RemoveOutputHandler) HandleOutput

func (r RemoveOutputHandler) HandleOutput(output features.RemoveOutput) error

type RemovePresenter

type RemovePresenter interface {
	PresentToView(RemoveResponse)
}

type RemoveResponse

type RemoveResponse struct {
	Error   error
	Content RemoveResponseContent
}

type RemoveResponseContent

type RemoveResponseContent struct {
	EnvName string
}

type ServeOutputHandler

type ServeOutputHandler struct {
	// contains filtered or unexported fields
}

func NewServeOutputHandler

func NewServeOutputHandler(
	presenter ServePresenter,
	agentClientBuilder agent.ClientBuilder,
) ServeOutputHandler

func (ServeOutputHandler) HandleOutput

func (s ServeOutputHandler) HandleOutput(output features.ServeOutput) error

type ServePresenter

type ServePresenter interface {
	PresentToView(ServeResponse)
}

type ServeResponse

type ServeResponse struct {
	Error   error
	Content ServeResponseContent
}

type ServeResponseContent

type ServeResponseContent struct {
	EnvName            string
	EnvPublicIPAddress string
	Port               string
	PortBinding        string
}

type UninstallOutputHandler

type UninstallOutputHandler struct {
	// contains filtered or unexported fields
}

func NewUninstallOutputHandler

func NewUninstallOutputHandler(
	presenter UninstallPresenter,
) UninstallOutputHandler

func (UninstallOutputHandler) HandleOutput

func (u UninstallOutputHandler) HandleOutput(output features.UninstallOutput) error

type UninstallPresenter

type UninstallPresenter interface {
	PresentToView(UninstallResponse)
}

type UninstallResponse

type UninstallResponse struct {
	Error   error
	Content UninstallResponseContent
}

type UninstallResponseContent

type UninstallResponseContent struct {
	ElevenAlreadyUninstalled  bool
	SuccessMessage            string
	AlreadyUninstalledMessage string
	ElevenExecutablePath      string
	ElevenConfigDirPath       string
}

type UnserveOutputHandler

type UnserveOutputHandler struct {
	// contains filtered or unexported fields
}

func NewUnserveOutputHandler

func NewUnserveOutputHandler(
	presenter UnservePresenter,
	agentClientBuilder agent.ClientBuilder,
) UnserveOutputHandler

func (UnserveOutputHandler) HandleOutput

func (u UnserveOutputHandler) HandleOutput(output features.UnserveOutput) error

type UnservePresenter

type UnservePresenter interface {
	PresentToView(UnserveResponse)
}

type UnserveResponse

type UnserveResponse struct {
	Error   error
	Content UnserveResponseContent
}

type UnserveResponseContent

type UnserveResponseContent struct {
	EnvName string
	Port    string
}

Jump to

Keyboard shortcuts

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