registry

package
v0.0.0-...-c9e8fde Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package registry is a generated GoMock package.

Package registry is a generated GoMock package.

Package registry is a generated GoMock package.

Index

Constants

View Source
const (
	RegistryConfFilePath = "/mnt/host/registries.conf"
)

Variables

View Source
var ErrNoAuthForRegistry = errors.New("no auth defined for this registry")

Functions

func NewCraneWrapper

func NewCraneWrapper(kubeClient clients.ClientsInterface, ocg OpenShiftCAGetter, registriesConfFilePath string) *craneWrapper

Types

type CraneWrapper

type CraneWrapper interface {
	Manifest(context.Context, string) ([]byte, error)
	PullLayer(context.Context, string) (v1.Layer, error)
}

type DriverToolkitEntry

type DriverToolkitEntry struct {
	ImageURL            string `json:"imageURL"`
	KernelFullVersion   string `json:"kernelFullVersion"`
	RTKernelFullVersion string `json:"RTKernelFullVersion"`
	OSVersion           string `json:"OSVersion"`
}

type MockCraneWrapper

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

MockCraneWrapper is a mock of CraneWrapper interface.

func NewMockCraneWrapper

func NewMockCraneWrapper(ctrl *gomock.Controller) *MockCraneWrapper

NewMockCraneWrapper creates a new mock instance.

func (*MockCraneWrapper) EXPECT

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

func (*MockCraneWrapper) Manifest

func (m *MockCraneWrapper) Manifest(arg0 context.Context, arg1 string) ([]byte, error)

Manifest mocks base method.

func (*MockCraneWrapper) PullLayer

func (m *MockCraneWrapper) PullLayer(arg0 context.Context, arg1 string) (v1.Layer, error)

PullLayer mocks base method.

type MockCraneWrapperMockRecorder

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

MockCraneWrapperMockRecorder is the mock recorder for MockCraneWrapper.

func (*MockCraneWrapperMockRecorder) Manifest

func (mr *MockCraneWrapperMockRecorder) Manifest(arg0, arg1 interface{}) *gomock.Call

Manifest indicates an expected call of Manifest.

func (*MockCraneWrapperMockRecorder) PullLayer

func (mr *MockCraneWrapperMockRecorder) PullLayer(arg0, arg1 interface{}) *gomock.Call

PullLayer indicates an expected call of PullLayer.

type MockOpenShiftCAGetter

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

MockOpenShiftCAGetter is a mock of OpenShiftCAGetter interface.

func NewMockOpenShiftCAGetter

func NewMockOpenShiftCAGetter(ctrl *gomock.Controller) *MockOpenShiftCAGetter

NewMockOpenShiftCAGetter creates a new mock instance.

func (*MockOpenShiftCAGetter) AdditionalTrustedCAs

func (m *MockOpenShiftCAGetter) AdditionalTrustedCAs(ctx context.Context) (map[string][]byte, error)

AdditionalTrustedCAs mocks base method.

func (*MockOpenShiftCAGetter) CABundle

func (m *MockOpenShiftCAGetter) CABundle(arg0 context.Context) ([]byte, error)

CABundle mocks base method.

func (*MockOpenShiftCAGetter) EXPECT

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

type MockOpenShiftCAGetterMockRecorder

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

MockOpenShiftCAGetterMockRecorder is the mock recorder for MockOpenShiftCAGetter.

func (*MockOpenShiftCAGetterMockRecorder) AdditionalTrustedCAs

func (mr *MockOpenShiftCAGetterMockRecorder) AdditionalTrustedCAs(ctx interface{}) *gomock.Call

AdditionalTrustedCAs indicates an expected call of AdditionalTrustedCAs.

func (*MockOpenShiftCAGetterMockRecorder) CABundle

func (mr *MockOpenShiftCAGetterMockRecorder) CABundle(arg0 interface{}) *gomock.Call

CABundle indicates an expected call of CABundle.

type MockRegistry

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

MockRegistry is a mock of Registry interface.

func NewMockRegistry

func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry

NewMockRegistry creates a new mock instance.

func (*MockRegistry) EXPECT

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

func (*MockRegistry) ExtractToolkitRelease

func (m *MockRegistry) ExtractToolkitRelease(arg0 v1.Layer) (*DriverToolkitEntry, error)

ExtractToolkitRelease mocks base method.

