Documentation ¶
Index ¶
- func CheckCommand(conf *config.Config, container *yaml.Container) error
- func CheckCommands(conf *config.Config, container *yaml.Container) error
- func CheckEntrypoint(conf *config.Config, container *yaml.Container) error
- func CheckImage(conf *config.Config, container *yaml.Container) error
- func CheckPipeline(conf *config.Config) error
- func IsDataVolume(conf *config.Config, volume *yaml.Volume) bool
- func IsService(conf *config.Config, container *yaml.Container) bool
- type Check
- type Linter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCommand ¶
CheckCommand checks that a container is not overriding the entypoint.
func CheckCommands ¶
CheckCommands checks the container commands to not conflict with the container entrypoint and command blocks.
func CheckEntrypoint ¶
CheckEntrypoint checks that a container is not overriding the entypoint.
func CheckImage ¶
CheckImage checks the container image attribute is not empty.
func CheckPipeline ¶
CheckPipeline checks the pipeline block is not empty.
func IsDataVolume ¶
IsDataVolume returns true if the volume mapping is a data volume.
Types ¶
type Check ¶
Check returns an error if the configuration is invalid.
func CheckContainer ¶
CheckContainer is an adapter to perform a check for every container in the configuration. If a check fails the function halts and returns an error.
TODO(bradrydzewski) if check container accepted a slice of checks, we could chain the checks together to reduce the number of iterations.
func CheckNetworks ¶
CheckNetworks prevents a configuration from defining custom networks in untrusted mode.
func CheckTrusted ¶
CheckTrusted checks that a container is not using any restricted settings that require elevated permissions.
func CheckVolumes ¶
CheckVolumes limits the configuration to only using custom local volumes in untrusted mode.