Documentation
¶
Index ¶
- Constants
- func Fingerprint(policy Policy) (string, error)
- type Bootstrap
- type BootstrapEntrypoint
- type BootstrapParameter
- type BootstrapParameterArray
- type BootstrapParameterMap
- type ConfigManagementPluginGenerate
- type ConfigManagementPluginSeed
- type ContainerCacheMount
- type ContainerConfig
- type ContainerNetwork
- type ContainerRuntime
- type Engine
- type ExecCommand
- type ExecConfig
- type ExecCopy
- type ExecEnv
- type ExecOutput
- type ExecParameter
- type ExecParameterPath
- type ExecParameterType
- type ExecParameters
- type Plugin
- type PluginDiscoverMatch
- type PluginMatch
- type Policy
Constants ¶
View Source
const ( NoPolicyFingerprint = "" ExecWorkdirSource = "source" ExecCopyScopeSource = "source" ExecCopyScopeRepository = "repository" DefaultInitTimeout = 10 * time.Second DefaultGenerateTimeout = 60 * time.Second DefaultPostRendererTimeout = 30 * time.Second DefaultMaxStdoutBytes = int64(10 * 1024 * 1024) DefaultMaxStderrBytes = int64(64 * 1024) DefaultContainerRuntime = ContainerRuntimeDocker DefaultContainerNetwork = ContainerNetworkNone ContainerCacheTargetRoot = "/drydock-cache" )
View Source
const ( ExecParameterPathBaseSource = "source" ExecParameterPathBaseRepository = "repository" )
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
Types ¶
type Bootstrap ¶ added in v0.1.14
type Bootstrap struct {
Entrypoints []BootstrapEntrypoint
}
type BootstrapEntrypoint ¶ added in v0.1.14
type BootstrapEntrypoint struct {
Name string
Plugin string
SourcePath string
Parameters []BootstrapParameter
}
type BootstrapParameter ¶ added in v0.1.14
type BootstrapParameter struct {
Name string
String *string
Array *BootstrapParameterArray
Map *BootstrapParameterMap
}
type BootstrapParameterArray ¶ added in v0.1.14
type BootstrapParameterArray struct {
Values []string
}
type BootstrapParameterMap ¶ added in v0.1.14
type ConfigManagementPluginGenerate ¶ added in v0.1.14
type ConfigManagementPluginSeed ¶ added in v0.1.14
type ConfigManagementPluginSeed struct {
Discover *PluginDiscoverMatch
Generate *ConfigManagementPluginGenerate
}
type ContainerCacheMount ¶ added in v0.1.14
type ContainerConfig ¶ added in v0.1.14
type ContainerConfig struct {
Runtime ContainerRuntime
Image string
AllowMutableImageTag bool
Network ContainerNetwork
CacheMounts []ContainerCacheMount
Lifecycle ExecConfig
}
type ContainerNetwork ¶ added in v0.1.14
type ContainerNetwork string
const ( ContainerNetworkNone ContainerNetwork = "none" ContainerNetworkDefault ContainerNetwork = "default" )
type ContainerRuntime ¶ added in v0.1.14
type ContainerRuntime string
const (
ContainerRuntimeDocker ContainerRuntime = "docker"
)
type ExecCommand ¶
type ExecConfig ¶
type ExecConfig struct {
Workdir string
Copy ExecCopy
Init *ExecCommand
Generate ExecCommand
PostRenderers []ExecCommand
Env ExecEnv
Parameters ExecParameters
Output ExecOutput
}
type ExecOutput ¶
type ExecParameter ¶ added in v0.1.14
type ExecParameter struct {
Name string
Type ExecParameterType
Required bool
Path *ExecParameterPath
}
type ExecParameterPath ¶ added in v0.1.14
type ExecParameterType ¶ added in v0.1.14
type ExecParameterType string
const ( ExecParameterTypeString ExecParameterType = "string" ExecParameterTypeArray ExecParameterType = "array" ExecParameterTypeMap ExecParameterType = "map" )
type ExecParameters ¶ added in v0.1.14
type ExecParameters struct {
Allow []ExecParameter
}
type Plugin ¶
type Plugin struct {
Engine Engine
Match *PluginMatch
ConfigManagementPlugin *ConfigManagementPluginSeed
Exec *ExecConfig
Container *ContainerConfig
}
type PluginDiscoverMatch ¶ added in v0.1.14
type PluginMatch ¶ added in v0.1.14
type PluginMatch struct {
Discover PluginDiscoverMatch
}
Click to show internal directories.
Click to hide internal directories.