imagestore

package
v0.0.0-...-f822399 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package imagestore is a generated GoMock package.

Index

Constants

View Source
const (
	ImageTypeFull    = "full-iso"
	ImageTypeMinimal = "minimal-iso"
)

Variables

View Source
var DefaultVersions = []map[string]string{
	{
		"openshift_version": "4.8",
		"cpu_architecture":  "x86_64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.8/4.8.14/rhcos-4.8.14-x86_64-live.x86_64.iso",
		"version":           "48.84.202109241901-0",
	},
	{
		"openshift_version": "4.9",
		"cpu_architecture":  "x86_64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.9/4.9.0/rhcos-4.9.0-x86_64-live.x86_64.iso",
		"version":           "49.84.202110081407-0",
	},
	{
		"openshift_version": "4.9",
		"cpu_architecture":  "arm64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/aarch64/dependencies/rhcos/4.9/4.9.0/rhcos-4.9.0-aarch64-live.aarch64.iso",
		"version":           "49.84.202110080947-0",
	},
	{
		"openshift_version": "4.10",
		"cpu_architecture":  "x86_64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.10/4.10.3/rhcos-4.10.3-x86_64-live.x86_64.iso",
		"version":           "410.84.202201251210-0",
	},
	{
		"openshift_version": "4.10",
		"cpu_architecture":  "arm64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/aarch64/dependencies/rhcos/4.10/4.10.3/rhcos-4.10.3-aarch64-live.aarch64.iso",
		"version":           "410.84.202201251210-0",
	},
	{
		"openshift_version": "4.11",
		"cpu_architecture":  "x86_64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/pre-release/4.11.0-0.nightly-2022-04-16-163450/rhcos-4.11.0-0.nightly-2022-04-16-163450-x86_64-live.x86_64.iso",
		"version":           "411.85.202203242008-0",
	},
	{
		"openshift_version": "4.11",
		"cpu_architecture":  "arm64",
		"url":               "https://mirror.openshift.com/pub/openshift-v4/aarch64/dependencies/rhcos/pre-release/4.11.0-0.nightly-arm64-2022-04-19-171931/rhcos-4.11.0-0.nightly-arm64-2022-04-19-171931-aarch64-live.aarch64.iso",
		"version":           "411.86.202204190940-0",
	},
}

Functions

This section is empty.

Types

type ImageStore

type ImageStore interface {
	Populate(ctx context.Context) error
	PathForParams(imageType, version, arch string) string
	HaveVersion(version, arch string) bool
}

func NewImageStore

func NewImageStore(ed isoeditor.Editor, dataDir, imageServiceBaseURL string, insecureSkipVerify bool, versions []map[string]string,
	osImageDownloadTrustedCAFile string, osImageDownloadHeadersMap map[string]string, osImageDownloadQueryParamsMap map[string]string) (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) EXPECT

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

func (*MockImageStore) HaveVersion

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

HaveVersion mocks base method.

func (*MockImageStore) PathForParams

func (m *MockImageStore) PathForParams(arg0, arg1, arg2 string) string

PathForParams 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) HaveVersion

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

HaveVersion indicates an expected call of HaveVersion.

func (*MockImageStoreMockRecorder) PathForParams

func (mr *MockImageStoreMockRecorder) PathForParams(arg0, arg1, arg2 interface{}) *gomock.Call

PathForParams indicates an expected call of PathForParams.

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