docker

package
v0.0.0-...-b5201a7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx *context.Context, options BuildOptions)

Build creates a docker image from the specified Dockerfile and context

func CreateBuildContext

func CreateBuildContext(buf *bytes.Buffer, dir string) error

CreateBuildContext creates a docker context

func ImageExists

func ImageExists(tag string) (bool, error)

ImageExists verifies that an image exists with the specific tag

func NewClient

func NewClient() (*client.Client, error)

NewClient initializes a new docker client

func Run

func Run(ctx *context.Context, options RunOptions)

Run starts a service

Types

type BuildOptions

type BuildOptions struct {
	DisplayName string
	Path        string
	Dockerfile  string
	Tag         string
	Cache       bool
}

BuildOptions exposes a subset of docker's types.ImageBuildOptions

type RunOptions

type RunOptions struct {
	Image string
	Pull  bool
}

RunOptions contains parameters for Run

Jump to

Keyboard shortcuts

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