image

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	// name of the image
	Name string `export:"name"`

	// tag of the image
	Tag string `export:"tag"`
	// contains filtered or unexported fields
}

Image is responsible for pulling docker images

func (*Image) Apply

Apply pulls a docker image

func (*Image) Check

Check system for presence of docker image

func (*Image) RepoTag

func (i *Image) RepoTag() string

RepoTag builds a repo tag used to identify a specific docker image

func (*Image) SetClient

func (i *Image) SetClient(client docker.APIClient)

SetClient injects a docker api client

type Preparer

type Preparer struct {
	// name of the image to pull
	Name string `hcl:"name" required:"true" nonempty:"true"`

	// tag of the image to pull. default: latest
	Tag string `hcl:"tag"`

	// the amount of time to wait after a period of inactivity. The timeout is
	// reset each time new data arrives.
	InactivityTimeout time.Duration `hcl:"inactivity_timeout"`
}

Preparer for docker images

Image is responsible for pulling Docker images. It assumes that there is already a Docker daemon running on the system. *Note: docker resources are not currently supported on Solaris.*

func (*Preparer) Prepare

func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error)

Prepare a new docker image

Jump to

Keyboard shortcuts

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