project

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmRepoConfig

type HelmRepoConfig struct {
	Name     string `validate:"required"`
	Url      string `validate:"required"`
	Username string
	Password string
}

type Project

type Project struct {
	Id      string `validate:"required"`
	Name    string `validate:"required"`
	Version string `validate:"required"`

	HelmVersion     string
	K3sVersion      string
	ManagerFilename string `yaml:"managerFilename"`

	HelmRepos []HelmRepoConfig `yaml:"helmRepos"`

	Proxy []ProxyConfig `yaml:"proxy"`

	ManifestServices   []service.ManifestService   `yaml:"manifestServices"`
	HelmServices       []service.HelmService       `yaml:"helmServices"`
	DockerfileServices []service.DockerfileService `yaml:"dockerfileServices"`
}

func Parse

func Parse(projectPath string) (*Project, error)

func ParseData

func ParseData(data io.Reader, projectPath string) (*Project, error)

func (Project) GetServices

func (project Project) GetServices() []Service

func (*Project) Validate

func (project *Project) Validate() error

type ProxyConfig

type ProxyConfig struct {
	ServiceName string `yaml:"serviceName" validate:"required"`
	ServicePort int    `yaml:"servicePort"`
	Port        int    `yaml:"port" validate:"required"`
}

type Service

type Service interface {
	GetId() string
	SetId(id string)

	GetType() string

	/**
	Validate that the service is configured correctly
	*/
	Validate(*validator.Validate) error

	/**
	Build the service, adding anything needed to the InstallFile
	*/
	Build(*install_file.InstallFile) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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