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 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 ¶
func (m *MockImageStore) EXPECT() *MockImageStoreMockRecorder
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.
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.
Click to show internal directories.
Click to hide internal directories.