features

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 ClosePortOutputHandler

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

func NewClosePortOutputHandler

func NewClosePortOutputHandler(
	presenter ClosePortPresenter,
) ClosePortOutputHandler

func (ClosePortOutputHandler) HandleOutput

func (c ClosePortOutputHandler) HandleOutput(output features.ClosePortOutput) error

type ClosePortPresenter

type ClosePortPresenter interface {
	PresentToView(ClosePortResponse)
}

type ClosePortResponse

type ClosePortResponse struct {
	Error   error
	Content ClosePortResponseContent
}

type ClosePortResponseContent

type ClosePortResponseContent struct {
	EnvName           string
	PortClosed        string
	PortAlreadyClosed bool
}

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
	EnvPublicIPAddress string
	EnvAlreadyCreated  bool
}

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 OpenPortOutputHandler

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

func NewOpenPortOutputHandler

func NewOpenPortOutputHandler(
	presenter OpenPortPresenter,
) OpenPortOutputHandler

func (OpenPortOutputHandler) HandleOutput

func (o OpenPortOutputHandler) HandleOutput(output features.OpenPortOutput) error

type OpenPortPresenter

type OpenPortPresenter interface {
	PresentToView(OpenPortResponse)
}

type OpenPortResponse

type OpenPortResponse struct {
	Error   error
	Content OpenPortResponseContent
}

type OpenPortResponseContent

type OpenPortResponseContent struct {
	EnvName            string
	EnvPublicIPAddress string
	PortOpened         string
	PortAlreadyOpened  bool
}

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 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 {
	YoloAlreadyUninstalled    bool
	SuccessMessage            string
	AlreadyUninstalledMessage string
	YoloExecutablePath        string
	YoloConfigDirPath         string
}

Jump to

Keyboard shortcuts

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