mock

package
v0.0.0-...-1a910b2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlatform

func NewPlatform(arch string, digest string, layers []string, manifestDigest string, os string, historyCreated time.Time) *mockPlatform

func NewRegistry

func NewRegistry() *mockRegistry

Types

type Image

type Image struct {
	registry.Image
	// contains filtered or unexported fields
}

func NewImage

func NewImage(digest string, name string, platforms []registry.Platform, schemaVersion int, tag string) *Image

func (*Image) Digest

func (m *Image) Digest() (string, error)

func (*Image) Platforms

func (m *Image) Platforms() ([]registry.Platform, error)

func (*Image) Repository

func (m *Image) Repository() registry.Repository

func (*Image) SchemaVersion

func (m *Image) SchemaVersion() (int, error)

func (*Image) Tag

func (m *Image) Tag() (string, error)

Jump to

Keyboard shortcuts

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