fake_graph

package
v0.0.0-...-26c8931 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGraph

type FakeGraph struct {
	WhenRegistering func(image *image.Image, layer archive.ArchiveReader) error
	// contains filtered or unexported fields
}

func New

func New() *FakeGraph

func (*FakeGraph) Exists

func (graph *FakeGraph) Exists(imageID string) bool

func (*FakeGraph) Get

func (graph *FakeGraph) Get(imageID string) (*image.Image, error)

func (*FakeGraph) Register

func (graph *FakeGraph) Register(image *image.Image, layer archive.ArchiveReader) error

func (*FakeGraph) SetExists

func (graph *FakeGraph) SetExists(imageID string, imgJSON []byte)

Jump to

Keyboard shortcuts

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