mock

package
v0.0.0-...-06cc741 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthzAccessEvaluator

type MockAuthzAccessEvaluator struct {
	mock.Mock
}

MockAuthzAccessEvaluator is an autogenerated mock type for the AccessEvaluator type

func NewMockAuthzAccessEvaluator

func NewMockAuthzAccessEvaluator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthzAccessEvaluator

NewMockAuthzAccessEvaluator creates a new instance of MockAuthzAccessEvaluator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockAuthzAccessEvaluator) AccessAuthorized

func (_m *MockAuthzAccessEvaluator) AccessAuthorized(ctx context.Context, opts ...authz.AccessRuleOption) error

AccessAuthorized provides a mock function with given fields: ctx, opts

func (*MockAuthzAccessEvaluator) EXPECT

type MockAuthzAccessEvaluator_AccessAuthorized_Call

type MockAuthzAccessEvaluator_AccessAuthorized_Call struct {
	*mock.Call
}

MockAuthzAccessEvaluator_AccessAuthorized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AccessAuthorized'

func (*MockAuthzAccessEvaluator_AccessAuthorized_Call) Return

func (*MockAuthzAccessEvaluator_AccessAuthorized_Call) Run

func (*MockAuthzAccessEvaluator_AccessAuthorized_Call) RunAndReturn

type MockAuthzAccessEvaluator_Expecter

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

func (*MockAuthzAccessEvaluator_Expecter) AccessAuthorized

func (_e *MockAuthzAccessEvaluator_Expecter) AccessAuthorized(ctx interface{}, opts ...interface{}) *MockAuthzAccessEvaluator_AccessAuthorized_Call

AccessAuthorized is a helper method to define mock.On call

  • ctx context.Context
  • opts ...authz.AccessRuleOption

type MockCacheSnapshotCache

type MockCacheSnapshotCache struct {
	mock.Mock
}

MockCacheSnapshotCache is an autogenerated mock type for the SnapshotCache type

func NewMockCacheSnapshotCache

func NewMockCacheSnapshotCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCacheSnapshotCache

NewMockCacheSnapshotCache creates a new instance of MockCacheSnapshotCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCacheSnapshotCache) ClearSnapshot

func (_m *MockCacheSnapshotCache) ClearSnapshot(node string)

ClearSnapshot provides a mock function with given fields: node

func (*MockCacheSnapshotCache) CreateDeltaWatch

func (_m *MockCacheSnapshotCache) CreateDeltaWatch(_a0 *cache.DeltaRequest, _a1 stream.StreamState, _a2 chan cache.DeltaResponse) func()

CreateDeltaWatch provides a mock function with given fields: _a0, _a1, _a2

func (*MockCacheSnapshotCache) CreateWatch

func (_m *MockCacheSnapshotCache) CreateWatch(_a0 *cache.Request, _a1 stream.StreamState, _a2 chan cache.Response) func()

CreateWatch provides a mock function with given fields: _a0, _a1, _a2

func (*MockCacheSnapshotCache) EXPECT

func (*MockCacheSnapshotCache) Fetch

Fetch provides a mock function with given fields: _a0, _a1

func (*MockCacheSnapshotCache) GetSnapshot

func (_m *MockCacheSnapshotCache) GetSnapshot(node string) (cache.ResourceSnapshot, error)

GetSnapshot provides a mock function with given fields: node

func (*MockCacheSnapshotCache) GetStatusInfo

func (_m *MockCacheSnapshotCache) GetStatusInfo(_a0 string) cache.StatusInfo

GetStatusInfo provides a mock function with given fields: _a0

func (*MockCacheSnapshotCache) GetStatusKeys

func (_m *MockCacheSnapshotCache) GetStatusKeys() []string

GetStatusKeys provides a mock function with given fields:

func (*MockCacheSnapshotCache) SetSnapshot

func (_m *MockCacheSnapshotCache) SetSnapshot(ctx context.Context, node string, snapshot cache.ResourceSnapshot) error

SetSnapshot provides a mock function with given fields: ctx, node, snapshot

type MockCacheSnapshotCache_ClearSnapshot_Call

type MockCacheSnapshotCache_ClearSnapshot_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_ClearSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearSnapshot'

func (*MockCacheSnapshotCache_ClearSnapshot_Call) Return

func (*MockCacheSnapshotCache_ClearSnapshot_Call) Run

func (*MockCacheSnapshotCache_ClearSnapshot_Call) RunAndReturn

type MockCacheSnapshotCache_CreateDeltaWatch_Call

type MockCacheSnapshotCache_CreateDeltaWatch_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_CreateDeltaWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDeltaWatch'

func (*MockCacheSnapshotCache_CreateDeltaWatch_Call) Return

func (*MockCacheSnapshotCache_CreateDeltaWatch_Call) Run

func (*MockCacheSnapshotCache_CreateDeltaWatch_Call) RunAndReturn

type MockCacheSnapshotCache_CreateWatch_Call

type MockCacheSnapshotCache_CreateWatch_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_CreateWatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateWatch'

func (*MockCacheSnapshotCache_CreateWatch_Call) Return

func (*MockCacheSnapshotCache_CreateWatch_Call) Run

func (*MockCacheSnapshotCache_CreateWatch_Call) RunAndReturn

type MockCacheSnapshotCache_Expecter

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

func (*MockCacheSnapshotCache_Expecter) ClearSnapshot

ClearSnapshot is a helper method to define mock.On call

  • node string

func (*MockCacheSnapshotCache_Expecter) CreateDeltaWatch

func (_e *MockCacheSnapshotCache_Expecter) CreateDeltaWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockCacheSnapshotCache_CreateDeltaWatch_Call

CreateDeltaWatch is a helper method to define mock.On call

  • _a0 *cache.DeltaRequest
  • _a1 stream.StreamState
  • _a2 chan cache.DeltaResponse

func (*MockCacheSnapshotCache_Expecter) CreateWatch

func (_e *MockCacheSnapshotCache_Expecter) CreateWatch(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockCacheSnapshotCache_CreateWatch_Call

CreateWatch is a helper method to define mock.On call

  • _a0 *cache.Request
  • _a1 stream.StreamState
  • _a2 chan cache.Response

func (*MockCacheSnapshotCache_Expecter) Fetch

func (_e *MockCacheSnapshotCache_Expecter) Fetch(_a0 interface{}, _a1 interface{}) *MockCacheSnapshotCache_Fetch_Call

Fetch is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *cache.Request

func (*MockCacheSnapshotCache_Expecter) GetSnapshot

GetSnapshot is a helper method to define mock.On call

  • node string

func (*MockCacheSnapshotCache_Expecter) GetStatusInfo

GetStatusInfo is a helper method to define mock.On call

  • _a0 string

func (*MockCacheSnapshotCache_Expecter) GetStatusKeys

GetStatusKeys is a helper method to define mock.On call

func (*MockCacheSnapshotCache_Expecter) SetSnapshot

func (_e *MockCacheSnapshotCache_Expecter) SetSnapshot(ctx interface{}, node interface{}, snapshot interface{}) *MockCacheSnapshotCache_SetSnapshot_Call

SetSnapshot is a helper method to define mock.On call

  • ctx context.Context
  • node string
  • snapshot cache.ResourceSnapshot

type MockCacheSnapshotCache_Fetch_Call

type MockCacheSnapshotCache_Fetch_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_Fetch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fetch'

func (*MockCacheSnapshotCache_Fetch_Call) Return

func (*MockCacheSnapshotCache_Fetch_Call) Run

func (*MockCacheSnapshotCache_Fetch_Call) RunAndReturn

type MockCacheSnapshotCache_GetSnapshot_Call

type MockCacheSnapshotCache_GetSnapshot_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_GetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSnapshot'

func (*MockCacheSnapshotCache_GetSnapshot_Call) Return

func (*MockCacheSnapshotCache_GetSnapshot_Call) Run

func (*MockCacheSnapshotCache_GetSnapshot_Call) RunAndReturn

type MockCacheSnapshotCache_GetStatusInfo_Call

type MockCacheSnapshotCache_GetStatusInfo_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_GetStatusInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusInfo'

func (*MockCacheSnapshotCache_GetStatusInfo_Call) Return

func (*MockCacheSnapshotCache_GetStatusInfo_Call) Run

func (*MockCacheSnapshotCache_GetStatusInfo_Call) RunAndReturn

type MockCacheSnapshotCache_GetStatusKeys_Call

type MockCacheSnapshotCache_GetStatusKeys_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_GetStatusKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatusKeys'

func (*MockCacheSnapshotCache_GetStatusKeys_Call) Return

func (*MockCacheSnapshotCache_GetStatusKeys_Call) Run

func (*MockCacheSnapshotCache_GetStatusKeys_Call) RunAndReturn

type MockCacheSnapshotCache_SetSnapshot_Call

type MockCacheSnapshotCache_SetSnapshot_Call struct {
	*mock.Call
}

MockCacheSnapshotCache_SetSnapshot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSnapshot'

func (*MockCacheSnapshotCache_SetSnapshot_Call) Return

func (*MockCacheSnapshotCache_SetSnapshot_Call) Run

func (*MockCacheSnapshotCache_SetSnapshot_Call) RunAndReturn

type MockChunkRepository

type MockChunkRepository struct {
	mock.Mock
}

MockChunkRepository is an autogenerated mock type for the Repository type

func NewMockChunkRepository

func NewMockChunkRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChunkRepository

NewMockChunkRepository creates a new instance of MockChunkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockChunkRepository) ChunkExists

func (_m *MockChunkRepository) ChunkExists(ctx context.Context, id string) (bool, error)

ChunkExists provides a mock function with given fields: ctx, id

func (*MockChunkRepository) CreateChunk

func (_m *MockChunkRepository) CreateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error)

CreateChunk provides a mock function with given fields: ctx, _a1

func (*MockChunkRepository) CreateFlavor

func (_m *MockChunkRepository) CreateFlavor(ctx context.Context, chunkID string, flavor resource.Flavor) (resource.Flavor, error)

CreateFlavor provides a mock function with given fields: ctx, chunkID, flavor

func (*MockChunkRepository) CreateFlavorVersion

func (_m *MockChunkRepository) CreateFlavorVersion(ctx context.Context, flavorID string, version resource.FlavorVersion, prevVersionID string) (resource.FlavorVersion, error)

CreateFlavorVersion provides a mock function with given fields: ctx, flavorID, version, prevVersionID

func (*MockChunkRepository) EXPECT

func (*MockChunkRepository) FlavorNameExists

func (_m *MockChunkRepository) FlavorNameExists(ctx context.Context, chunkID string, name string) (bool, error)

FlavorNameExists provides a mock function with given fields: ctx, chunkID, name

func (*MockChunkRepository) FlavorVersionByID

func (_m *MockChunkRepository) FlavorVersionByID(ctx context.Context, id string) (resource.FlavorVersion, error)

FlavorVersionByID provides a mock function with given fields: ctx, id

func (*MockChunkRepository) FlavorVersionExists

func (_m *MockChunkRepository) FlavorVersionExists(ctx context.Context, flavorID string, version string) (bool, error)

FlavorVersionExists provides a mock function with given fields: ctx, flavorID, version

func (*MockChunkRepository) FlavorVersionHashByID

func (_m *MockChunkRepository) FlavorVersionHashByID(ctx context.Context, id string) (string, error)

FlavorVersionHashByID provides a mock function with given fields: ctx, id

func (*MockChunkRepository) GetChunkByID

func (_m *MockChunkRepository) GetChunkByID(ctx context.Context, id string) (resource.Chunk, error)

GetChunkByID provides a mock function with given fields: ctx, id

func (*MockChunkRepository) LatestFlavorVersion

func (_m *MockChunkRepository) LatestFlavorVersion(ctx context.Context, flavorID string) (resource.FlavorVersion, error)

LatestFlavorVersion provides a mock function with given fields: ctx, flavorID

func (*MockChunkRepository) ListChunks

func (_m *MockChunkRepository) ListChunks(ctx context.Context) ([]resource.Chunk, error)

ListChunks provides a mock function with given fields: ctx

func (*MockChunkRepository) MarkFlavorVersionFilesUploaded

func (_m *MockChunkRepository) MarkFlavorVersionFilesUploaded(ctx context.Context, flavorVersionID string) error

