controllers

package
v0.0.0-...-ce61c30 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigController

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

ConfigController ...

func NewConfigController

func NewConfigController(cfg *ConfigControllerConfig) *ConfigController

NewConfigController ...

func (*ConfigController) Get

func (c *ConfigController) Get() (*domain.Config, error)

Get ...

func (*ConfigController) Save

func (c *ConfigController) Save(cfg *domain.Config) error

Save ...

type ConfigControllerConfig

type ConfigControllerConfig struct {
	ConfigRepository gateways.IConfigRepository
}

ConfigControllerConfig ...

type ConfigControllerFactory

type ConfigControllerFactory struct {
}

ConfigControllerFactory ...

func NewConfigControllerFactory

func NewConfigControllerFactory() *ConfigControllerFactory

NewConfigControllerFactory ...

func (*ConfigControllerFactory) Create

Create ...

type EnvsController

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

EnvsController ...

func NewEnvsController

func NewEnvsController(cfg *EnvsControllerConfig) *EnvsController

NewEnvsController ...

func (*EnvsController) ApplyPlans

func (c *EnvsController) ApplyPlans(vcs domain.VCS, user, repo, tkn string, ps *domain.Plans) error

ApplyPlans ...

func (*EnvsController) GetAll

func (c *EnvsController) GetAll(vcs domain.VCS, user, repo, tkn string) (*domain.Envs, error)

GetAll ...

func (*EnvsController) GetAllFromLocal

func (c *EnvsController) GetAllFromLocal() (*domain.Envs, error)

GetAllFromLocal ...

func (*EnvsController) MakePlans

func (c *EnvsController) MakePlans(before, after *domain.Envs, del bool) *domain.Plans

MakePlans ...

func (*EnvsController) ShowAll

func (c *EnvsController) ShowAll(es *domain.Envs) error

ShowAll ...

func (*EnvsController) ShowPlans

func (c *EnvsController) ShowPlans(ps *domain.Plans) error

ShowPlans ...

type EnvsControllerConfig

type EnvsControllerConfig struct {
	EnvsRepository gateways.IEnvsRepository
	EnvsPresenter  presenters.IEnvsPresenter
}

EnvsControllerConfig ...

type EnvsControllerFactory

type EnvsControllerFactory struct{}

EnvsControllerFactory ...

func NewEnvsControllerFactory

func NewEnvsControllerFactory() *EnvsControllerFactory

NewEnvsControllerFactory ...

func (*EnvsControllerFactory) Create

Create ...

type IConfigController

type IConfigController interface {
	Save(cfg *domain.Config) error
	Get() (*domain.Config, error)
}

IConfigController ...

type IEnvsController

type IEnvsController interface {
	GetAll(vcs domain.VCS, user, repo, tkn string) (*domain.Envs, error)
	ShowAll(es *domain.Envs) error
	GetAllFromLocal() (*domain.Envs, error)
	MakePlans(before, after *domain.Envs, del bool) *domain.Plans
	ShowPlans(ps *domain.Plans) error
	ApplyPlans(vcs domain.VCS, user, repo, tkn string, ps *domain.Plans) error
}

IEnvsController ...

Jump to

Keyboard shortcuts

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