features

package
v0.0.0-...-a7ff5df Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditFeature

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

func NewEditFeature

func NewEditFeature(
	stepper stepper.Stepper,
	outputHandler EditOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) EditFeature

func (EditFeature) Execute

func (e EditFeature) Execute(input EditInput) error

type EditInput

type EditInput struct {
	EnvName string
}

type EditOutput

type EditOutput struct {
	Error   error
	Content *EditOutputContent
	Stepper stepper.Stepper
}

type EditOutputContent

type EditOutputContent struct {
	Cluster *entities.Cluster
	Env     *entities.Env
}

type EditOutputHandler

type EditOutputHandler interface {
	HandleOutput(EditOutput) error
}

type InitFeature

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

func NewInitFeature

func NewInitFeature(
	stepper stepper.Stepper,
	outputHandler InitOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) InitFeature

func (InitFeature) Execute

func (i InitFeature) Execute(input InitInput) error

type InitInput

type InitInput struct {
	InstanceType         string
	EnvName              string
	LocalSSHCfgDupHostCt int
	Repositories         []entities.EnvRepository
	Runtimes             []string
}

type InitOutput

type InitOutput struct {
	Error   error
	Content *InitOutputContent
	Stepper stepper.Stepper
}

type InitOutputContent

type InitOutputContent struct {
	CloudService    entities.CloudService
	ElevenConfig    *entities.Config
	Cluster         *entities.Cluster
	Env             *entities.Env
	EnvCreated      bool
	SetEnvAsCreated func() error
	Runtimes        entities.EnvRuntimes
}

type InitOutputHandler

type InitOutputHandler interface {
	HandleOutput(InitOutput) error
}

type RemoveFeature

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

func NewRemoveFeature

func NewRemoveFeature(
	stepper stepper.Stepper,
	outputHandler RemoveOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) RemoveFeature

func (RemoveFeature) Execute

func (r RemoveFeature) Execute(input RemoveInput) error

type RemoveInput

type RemoveInput struct {
	EnvName       string
	PreRemoveHook entities.HookRunner
	ForceRemove   bool
	ConfirmRemove func() (bool, error)
}

type RemoveOutput

type RemoveOutput struct {
	Error   error
	Content *RemoveOutputContent
	Stepper stepper.Stepper
}

type RemoveOutputContent

type RemoveOutputContent struct {
	Cluster *entities.Cluster
	Env     *entities.Env
}

type RemoveOutputHandler

type RemoveOutputHandler interface {
	HandleOutput(RemoveOutput) error
}

type ServeFeature

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

func NewServeFeature

func NewServeFeature(
	stepper stepper.Stepper,
	outputHandler ServeOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) ServeFeature

func (ServeFeature) Execute

func (s ServeFeature) Execute(input ServeInput) error

type ServeInput

type ServeInput struct {
	EnvName                   string
	ReservedPorts             []string
	Port                      string
	PortBinding               string
	DomainReachabilityChecker entities.DomainReachabilityChecker
}

type ServeOutput

type ServeOutput struct {
	Error   error
	Content *ServeOutputContent
	Stepper stepper.Stepper
}

type ServeOutputContent

type ServeOutputContent struct {
	Cluster     *entities.Cluster
	Env         *entities.Env
	Port        string
	PortBinding string
}

type ServeOutputHandler

type ServeOutputHandler interface {
	HandleOutput(ServeOutput) error
}

type UninstallFeature

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

func NewUninstallFeature

func NewUninstallFeature(
	stepper stepper.Stepper,
	outputHandler UninstallOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) UninstallFeature

func (UninstallFeature) Execute

func (u UninstallFeature) Execute(input UninstallInput) error

type UninstallInput

type UninstallInput struct {
	SuccessMessage            string
	AlreadyUninstalledMessage string
}

type UninstallOutput

type UninstallOutput struct {
	Error   error
	Content *UninstallOutputContent
	Stepper stepper.Stepper
}

type UninstallOutputContent

type UninstallOutputContent struct {
	ElevenAlreadyUninstalled  bool
	SuccessMessage            string
	AlreadyUninstalledMessage string
}

type UninstallOutputHandler

type UninstallOutputHandler interface {
	HandleOutput(UninstallOutput) error
}

type UnserveFeature

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

func NewUnserveFeature

func NewUnserveFeature(
	stepper stepper.Stepper,
	outputHandler UnserveOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) UnserveFeature

func (UnserveFeature) Execute

func (u UnserveFeature) Execute(input UnserveInput) error

type UnserveInput

type UnserveInput struct {
	EnvName       string
	ReservedPorts []string
	Port          string
}

type UnserveOutput

type UnserveOutput struct {
	Error   error
	Content *UnserveOutputContent
	Stepper stepper.Stepper
}

type UnserveOutputContent

type UnserveOutputContent struct {
	Cluster *entities.Cluster
	Env     *entities.Env
	Port    string
}

type UnserveOutputHandler

type UnserveOutputHandler interface {
	HandleOutput(UnserveOutput) error
}

Jump to

Keyboard shortcuts

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