MarkFlavorVersionFilesUploaded provides a mock function with given fields: ctx, flavorVersionID

func (*MockChunkRepository) MinecraftVersionExists

func (_m *MockChunkRepository) MinecraftVersionExists(_a0 context.Context, _a1 string) (bool, error)

MinecraftVersionExists provides a mock function with given fields: _a0, _a1

func (*MockChunkRepository) SupportedMinecraftVersions

func (_m *MockChunkRepository) SupportedMinecraftVersions(ctx context.Context) ([]string, error)

SupportedMinecraftVersions provides a mock function with given fields: ctx

func (*MockChunkRepository) UpdateChunk

func (_m *MockChunkRepository) UpdateChunk(ctx context.Context, _a1 resource.Chunk) (resource.Chunk, error)

UpdateChunk provides a mock function with given fields: ctx, _a1

func (*MockChunkRepository) UpdateFlavorVersionBuildStatus

func (_m *MockChunkRepository) UpdateFlavorVersionBuildStatus(ctx context.Context, flavorVersionID string, status resource.FlavorVersionBuildStatus) error

UpdateFlavorVersionBuildStatus provides a mock function with given fields: ctx, flavorVersionID, status

func (*MockChunkRepository) UpdateFlavorVersionPresignedURLData

func (_m *MockChunkRepository) UpdateFlavorVersionPresignedURLData(ctx context.Context, flavorVersionID string, date time.Time, url string) error

UpdateFlavorVersionPresignedURLData provides a mock function with given fields: ctx, flavorVersionID, date, url

type MockChunkRepository_ChunkExists_Call

type MockChunkRepository_ChunkExists_Call struct {
	*mock.Call
}

MockChunkRepository_ChunkExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChunkExists'

func (*MockChunkRepository_ChunkExists_Call) Return

func (*MockChunkRepository_ChunkExists_Call) Run

func (*MockChunkRepository_ChunkExists_Call) RunAndReturn

type MockChunkRepository_CreateChunk_Call

type MockChunkRepository_CreateChunk_Call struct {
	*mock.Call
}

MockChunkRepository_CreateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateChunk'

func (*MockChunkRepository_CreateChunk_Call) Return

func (*MockChunkRepository_CreateChunk_Call) Run

func (*MockChunkRepository_CreateChunk_Call) RunAndReturn

type MockChunkRepository_CreateFlavorVersion_Call

type MockChunkRepository_CreateFlavorVersion_Call struct {
	*mock.Call
}

MockChunkRepository_CreateFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavorVersion'

func (*MockChunkRepository_CreateFlavorVersion_Call) Return

func (*MockChunkRepository_CreateFlavorVersion_Call) Run

type MockChunkRepository_CreateFlavor_Call

type MockChunkRepository_CreateFlavor_Call struct {
	*mock.Call
}

MockChunkRepository_CreateFlavor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFlavor'

func (*MockChunkRepository_CreateFlavor_Call) Return

func (*MockChunkRepository_CreateFlavor_Call) Run

func (*MockChunkRepository_CreateFlavor_Call) RunAndReturn

type MockChunkRepository_Expecter

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

func (*MockChunkRepository_Expecter) ChunkExists

func (_e *MockChunkRepository_Expecter) ChunkExists(ctx interface{}, id interface{}) *MockChunkRepository_ChunkExists_Call

ChunkExists is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockChunkRepository_Expecter) CreateChunk

func (_e *MockChunkRepository_Expecter) CreateChunk(ctx interface{}, _a1 interface{}) *MockChunkRepository_CreateChunk_Call

CreateChunk is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Chunk

func (*MockChunkRepository_Expecter) CreateFlavor

func (_e *MockChunkRepository_Expecter) CreateFlavor(ctx interface{}, chunkID interface{}, flavor interface{}) *MockChunkRepository_CreateFlavor_Call

CreateFlavor is a helper method to define mock.On call

  • ctx context.Context
  • chunkID string
  • flavor resource.Flavor

func (*MockChunkRepository_Expecter) CreateFlavorVersion

func (_e *MockChunkRepository_Expecter) CreateFlavorVersion(ctx interface{}, flavorID interface{}, version interface{}, prevVersionID interface{}) *MockChunkRepository_CreateFlavorVersion_Call

CreateFlavorVersion is a helper method to define mock.On call

  • ctx context.Context
  • flavorID string
  • version resource.FlavorVersion
  • prevVersionID string

func (*MockChunkRepository_Expecter) FlavorNameExists

func (_e *MockChunkRepository_Expecter) FlavorNameExists(ctx interface{}, chunkID interface{}, name interface{}) *MockChunkRepository_FlavorNameExists_Call

FlavorNameExists is a helper method to define mock.On call

  • ctx context.Context
  • chunkID string
  • name string

func (*MockChunkRepository_Expecter) FlavorVersionByID

func (_e *MockChunkRepository_Expecter) FlavorVersionByID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorVersionByID_Call

FlavorVersionByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockChunkRepository_Expecter) FlavorVersionExists

func (_e *MockChunkRepository_Expecter) FlavorVersionExists(ctx interface{}, flavorID interface{}, version interface{}) *MockChunkRepository_FlavorVersionExists_Call

FlavorVersionExists is a helper method to define mock.On call

  • ctx context.Context
  • flavorID string
  • version string

func (*MockChunkRepository_Expecter) FlavorVersionHashByID

func (_e *MockChunkRepository_Expecter) FlavorVersionHashByID(ctx interface{}, id interface{}) *MockChunkRepository_FlavorVersionHashByID_Call

FlavorVersionHashByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockChunkRepository_Expecter) GetChunkByID

func (_e *MockChunkRepository_Expecter) GetChunkByID(ctx interface{}, id interface{}) *MockChunkRepository_GetChunkByID_Call

GetChunkByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockChunkRepository_Expecter) LatestFlavorVersion

func (_e *MockChunkRepository_Expecter) LatestFlavorVersion(ctx interface{}, flavorID interface{}) *MockChunkRepository_LatestFlavorVersion_Call

LatestFlavorVersion is a helper method to define mock.On call

  • ctx context.Context
  • flavorID string

func (*MockChunkRepository_Expecter) ListChunks

func (_e *MockChunkRepository_Expecter) ListChunks(ctx interface{}) *MockChunkRepository_ListChunks_Call

ListChunks is a helper method to define mock.On call

  • ctx context.Context

func (*MockChunkRepository_Expecter) MarkFlavorVersionFilesUploaded

func (_e *MockChunkRepository_Expecter) MarkFlavorVersionFilesUploaded(ctx interface{}, flavorVersionID interface{}) *MockChunkRepository_MarkFlavorVersionFilesUploaded_Call

MarkFlavorVersionFilesUploaded is a helper method to define mock.On call

  • ctx context.Context
  • flavorVersionID string

func (*MockChunkRepository_Expecter) MinecraftVersionExists

func (_e *MockChunkRepository_Expecter) MinecraftVersionExists(_a0 interface{}, _a1 interface{}) *MockChunkRepository_MinecraftVersionExists_Call

MinecraftVersionExists is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*MockChunkRepository_Expecter) SupportedMinecraftVersions

func (_e *MockChunkRepository_Expecter) SupportedMinecraftVersions(ctx interface{}) *MockChunkRepository_SupportedMinecraftVersions_Call

SupportedMinecraftVersions is a helper method to define mock.On call

  • ctx context.Context

func (*MockChunkRepository_Expecter) UpdateChunk

func (_e *MockChunkRepository_Expecter) UpdateChunk(ctx interface{}, _a1 interface{}) *MockChunkRepository_UpdateChunk_Call

UpdateChunk is a helper method to define mock.On call

  • ctx context.Context
  • _a1 resource.Chunk

func (*MockChunkRepository_Expecter) UpdateFlavorVersionBuildStatus

func (_e *MockChunkRepository_Expecter) UpdateFlavorVersionBuildStatus(ctx interface{}, flavorVersionID interface{}, status interface{}) *MockChunkRepository_UpdateFlavorVersionBuildStatus_Call

UpdateFlavorVersionBuildStatus is a helper method to define mock.On call

  • ctx context.Context
  • flavorVersionID string
  • status resource.FlavorVersionBuildStatus

func (*MockChunkRepository_Expecter) UpdateFlavorVersionPresignedURLData

func (_e *MockChunkRepository_Expecter) UpdateFlavorVersionPresignedURLData(ctx interface{}, flavorVersionID interface{}, date interface{}, url interface{}) *MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call

UpdateFlavorVersionPresignedURLData is a helper method to define mock.On call

  • ctx context.Context
  • flavorVersionID string
  • date time.Time
  • url string

type MockChunkRepository_FlavorNameExists_Call

type MockChunkRepository_FlavorNameExists_Call struct {
	*mock.Call
}

MockChunkRepository_FlavorNameExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorNameExists'

func (*MockChunkRepository_FlavorNameExists_Call) Return

func (*MockChunkRepository_FlavorNameExists_Call) Run

func (*MockChunkRepository_FlavorNameExists_Call) RunAndReturn

type MockChunkRepository_FlavorVersionByID_Call

type MockChunkRepository_FlavorVersionByID_Call struct {
	*mock.Call
}

MockChunkRepository_FlavorVersionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionByID'

func (*MockChunkRepository_FlavorVersionByID_Call) Return

func (*MockChunkRepository_FlavorVersionByID_Call) Run

func (*MockChunkRepository_FlavorVersionByID_Call) RunAndReturn

type MockChunkRepository_FlavorVersionExists_Call

type MockChunkRepository_FlavorVersionExists_Call struct {
	*mock.Call
}

MockChunkRepository_FlavorVersionExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionExists'

func (*MockChunkRepository_FlavorVersionExists_Call) Return

func (*MockChunkRepository_FlavorVersionExists_Call) Run

func (*MockChunkRepository_FlavorVersionExists_Call) RunAndReturn

type MockChunkRepository_FlavorVersionHashByID_Call

type MockChunkRepository_FlavorVersionHashByID_Call struct {
	*mock.Call
}

MockChunkRepository_FlavorVersionHashByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlavorVersionHashByID'

func (*MockChunkRepository_FlavorVersionHashByID_Call) Return

func (*MockChunkRepository_FlavorVersionHashByID_Call) Run

func (*MockChunkRepository_FlavorVersionHashByID_Call) RunAndReturn

type MockChunkRepository_GetChunkByID_Call

type MockChunkRepository_GetChunkByID_Call struct {
	*mock.Call
}

MockChunkRepository_GetChunkByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChunkByID'

func (*MockChunkRepository_GetChunkByID_Call) Return

func (*MockChunkRepository_GetChunkByID_Call) Run

func (*MockChunkRepository_GetChunkByID_Call) RunAndReturn

type MockChunkRepository_LatestFlavorVersion_Call

type MockChunkRepository_LatestFlavorVersion_Call struct {
	*mock.Call
}

MockChunkRepository_LatestFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestFlavorVersion'

func (*MockChunkRepository_LatestFlavorVersion_Call) Return

func (*MockChunkRepository_LatestFlavorVersion_Call) Run

func (*MockChunkRepository_LatestFlavorVersion_Call) RunAndReturn

type MockChunkRepository_ListChunks_Call

type MockChunkRepository_ListChunks_Call struct {
	*mock.Call
}

MockChunkRepository_ListChunks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChunks'

func (*MockChunkRepository_ListChunks_Call) Return

func (*MockChunkRepository_ListChunks_Call) Run

func (*MockChunkRepository_ListChunks_Call) RunAndReturn

type MockChunkRepository_MarkFlavorVersionFilesUploaded_Call

type MockChunkRepository_MarkFlavorVersionFilesUploaded_Call struct {
	*mock.Call
}

MockChunkRepository_MarkFlavorVersionFilesUploaded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFlavorVersionFilesUploaded'

func (*MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) Return

func (*MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) Run

func (*MockChunkRepository_MarkFlavorVersionFilesUploaded_Call) RunAndReturn

type MockChunkRepository_MinecraftVersionExists_Call

type MockChunkRepository_MinecraftVersionExists_Call struct {
	*mock.Call
}

MockChunkRepository_MinecraftVersionExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MinecraftVersionExists'

