api

package
Version: v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAll

func CleanAll(ctx context.Context, cli *client.Client, idContainer string, imgDocker string, pathDockerImage string) error

CleanAll is the sum of the three Cleaning function

func CleanProducedContainer

func CleanProducedContainer(ctx context.Context, cli *client.Client, idContainer string) error

CleanProducedContainer is cleaning the produced container from the image

func CleanProducedImages

func CleanProducedImages(ctx context.Context, cli *client.Client) error

CleanProducedImages is cleaning the produced Image

func CleanUnusedDockerfile

func CleanUnusedDockerfile(pathDockerImage string, imgDocker string) error

CleanUnusedDockerfile is cleaning Dockerfile file to keep everything clean

func Start

func Start(imgDocker string, pathDockerImage string, envVar []string) error

Start the pipeline of test: Build,Launch,Clean

Types

type API added in v0.4.1

type API struct {
	// contains filtered or unexported fields
}

API handles all the Docker related tasks as defined by the config.

func FromConfig added in v0.4.1

func FromConfig(configFile string) (*API, error)

FromConfig creates a new instance of the API from the provided config file.

func (*API) WriteDockerfile added in v0.4.1

func (api *API) WriteDockerfile() (string, []string, error)

WriteDockerfile writes the config from travis to a new Dockerfile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL