converge: Index | Files

package image

import ""


Package Files

image.go preparer.go

type Image Uses

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 Uses

func (i *Image) Apply(context.Context) (resource.TaskStatus, error)

Apply pulls a docker image

func (*Image) Check Uses

func (i *Image) Check(context.Context, resource.Renderer) (resource.TaskStatus, error)

Check system for presence of docker image

func (*Image) RepoTag Uses

func (i *Image) RepoTag() string

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

func (*Image) SetClient Uses

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

SetClient injects a docker api client

type Preparer Uses

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 Uses

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

Prepare a new docker image

Package image imports 6 packages (graph) and is imported by 2 packages. Updated 2017-01-13. Refresh now. Tools for package owners.