func (*MockChunkRepository_MinecraftVersionExists_Call) Return

func (*MockChunkRepository_MinecraftVersionExists_Call) Run

func (*MockChunkRepository_MinecraftVersionExists_Call) RunAndReturn

type MockChunkRepository_SupportedMinecraftVersions_Call

type MockChunkRepository_SupportedMinecraftVersions_Call struct {
	*mock.Call
}

MockChunkRepository_SupportedMinecraftVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedMinecraftVersions'

func (*MockChunkRepository_SupportedMinecraftVersions_Call) Return

func (*MockChunkRepository_SupportedMinecraftVersions_Call) Run

func (*MockChunkRepository_SupportedMinecraftVersions_Call) RunAndReturn

type MockChunkRepository_UpdateChunk_Call

type MockChunkRepository_UpdateChunk_Call struct {
	*mock.Call
}

MockChunkRepository_UpdateChunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChunk'

func (*MockChunkRepository_UpdateChunk_Call) Return

func (*MockChunkRepository_UpdateChunk_Call) Run

func (*MockChunkRepository_UpdateChunk_Call) RunAndReturn

type MockChunkRepository_UpdateFlavorVersionBuildStatus_Call

type MockChunkRepository_UpdateFlavorVersionBuildStatus_Call struct {
	*mock.Call
}

MockChunkRepository_UpdateFlavorVersionBuildStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionBuildStatus'

func (*MockChunkRepository_UpdateFlavorVersionBuildStatus_Call) Return

func (*MockChunkRepository_UpdateFlavorVersionBuildStatus_Call) Run

type MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call

type MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call struct {
	*mock.Call
}

MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlavorVersionPresignedURLData'

func (*MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) Return

func (*MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) Run

func (*MockChunkRepository_UpdateFlavorVersionPresignedURLData_Call) RunAndReturn

type MockCniHandler

type MockCniHandler struct {
	mock.Mock
}

MockCniHandler is an autogenerated mock type for the Handler type

func NewMockCniHandler

func NewMockCniHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCniHandler

NewMockCniHandler creates a new instance of MockCniHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCniHandler) AddDNATTarget

func (_m *MockCniHandler) AddDNATTarget(veth datapath.VethPair, port uint16) error

AddDNATTarget provides a mock function with given fields: veth, port

func (*MockCniHandler) AddDefaultRoute

func (_m *MockCniHandler) AddDefaultRoute(veth datapath.VethPair, nsPath string) error

AddDefaultRoute provides a mock function with given fields: veth, nsPath

func (*MockCniHandler) AddFullMatchRoute

func (_m *MockCniHandler) AddFullMatchRoute(veth datapath.VethPair) error

AddFullMatchRoute provides a mock function with given fields: veth

func (*MockCniHandler) AddNetData

func (_m *MockCniHandler) AddNetData(data datapath.NetData) error

AddNetData provides a mock function with given fields: data

func (*MockCniHandler) AllocIPs

func (_m *MockCniHandler) AllocIPs(plugin string, stdinData []byte) ([]net.IPNet, error)

AllocIPs provides a mock function with given fields: plugin, stdinData

func (*MockCniHandler) AllocVethPair

func (_m *MockCniHandler) AllocVethPair(netNS string, hostAddr net.IPNet, podAddr net.IPNet) (datapath.VethPair, error)

AllocVethPair provides a mock function with given fields: netNS, hostAddr, podAddr

func (*MockCniHandler) AttachCtrVethBPF

func (_m *MockCniHandler) AttachCtrVethBPF(veth datapath.VethPair, netNS string) error

AttachCtrVethBPF provides a mock function with given fields: veth, netNS

func (*MockCniHandler) AttachHostVethBPF

func (_m *MockCniHandler) AttachHostVethBPF(veth datapath.VethPair) error

AttachHostVethBPF provides a mock function with given fields: veth

func (*MockCniHandler) DeallocIPs

func (_m *MockCniHandler) DeallocIPs(plugin string, stdinData []byte) error

DeallocIPs provides a mock function with given fields: plugin, stdinData

func (*MockCniHandler) DeallocVethPair

func (_m *MockCniHandler) DeallocVethPair(veth datapath.VethPair) error

DeallocVethPair provides a mock function with given fields: veth

func (*MockCniHandler) DelFullMatchRoute

func (_m *MockCniHandler) DelFullMatchRoute(veth datapath.VethPair) error

DelFullMatchRoute provides a mock function with given fields: veth

func (*MockCniHandler) DelMapEntries

func (_m *MockCniHandler) DelMapEntries(veth datapath.VethPair, hostPort uint16) error

DelMapEntries provides a mock function with given fields: veth, hostPort

func (*MockCniHandler) EXPECT

func (*MockCniHandler) GetVethPair

func (_m *MockCniHandler) GetVethPair(hostPort uint16) (datapath.VethPair, error)

GetVethPair provides a mock function with given fields: hostPort

type MockCniHandler_AddDNATTarget_Call

type MockCniHandler_AddDNATTarget_Call struct {
	*mock.Call
}

MockCniHandler_AddDNATTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDNATTarget'

func (*MockCniHandler_AddDNATTarget_Call) Return

func (*MockCniHandler_AddDNATTarget_Call) Run

func (*MockCniHandler_AddDNATTarget_Call) RunAndReturn

type MockCniHandler_AddDefaultRoute_Call

type MockCniHandler_AddDefaultRoute_Call struct {
	*mock.Call
}

MockCniHandler_AddDefaultRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddDefaultRoute'

func (*MockCniHandler_AddDefaultRoute_Call) Return

func (*MockCniHandler_AddDefaultRoute_Call) Run

func (*MockCniHandler_AddDefaultRoute_Call) RunAndReturn

type MockCniHandler_AddFullMatchRoute_Call

type MockCniHandler_AddFullMatchRoute_Call struct {
	*mock.Call
}

MockCniHandler_AddFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFullMatchRoute'

func (*MockCniHandler_AddFullMatchRoute_Call) Return

func (*MockCniHandler_AddFullMatchRoute_Call) Run

func (*MockCniHandler_AddFullMatchRoute_Call) RunAndReturn

type MockCniHandler_AddNetData_Call

type MockCniHandler_AddNetData_Call struct {
	*mock.Call
}

MockCniHandler_AddNetData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNetData'

func (*MockCniHandler_AddNetData_Call) Return

func (*MockCniHandler_AddNetData_Call) Run

func (*MockCniHandler_AddNetData_Call) RunAndReturn

type MockCniHandler_AllocIPs_Call

type MockCniHandler_AllocIPs_Call struct {
	*mock.Call
}

MockCniHandler_AllocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocIPs'

func (*MockCniHandler_AllocIPs_Call) Return

func (*MockCniHandler_AllocIPs_Call) Run

func (_c *MockCniHandler_AllocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockCniHandler_AllocIPs_Call

func (*MockCniHandler_AllocIPs_Call) RunAndReturn

type MockCniHandler_AllocVethPair_Call

type MockCniHandler_AllocVethPair_Call struct {
	*mock.Call
}

MockCniHandler_AllocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocVethPair'

func (*MockCniHandler_AllocVethPair_Call) Return

func (*MockCniHandler_AllocVethPair_Call) Run

func (_c *MockCniHandler_AllocVethPair_Call) Run(run func(netNS string, hostAddr net.IPNet, podAddr net.IPNet)) *MockCniHandler_AllocVethPair_Call

func (*MockCniHandler_AllocVethPair_Call) RunAndReturn

type MockCniHandler_AttachCtrVethBPF_Call

type MockCniHandler_AttachCtrVethBPF_Call struct {
	*mock.Call
}

MockCniHandler_AttachCtrVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachCtrVethBPF'

func (*MockCniHandler_AttachCtrVethBPF_Call) Return

func (*MockCniHandler_AttachCtrVethBPF_Call) Run

func (*MockCniHandler_AttachCtrVethBPF_Call) RunAndReturn

type MockCniHandler_AttachHostVethBPF_Call

type MockCniHandler_AttachHostVethBPF_Call struct {
	*mock.Call
}

MockCniHandler_AttachHostVethBPF_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachHostVethBPF'

func (*MockCniHandler_AttachHostVethBPF_Call) Return

func (*MockCniHandler_AttachHostVethBPF_Call) Run

func (*MockCniHandler_AttachHostVethBPF_Call) RunAndReturn

type MockCniHandler_DeallocIPs_Call

type MockCniHandler_DeallocIPs_Call struct {
	*mock.Call
}

MockCniHandler_DeallocIPs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocIPs'

func (*MockCniHandler_DeallocIPs_Call) Return

func (*MockCniHandler_DeallocIPs_Call) Run

func (_c *MockCniHandler_DeallocIPs_Call) Run(run func(plugin string, stdinData []byte)) *MockCniHandler_DeallocIPs_Call

func (*MockCniHandler_DeallocIPs_Call) RunAndReturn

type MockCniHandler_DeallocVethPair_Call

type MockCniHandler_DeallocVethPair_Call struct {
	*mock.Call
}

MockCniHandler_DeallocVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeallocVethPair'

func (*MockCniHandler_DeallocVethPair_Call) Return

func (*MockCniHandler_DeallocVethPair_Call) Run

func (*MockCniHandler_DeallocVethPair_Call) RunAndReturn

type MockCniHandler_DelFullMatchRoute_Call

type MockCniHandler_DelFullMatchRoute_Call struct {
	*mock.Call
}

MockCniHandler_DelFullMatchRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelFullMatchRoute'

func (*MockCniHandler_DelFullMatchRoute_Call) Return

func (*MockCniHandler_DelFullMatchRoute_Call) Run

func (*MockCniHandler_DelFullMatchRoute_Call) RunAndReturn

type MockCniHandler_DelMapEntries_Call

type MockCniHandler_DelMapEntries_Call struct {
	*mock.Call
}

MockCniHandler_DelMapEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DelMapEntries'

func (*MockCniHandler_DelMapEntries_Call) Return

func (*MockCniHandler_DelMapEntries_Call) Run

func (*MockCniHandler_DelMapEntries_Call) RunAndReturn

type MockCniHandler_Expecter

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

func (*MockCniHandler_Expecter) AddDNATTarget

func (_e *MockCniHandler_Expecter) AddDNATTarget(veth interface{}, port interface{}) *MockCniHandler_AddDNATTarget_Call

AddDNATTarget is a helper method to define mock.On call

  • veth datapath.VethPair
  • port uint16

func (*MockCniHandler_Expecter) AddDefaultRoute

func (_e *MockCniHandler_Expecter) AddDefaultRoute(veth interface{}, nsPath interface{}) *MockCniHandler_AddDefaultRoute_Call

AddDefaultRoute is a helper method to define mock.On call

  • veth datapath.VethPair
  • nsPath string

func (*MockCniHandler_Expecter) AddFullMatchRoute

func (_e *MockCniHandler_Expecter) AddFullMatchRoute(veth interface{}) *MockCniHandler_AddFullMatchRoute_Call

AddFullMatchRoute is a helper method to define mock.On call

  • veth datapath.VethPair

func (*MockCniHandler_Expecter) AddNetData

func (_e *MockCniHandler_Expecter) AddNetData(data interface{}) *MockCniHandler_AddNetData_Call

AddNetData is a helper method to define mock.On call

  • data datapath.NetData

func (*MockCniHandler_Expecter) AllocIPs

func (_e *MockCniHandler_Expecter) AllocIPs(plugin interface{}, stdinData interface{}) *MockCniHandler_AllocIPs_Call

AllocIPs is a helper method to define mock.On call

  • plugin string
  • stdinData []byte

func (*MockCniHandler_Expecter) AllocVethPair

func (_e *MockCniHandler_Expecter) AllocVethPair(netNS interface{}, hostAddr interface{}, podAddr interface{}) *MockCniHandler_AllocVethPair_Call

AllocVethPair is a helper method to define mock.On call

  • netNS string
  • hostAddr net.IPNet
  • podAddr net.IPNet

func (*MockCniHandler_Expecter) AttachCtrVethBPF

func (_e *MockCniHandler_Expecter) AttachCtrVethBPF(veth interface{}, netNS interface{}) *MockCniHandler_AttachCtrVethBPF_Call

AttachCtrVethBPF is a helper method to define mock.On call

  • veth datapath.VethPair
  • netNS string

func (*MockCniHandler_Expecter) AttachHostVethBPF

func (_e *MockCniHandler_Expecter) AttachHostVethBPF(veth interface{}) *MockCniHandler_AttachHostVethBPF_Call

AttachHostVethBPF is a helper method to define mock.On call

  • veth datapath.VethPair

func (*MockCniHandler_Expecter) DeallocIPs

func (_e *MockCniHandler_Expecter) DeallocIPs(plugin interface{}, stdinData interface{}) *MockCniHandler_DeallocIPs_Call

DeallocIPs is a helper method to define mock.On call

  • plugin string
  • stdinData []byte

func (*MockCniHandler_Expecter) DeallocVethPair

func (_e *MockCniHandler_Expecter) DeallocVethPair(veth interface{}) *MockCniHandler_DeallocVethPair_Call

DeallocVethPair is a helper method to define mock.On call

  • veth datapath.VethPair

func (*MockCniHandler_Expecter) DelFullMatchRoute

func (_e *MockCniHandler_Expecter) DelFullMatchRoute(veth interface{}) *MockCniHandler_DelFullMatchRoute_Call

DelFullMatchRoute is a helper method to define mock.On call

  • veth datapath.VethPair

func (*MockCniHandler_Expecter) DelMapEntries

func (_e *MockCniHandler_Expecter) DelMapEntries(veth interface{}, hostPort interface{}) *MockCniHandler_DelMapEntries_Call

DelMapEntries is a helper method to define mock.On call

  • veth datapath.VethPair
  • hostPort uint16

func (*MockCniHandler_Expecter) GetVethPair

func (_e *MockCniHandler_Expecter) GetVethPair(hostPort interface{}) *MockCniHandler_GetVethPair_Call

GetVethPair is a helper method to define mock.On call

  • hostPort uint16

type MockCniHandler_GetVethPair_Call

type MockCniHandler_GetVethPair_Call struct {
	*mock.Call
}

MockCniHandler_GetVethPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVethPair'

func (*MockCniHandler_GetVethPair_Call) Return

func (*MockCniHandler_GetVethPair_Call) Run

func (*MockCniHandler_GetVethPair_Call) RunAndReturn

type MockCriService

type MockCriService struct {
	mock.Mock
}

MockCriService is an autogenerated mock type for the Service type

func NewMockCriService

func NewMockCriService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCriService

NewMockCriService creates a new instance of MockCriService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCriService) Attach

