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
- Variables
- func NewCraneWrapper(kubeClient clients.ClientsInterface, ocg OpenShiftCAGetter, ...) *craneWrapper
- type CraneWrapper
- type DriverToolkitEntry
- type MockCraneWrapper
- type MockCraneWrapperMockRecorder
- type MockOpenShiftCAGetter
- type MockOpenShiftCAGetterMockRecorder
- type MockRegistry
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) ExtractToolkitRelease(arg0 v1.Layer) (*DriverToolkitEntry, error)
- func (m *MockRegistry) GetLayerByDigest(arg0 context.Context, arg1, arg2 string) (v1.Layer, error)
- func (m *MockRegistry) GetLayersDigests(arg0 context.Context, arg1 string) (string, []string, error)
- func (m *MockRegistry) LastLayer(arg0 context.Context, arg1 string) (v1.Layer, error)
- func (m *MockRegistry) ReleaseImageMachineOSConfig(layer v1.Layer) (string, error)
- func (m *MockRegistry) ReleaseManifests(arg0 v1.Layer) (string, error)
- func (m *MockRegistry) ReleaseMetadataOCPVersion(arg0 v1.Layer) (string, error)
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) ExtractToolkitRelease(arg0 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetLayerByDigest(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetLayersDigests(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) LastLayer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) ReleaseImageMachineOSConfig(layer interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) ReleaseManifests(arg0 interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) ReleaseMetadataOCPVersion(arg0 interface{}) *gomock.Call
- type OpenShiftCAGetter
- type Registry
Constants ¶
const (
RegistryConfFilePath = "/mnt/host/registries.conf"
)
Variables ¶
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 DriverToolkitEntry ¶
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 ¶
func (m *MockCraneWrapper) EXPECT() *MockCraneWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockOpenShiftCAGetter) EXPECT() *MockOpenShiftCAGetterMockRecorder
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 ¶
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
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 ¶
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) 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