Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: registry.go
Generated by this command:
mockgen -source=registry.go -package=registry -destination=mock_registry_api.go
Package registry is a generated GoMock package.
Index ¶
- type DriverToolkitEntry
- type MockRegistry
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) GetDigest(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, ...) (string, error)
- func (m *MockRegistry) GetHeaderDataFromLayer(layer v1.Layer, headerName string) ([]byte, error)
- func (m *MockRegistry) GetLayerByDigest(digest string, pullConfig *RepoPullConfig) (v1.Layer, error)
- func (m *MockRegistry) GetLayersDigests(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, ...) ([]string, *RepoPullConfig, error)
- func (m *MockRegistry) ImageExists(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, ...) (bool, error)
- func (m *MockRegistry) LastLayer(ctx context.Context, image string, po *v1beta1.TLSOptions, ...) (v1.Layer, error)
- func (m *MockRegistry) VerifyModuleExists(layer v1.Layer, pathPrefix, kernelVersion, moduleFileName string) bool
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) GetDigest(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetHeaderDataFromLayer(layer, headerName any) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetLayerByDigest(digest, pullConfig any) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetLayersDigests(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
- func (mr *MockRegistryMockRecorder) ImageExists(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
- func (mr *MockRegistryMockRecorder) LastLayer(ctx, image, po, registryAuthGetter any) *gomock.Call
- func (mr *MockRegistryMockRecorder) VerifyModuleExists(layer, pathPrefix, kernelVersion, moduleFileName any) *gomock.Call
- type Registry
- type RepoPullConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverToolkitEntry ¶
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) GetDigest ¶
func (m *MockRegistry) GetDigest(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (string, error)
GetDigest mocks base method.
func (*MockRegistry) GetHeaderDataFromLayer ¶
GetHeaderDataFromLayer mocks base method.
func (*MockRegistry) GetLayerByDigest ¶
func (m *MockRegistry) GetLayerByDigest(digest string, pullConfig *RepoPullConfig) (v1.Layer, error)
GetLayerByDigest mocks base method.
func (*MockRegistry) GetLayersDigests ¶
func (m *MockRegistry) GetLayersDigests(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) ([]string, *RepoPullConfig, error)
GetLayersDigests mocks base method.
func (*MockRegistry) ImageExists ¶
func (m *MockRegistry) ImageExists(ctx context.Context, image string, tlsOptions *v1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (bool, error)
ImageExists mocks base method.
func (*MockRegistry) LastLayer ¶
func (m *MockRegistry) LastLayer(ctx context.Context, image string, po *v1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (v1.Layer, error)
LastLayer mocks base method.
func (*MockRegistry) VerifyModuleExists ¶
func (m *MockRegistry) VerifyModuleExists(layer v1.Layer, pathPrefix, kernelVersion, moduleFileName string) bool
VerifyModuleExists mocks base method.
type MockRegistryMockRecorder ¶
type MockRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryMockRecorder is the mock recorder for MockRegistry.
func (*MockRegistryMockRecorder) GetDigest ¶
func (mr *MockRegistryMockRecorder) GetDigest(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
GetDigest indicates an expected call of GetDigest.
func (*MockRegistryMockRecorder) GetHeaderDataFromLayer ¶
func (mr *MockRegistryMockRecorder) GetHeaderDataFromLayer(layer, headerName any) *gomock.Call
GetHeaderDataFromLayer indicates an expected call of GetHeaderDataFromLayer.
func (*MockRegistryMockRecorder) GetLayerByDigest ¶
func (mr *MockRegistryMockRecorder) GetLayerByDigest(digest, pullConfig any) *gomock.Call
GetLayerByDigest indicates an expected call of GetLayerByDigest.
func (*MockRegistryMockRecorder) GetLayersDigests ¶
func (mr *MockRegistryMockRecorder) GetLayersDigests(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
GetLayersDigests indicates an expected call of GetLayersDigests.
func (*MockRegistryMockRecorder) ImageExists ¶
func (mr *MockRegistryMockRecorder) ImageExists(ctx, image, tlsOptions, registryAuthGetter any) *gomock.Call
ImageExists indicates an expected call of ImageExists.
func (*MockRegistryMockRecorder) LastLayer ¶
func (mr *MockRegistryMockRecorder) LastLayer(ctx, image, po, registryAuthGetter any) *gomock.Call
LastLayer indicates an expected call of LastLayer.
func (*MockRegistryMockRecorder) VerifyModuleExists ¶
func (mr *MockRegistryMockRecorder) VerifyModuleExists(layer, pathPrefix, kernelVersion, moduleFileName any) *gomock.Call
VerifyModuleExists indicates an expected call of VerifyModuleExists.
type Registry ¶
type Registry interface { ImageExists(ctx context.Context, image string, tlsOptions *kmmv1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (bool, error) VerifyModuleExists(layer v1.Layer, pathPrefix, kernelVersion, moduleFileName string) bool GetLayersDigests(ctx context.Context, image string, tlsOptions *kmmv1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) ([]string, *RepoPullConfig, error) GetLayerByDigest(digest string, pullConfig *RepoPullConfig) (v1.Layer, error) LastLayer(ctx context.Context, image string, po *kmmv1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (v1.Layer, error) GetHeaderDataFromLayer(layer v1.Layer, headerName string) ([]byte, error) GetDigest(ctx context.Context, image string, tlsOptions *kmmv1beta1.TLSOptions, registryAuthGetter auth.RegistryAuthGetter) (string, error) }
func NewRegistry ¶
func NewRegistry() Registry
type RepoPullConfig ¶
type RepoPullConfig struct {
// contains filtered or unexported fields
}