func (_m *MockCriService) Attach(ctx context.Context, in *v1.AttachRequest, opts ...grpc.CallOption) (*v1.AttachResponse, error)

Attach provides a mock function with given fields: ctx, in, opts

func (*MockCriService) CheckpointContainer

CheckpointContainer provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ContainerStats

ContainerStats provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ContainerStatus

ContainerStatus provides a mock function with given fields: ctx, in, opts

func (*MockCriService) CreateContainer

CreateContainer provides a mock function with given fields: ctx, in, opts

func (*MockCriService) EXPECT

func (*MockCriService) EnsureImage

func (_m *MockCriService) EnsureImage(ctx context.Context, imageURL string, auth cri.RegistryAuth) (bool, error)

EnsureImage provides a mock function with given fields: ctx, imageURL, auth

func (*MockCriService) EnsurePod

func (_m *MockCriService) EnsurePod(ctx context.Context, opts cri.RunOptions) error

EnsurePod provides a mock function with given fields: ctx, opts

func (*MockCriService) Exec

func (_m *MockCriService) Exec(ctx context.Context, in *v1.ExecRequest, opts ...grpc.CallOption) (*v1.ExecResponse, error)

Exec provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ExecSync

ExecSync provides a mock function with given fields: ctx, in, opts

func (*MockCriService) GetContainerEvents

GetContainerEvents provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListContainerStats

ListContainerStats provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListContainers

ListContainers provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListMetricDescriptors

ListMetricDescriptors provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListPodSandbox

ListPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListPodSandboxMetrics

ListPodSandboxMetrics provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ListPodSandboxStats

ListPodSandboxStats provides a mock function with given fields: ctx, in, opts

func (*MockCriService) PodSandboxStats

PodSandboxStats provides a mock function with given fields: ctx, in, opts

func (*MockCriService) PodSandboxStatus

PodSandboxStatus provides a mock function with given fields: ctx, in, opts

func (*MockCriService) PortForward

PortForward provides a mock function with given fields: ctx, in, opts

func (*MockCriService) RemoveContainer

RemoveContainer provides a mock function with given fields: ctx, in, opts

func (*MockCriService) RemovePodSandbox

RemovePodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockCriService) ReopenContainerLog

ReopenContainerLog provides a mock function with given fields: ctx, in, opts

func (*MockCriService) RunContainer

func (_m *MockCriService) RunContainer(ctx context.Context, req *v1.CreateContainerRequest) (string, error)

RunContainer provides a mock function with given fields: ctx, req

func (*MockCriService) RunPodSandbox

RunPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockCriService) RuntimeConfig

RuntimeConfig provides a mock function with given fields: ctx, in, opts

func (*MockCriService) StartContainer

StartContainer provides a mock function with given fields: ctx, in, opts

func (*MockCriService) Status

func (_m *MockCriService) Status(ctx context.Context, in *v1.StatusRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)

Status provides a mock function with given fields: ctx, in, opts

func (*MockCriService) StopContainer

StopContainer provides a mock function with given fields: ctx, in, opts

func (*MockCriService) StopPodSandbox

StopPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockCriService) UpdateContainerResources

UpdateContainerResources provides a mock function with given fields: ctx, in, opts

func (*MockCriService) UpdateRuntimeConfig

UpdateRuntimeConfig provides a mock function with given fields: ctx, in, opts

func (*MockCriService) Version

Version provides a mock function with given fields: ctx, in, opts

type MockCriService_Attach_Call

type MockCriService_Attach_Call struct {
	*mock.Call
}

MockCriService_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach'

func (*MockCriService_Attach_Call) Return

func (*MockCriService_Attach_Call) Run

func (*MockCriService_Attach_Call) RunAndReturn

type MockCriService_CheckpointContainer_Call

type MockCriService_CheckpointContainer_Call struct {
	*mock.Call
}

MockCriService_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer'

func (*MockCriService_CheckpointContainer_Call) Return

func (*MockCriService_CheckpointContainer_Call) Run

type MockCriService_ContainerStats_Call

type MockCriService_ContainerStats_Call struct {
	*mock.Call
}

MockCriService_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats'

func (*MockCriService_ContainerStats_Call) Return

func (*MockCriService_ContainerStats_Call) Run

type MockCriService_ContainerStatus_Call

type MockCriService_ContainerStatus_Call struct {
	*mock.Call
}

MockCriService_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus'

func (*MockCriService_ContainerStatus_Call) Return

func (*MockCriService_ContainerStatus_Call) Run

type MockCriService_CreateContainer_Call

type MockCriService_CreateContainer_Call struct {
	*mock.Call
}

MockCriService_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer'

func (*MockCriService_CreateContainer_Call) Return

func (*MockCriService_CreateContainer_Call) Run

type MockCriService_EnsureImage_Call

type MockCriService_EnsureImage_Call struct {
	*mock.Call
}

MockCriService_EnsureImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureImage'

func (*MockCriService_EnsureImage_Call) Return

func (*MockCriService_EnsureImage_Call) Run

func (*MockCriService_EnsureImage_Call) RunAndReturn

type MockCriService_EnsurePod_Call

type MockCriService_EnsurePod_Call struct {
	*mock.Call
}

MockCriService_EnsurePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsurePod'

func (*MockCriService_EnsurePod_Call) Return

func (*MockCriService_EnsurePod_Call) Run

func (*MockCriService_EnsurePod_Call) RunAndReturn

type MockCriService_ExecSync_Call

type MockCriService_ExecSync_Call struct {
	*mock.Call
}

MockCriService_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync'

func (*MockCriService_ExecSync_Call) Return

func (*MockCriService_ExecSync_Call) Run

func (*MockCriService_ExecSync_Call) RunAndReturn

type MockCriService_Exec_Call

type MockCriService_Exec_Call struct {
	*mock.Call
}

MockCriService_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*MockCriService_Exec_Call) Return

func (*MockCriService_Exec_Call) Run

func (*MockCriService_Exec_Call) RunAndReturn

type MockCriService_Expecter

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

func (*MockCriService_Expecter) Attach

func (_e *MockCriService_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Attach_Call

Attach is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttachRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) CheckpointContainer

