core

package
v0.0.0-...-e96c845 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCantChangeHosts = errors.New("не удалось изменить файл /etc/hosts")
)

Functions

This section is empty.

Types

type AppState

type AppState struct {
	Router   *services.State
	Projects []*project.State
}

type Core

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

func NewCore

func NewCore() (*Core, error)

func (*Core) ContainerRemove

func (c *Core) ContainerRemove(ctx context.Context, cID string) error

func (*Core) ContainerRestart

func (c *Core) ContainerRestart(ctx context.Context, cID string) error

func (*Core) ContainerStart

func (c *Core) ContainerStart(ctx context.Context, cID string) error

func (*Core) ContainerStop

func (c *Core) ContainerStop(ctx context.Context, cID string) error

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

func (c *Core) FindProjects(ctx context.Context) (map[string][]types.Container, error)

FindProjects найдет контейнеры проектов в вернёт их сгруппированными по проекту

func (*Core) Init

func (c *Core) Init(ctx context.Context) error

Init произведет инициализацию приложения, запустив нужные контейнеры

func (*Core) RemoveProject

func (c *Core) RemoveProject(ctx context.Context, name string) error

RemoveProject удалит проект

func (*Core) StartProject

func (c *Core) StartProject(ctx context.Context, name string) error

StartProject запустит контейнеры проекта

func (*Core) State

func (c *Core) State(ctx context.Context) (*AppState, error)

func (*Core) StopProject

func (c *Core) StopProject(ctx context.Context, name string) error

StopProject остановит контейнеры проекта

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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