Documentation ¶
Index ¶
- Variables
- type AppState
- type Core
- func (c *Core) ContainerRemove(ctx context.Context, cID string) error
- func (c *Core) ContainerRestart(ctx context.Context, cID string) error
- func (c *Core) ContainerStart(ctx context.Context, cID string) error
- func (c *Core) ContainerStop(ctx context.Context, cID string) error
- func (c *Core) CreateBuilders(model *models.ProjectCreate) []builder.Builder
- func (c *Core) CreateProject(ctx context.Context, model *models.ProjectCreate, builders []builder.Builder) error
- func (c *Core) FindProjects(ctx context.Context) (map[string][]types.Container, error)
- func (c *Core) Init(ctx context.Context) error
- func (c *Core) RemoveProject(ctx context.Context, name string) error
- func (c *Core) StartProject(ctx context.Context, name string) error
- func (c *Core) State(ctx context.Context) (*AppState, error)
- func (c *Core) StopProject(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorCantChangeHosts = errors.New("не удалось изменить файл /etc/hosts")
)
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func (*Core) ContainerRemove ¶
func (*Core) ContainerRestart ¶
func (*Core) CreateBuilders ¶
func (c *Core) CreateBuilders(model *models.ProjectCreate) []builder.Builder
func (*Core) CreateProject ¶
func (c *Core) CreateProject(ctx context.Context, model *models.ProjectCreate, builders []builder.Builder) error
CreateProject создаст проект
func (*Core) FindProjects ¶
FindProjects найдет контейнеры проектов в вернёт их сгруппированными по проекту
func (*Core) RemoveProject ¶
RemoveProject удалит проект
func (*Core) StartProject ¶
StartProject запустит контейнеры проекта
Source Files ¶
Click to show internal directories.
Click to hide internal directories.