func (_e *MockCriService_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_CheckpointContainer_Call

CheckpointContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.CheckpointContainerRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ContainerStats

func (_e *MockCriService_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ContainerStats_Call

ContainerStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ContainerStatsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ContainerStatus

func (_e *MockCriService_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ContainerStatus_Call

ContainerStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ContainerStatusRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) CreateContainer

func (_e *MockCriService_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_CreateContainer_Call

CreateContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.CreateContainerRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) EnsureImage

func (_e *MockCriService_Expecter) EnsureImage(ctx interface{}, imageURL interface{}, auth interface{}) *MockCriService_EnsureImage_Call

EnsureImage is a helper method to define mock.On call

  • ctx context.Context
  • imageURL string
  • auth cri.RegistryAuth

func (*MockCriService_Expecter) EnsurePod

func (_e *MockCriService_Expecter) EnsurePod(ctx interface{}, opts interface{}) *MockCriService_EnsurePod_Call

EnsurePod is a helper method to define mock.On call

  • ctx context.Context
  • opts cri.RunOptions

func (*MockCriService_Expecter) Exec

func (_e *MockCriService_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ExecRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ExecSync

func (_e *MockCriService_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ExecSync_Call

ExecSync is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ExecSyncRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) GetContainerEvents

func (_e *MockCriService_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_GetContainerEvents_Call

GetContainerEvents is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.GetEventsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListContainerStats

func (_e *MockCriService_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListContainerStats_Call

ListContainerStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListContainerStatsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListContainers

func (_e *MockCriService_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListContainers_Call

ListContainers is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListContainersRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListMetricDescriptors

func (_e *MockCriService_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListMetricDescriptors_Call

ListMetricDescriptors is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListMetricDescriptorsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListPodSandbox

func (_e *MockCriService_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandbox_Call

ListPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListPodSandboxMetrics

func (_e *MockCriService_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandboxMetrics_Call

ListPodSandboxMetrics is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxMetricsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ListPodSandboxStats

func (_e *MockCriService_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ListPodSandboxStats_Call

ListPodSandboxStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxStatsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) PodSandboxStats

func (_e *MockCriService_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PodSandboxStats_Call

PodSandboxStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PodSandboxStatsRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) PodSandboxStatus

func (_e *MockCriService_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PodSandboxStatus_Call

PodSandboxStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PodSandboxStatusRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) PortForward

func (_e *MockCriService_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_PortForward_Call

PortForward is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PortForwardRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) RemoveContainer

func (_e *MockCriService_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RemoveContainer_Call

RemoveContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RemoveContainerRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) RemovePodSandbox

func (_e *MockCriService_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RemovePodSandbox_Call

RemovePodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RemovePodSandboxRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) ReopenContainerLog

func (_e *MockCriService_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_ReopenContainerLog_Call

ReopenContainerLog is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ReopenContainerLogRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) RunContainer

func (_e *MockCriService_Expecter) RunContainer(ctx interface{}, req interface{}) *MockCriService_RunContainer_Call

RunContainer is a helper method to define mock.On call

  • ctx context.Context
  • req *v1.CreateContainerRequest

func (*MockCriService_Expecter) RunPodSandbox

func (_e *MockCriService_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RunPodSandbox_Call

RunPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RunPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) RuntimeConfig

func (_e *MockCriService_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_RuntimeConfig_Call

RuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RuntimeConfigRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) StartContainer

func (_e *MockCriService_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StartContainer_Call

StartContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StartContainerRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) Status

func (_e *MockCriService_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StatusRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) StopContainer

func (_e *MockCriService_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StopContainer_Call

StopContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StopContainerRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) StopPodSandbox

func (_e *MockCriService_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_StopPodSandbox_Call

StopPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StopPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) UpdateContainerResources

func (_e *MockCriService_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_UpdateContainerResources_Call

UpdateContainerResources is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.UpdateContainerResourcesRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) UpdateRuntimeConfig

func (_e *MockCriService_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_UpdateRuntimeConfig_Call

UpdateRuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.UpdateRuntimeConfigRequest
  • opts ...grpc.CallOption

func (*MockCriService_Expecter) Version

func (_e *MockCriService_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockCriService_Version_Call

Version is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.VersionRequest
  • opts ...grpc.CallOption

type MockCriService_GetContainerEvents_Call

type MockCriService_GetContainerEvents_Call struct {
	*mock.Call
}

MockCriService_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents'

func (*MockCriService_GetContainerEvents_Call) Run

type MockCriService_ListContainerStats_Call

type MockCriService_ListContainerStats_Call struct {
	*mock.Call
}

MockCriService_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats'

func (*MockCriService_ListContainerStats_Call) Return

func (*MockCriService_ListContainerStats_Call) Run

type MockCriService_ListContainers_Call

type MockCriService_ListContainers_Call struct {
	*mock.Call
}

MockCriService_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers'

func (*MockCriService_ListContainers_Call) Return

func (*MockCriService_ListContainers_Call) Run

type MockCriService_ListMetricDescriptors_Call

type MockCriService_ListMetricDescriptors_Call struct {
	*mock.Call
}

MockCriService_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors'

func (*MockCriService_ListMetricDescriptors_Call) Return

func (*MockCriService_ListMetricDescriptors_Call) Run

type MockCriService_ListPodSandboxMetrics_Call

type MockCriService_ListPodSandboxMetrics_Call struct {
	*mock.Call
}

MockCriService_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics'

func (*MockCriService_ListPodSandboxMetrics_Call) Return

func (*MockCriService_ListPodSandboxMetrics_Call) Run

type MockCriService_ListPodSandboxStats_Call

type MockCriService_ListPodSandboxStats_Call struct {
	*mock.Call
}

MockCriService_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats'

func (*MockCriService_ListPodSandboxStats_Call) Return

func (*MockCriService_ListPodSandboxStats_Call) Run

type MockCriService_ListPodSandbox_Call

type MockCriService_ListPodSandbox_Call struct {
	*mock.Call
}

MockCriService_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox'

func (*MockCriService_ListPodSandbox_Call) Return

func (*MockCriService_ListPodSandbox_Call) Run

type MockCriService_PodSandboxStats_Call

type MockCriService_PodSandboxStats_Call struct {
	*mock.Call
}

MockCriService_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats'

func (*MockCriService_PodSandboxStats_Call) Return

func (*MockCriService_PodSandboxStats_Call) Run

type MockCriService_PodSandboxStatus_Call

type MockCriService_PodSandboxStatus_Call struct {
	*mock.Call
}

MockCriService_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus'

func (*MockCriService_PodSandboxStatus_Call) Return

func (*MockCriService_PodSandboxStatus_Call) Run

type MockCriService_PortForward_Call

type MockCriService_PortForward_Call struct {
	*mock.Call
}

MockCriService_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward'

func (*MockCriService_PortForward_Call) Return

func (*MockCriService_PortForward_Call) Run

func (*MockCriService_PortForward_Call) RunAndReturn

type MockCriService_RemoveContainer_Call

type MockCriService_RemoveContainer_Call struct {
	*mock.Call
}

MockCriService_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer'

func (*MockCriService_RemoveContainer_Call) Return

func (*MockCriService_RemoveContainer_Call) Run

type MockCriService_RemovePodSandbox_Call

type MockCriService_RemovePodSandbox_Call struct {
	*mock.Call
}

MockCriService_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox'

func (*MockCriService_RemovePodSandbox_Call) Return

func (*MockCriService_RemovePodSandbox_Call) Run

type MockCriService_ReopenContainerLog_Call

type MockCriService_ReopenContainerLog_Call struct {
	*mock.Call
}

MockCriService_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog'

func (*MockCriService_ReopenContainerLog_Call) Return

func (*MockCriService_ReopenContainerLog_Call) Run

type MockCriService_RunContainer_Call

type MockCriService_RunContainer_Call struct {
	*mock.Call
}

MockCriService_RunContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunContainer'

func (*MockCriService_RunContainer_Call) Return

func (*MockCriService_RunContainer_Call) Run

func (*MockCriService_RunContainer_Call) RunAndReturn

type MockCriService_RunPodSandbox_Call

type MockCriService_RunPodSandbox_Call struct {
	*mock.Call
}

MockCriService_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox'

func (*MockCriService_RunPodSandbox_Call) Return

func (*MockCriService_RunPodSandbox_Call) Run

type MockCriService_RuntimeConfig_Call

type MockCriService_RuntimeConfig_Call struct {
	*mock.Call
}

MockCriService_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig'

func (*MockCriService_RuntimeConfig_Call) Return

func (*MockCriService_RuntimeConfig_Call) Run

type MockCriService_StartContainer_Call

type MockCriService_StartContainer_Call struct {
	*mock.Call
}

MockCriService_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer'

func (*MockCriService_StartContainer_Call) Return

func (*MockCriService_StartContainer_Call) Run

type MockCriService_Status_Call

type MockCriService_Status_Call struct {
	*mock.Call
}

MockCriService_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*MockCriService_Status_Call) Return

func (*MockCriService_Status_Call) Run

func (*MockCriService_Status_Call) RunAndReturn

type MockCriService_StopContainer_Call

type MockCriService_StopContainer_Call struct {
	*mock.Call
}

MockCriService_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer'

func (*MockCriService_StopContainer_Call) Return

func (*MockCriService_StopContainer_Call) Run

type MockCriService_StopPodSandbox_Call

type MockCriService_StopPodSandbox_Call struct {
	*mock.Call
}

MockCriService_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox'

func (*MockCriService_StopPodSandbox_Call) Return

func (*MockCriService_StopPodSandbox_Call) Run

type MockCriService_UpdateContainerResources_Call

type MockCriService_UpdateContainerResources_Call struct {
	*mock.Call
}

MockCriService_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources'

func (*MockCriService_UpdateContainerResources_Call) Return

func (*MockCriService_UpdateContainerResources_Call) Run

type MockCriService_UpdateRuntimeConfig_Call

type MockCriService_UpdateRuntimeConfig_Call struct {
	*mock.Call
}

MockCriService_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig'

func (*MockCriService_UpdateRuntimeConfig_Call) Return

func (*MockCriService_UpdateRuntimeConfig_Call) Run

type MockCriService_Version_Call

type MockCriService_Version_Call struct {
	*mock.Call
}

MockCriService_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'

func (*MockCriService_Version_Call) Return

func (*MockCriService_Version_Call) Run

func (*MockCriService_Version_Call) RunAndReturn

type MockImageService

type MockImageService struct {
	mock.Mock
}

MockImageService is an autogenerated mock type for the Service type

func NewMockImageService

func NewMockImageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockImageService

NewMockImageService creates a new instance of MockImageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockImageService) EXPECT

func (*MockImageService) Pull

func (_m *MockImageService) Pull(ctx context.Context, imgRef string, platform string) (v1.Image, error)

Pull provides a mock function with given fields: ctx, imgRef, platform

func (*MockImageService) Push

func (_m *MockImageService) Push(ctx context.Context, img v1.Image, imgRef string) error

Push provides a mock function with given fields: ctx, img, imgRef

type MockImageService_Expecter

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

func (*MockImageService_Expecter) Pull

func (_e *MockImageService_Expecter) Pull(ctx interface{}, imgRef interface{}, platform interface{}) *MockImageService_Pull_Call

Pull is a helper method to define mock.On call

  • ctx context.Context
  • imgRef string
  • platform string

func (*MockImageService_Expecter) Push

func (_e *MockImageService_Expecter) Push(ctx interface{}, img interface{}, imgRef interface{}) *MockImageService_Push_Call

Push is a helper method to define mock.On call

  • ctx context.Context
  • img v1.Image
  • imgRef string

type MockImageService_Pull_Call

type MockImageService_Pull_Call struct {
	*mock.Call
}

MockImageService_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull'

func (*MockImageService_Pull_Call) Return

func (*MockImageService_Pull_Call) Run

func (_c *MockImageService_Pull_Call) Run(run func(ctx context.Context, imgRef string, platform string)) *MockImageService_Pull_Call

func (*MockImageService_Pull_Call) RunAndReturn

type MockImageService_Push_Call

type MockImageService_Push_Call struct {
	*mock.Call
}

MockImageService_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'

func (*MockImageService_Push_Call) Return

func (*MockImageService_Push_Call) Run

func (*MockImageService_Push_Call) RunAndReturn

type MockJobClient

type MockJobClient struct {
	mock.Mock
}

MockJobClient is an autogenerated mock type for the Client type

func NewMockJobClient

func NewMockJobClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJobClient

NewMockJobClient creates a new instance of MockJobClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockJobClient) EXPECT

func (_m *MockJobClient) EXPECT() *MockJobClient_Expecter

func (*MockJobClient) InsertJob

func (_m *MockJobClient) InsertJob(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs) error

InsertJob provides a mock function with given fields: ctx, flavorVersionID, status, _a3

type MockJobClient_Expecter

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

func (*MockJobClient_Expecter) InsertJob

func (_e *MockJobClient_Expecter) InsertJob(ctx interface{}, flavorVersionID interface{}, status interface{}, _a3 interface{}) *MockJobClient_InsertJob_Call

InsertJob is a helper method to define mock.On call

  • ctx context.Context
  • flavorVersionID string
  • status string
  • _a3 river.JobArgs

type MockJobClient_InsertJob_Call

type MockJobClient_InsertJob_Call struct {
	*mock.Call
}

MockJobClient_InsertJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertJob'

func (*MockJobClient_InsertJob_Call) Return

func (*MockJobClient_InsertJob_Call) Run

func (_c *MockJobClient_InsertJob_Call) Run(run func(ctx context.Context, flavorVersionID string, status string, _a3 river.JobArgs)) *MockJobClient_InsertJob_Call

func (*MockJobClient_InsertJob_Call) RunAndReturn

type MockNodeRepository

type MockNodeRepository struct {
	mock.Mock
}

MockNodeRepository is an autogenerated mock type for the Repository type

func NewMockNodeRepository

func NewMockNodeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNodeRepository

NewMockNodeRepository creates a new instance of MockNodeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockNodeRepository) EXPECT

func (*MockNodeRepository) RandomNode

func (_m *MockNodeRepository) RandomNode(ctx context.Context) (node.Node, error)

RandomNode provides a mock function with given fields: ctx

type MockNodeRepository_Expecter

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

func (*MockNodeRepository_Expecter) RandomNode

func (_e *MockNodeRepository_Expecter) RandomNode(ctx interface{}) *MockNodeRepository_RandomNode_Call

RandomNode is a helper method to define mock.On call

  • ctx context.Context

type MockNodeRepository_RandomNode_Call

type MockNodeRepository_RandomNode_Call struct {
	*mock.Call
}

MockNodeRepository_RandomNode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomNode'

func (*MockNodeRepository_RandomNode_Call) Return

func (*MockNodeRepository_RandomNode_Call) Run

func (*MockNodeRepository_RandomNode_Call) RunAndReturn

type MockStatusStore

type MockStatusStore struct {
	mock.Mock
}

MockStatusStore is an autogenerated mock type for the Store type

func NewMockStatusStore

func NewMockStatusStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStatusStore

NewMockStatusStore creates a new instance of MockStatusStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockStatusStore) Del

func (_m *MockStatusStore) Del(id string)

Del provides a mock function with given fields: id

func (*MockStatusStore) EXPECT

func (*MockStatusStore) Get

func (_m *MockStatusStore) Get(id string) *status.Status

Get provides a mock function with given fields: id

func (*MockStatusStore) Update

func (_m *MockStatusStore) Update(id string, _a1 status.Status)

Update provides a mock function with given fields: id, _a1

func (*MockStatusStore) View

func (_m *MockStatusStore) View() map[string]status.Status

View provides a mock function with given fields:

type MockStatusStore_Del_Call

type MockStatusStore_Del_Call struct {
	*mock.Call
}

MockStatusStore_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'

func (*MockStatusStore_Del_Call) Return

func (*MockStatusStore_Del_Call) Run

func (*MockStatusStore_Del_Call) RunAndReturn

func (_c *MockStatusStore_Del_Call) RunAndReturn(run func(string)) *MockStatusStore_Del_Call

type MockStatusStore_Expecter

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

func (*MockStatusStore_Expecter) Del

func (_e *MockStatusStore_Expecter) Del(id interface{}) *MockStatusStore_Del_Call

Del is a helper method to define mock.On call

  • id string

func (*MockStatusStore_Expecter) Get

func (_e *MockStatusStore_Expecter) Get(id interface{}) *MockStatusStore_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*MockStatusStore_Expecter) Update

func (_e *MockStatusStore_Expecter) Update(id interface{}, _a1 interface{}) *MockStatusStore_Update_Call

Update is a helper method to define mock.On call

  • id string
  • _a1 status.Status

func (*MockStatusStore_Expecter) View

View is a helper method to define mock.On call

type MockStatusStore_Get_Call

type MockStatusStore_Get_Call struct {
	*mock.Call
}

MockStatusStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockStatusStore_Get_Call) Return

func (*MockStatusStore_Get_Call) Run

func (*MockStatusStore_Get_Call) RunAndReturn

type MockStatusStore_Update_Call

type MockStatusStore_Update_Call struct {
	*mock.Call
}

MockStatusStore_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*MockStatusStore_Update_Call) Return

func (*MockStatusStore_Update_Call) Run

func (*MockStatusStore_Update_Call) RunAndReturn

type MockStatusStore_View_Call

type MockStatusStore_View_Call struct {
	*mock.Call
}

MockStatusStore_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'

func (*MockStatusStore_View_Call) Return

func (*MockStatusStore_View_Call) Run

func (*MockStatusStore_View_Call) RunAndReturn

func (_c *MockStatusStore_View_Call) RunAndReturn(run func() map[string]status.Status) *MockStatusStore_View_Call

type MockV1ImageServiceClient

type MockV1ImageServiceClient struct {
	mock.Mock
}

MockV1ImageServiceClient is an autogenerated mock type for the ImageServiceClient type

func NewMockV1ImageServiceClient

func NewMockV1ImageServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1ImageServiceClient

NewMockV1ImageServiceClient creates a new instance of MockV1ImageServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1ImageServiceClient) EXPECT

func (*MockV1ImageServiceClient) ImageFsInfo

ImageFsInfo provides a mock function with given fields: ctx, in, opts

func (*MockV1ImageServiceClient) ImageStatus

ImageStatus provides a mock function with given fields: ctx, in, opts

func (*MockV1ImageServiceClient) ListImages

ListImages provides a mock function with given fields: ctx, in, opts

func (*MockV1ImageServiceClient) PullImage

PullImage provides a mock function with given fields: ctx, in, opts

func (*MockV1ImageServiceClient) RemoveImage

RemoveImage provides a mock function with given fields: ctx, in, opts

type MockV1ImageServiceClient_Expecter

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

func (*MockV1ImageServiceClient_Expecter) ImageFsInfo

func (_e *MockV1ImageServiceClient_Expecter) ImageFsInfo(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ImageFsInfo_Call

ImageFsInfo is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ImageFsInfoRequest
  • opts ...grpc.CallOption

func (*MockV1ImageServiceClient_Expecter) ImageStatus

func (_e *MockV1ImageServiceClient_Expecter) ImageStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ImageStatus_Call

ImageStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ImageStatusRequest
  • opts ...grpc.CallOption

func (*MockV1ImageServiceClient_Expecter) ListImages

func (_e *MockV1ImageServiceClient_Expecter) ListImages(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_ListImages_Call

ListImages is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListImagesRequest
  • opts ...grpc.CallOption

func (*MockV1ImageServiceClient_Expecter) PullImage

func (_e *MockV1ImageServiceClient_Expecter) PullImage(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_PullImage_Call

PullImage is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PullImageRequest
  • opts ...grpc.CallOption

func (*MockV1ImageServiceClient_Expecter) RemoveImage

func (_e *MockV1ImageServiceClient_Expecter) RemoveImage(ctx interface{}, in interface{}, opts ...interface{}) *MockV1ImageServiceClient_RemoveImage_Call

RemoveImage is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RemoveImageRequest
  • opts ...grpc.CallOption

type MockV1ImageServiceClient_ImageFsInfo_Call

type MockV1ImageServiceClient_ImageFsInfo_Call struct {
	*mock.Call
}

MockV1ImageServiceClient_ImageFsInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageFsInfo'

func (*MockV1ImageServiceClient_ImageFsInfo_Call) Return

func (*MockV1ImageServiceClient_ImageFsInfo_Call) Run

type MockV1ImageServiceClient_ImageStatus_Call

type MockV1ImageServiceClient_ImageStatus_Call struct {
	*mock.Call
}

MockV1ImageServiceClient_ImageStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImageStatus'

func (*MockV1ImageServiceClient_ImageStatus_Call) Return

func (*MockV1ImageServiceClient_ImageStatus_Call) Run

type MockV1ImageServiceClient_ListImages_Call

type MockV1ImageServiceClient_ListImages_Call struct {
	*mock.Call
}

MockV1ImageServiceClient_ListImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListImages'

func (*MockV1ImageServiceClient_ListImages_Call) Return

func (*MockV1ImageServiceClient_ListImages_Call) Run

type MockV1ImageServiceClient_PullImage_Call

type MockV1ImageServiceClient_PullImage_Call struct {
	*mock.Call
}

MockV1ImageServiceClient_PullImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullImage'

func (*MockV1ImageServiceClient_PullImage_Call) Return

func (*MockV1ImageServiceClient_PullImage_Call) Run

func (*MockV1ImageServiceClient_PullImage_Call) RunAndReturn

type MockV1ImageServiceClient_RemoveImage_Call

type MockV1ImageServiceClient_RemoveImage_Call struct {
	*mock.Call
}

MockV1ImageServiceClient_RemoveImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveImage'

func (*MockV1ImageServiceClient_RemoveImage_Call) Return

func (*MockV1ImageServiceClient_RemoveImage_Call) Run

type MockV1RuntimeServiceClient

type MockV1RuntimeServiceClient struct {
	mock.Mock
}

MockV1RuntimeServiceClient is an autogenerated mock type for the RuntimeServiceClient type

func NewMockV1RuntimeServiceClient

func NewMockV1RuntimeServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1RuntimeServiceClient

NewMockV1RuntimeServiceClient creates a new instance of MockV1RuntimeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1RuntimeServiceClient) Attach

Attach provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) CheckpointContainer

CheckpointContainer provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ContainerStats

ContainerStats provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ContainerStatus

ContainerStatus provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) CreateContainer

CreateContainer provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) EXPECT

func (*MockV1RuntimeServiceClient) Exec

Exec provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ExecSync

ExecSync provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) GetContainerEvents

