config

package
v0.0.0-...-0dbe23e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigFilePath

func DefaultConfigFilePath() string

DefaultConfigFilePath ...

Types

type DockerConfigModel

type DockerConfigModel struct {
	// Image
	//  docker image to use
	Image string `json:"image"`
	// Volumes
	//  in docker format: /path/on/host:/path/in/container
	Volumes []string `json:"volumes"`
	// IsAllowAccessToDockerInContainer
	//  shares the docker socker & docker binary with the container
	IsAllowAccessToDockerInContainer bool `json:"allow_access_to_docker_in_container"`
	// AdditionalRunArguments
	//  additional arguments for the `docker run .. ` command,
	//  appended (!) after other arguments (e.g. volumes)
	AdditionalRunArguments []string `json:"additional_run_arguments"`
}

DockerConfigModel ...

type Model

type Model struct {
	Docker DockerConfigModel `json:"docker"`
}

Model ...

func LoadConfigFromFile

func LoadConfigFromFile(pth string) (Model, error)

LoadConfigFromFile ...

Jump to

Keyboard shortcuts

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