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 ¶ added in v1.25.0
DefaultBuildEnv sets a default for an environment variable with this value.
func (Layer) DefaultLaunchEnv ¶ added in v1.25.0
DefaultLaunchEnv sets a default for an environment variable with this value.
func (Layer) DefaultSharedEnv ¶ added in v1.25.0
DefaultSharedEnv sets a default for an environment variable with this value.
func (Layer) DelimiterBuildEnv ¶ added in v1.25.0
DelimiterBuildEnv sets a delimiter for an environment variable with this value.
func (Layer) DelimiterLaunchEnv ¶ added in v1.25.0
DelimiterLaunchEnv sets a delimiter for an environment variable with this value.
func (Layer) DelimiterSharedEnv ¶ added in v1.25.0
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 ¶ added in v1.25.0
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 ¶ added in v1.25.0
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 ¶ added in v1.25.0
PrependPathBuildEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependPathLaunchEnv ¶ added in v1.25.0
PrependPathLaunchEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependPathSharedEnv ¶ added in v1.25.0
PrependPathSharedEnv prepends the value of this environment variable to any previous declarations of the value using the OS path delimiter.
func (Layer) PrependSharedEnv ¶ added in v1.25.0
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 ¶ added in v1.11.0
WriteApplicationMetadata writes application metadata to the filesystem.
func (Layers) WritePersistentMetadata ¶ added in v1.11.0
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.