testhelpers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BusyBoxImage = BaseImage{
	ConfigBlobID: "sha256:1efc1d465fd6255396d0efd90a899f57aba2b7b294b02d5f55c6f5505ca9f3e5",
	Layers: []Layer{
		{
			BlobID:  "sha256:fdab12439263ca89c449f09a489b6fbf40af8526a3dda279c8954451703641c3",
			DiffID:  "sha256:68737f5031b303067faacb264cd3b1466973da762bd83d4381e5396e6a4b79a8",
			ChainID: "38ac8d0f5bb30c8b742ad97a328b77870afaec92b33faf7e121161bc78a3fec8",
		},
	},
}
View Source
var EmptyBaseImageV011 = BaseImage{
	ConfigBlobID: "sha256:217f3b4afdf698d639f854d9c6d640903a011413bc7e7bffeabe63c7ca7e4a7d",
	Layers: []Layer{
		{
			BlobID:  "sha256:47e3dd80d678c83c50cb133f4cf20e94d088f890679716c8b763418f55827a58",
			DiffID:  "sha256:afe200c63655576eaa5cabe036a2c09920d6aee67653ae75a9d35e0ec27205a5",
			ChainID: "afe200c63655576eaa5cabe036a2c09920d6aee67653ae75a9d35e0ec27205a5",
		},
		{
			BlobID:  "sha256:7f2760e7451ce455121932b178501d60e651f000c3ab3bc12ae5d1f57614cc76",
			DiffID:  "sha256:d7c6a5f0d9a15779521094fa5eaf026b719984fb4bfe8e0012bd1da1b62615b0",
			ChainID: "9242945d3c9c7cf5f127f9352fea38b1d3efe62ee76e25f70a3e6db63a14c233",
		},
	},
}

Functions

func CleanUpBtrfsSubvolumes added in v0.11.0

func CleanUpBtrfsSubvolumes(btrfsPath string, storeName string)

func CleanUpImages added in v0.11.0

func CleanUpImages(storePath string)

func CleanUpOverlayMounts added in v0.11.0

func CleanUpOverlayMounts(mountPath string, storeName string)

func SuidDrax

func SuidDrax(draxBinPath string)

func UnsuidDrax

func UnsuidDrax(draxBinPath string)

Types

type BaseImage added in v0.4.0

type BaseImage struct {
	ConfigBlobID string
	Layers       []Layer
}

type FakeMetron added in v0.5.0

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

func NewFakeMetron added in v0.5.0

func NewFakeMetron(port uint16) *FakeMetron

func (*FakeMetron) Listen added in v0.5.0

func (m *FakeMetron) Listen() error

func (*FakeMetron) Run added in v0.5.0

func (m *FakeMetron) Run() error

func (*FakeMetron) Stop added in v0.5.0

func (m *FakeMetron) Stop() error

func (*FakeMetron) ValueMetricsFor added in v0.5.0

func (m *FakeMetron) ValueMetricsFor(key string) []events.ValueMetric

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 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