registry

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

README

registry

Docker Image To IPFS

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DockerLocalRegistryHost string
}

Config ...

type Interface

type Interface interface {
	PushImageByID(imageID string) (string, error)
	PushImage(reader io.Reader) (string, error)
	DownloadImage(ipfsHash string) (string, error)
	PullImage(ipfsHash string) (string, error)
}

Interface ...

type Registry

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

Registry ...

func NewRegistry

func NewRegistry(config *Config) *Registry

NewRegistry ...

func (*Registry) DownloadImage

func (registry *Registry) DownloadImage(ipfsHash string) (string, error)

DownloadImage download Docker image from IPFS

func (*Registry) PullImage

func (registry *Registry) PullImage(ipfsHash string) (string, error)

PullImage pull Docker image from IPFS

func (*Registry) PushImage

func (registry *Registry) PushImage(reader io.Reader) (string, error)

PushImage uploads Docker image to IPFS

func (*Registry) PushImageByID

func (registry *Registry) PushImageByID(imageID string) (string, error)

PushImageByID uploads Docker image by image ID (hash/name) to IPFS

Directories

Path Synopsis
Package mock_registry is a generated GoMock package.
Package mock_registry is a generated GoMock package.

Jump to

Keyboard shortcuts

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