GetContainerEvents provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListContainerStats

ListContainerStats provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListContainers

ListContainers provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListMetricDescriptors

ListMetricDescriptors provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListPodSandbox

ListPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListPodSandboxMetrics

ListPodSandboxMetrics provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ListPodSandboxStats

ListPodSandboxStats provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) PodSandboxStats

PodSandboxStats provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) PodSandboxStatus

PodSandboxStatus provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) PortForward

PortForward provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) RemoveContainer

RemoveContainer provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) RemovePodSandbox

RemovePodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) ReopenContainerLog

ReopenContainerLog provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) RunPodSandbox

RunPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) RuntimeConfig

RuntimeConfig provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) StartContainer

StartContainer provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) Status

Status provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) StopContainer

StopContainer provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) StopPodSandbox

StopPodSandbox provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) UpdateContainerResources

UpdateContainerResources provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) UpdateRuntimeConfig

UpdateRuntimeConfig provides a mock function with given fields: ctx, in, opts

func (*MockV1RuntimeServiceClient) Version

Version provides a mock function with given fields: ctx, in, opts

type MockV1RuntimeServiceClient_Attach_Call

type MockV1RuntimeServiceClient_Attach_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_Attach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attach'

func (*MockV1RuntimeServiceClient_Attach_Call) Return

func (*MockV1RuntimeServiceClient_Attach_Call) Run

func (*MockV1RuntimeServiceClient_Attach_Call) RunAndReturn

type MockV1RuntimeServiceClient_CheckpointContainer_Call

type MockV1RuntimeServiceClient_CheckpointContainer_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_CheckpointContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointContainer'

func (*MockV1RuntimeServiceClient_CheckpointContainer_Call) Return

func (*MockV1RuntimeServiceClient_CheckpointContainer_Call) Run

type MockV1RuntimeServiceClient_ContainerStats_Call

type MockV1RuntimeServiceClient_ContainerStats_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStats'

func (*MockV1RuntimeServiceClient_ContainerStats_Call) Return

func (*MockV1RuntimeServiceClient_ContainerStats_Call) Run

type MockV1RuntimeServiceClient_ContainerStatus_Call

type MockV1RuntimeServiceClient_ContainerStatus_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ContainerStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerStatus'

func (*MockV1RuntimeServiceClient_ContainerStatus_Call) Return

func (*MockV1RuntimeServiceClient_ContainerStatus_Call) Run

type MockV1RuntimeServiceClient_CreateContainer_Call

type MockV1RuntimeServiceClient_CreateContainer_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_CreateContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContainer'

func (*MockV1RuntimeServiceClient_CreateContainer_Call) Return

func (*MockV1RuntimeServiceClient_CreateContainer_Call) Run

type MockV1RuntimeServiceClient_ExecSync_Call

type MockV1RuntimeServiceClient_ExecSync_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ExecSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecSync'

func (*MockV1RuntimeServiceClient_ExecSync_Call) Return

func (*MockV1RuntimeServiceClient_ExecSync_Call) Run

func (*MockV1RuntimeServiceClient_ExecSync_Call) RunAndReturn

type MockV1RuntimeServiceClient_Exec_Call

type MockV1RuntimeServiceClient_Exec_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*MockV1RuntimeServiceClient_Exec_Call) Return

func (*MockV1RuntimeServiceClient_Exec_Call) Run

func (*MockV1RuntimeServiceClient_Exec_Call) RunAndReturn

type MockV1RuntimeServiceClient_Expecter

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

func (*MockV1RuntimeServiceClient_Expecter) Attach

func (_e *MockV1RuntimeServiceClient_Expecter) Attach(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Attach_Call

Attach is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttachRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) CheckpointContainer

func (_e *MockV1RuntimeServiceClient_Expecter) CheckpointContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_CheckpointContainer_Call

CheckpointContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.CheckpointContainerRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ContainerStats

func (_e *MockV1RuntimeServiceClient_Expecter) ContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ContainerStats_Call

ContainerStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ContainerStatsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ContainerStatus

func (_e *MockV1RuntimeServiceClient_Expecter) ContainerStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ContainerStatus_Call

ContainerStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ContainerStatusRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) CreateContainer

func (_e *MockV1RuntimeServiceClient_Expecter) CreateContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_CreateContainer_Call

CreateContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.CreateContainerRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) Exec

