registry

package
v0.0.0-...-d67e381 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverToolkitEntry

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

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) 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

func (m *MockRegistry) GetHeaderDataFromLayer(layer v1.Layer, headerName string) ([]byte, error)

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
}

Jump to

Keyboard shortcuts

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