docker

package
v0.0.0-...-e7db92f Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const TiyoTemplate string = `` /* 555-byte string literal not displayed */

Template string for creating docker containers

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	// Config object containing details of docker repo settings
	Config *config.Config

	// Docker client
	Client *client.Client
}

Docker client configuration Create docker images for use within TIYO

func NewDockerEngine

func NewDockerEngine(config *config.Config) *Docker

NewDockerEngine : Create a new docker engine

func (*Docker) ContainerExists

func (docker *Docker) ContainerExists(tag string) (bool, error)

ContainerExists : if pod does not exist, has it previously been built? e.g. curl https://registry.hub.docker.com/v1/repositories/choclab/[NAME]/tags

func (*Docker) Create

func (docker *Docker) Create(command *pipeline.Command) error

Create a new container based off the pipeline element

type ErrorMessage

type ErrorMessage struct {

	// The message retrieved from docker client
	Error string
}

ErrorMessage : struct for unpacking errors from the docker client

Jump to

Keyboard shortcuts

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