func (_e *MockV1RuntimeServiceClient_Expecter) Exec(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ExecRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ExecSync

func (_e *MockV1RuntimeServiceClient_Expecter) ExecSync(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ExecSync_Call

ExecSync is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ExecSyncRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) GetContainerEvents

func (_e *MockV1RuntimeServiceClient_Expecter) GetContainerEvents(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_GetContainerEvents_Call

GetContainerEvents is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.GetEventsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListContainerStats

func (_e *MockV1RuntimeServiceClient_Expecter) ListContainerStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListContainerStats_Call

ListContainerStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListContainerStatsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListContainers

func (_e *MockV1RuntimeServiceClient_Expecter) ListContainers(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListContainers_Call

ListContainers is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListContainersRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListMetricDescriptors

func (_e *MockV1RuntimeServiceClient_Expecter) ListMetricDescriptors(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListMetricDescriptors_Call

ListMetricDescriptors is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListMetricDescriptorsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListPodSandbox

func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandbox_Call

ListPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListPodSandboxMetrics

func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandboxMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call

ListPodSandboxMetrics is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxMetricsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ListPodSandboxStats

func (_e *MockV1RuntimeServiceClient_Expecter) ListPodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ListPodSandboxStats_Call

ListPodSandboxStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ListPodSandboxStatsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) PodSandboxStats

func (_e *MockV1RuntimeServiceClient_Expecter) PodSandboxStats(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PodSandboxStats_Call

PodSandboxStats is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PodSandboxStatsRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) PodSandboxStatus

func (_e *MockV1RuntimeServiceClient_Expecter) PodSandboxStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PodSandboxStatus_Call

PodSandboxStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PodSandboxStatusRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) PortForward

func (_e *MockV1RuntimeServiceClient_Expecter) PortForward(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_PortForward_Call

PortForward is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.PortForwardRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) RemoveContainer

func (_e *MockV1RuntimeServiceClient_Expecter) RemoveContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RemoveContainer_Call

RemoveContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RemoveContainerRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) RemovePodSandbox

func (_e *MockV1RuntimeServiceClient_Expecter) RemovePodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RemovePodSandbox_Call

RemovePodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RemovePodSandboxRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) ReopenContainerLog

func (_e *MockV1RuntimeServiceClient_Expecter) ReopenContainerLog(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_ReopenContainerLog_Call

ReopenContainerLog is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.ReopenContainerLogRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) RunPodSandbox

func (_e *MockV1RuntimeServiceClient_Expecter) RunPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RunPodSandbox_Call

RunPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RunPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) RuntimeConfig

func (_e *MockV1RuntimeServiceClient_Expecter) RuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_RuntimeConfig_Call

RuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.RuntimeConfigRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) StartContainer

func (_e *MockV1RuntimeServiceClient_Expecter) StartContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StartContainer_Call

StartContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StartContainerRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) Status

func (_e *MockV1RuntimeServiceClient_Expecter) Status(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Status_Call

Status is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StatusRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) StopContainer

func (_e *MockV1RuntimeServiceClient_Expecter) StopContainer(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StopContainer_Call

StopContainer is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StopContainerRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) StopPodSandbox

func (_e *MockV1RuntimeServiceClient_Expecter) StopPodSandbox(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_StopPodSandbox_Call

StopPodSandbox is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.StopPodSandboxRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) UpdateContainerResources

func (_e *MockV1RuntimeServiceClient_Expecter) UpdateContainerResources(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_UpdateContainerResources_Call

UpdateContainerResources is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.UpdateContainerResourcesRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) UpdateRuntimeConfig

func (_e *MockV1RuntimeServiceClient_Expecter) UpdateRuntimeConfig(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call

UpdateRuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.UpdateRuntimeConfigRequest
  • opts ...grpc.CallOption

func (*MockV1RuntimeServiceClient_Expecter) Version

func (_e *MockV1RuntimeServiceClient_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockV1RuntimeServiceClient_Version_Call

Version is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.VersionRequest
  • opts ...grpc.CallOption

type MockV1RuntimeServiceClient_GetContainerEvents_Call

type MockV1RuntimeServiceClient_GetContainerEvents_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_GetContainerEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContainerEvents'

func (*MockV1RuntimeServiceClient_GetContainerEvents_Call) Run

type MockV1RuntimeServiceClient_ListContainerStats_Call

type MockV1RuntimeServiceClient_ListContainerStats_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListContainerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainerStats'

func (*MockV1RuntimeServiceClient_ListContainerStats_Call) Return

func (*MockV1RuntimeServiceClient_ListContainerStats_Call) Run

type MockV1RuntimeServiceClient_ListContainers_Call

type MockV1RuntimeServiceClient_ListContainers_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListContainers'

func (*MockV1RuntimeServiceClient_ListContainers_Call) Return

func (*MockV1RuntimeServiceClient_ListContainers_Call) Run

type MockV1RuntimeServiceClient_ListMetricDescriptors_Call

type MockV1RuntimeServiceClient_ListMetricDescriptors_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListMetricDescriptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListMetricDescriptors'

func (*MockV1RuntimeServiceClient_ListMetricDescriptors_Call) Return

func (*MockV1RuntimeServiceClient_ListMetricDescriptors_Call) Run

type MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call

type MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxMetrics'

func (*MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) Return

func (*MockV1RuntimeServiceClient_ListPodSandboxMetrics_Call) Run

type MockV1RuntimeServiceClient_ListPodSandboxStats_Call

type MockV1RuntimeServiceClient_ListPodSandboxStats_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListPodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandboxStats'

func (*MockV1RuntimeServiceClient_ListPodSandboxStats_Call) Return

func (*MockV1RuntimeServiceClient_ListPodSandboxStats_Call) Run

type MockV1RuntimeServiceClient_ListPodSandbox_Call

type MockV1RuntimeServiceClient_ListPodSandbox_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ListPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPodSandbox'

func (*MockV1RuntimeServiceClient_ListPodSandbox_Call) Return

func (*MockV1RuntimeServiceClient_ListPodSandbox_Call) Run

type MockV1RuntimeServiceClient_PodSandboxStats_Call

type MockV1RuntimeServiceClient_PodSandboxStats_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_PodSandboxStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStats'

func (*MockV1RuntimeServiceClient_PodSandboxStats_Call) Return

func (*MockV1RuntimeServiceClient_PodSandboxStats_Call) Run

type MockV1RuntimeServiceClient_PodSandboxStatus_Call

type MockV1RuntimeServiceClient_PodSandboxStatus_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_PodSandboxStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PodSandboxStatus'

func (*MockV1RuntimeServiceClient_PodSandboxStatus_Call) Return

func (*MockV1RuntimeServiceClient_PodSandboxStatus_Call) Run

type MockV1RuntimeServiceClient_PortForward_Call

type MockV1RuntimeServiceClient_PortForward_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_PortForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortForward'

func (*MockV1RuntimeServiceClient_PortForward_Call) Return

func (*MockV1RuntimeServiceClient_PortForward_Call) Run

type MockV1RuntimeServiceClient_RemoveContainer_Call

type MockV1RuntimeServiceClient_RemoveContainer_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_RemoveContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveContainer'

func (*MockV1RuntimeServiceClient_RemoveContainer_Call) Return

func (*MockV1RuntimeServiceClient_RemoveContainer_Call) Run

type MockV1RuntimeServiceClient_RemovePodSandbox_Call

type MockV1RuntimeServiceClient_RemovePodSandbox_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_RemovePodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePodSandbox'

func (*MockV1RuntimeServiceClient_RemovePodSandbox_Call) Return

func (*MockV1RuntimeServiceClient_RemovePodSandbox_Call) Run

type MockV1RuntimeServiceClient_ReopenContainerLog_Call

type MockV1RuntimeServiceClient_ReopenContainerLog_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_ReopenContainerLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReopenContainerLog'

func (*MockV1RuntimeServiceClient_ReopenContainerLog_Call) Return

func (*MockV1RuntimeServiceClient_ReopenContainerLog_Call) Run

type MockV1RuntimeServiceClient_RunPodSandbox_Call

type MockV1RuntimeServiceClient_RunPodSandbox_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_RunPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunPodSandbox'

func (*MockV1RuntimeServiceClient_RunPodSandbox_Call) Return

func (*MockV1RuntimeServiceClient_RunPodSandbox_Call) Run

type MockV1RuntimeServiceClient_RuntimeConfig_Call

type MockV1RuntimeServiceClient_RuntimeConfig_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_RuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RuntimeConfig'

func (*MockV1RuntimeServiceClient_RuntimeConfig_Call) Return

func (*MockV1RuntimeServiceClient_RuntimeConfig_Call) Run

type MockV1RuntimeServiceClient_StartContainer_Call

type MockV1RuntimeServiceClient_StartContainer_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_StartContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartContainer'

func (*MockV1RuntimeServiceClient_StartContainer_Call) Return

func (*MockV1RuntimeServiceClient_StartContainer_Call) Run

type MockV1RuntimeServiceClient_Status_Call

type MockV1RuntimeServiceClient_Status_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*MockV1RuntimeServiceClient_Status_Call) Return

func (*MockV1RuntimeServiceClient_Status_Call) Run

func (*MockV1RuntimeServiceClient_Status_Call) RunAndReturn

type MockV1RuntimeServiceClient_StopContainer_Call

type MockV1RuntimeServiceClient_StopContainer_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_StopContainer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopContainer'

func (*MockV1RuntimeServiceClient_StopContainer_Call) Return

func (*MockV1RuntimeServiceClient_StopContainer_Call) Run

type MockV1RuntimeServiceClient_StopPodSandbox_Call

type MockV1RuntimeServiceClient_StopPodSandbox_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_StopPodSandbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPodSandbox'

func (*MockV1RuntimeServiceClient_StopPodSandbox_Call) Return

func (*MockV1RuntimeServiceClient_StopPodSandbox_Call) Run

type MockV1RuntimeServiceClient_UpdateContainerResources_Call

type MockV1RuntimeServiceClient_UpdateContainerResources_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_UpdateContainerResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateContainerResources'

func (*MockV1RuntimeServiceClient_UpdateContainerResources_Call) Run

type MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call

type MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuntimeConfig'

func (*MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) Return

func (*MockV1RuntimeServiceClient_UpdateRuntimeConfig_Call) Run

type MockV1RuntimeServiceClient_Version_Call

type MockV1RuntimeServiceClient_Version_Call struct {
	*mock.Call
}

MockV1RuntimeServiceClient_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'

func (*MockV1RuntimeServiceClient_Version_Call) Return

func (*MockV1RuntimeServiceClient_Version_Call) Run

func (*MockV1RuntimeServiceClient_Version_Call) RunAndReturn

type MockV1alpha1CheckpointServiceClient

type MockV1alpha1CheckpointServiceClient struct {
	mock.Mock
}

MockV1alpha1CheckpointServiceClient is an autogenerated mock type for the CheckpointServiceClient type

func NewMockV1alpha1CheckpointServiceClient

func NewMockV1alpha1CheckpointServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1alpha1CheckpointServiceClient

NewMockV1alpha1CheckpointServiceClient creates a new instance of MockV1alpha1CheckpointServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1alpha1CheckpointServiceClient) CheckpointStatus

CheckpointStatus provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1CheckpointServiceClient) CreateCheckpoint

CreateCheckpoint provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1CheckpointServiceClient) EXPECT

type MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call

type MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call struct {
	*mock.Call
}

MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckpointStatus'

func (*MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call) Run

type MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call

type MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call struct {
	*mock.Call
}

MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCheckpoint'

func (*MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call) Run

type MockV1alpha1CheckpointServiceClient_Expecter

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

func (*MockV1alpha1CheckpointServiceClient_Expecter) CheckpointStatus

func (_e *MockV1alpha1CheckpointServiceClient_Expecter) CheckpointStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1CheckpointServiceClient_CheckpointStatus_Call

CheckpointStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.CheckpointStatusRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1CheckpointServiceClient_Expecter) CreateCheckpoint

func (_e *MockV1alpha1CheckpointServiceClient_Expecter) CreateCheckpoint(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1CheckpointServiceClient_CreateCheckpoint_Call

CreateCheckpoint is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.CreateCheckpointRequest
  • opts ...grpc.CallOption

type MockV1alpha1InstanceServiceClient

type MockV1alpha1InstanceServiceClient struct {
	mock.Mock
}

MockV1alpha1InstanceServiceClient is an autogenerated mock type for the InstanceServiceClient type

func NewMockV1alpha1InstanceServiceClient

func NewMockV1alpha1InstanceServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1alpha1InstanceServiceClient

NewMockV1alpha1InstanceServiceClient creates a new instance of MockV1alpha1InstanceServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1alpha1InstanceServiceClient) DiscoverInstances

DiscoverInstances provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1InstanceServiceClient) EXPECT

func (*MockV1alpha1InstanceServiceClient) GetInstance

GetInstance provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1InstanceServiceClient) ListInstances

ListInstances provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1InstanceServiceClient) ReceiveInstanceStatusReports

ReceiveInstanceStatusReports provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1InstanceServiceClient) RunFlavorVersion

RunFlavorVersion provides a mock function with given fields: ctx, in, opts

