server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile

type ConfigFile struct {
	Name string `json:"config_file"`
	Type string `json:"type"`
}

type Services

type Services struct {
	DB             db.DB
	DownloadClient clients.DownloadClient
	ResourceClient clients.ResourceClient
	KubeAPIClient  clients.KubeAPIClient
}

Services is a collection of resources needed for server functionality.

type Solution

type Solution struct {
	Env map[string]string `json:"env"`
	Run []ConfigFile      `json:"run,omitempty"`
}

type SolutionsService

type SolutionsService interface {
	AddTemplate(ctx context.Context, solution kube_types.SolutionTemplate) error
	UpdateTemplate(ctx context.Context, solution kube_types.SolutionTemplate) error
	GetTemplatesList(ctx context.Context, isAdmin bool) (*kube_types.SolutionsTemplatesList, error)
	GetTemplatesEnvList(ctx context.Context, name, branch string) (*kube_types.SolutionEnv, error)
	GetTemplatesResourcesList(ctx context.Context, name, branch string) (*kube_types.SolutionResources, error)
	ActivateTemplate(ctx context.Context, solution string) error
	DeactivateTemplate(ctx context.Context, solution string) error
	ValidateTemplate(ctx context.Context, solution kube_types.SolutionTemplate) error

	GetSolutionsList(ctx context.Context, isAdmin bool) (*kube_types.SolutionsList, error)
	GetNamespaceSolutionsList(ctx context.Context, namespace string, isAdmin bool) (*kube_types.SolutionsList, error)
	GetSolution(ctx context.Context, namespace, solutionName string, isAdmin bool) (*kube_types.Solution, error)
	GetSolutionDeployments(ctx context.Context, namespace, solutionName string) (*kube_types.DeploymentsList, error)
	GetSolutionServices(ctx context.Context, namespace, solutionName string) (*kube_types.ServicesList, error)
	RunSolution(ctx context.Context, solutionReq kube_types.Solution) (*kube_types.RunSolutionResponse, error)
	DeleteSolution(ctx context.Context, namespace, solution string) error
	DeleteSolutions(ctx context.Context) error
	DeleteNamespaceSolutions(ctx context.Context, namespace string) error
	io.Closer
}

SolutionsService is an interface for server "business logic"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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