config

package
v1.0.1-0...-0a61d5e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "dev"

Variables

View Source
var Settings = new(Config)

Functions

func Development

func Development() bool

func Home

func Home() string

func Jenkins

func Jenkins() bool

func Linux

func Linux() bool

func ProjectName

func ProjectName() string

func ProjectPackage

func ProjectPackage() string

func SSHAgentSocket

func SSHAgentSocket() string

Types

type Config

type Config struct {
	Project string `yaml:"project"`

	Services map[string]*Service `yaml:"services"`
	Tools    map[string]*Tool    `yaml:"tools"`
}

func (*Config) IsService

func (cnf *Config) IsService(name string) bool

func (*Config) IsTool

func (cnf *Config) IsTool(name string) bool

type Service

type Service struct {
	Type    string            `yaml:"type"`
	Deps    []string          `yaml:"deps"`
	Ports   []string          `yaml:"ports"`
	Workdir string            `yaml:"workdir"`
	Volumes []string          `yaml:"volumes"`
	Env     map[string]string `yaml:"env"`
	Ignore  []string          `yaml:"ignore"`
}

type Tool

type Tool struct {
	Container string   `yaml:"container"`
	Deps      []string `yaml:"deps"`
	Ports     []string `yaml:"ports"`
	Volumes   []string `yaml:"volumes"`
	Args      []string `yaml:"args"`
}

Jump to

Keyboard shortcuts

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