Documentation ¶
Index ¶
- Constants
- Variables
- func BuildImage(tag, path, dockerfile string) error
- func GetAuthConfig() (map[string]types.AuthConfig, error)
- func IsDockerRunning() (bool, error)
- func PullImage(image string) error
- func Run(opts ...RunOpt) error
- type AuthHelper
- type OutputKey
- type RunCommand
- type RunConfig
- type RunOpt
Constants ¶
View Source
const ( StatusOutput OutputKey = "status" StreamOutput OutputKey = "stream" Gcloud AuthHelper = "gcloud" )
Variables ¶
View Source
var (
ErrCannotRedeclare = errors.New("cannot be declared more than once")
)
Functions ¶
func BuildImage ¶
func GetAuthConfig ¶
func GetAuthConfig() (map[string]types.AuthConfig, error)
func IsDockerRunning ¶
Types ¶
type AuthHelper ¶
type AuthHelper = string
type RunCommand ¶
type RunConfig ¶
type RunConfig struct { Config *container.Config HostConfig *container.HostConfig NetworkConfig *network.NetworkingConfig Platform *specs.Platform Name string }
type RunOpt ¶
func RunWithCommand ¶
func RunWithEntrypoint ¶
func RunWithImage ¶
func RunWithMounts ¶
func RunWithShell ¶
func RunWithWorkingDir ¶
Click to show internal directories.
Click to hide internal directories.