storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Returns the image key assigned inside the docker engine.
	Load(imageKey string) (string, error)
}

Interface for container's images storage Backends

type BaseBackend

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

BaseBackend structure

func (*BaseBackend) DockerClient

func (bb *BaseBackend) DockerClient() *dockerClient.Client

type DockerHubBackend

type DockerHubBackend struct {
	BaseBackend
}

func NewDockerHubBackend

func NewDockerHubBackend(dockerCli *dockerClient.Client) *DockerHubBackend

func (*DockerHubBackend) Load

func (dockerHub *DockerHubBackend) Load(imageKey string) (string, error)

type IPFSBackend

type IPFSBackend struct {
	BaseBackend
}

func NewIPFSBackend

func NewIPFSBackend(dockerCli *dockerClient.Client) *IPFSBackend

func (*IPFSBackend) Load

func (ipfs *IPFSBackend) Load(imageKey string) (string, error)

Jump to

Keyboard shortcuts

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