Documentation ¶
Index ¶
- type Flag
- type Layer
- func (l Layer) AppendBuildEnv(name string, format string, args ...interface{}) error
- func (l Layer) AppendLaunchEnv(name string, format string, args ...interface{}) error
- func (l Layer) AppendPathBuildEnv(name string, format string, args ...interface{}) errordeprecated
- func (l Layer) AppendPathLaunchEnv(name string, format string, args ...interface{}) errordeprecated
- func (l Layer) AppendPathSharedEnv(name string, format string, args ...interface{}) errordeprecated
- func (l Layer) AppendSharedEnv(name string, format string, args ...interface{}) error
- func (l Layer) DefaultBuildEnv(name string, format string, args ...interface{}) error
- func (l Layer) DefaultLaunchEnv(name string, format string, args ...interface{}) error
- func (l Layer) DefaultSharedEnv(name string, format string, args ...interface{}) error
- func (l Layer) DelimiterBuildEnv(name string, delimiter string) error
- func (l Layer) DelimiterLaunchEnv(name string, delimiter string) error
- func (l Layer) DelimiterSharedEnv(name string, delimiter string) error
- func (l Layer) OverrideBuildEnv(name string, format string, args ...interface{}) error
- func (l Layer) OverrideLaunchEnv(name string, format string, args ...interface{}) error
- func (l Layer) OverrideSharedEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependBuildEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependLaunchEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependPathBuildEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependPathLaunchEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependPathSharedEnv(name string, format string, args ...interface{}) error
- func (l Layer) PrependSharedEnv(name string, format string, args ...interface{}) error
- func (l Layer) ReadMetadata(metadata interface{}) error
- func (l Layer) RemoveMetadata() error
- func (l Layer) WriteMetadata(metadata interface{}, flags ...Flag) error
- func (l Layer) WriteProfile(file string, format string, args ...interface{}) error
- type Layers
- type Metadata
- type Process
- type Processes
- type Slice
- type Slices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct { // Root is the path to the root directory for the layer. Root string // Metadata is the location of the layer's metadata file. Metadata string // contains filtered or unexported fields }
Layer represents a layer for an application.
func (Layer) AppendBuildEnv ¶
AppendBuildEnv appends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) AppendLaunchEnv ¶
AppendLaunchEnv appends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) AppendPathBuildEnv
deprecated
func (Layer) AppendPathLaunchEnv
deprecated
func (Layer) AppendPathSharedEnv
deprecated
func (Layer) AppendSharedEnv ¶
AppendSharedEnv appends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) DefaultBuildEnv ¶
DefaultBuildEnv sets a default for an environment variable with this value.
func (Layer) DefaultLaunchEnv ¶
DefaultLaunchEnv sets a default for an environment variable with this value.
func (Layer) DefaultSharedEnv ¶
DefaultSharedEnv sets a default for an environment variable with this value.
func (Layer) DelimiterBuildEnv ¶
DelimiterBuildEnv sets a delimiter for an environment variable with this value.
func (Layer) DelimiterLaunchEnv ¶
DelimiterLaunchEnv sets a delimiter for an environment variable with this value.
func (Layer) DelimiterSharedEnv ¶
DelimiterSharedEnv sets a delimiter for an environment variable with this value.
func (Layer) OverrideBuildEnv ¶
OverrideBuildEnv overrides any existing value for an environment variable with this value.
func (Layer) OverrideLaunchEnv ¶
OverrideLaunchEnv overrides any existing value for an environment variable with this value.
func (Layer) OverrideSharedEnv ¶
OverrideSharedEnv overrides any existing value for an environment variable with this value.
func (Layer) PrependBuildEnv ¶
PrependBuildEnv prepends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) PrependLaunchEnv ¶
PrependLaunchEnv prepends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) PrependPathBuildEnv ¶
PrependPathBuildEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependPathLaunchEnv ¶
PrependPathLaunchEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependPathSharedEnv ¶
PrependPathSharedEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependSharedEnv ¶
PrependSharedEnv prepends the value of this environment variable to any previous declarations of the value without any delimitation. If delimitation is important during concatenation, callers are required to add it.
func (Layer) ReadMetadata ¶
ReadMetadata reads arbitrary layer metadata from the filesystem.
func (Layer) RemoveMetadata ¶
RemoveMetadata remove layer metadata from the filesystem.
func (Layer) WriteMetadata ¶
WriteMetadata writes arbitrary layer metadata to the filesystem.
type Layers ¶
type Layers struct { // Root is the path to the root directory for the layers. Root string // contains filtered or unexported fields }
Layers represents the layers for an application.
func (Layers) WriteApplicationMetadata ¶
WriteApplicationMetadata writes application metadata to the filesystem.
func (Layers) WritePersistentMetadata ¶
WritePersistentMetadata writes persistent metadata to the filesystem.
type Metadata ¶
type Metadata struct { // Processes is a collection of processes. Processes Processes `toml:"processes"` // Slices is a collection of slices. Slices Slices `toml:"slices"` }
Metadata represents metadata about the Launch.
type Process ¶
type Process struct { // Type is the type of the process. Type string `toml:"type"` // Command is the command of the process. Command string `toml:"command"` // Command is exec'd directly by the os (no profile.d scripts run) Direct bool `toml:"direct"` }
Process represents metadata about a type of command that can be run.