type MockV1alpha1InstanceServiceClient_DiscoverInstances_Call

type MockV1alpha1InstanceServiceClient_DiscoverInstances_Call struct {
	*mock.Call
}

MockV1alpha1InstanceServiceClient_DiscoverInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoverInstances'

func (*MockV1alpha1InstanceServiceClient_DiscoverInstances_Call) Run

type MockV1alpha1InstanceServiceClient_Expecter

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

func (*MockV1alpha1InstanceServiceClient_Expecter) DiscoverInstances

func (_e *MockV1alpha1InstanceServiceClient_Expecter) DiscoverInstances(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_DiscoverInstances_Call

DiscoverInstances is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.DiscoverInstanceRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1InstanceServiceClient_Expecter) GetInstance

func (_e *MockV1alpha1InstanceServiceClient_Expecter) GetInstance(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_GetInstance_Call

GetInstance is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.GetInstanceRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1InstanceServiceClient_Expecter) ListInstances

func (_e *MockV1alpha1InstanceServiceClient_Expecter) ListInstances(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_ListInstances_Call

ListInstances is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.ListInstancesRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1InstanceServiceClient_Expecter) ReceiveInstanceStatusReports

func (_e *MockV1alpha1InstanceServiceClient_Expecter) ReceiveInstanceStatusReports(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call

ReceiveInstanceStatusReports is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.ReceiveInstanceStatusReportsRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1InstanceServiceClient_Expecter) RunFlavorVersion

func (_e *MockV1alpha1InstanceServiceClient_Expecter) RunFlavorVersion(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call

RunFlavorVersion is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.RunFlavorVersionRequest
  • opts ...grpc.CallOption

type MockV1alpha1InstanceServiceClient_GetInstance_Call

type MockV1alpha1InstanceServiceClient_GetInstance_Call struct {
	*mock.Call
}

MockV1alpha1InstanceServiceClient_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance'

func (*MockV1alpha1InstanceServiceClient_GetInstance_Call) Return

func (*MockV1alpha1InstanceServiceClient_GetInstance_Call) Run

type MockV1alpha1InstanceServiceClient_ListInstances_Call

type MockV1alpha1InstanceServiceClient_ListInstances_Call struct {
	*mock.Call
}

MockV1alpha1InstanceServiceClient_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances'

func (*MockV1alpha1InstanceServiceClient_ListInstances_Call) Return

func (*MockV1alpha1InstanceServiceClient_ListInstances_Call) Run

type MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call

type MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call struct {
	*mock.Call
}

MockV1alpha1InstanceServiceClient_ReceiveInstanceStatusReports_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReceiveInstanceStatusReports'

type MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call

type MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call struct {
	*mock.Call
}

MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunFlavorVersion'

func (*MockV1alpha1InstanceServiceClient_RunFlavorVersion_Call) Run

type MockV1alpha1ProxyServiceClient

type MockV1alpha1ProxyServiceClient struct {
	mock.Mock
}

MockV1alpha1ProxyServiceClient is an autogenerated mock type for the ProxyServiceClient type

func NewMockV1alpha1ProxyServiceClient

func NewMockV1alpha1ProxyServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1alpha1ProxyServiceClient

NewMockV1alpha1ProxyServiceClient creates a new instance of MockV1alpha1ProxyServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1alpha1ProxyServiceClient) CreateListeners

CreateListeners provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1ProxyServiceClient) DeleteListeners

DeleteListeners provides a mock function with given fields: ctx, in, opts

func (*MockV1alpha1ProxyServiceClient) EXPECT

type MockV1alpha1ProxyServiceClient_CreateListeners_Call

type MockV1alpha1ProxyServiceClient_CreateListeners_Call struct {
	*mock.Call
}

MockV1alpha1ProxyServiceClient_CreateListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateListeners'

func (*MockV1alpha1ProxyServiceClient_CreateListeners_Call) Return

func (*MockV1alpha1ProxyServiceClient_CreateListeners_Call) Run

type MockV1alpha1ProxyServiceClient_DeleteListeners_Call

type MockV1alpha1ProxyServiceClient_DeleteListeners_Call struct {
	*mock.Call
}

MockV1alpha1ProxyServiceClient_DeleteListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteListeners'

func (*MockV1alpha1ProxyServiceClient_DeleteListeners_Call) Return

func (*MockV1alpha1ProxyServiceClient_DeleteListeners_Call) Run

type MockV1alpha1ProxyServiceClient_Expecter

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

func (*MockV1alpha1ProxyServiceClient_Expecter) CreateListeners

func (_e *MockV1alpha1ProxyServiceClient_Expecter) CreateListeners(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1ProxyServiceClient_CreateListeners_Call

CreateListeners is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.CreateListenersRequest
  • opts ...grpc.CallOption

func (*MockV1alpha1ProxyServiceClient_Expecter) DeleteListeners

func (_e *MockV1alpha1ProxyServiceClient_Expecter) DeleteListeners(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha1ProxyServiceClient_DeleteListeners_Call

DeleteListeners is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha1.DeleteListenersRequest
  • opts ...grpc.CallOption

type MockV1alpha2WorkloadServiceClient

type MockV1alpha2WorkloadServiceClient struct {
	mock.Mock
}

MockV1alpha2WorkloadServiceClient is an autogenerated mock type for the WorkloadServiceClient type

func NewMockV1alpha2WorkloadServiceClient

func NewMockV1alpha2WorkloadServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockV1alpha2WorkloadServiceClient

NewMockV1alpha2WorkloadServiceClient creates a new instance of MockV1alpha2WorkloadServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockV1alpha2WorkloadServiceClient) EXPECT

func (*MockV1alpha2WorkloadServiceClient) WorkloadStatus

WorkloadStatus provides a mock function with given fields: ctx, in, opts

type MockV1alpha2WorkloadServiceClient_Expecter

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

func (*MockV1alpha2WorkloadServiceClient_Expecter) WorkloadStatus

func (_e *MockV1alpha2WorkloadServiceClient_Expecter) WorkloadStatus(ctx interface{}, in interface{}, opts ...interface{}) *MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call

WorkloadStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *v1alpha2.WorkloadStatusRequest
  • opts ...grpc.CallOption

type MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call

type MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call struct {
	*mock.Call
}

MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkloadStatus'

func (*MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) Return

func (*MockV1alpha2WorkloadServiceClient_WorkloadStatus_Call) Run

type MockWorkloadService

type MockWorkloadService struct {
	mock.Mock
}

MockWorkloadService is an autogenerated mock type for the Service type

func NewMockWorkloadService

func NewMockWorkloadService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWorkloadService

NewMockWorkloadService creates a new instance of MockWorkloadService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockWorkloadService) EXPECT

func (*MockWorkloadService) GetWorkloadHealth

func (_m *MockWorkloadService) GetWorkloadHealth(ctx context.Context, id string) (status.WorkloadHealthStatus, error)

GetWorkloadHealth provides a mock function with given fields: ctx, id

func (*MockWorkloadService) RemoveWorkload

func (_m *MockWorkloadService) RemoveWorkload(ctx context.Context, id string) error

RemoveWorkload provides a mock function with given fields: ctx, id

func (*MockWorkloadService) RunWorkload

func (_m *MockWorkloadService) RunWorkload(ctx context.Context, w workload.Workload, attempt uint) error

RunWorkload provides a mock function with given fields: ctx, w, attempt

type MockWorkloadService_Expecter

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

func (*MockWorkloadService_Expecter) GetWorkloadHealth

func (_e *MockWorkloadService_Expecter) GetWorkloadHealth(ctx interface{}, id interface{}) *MockWorkloadService_GetWorkloadHealth_Call

GetWorkloadHealth is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockWorkloadService_Expecter) RemoveWorkload

func (_e *MockWorkloadService_Expecter) RemoveWorkload(ctx interface{}, id interface{}) *MockWorkloadService_RemoveWorkload_Call

RemoveWorkload is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*MockWorkloadService_Expecter) RunWorkload

func (_e *MockWorkloadService_Expecter) RunWorkload(ctx interface{}, w interface{}, attempt interface{}) *MockWorkloadService_RunWorkload_Call

RunWorkload is a helper method to define mock.On call

  • ctx context.Context
  • w workload.Workload
  • attempt uint

type MockWorkloadService_GetWorkloadHealth_Call

type MockWorkloadService_GetWorkloadHealth_Call struct {
	*mock.Call
}

MockWorkloadService_GetWorkloadHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkloadHealth'

func (*MockWorkloadService_GetWorkloadHealth_Call) Return

func (*MockWorkloadService_GetWorkloadHealth_Call) Run

func (*MockWorkloadService_GetWorkloadHealth_Call) RunAndReturn

type MockWorkloadService_RemoveWorkload_Call

type MockWorkloadService_RemoveWorkload_Call struct {
	*mock.Call
}

MockWorkloadService_RemoveWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveWorkload'

func (*MockWorkloadService_RemoveWorkload_Call) Return

func (*MockWorkloadService_RemoveWorkload_Call) Run

func (*MockWorkloadService_RemoveWorkload_Call) RunAndReturn

type MockWorkloadService_RunWorkload_Call

type MockWorkloadService_RunWorkload_Call struct {
	*mock.Call
}

MockWorkloadService_RunWorkload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunWorkload'

func (*MockWorkloadService_RunWorkload_Call) Return

func (*MockWorkloadService_RunWorkload_Call) Run

func (*MockWorkloadService_RunWorkload_Call) RunAndReturn

type MockXdsMap

type MockXdsMap struct {
	mock.Mock
}

MockXdsMap is an autogenerated mock type for the Map type

func NewMockXdsMap

func NewMockXdsMap(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockXdsMap

NewMockXdsMap creates a new instance of MockXdsMap. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockXdsMap) Del

func (_m *MockXdsMap) Del(ctx context.Context, key string) (*cache.Snapshot, error)

Del provides a mock function with given fields: ctx, key

func (*MockXdsMap) EXPECT

func (_m *MockXdsMap) EXPECT() *MockXdsMap_Expecter

func (*MockXdsMap) Get

func (_m *MockXdsMap) Get(key string) xds.ResourceGroup

Get provides a mock function with given fields: key

func (*MockXdsMap) Put

func (_m *MockXdsMap) Put(ctx context.Context, key string, rg xds.ResourceGroup) (*cache.Snapshot, error)

Put provides a mock function with given fields: ctx, key, rg

type MockXdsMap_Del_Call

type MockXdsMap_Del_Call struct {
	*mock.Call
}

MockXdsMap_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'

func (*MockXdsMap_Del_Call) Return

func (*MockXdsMap_Del_Call) Run

func (_c *MockXdsMap_Del_Call) Run(run func(ctx context.Context, key string)) *MockXdsMap_Del_Call

func (*MockXdsMap_Del_Call) RunAndReturn

type MockXdsMap_Expecter

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

func (*MockXdsMap_Expecter) Del

func (_e *MockXdsMap_Expecter) Del(ctx interface{}, key interface{}) *MockXdsMap_Del_Call

Del is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*MockXdsMap_Expecter) Get

func (_e *MockXdsMap_Expecter) Get(key interface{}) *MockXdsMap_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*MockXdsMap_Expecter) Put

func (_e *MockXdsMap_Expecter) Put(ctx interface{}, key interface{}, rg interface{}) *MockXdsMap_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • rg xds.ResourceGroup

type MockXdsMap_Get_Call

type MockXdsMap_Get_Call struct {
	*mock.Call
}

MockXdsMap_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockXdsMap_Get_Call) Return

func (*MockXdsMap_Get_Call) Run

func (_c *MockXdsMap_Get_Call) Run(run func(key string)) *MockXdsMap_Get_Call

func (*MockXdsMap_Get_Call) RunAndReturn

func (_c *MockXdsMap_Get_Call) RunAndReturn(run func(string) xds.ResourceGroup) *MockXdsMap_Get_Call

type MockXdsMap_Put_Call

type MockXdsMap_Put_Call struct {
	*mock.Call
}

MockXdsMap_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*MockXdsMap_Put_Call) Return

func (*MockXdsMap_Put_Call) Run

func (*MockXdsMap_Put_Call) RunAndReturn

Jump to

Keyboard shortcuts

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