features

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 {
	ResolvedRepository entities.ResolvedDevEnvRepository
	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
	DevEnv  *entities.DevEnv
}

type RemoveOutputHandler

type RemoveOutputHandler interface {
	HandleOutput(RemoveOutput) error
}

type StartFeature

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

func NewStartFeature

func NewStartFeature(
	stepper stepper.Stepper,
	outputHandler StartOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) StartFeature

func (StartFeature) Execute

func (s StartFeature) Execute(input StartInput) error

type StartInput

type StartInput struct {
	InstanceType             string
	DevEnvRebuildAsked       bool
	ResolvedDevEnvUserConfig entities.ResolvedDevEnvUserConfig
	ResolvedRepository       entities.ResolvedDevEnvRepository
	ForceDevEnvRevuild       bool
	ConfirmDevEnvRebuild     func() (bool, error)
}

type StartOutput

type StartOutput struct {
	Error   error
	Content *StartOutputContent
	Stepper stepper.Stepper
}

type StartOutputContent

type StartOutputContent struct {
	CloudService       entities.CloudService
	RecodeConfig       *entities.Config
	Cluster            *entities.Cluster
	DevEnv             *entities.DevEnv
	DevEnvCreated      bool
	DevEnvStarted      bool
	SetDevEnvAsStarted func() error
	DevEnvRebuildAsked bool
}

type StartOutputHandler

type StartOutputHandler interface {
	HandleOutput(StartOutput) error
}

type StopFeature

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

func NewStopFeature

func NewStopFeature(
	stepper stepper.Stepper,
	outputHandler StopOutputHandler,
	cloudServiceBuilder entities.CloudServiceBuilder,
) StopFeature

func (StopFeature) Execute

func (s StopFeature) Execute(input StopInput) error

type StopInput

type StopInput struct {
	ResolvedRepository entities.ResolvedDevEnvRepository
	PreStopHook        entities.HookRunner
}

type StopOutput

type StopOutput struct {
	Error   error
	Content *StopOutputContent
	Stepper stepper.Stepper
}

type StopOutputContent

type StopOutputContent struct {
	Cluster              *entities.Cluster
	DevEnv               *entities.DevEnv
	DevEnvAlreadyStopped bool
	SetDevEnvAsStopped   func() error
}

type StopOutputHandler

type StopOutputHandler interface {
	HandleOutput(StopOutput) 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 {
	RecodeAlreadyUninstalled  bool
	SuccessMessage            string
	AlreadyUninstalledMessage string
}

type UninstallOutputHandler

type UninstallOutputHandler interface {
	HandleOutput(UninstallOutput) error
}

Jump to

Keyboard shortcuts

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