Documentation ¶
Overview ¶
Package registry is a generated GoMock package.
Index ¶
- type DriverToolkitEntry
- type MockRegistry
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) GetLayerByDigest(digest string, pullConfig *RepoPullConfig) (v1.Layer, error)
- func (m *MockRegistry) GetLayersDigests(ctx context.Context, image string, registryAuthGetter auth.RegistryAuthGetter) ([]string, *RepoPullConfig, error)
- func (m *MockRegistry) ImageExists(ctx context.Context, image string, po v1beta1.PullOptions, ...) (bool, error)
- func (m *MockRegistry) VerifyModuleExists(layer v1.Layer, pathPrefix, kernelVersion, moduleFileName string) bool
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) GetLayerByDigest(digest, pullConfig interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) GetLayersDigests(ctx, image, registryAuthGetter interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) ImageExists(ctx, image, po, registryAuthGetter interface{}) *gomock.Call
- func (mr *MockRegistryMockRecorder) VerifyModuleExists(layer, pathPrefix, kernelVersion, moduleFileName interface{}) *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) 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, registryAuthGetter auth.RegistryAuthGetter) ([]string, *RepoPullConfig, error)
GetLayersDigests mocks base method.
func (*MockRegistry) ImageExists ¶
func (m *MockRegistry) ImageExists(ctx context.Context, image string, po v1beta1.PullOptions, registryAuthGetter auth.RegistryAuthGetter) (bool, error)
ImageExists 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) GetLayerByDigest ¶
func (mr *MockRegistryMockRecorder) GetLayerByDigest(digest, pullConfig interface{}) *gomock.Call
GetLayerByDigest indicates an expected call of GetLayerByDigest.
func (*MockRegistryMockRecorder) GetLayersDigests ¶
func (mr *MockRegistryMockRecorder) GetLayersDigests(ctx, image, registryAuthGetter interface{}) *gomock.Call
GetLayersDigests indicates an expected call of GetLayersDigests.
func (*MockRegistryMockRecorder) ImageExists ¶
func (mr *MockRegistryMockRecorder) ImageExists(ctx, image, po, registryAuthGetter interface{}) *gomock.Call
ImageExists indicates an expected call of ImageExists.
func (*MockRegistryMockRecorder) VerifyModuleExists ¶
func (mr *MockRegistryMockRecorder) VerifyModuleExists(layer, pathPrefix, kernelVersion, moduleFileName interface{}) *gomock.Call
VerifyModuleExists indicates an expected call of VerifyModuleExists.
type Registry ¶
type Registry interface { ImageExists(ctx context.Context, image string, po kmmv1beta1.PullOptions, registryAuthGetter auth.RegistryAuthGetter) (bool, error) VerifyModuleExists(layer v1.Layer, pathPrefix, kernelVersion, moduleFileName string) bool GetLayersDigests(ctx context.Context, image string, registryAuthGetter auth.RegistryAuthGetter) ([]string, *RepoPullConfig, error) GetLayerByDigest(digest string, pullConfig *RepoPullConfig) (v1.Layer, error) }
func NewRegistry ¶
func NewRegistry() Registry
type RepoPullConfig ¶
type RepoPullConfig struct {
// contains filtered or unexported fields
}