func (*MockRegistry) GetLayerByDigest

func (m *MockRegistry) GetLayerByDigest(arg0 context.Context, arg1, arg2 string) (v1.Layer, error)

GetLayerByDigest mocks base method.

func (*MockRegistry) GetLayersDigests

func (m *MockRegistry) GetLayersDigests(arg0 context.Context, arg1 string) (string, []string, error)

GetLayersDigests mocks base method.

func (*MockRegistry) LastLayer

func (m *MockRegistry) LastLayer(arg0 context.Context, arg1 string) (v1.Layer, error)

LastLayer mocks base method.

func (*MockRegistry) ReleaseImageMachineOSConfig

func (m *MockRegistry) ReleaseImageMachineOSConfig(layer v1.Layer) (string, error)

ReleaseImageMachineOSConfig mocks base method.

func (*MockRegistry) ReleaseManifests

func (m *MockRegistry) ReleaseManifests(arg0 v1.Layer) (string, error)

ReleaseManifests mocks base method.

func (*MockRegistry) ReleaseMetadataOCPVersion

func (m *MockRegistry) ReleaseMetadataOCPVersion(arg0 v1.Layer) (string, error)

ReleaseMetadataOCPVersion mocks base method.

type MockRegistryMockRecorder

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

MockRegistryMockRecorder is the mock recorder for MockRegistry.

func (*MockRegistryMockRecorder) ExtractToolkitRelease

func (mr *MockRegistryMockRecorder) ExtractToolkitRelease(arg0 interface{}) *gomock.Call

ExtractToolkitRelease indicates an expected call of ExtractToolkitRelease.

func (*MockRegistryMockRecorder) GetLayerByDigest

func (mr *MockRegistryMockRecorder) GetLayerByDigest(arg0, arg1, arg2 interface{}) *gomock.Call

GetLayerByDigest indicates an expected call of GetLayerByDigest.

func (*MockRegistryMockRecorder) GetLayersDigests

func (mr *MockRegistryMockRecorder) GetLayersDigests(arg0, arg1 interface{}) *gomock.Call

GetLayersDigests indicates an expected call of GetLayersDigests.

func (*MockRegistryMockRecorder) LastLayer

func (mr *MockRegistryMockRecorder) LastLayer(arg0, arg1 interface{}) *gomock.Call

LastLayer indicates an expected call of LastLayer.

func (*MockRegistryMockRecorder) ReleaseImageMachineOSConfig

func (mr *MockRegistryMockRecorder) ReleaseImageMachineOSConfig(layer interface{}) *gomock.Call

ReleaseImageMachineOSConfig indicates an expected call of ReleaseImageMachineOSConfig.

func (*MockRegistryMockRecorder) ReleaseManifests

func (mr *MockRegistryMockRecorder) ReleaseManifests(arg0 interface{}) *gomock.Call

ReleaseManifests indicates an expected call of ReleaseManifests.

func (*MockRegistryMockRecorder) ReleaseMetadataOCPVersion

func (mr *MockRegistryMockRecorder) ReleaseMetadataOCPVersion(arg0 interface{}) *gomock.Call

ReleaseMetadataOCPVersion indicates an expected call of ReleaseMetadataOCPVersion.

type OpenShiftCAGetter

type OpenShiftCAGetter interface {
	AdditionalTrustedCAs(ctx context.Context) (map[string][]byte, error)
	CABundle(ctx context.Context) ([]byte, error)
}

func NewOpenShiftCAGetter

func NewOpenShiftCAGetter(kubeClient clients.ClientsInterface) OpenShiftCAGetter

type Registry

type Registry interface {
	LastLayer(context.Context, string) (v1.Layer, error)
	ExtractToolkitRelease(v1.Layer) (*DriverToolkitEntry, error)
	ReleaseManifests(v1.Layer) (string, error)
	ReleaseMetadataOCPVersion(v1.Layer) (string, error)
	ReleaseImageMachineOSConfig(layer v1.Layer) (string, error)
	GetLayersDigests(context.Context, string) (string, []string, error)
	GetLayerByDigest(context.Context, string, string) (v1.Layer, error)
}

func NewRegistry

func NewRegistry(kubeClient clients.ClientsInterface, craneWrapper CraneWrapper) Registry

Jump to

Keyboard shortcuts

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