imagestore

package
v0.0.0-...-b85f985 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package imagestore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var DefaultVersions = map[string]map[string]string{
	"4.6": {
		"iso_url":    "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-4.6.8-x86_64-live.x86_64.iso",
		"rootfs_url": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-live-rootfs.x86_64.img",
	},
	"4.7": {
		"iso_url":    "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.13/rhcos-4.7.13-x86_64-live.x86_64.iso",
		"rootfs_url": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.13/rhcos-live-rootfs.x86_64.img",
	},
	"4.8": {
		"iso_url":    "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.3/rhcos-4.8.0-rc.3-x86_64-live.x86_64.iso",
		"rootfs_url": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.3/rhcos-live-rootfs.x86_64.img",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir  string `envconfig:"DATA_DIR"`
	Versions string `envconfig:"RHCOS_VERSIONS"`
}

type ImageStore

type ImageStore interface {
	Populate(ctx context.Context) error
	BaseFile(version string) (*os.File, error)
	HaveVersion(version string) bool
}

func NewImageStore

func NewImageStore() (ImageStore, error)

type MockImageStore

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

MockImageStore is a mock of ImageStore interface.

func NewMockImageStore

func NewMockImageStore(ctrl *gomock.Controller) *MockImageStore

NewMockImageStore creates a new mock instance.

func (*MockImageStore) BaseFile

func (m *MockImageStore) BaseFile(arg0 string) (*os.File, error)

BaseFile mocks base method.

func (*MockImageStore) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockImageStore) HaveVersion

func (m *MockImageStore) HaveVersion(arg0 string) bool

HaveVersion mocks base method.

func (*MockImageStore) Populate

func (m *MockImageStore) Populate(arg0 context.Context) error

Populate mocks base method.

type MockImageStoreMockRecorder

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

MockImageStoreMockRecorder is the mock recorder for MockImageStore.

func (*MockImageStoreMockRecorder) BaseFile

func (mr *MockImageStoreMockRecorder) BaseFile(arg0 interface{}) *gomock.Call

BaseFile indicates an expected call of BaseFile.

func (*MockImageStoreMockRecorder) HaveVersion

func (mr *MockImageStoreMockRecorder) HaveVersion(arg0 interface{}) *gomock.Call

HaveVersion indicates an expected call of HaveVersion.

func (*MockImageStoreMockRecorder) Populate

func (mr *MockImageStoreMockRecorder) Populate(arg0 interface{}) *gomock.Call

Populate indicates an expected call of Populate.

Jump to

Keyboard shortcuts

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