mock

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ../image.go

Generated by this command:

mockgen -source=../image.go -destination=interfaces.go -package=mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/unikorn-cloud/region/pkg/providers/types (interfaces: ImageQuery)

Generated by this command:

mockgen -destination=queryinterfaces.go -package=mock github.com/unikorn-cloud/region/pkg/providers/types ImageQuery

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImageQuery added in v1.14.0

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

MockImageQuery is a mock of ImageQuery interface.

func NewMockImageQuery added in v1.14.0

func NewMockImageQuery(ctrl *gomock.Controller) *MockImageQuery

NewMockImageQuery creates a new mock instance.

func (*MockImageQuery) AvailableToOrganization added in v1.14.0

func (m *MockImageQuery) AvailableToOrganization(arg0 ...string) types.ImageQuery

AvailableToOrganization mocks base method.

func (*MockImageQuery) EXPECT added in v1.14.0

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

func (*MockImageQuery) List added in v1.14.0

List mocks base method.

func (*MockImageQuery) OwnedByOrganization added in v1.14.0

func (m *MockImageQuery) OwnedByOrganization(arg0 ...string) types.ImageQuery

OwnedByOrganization mocks base method.

func (*MockImageQuery) StatusIn added in v1.14.0

func (m *MockImageQuery) StatusIn(arg0 ...types.ImageStatus) types.ImageQuery

StatusIn mocks base method.

type MockImageQueryMockRecorder added in v1.14.0

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

MockImageQueryMockRecorder is the mock recorder for MockImageQuery.

func (*MockImageQueryMockRecorder) AvailableToOrganization added in v1.14.0

func (mr *MockImageQueryMockRecorder) AvailableToOrganization(arg0 ...any) *gomock.Call

AvailableToOrganization indicates an expected call of AvailableToOrganization.

func (*MockImageQueryMockRecorder) List added in v1.14.0

func (mr *MockImageQueryMockRecorder) List(arg0 any) *gomock.Call

List indicates an expected call of List.

func (*MockImageQueryMockRecorder) OwnedByOrganization added in v1.14.0

func (mr *MockImageQueryMockRecorder) OwnedByOrganization(arg0 ...any) *gomock.Call

OwnedByOrganization indicates an expected call of OwnedByOrganization.

func (*MockImageQueryMockRecorder) StatusIn added in v1.14.0

func (mr *MockImageQueryMockRecorder) StatusIn(arg0 ...any) *gomock.Call

StatusIn indicates an expected call of StatusIn.

type MockProvider

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

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func NewTestMockProviderAndController added in v1.14.0

func NewTestMockProviderAndController(t *testing.T) (*MockProvider, *gomock.Controller)

newTestMockProvider creates a new mock provider with a gomock controller. The controller is automatically cleaned up when the test finishes.

func (*MockProvider) CreateImage added in v1.14.0

func (m *MockProvider) CreateImage(ctx context.Context, image *types.Image, uri string) (*types.Image, error)

CreateImage mocks base method.

func (*MockProvider) DeleteImage

func (m *MockProvider) DeleteImage(ctx context.Context, imageID string) error

DeleteImage mocks base method.

func (*MockProvider) EXPECT

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

func (*MockProvider) GetImage

func (m *MockProvider) GetImage(ctx context.Context, organizationID, imageID string) (*types.Image, error)

GetImage mocks base method.

func (*MockProvider) QueryImages added in v1.14.0

func (m *MockProvider) QueryImages() (types.ImageQuery, error)

QueryImages mocks base method.

type MockProviderMockRecorder

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

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) CreateImage added in v1.14.0

func (mr *MockProviderMockRecorder) CreateImage(ctx, image, uri any) *gomock.Call

CreateImage indicates an expected call of CreateImage.

func (*MockProviderMockRecorder) DeleteImage

func (mr *MockProviderMockRecorder) DeleteImage(ctx, imageID any) *gomock.Call

DeleteImage indicates an expected call of DeleteImage.

func (*MockProviderMockRecorder) GetImage

func (mr *MockProviderMockRecorder) GetImage(ctx, organizationID, imageID any) *gomock.Call

GetImage indicates an expected call of GetImage.

func (*MockProviderMockRecorder) QueryImages added in v1.14.0

func (mr *MockProviderMockRecorder) QueryImages() *gomock.Call

QueryImages indicates an expected call of QueryImages.

Jump to

Keyboard shortcuts

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