config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoshRoot

func BoshRoot() string

func BundlesRoot

func BundlesRoot(boshRoot string) string

func Decode

func Decode(containerID string) (string, error)

func Encode

func Encode(containerID string) string

runc spec only allows `^[\w+-\.]+$` https://github.com/opencontainers/runc/blob/master/libcontainer/factory_linux.go

func RuncPath

func RuncPath(boshRoot string) string

func RuncRoot

func RuncRoot(boshRoot string) string

Types

type BPMConfig

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

func NewBPMConfig

func NewBPMConfig(boshRoot, jobName, procName string) *BPMConfig

func (*BPMConfig) BPMLog

func (c *BPMConfig) BPMLog() string

func (*BPMConfig) BundlePath

func (c *BPMConfig) BundlePath() string

func (*BPMConfig) ConfigDir

func (c *BPMConfig) ConfigDir() string

func (*BPMConfig) ContainerID

func (c *BPMConfig) ContainerID(encoded bool) string

func (*BPMConfig) DataDir

func (c *BPMConfig) DataDir() string

func (*BPMConfig) DataPackageDir

func (c *BPMConfig) DataPackageDir() string

func (*BPMConfig) JobConfig

func (c *BPMConfig) JobConfig() string

func (*BPMConfig) JobDir

func (c *BPMConfig) JobDir() string

func (*BPMConfig) JobName

func (c *BPMConfig) JobName() string

func (*BPMConfig) LockFile

func (c *BPMConfig) LockFile() string

func (*BPMConfig) LogDir

func (c *BPMConfig) LogDir() string

func (*BPMConfig) PackageDir

func (c *BPMConfig) PackageDir() string

func (*BPMConfig) PidDir

func (c *BPMConfig) PidDir() string

func (*BPMConfig) PidFile

func (c *BPMConfig) PidFile() string

func (*BPMConfig) ProcName

func (c *BPMConfig) ProcName() string

func (*BPMConfig) RootFSPath

func (c *BPMConfig) RootFSPath() string

func (*BPMConfig) Stderr

func (c *BPMConfig) Stderr() string

func (*BPMConfig) Stdout

func (c *BPMConfig) Stdout() string

func (*BPMConfig) StoreDir

func (c *BPMConfig) StoreDir() string

func (*BPMConfig) TempDir

func (c *BPMConfig) TempDir() string

type Hooks

type Hooks struct {
	PreStart string `yaml:"pre_start"`
}

type JobConfig

type JobConfig struct {
	Processes map[string]*ProcessConfig `yaml:"processes"`
}

func ParseJobConfig

func ParseJobConfig(configPath string) (*JobConfig, error)

func (*JobConfig) Validate

func (c *JobConfig) Validate() error

type Limits

type Limits struct {
	Memory    *string `yaml:"memory"`
	OpenFiles *uint64 `yaml:"open_files"`
	Processes *int64  `yaml:"processes"`
}

type ProcessConfig

type ProcessConfig struct {
	Executable string   `yaml:"executable"`
	Args       []string `yaml:"args"`
	Env        []string `yaml:"env"`
	Limits     *Limits  `yaml:"limits"`
	Volumes    []string `yaml:"volumes"`
	Hooks      *Hooks   `yaml:"hooks"`
}

func (*ProcessConfig) Validate

func (c *ProcessConfig) Validate() error

Jump to

Keyboard shortcuts

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