testhelpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyImageV01 = Image{
	ConfigBlobID: "sha256:798d0b171b05f1cb0cf6f52d11cd39722182f2272b66488873bcfb8350917d2b",
	Layers: []Layer{
		{
			BlobID:  "sha256:6c1f4533b125f8f825188c4f4ff633a338cfce0db2813124d3d518028baf7d7a",
			DiffID:  "sha256:3355e23c079e9b35e4b48075147a7e7e1850b99e089af9a63eed3de235af98ca",
			ChainID: "sha256:3355e23c079e9b35e4b48075147a7e7e1850b99e089af9a63eed3de235af98ca",
		},
	},
}
View Source
var EmptyImageV011 = Image{
	ConfigBlobID: "sha256:217f3b4afdf698d639f854d9c6d640903a011413bc7e7bffeabe63c7ca7e4a7d",
	Layers: []Layer{
		{
			BlobID:  "sha256:47e3dd80d678c83c50cb133f4cf20e94d088f890679716c8b763418f55827a58",
			DiffID:  "sha256:afe200c63655576eaa5cabe036a2c09920d6aee67653ae75a9d35e0ec27205a5",
			ChainID: "sha256:afe200c63655576eaa5cabe036a2c09920d6aee67653ae75a9d35e0ec27205a5",
		},
		{
			BlobID:  "sha256:7f2760e7451ce455121932b178501d60e651f000c3ab3bc12ae5d1f57614cc76",
			DiffID:  "sha256:d7c6a5f0d9a15779521094fa5eaf026b719984fb4bfe8e0012bd1da1b62615b0",
			ChainID: "sha256:9242945d3c9c7cf5f127f9352fea38b1d3efe62ee76e25f70a3e6db63a14c233",
		},
	},
}

Functions

func CleanUpSubvolumes

func CleanUpSubvolumes(btrfsPath string, storeName string)

func SuidDrax

func SuidDrax(draxBinPath string)

func UnsuidDrax

func UnsuidDrax(draxBinPath string)

Types

type FakeRegistry

type FakeRegistry struct {
	ActualRegistryURL *url.URL
	// contains filtered or unexported fields
}

func NewFakeRegistry

func NewFakeRegistry(actualRegistryURL *url.URL) *FakeRegistry

func (*FakeRegistry) Addr

func (r *FakeRegistry) Addr() string

func (*FakeRegistry) RequestedBlobs

func (r *FakeRegistry) RequestedBlobs() []string

func (*FakeRegistry) Start

func (r *FakeRegistry) Start() error

func (*FakeRegistry) Stop

func (r *FakeRegistry) Stop()

func (*FakeRegistry) WhenGettingBlob

func (r *FakeRegistry) WhenGettingBlob(digest string, order int, httpHandler http.HandlerFunc)

type Image added in v0.2.0

type Image struct {
	ConfigBlobID string
	Layers       []Layer
}

type Layer added in v0.2.0

type Layer struct {
	BlobID  string
	DiffID  string
	ChainID string
}

Jump to

Keyboard shortcuts

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