mocks

package
v0.0.0-...-1c44903 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func (*Factory) NewReadSession

func (_m *Factory) NewReadSession() dbsession.ReadSession

NewReadSession provides a mock function with given fields:

func (*Factory) NewReadWriteSession

func (_m *Factory) NewReadWriteSession() dbsession.ReadWriteSession

NewReadWriteSession provides a mock function with given fields:

func (*Factory) NewSessionWithinTransaction

func (_m *Factory) NewSessionWithinTransaction() (dbsession.WriteSessionWithinTransaction, dberrors.Error)

NewSessionWithinTransaction provides a mock function with given fields:

func (*Factory) NewWriteSession

func (_m *Factory) NewWriteSession() dbsession.WriteSession

NewWriteSession provides a mock function with given fields:

type ReadSession

type ReadSession struct {
	mock.Mock
}

ReadSession is an autogenerated mock type for the ReadSession type

func (*ReadSession) GetCluster

func (_m *ReadSession) GetCluster(runtimeID string) (model.Cluster, dberrors.Error)

GetCluster provides a mock function with given fields: runtimeID

func (*ReadSession) GetGardenerClusterByName

func (_m *ReadSession) GetGardenerClusterByName(name string) (model.Cluster, dberrors.Error)

GetGardenerClusterByName provides a mock function with given fields: name

func (*ReadSession) GetLastOperation

func (_m *ReadSession) GetLastOperation(runtimeID string) (model.Operation, dberrors.Error)

GetLastOperation provides a mock function with given fields: runtimeID

func (*ReadSession) GetOperation

func (_m *ReadSession) GetOperation(operationID string) (model.Operation, dberrors.Error)

GetOperation provides a mock function with given fields: operationID

func (*ReadSession) GetRuntimeUpgrade

func (_m *ReadSession) GetRuntimeUpgrade(operationId string) (model.RuntimeUpgrade, dberrors.Error)

GetRuntimeUpgrade provides a mock function with given fields: operationId

func (*ReadSession) GetTenant

func (_m *ReadSession) GetTenant(runtimeID string) (string, dberrors.Error)

GetTenant provides a mock function with given fields: runtimeID

func (*ReadSession) GetTenantForOperation

func (_m *ReadSession) GetTenantForOperation(operationID string) (string, dberrors.Error)

GetTenantForOperation provides a mock function with given fields: operationID

func (*ReadSession) InProgressOperationsCount

func (_m *ReadSession) InProgressOperationsCount() (model.OperationsCount, dberrors.Error)

InProgressOperationsCount provides a mock function with given fields:

func (*ReadSession) ListInProgressOperations

func (_m *ReadSession) ListInProgressOperations() ([]model.Operation, dberrors.Error)

ListInProgressOperations provides a mock function with given fields:

type ReadWriteSession

type ReadWriteSession struct {
	mock.Mock
}

ReadWriteSession is an autogenerated mock type for the ReadWriteSession type

func (*ReadWriteSession) DeleteCluster

func (_m *ReadWriteSession) DeleteCluster(runtimeID string) dberrors.Error

DeleteCluster provides a mock function with given fields: runtimeID

func (*ReadWriteSession) FixShootProvisioningStage

func (_m *ReadWriteSession) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error

FixShootProvisioningStage provides a mock function with given fields: message, newStage, transitionTime

func (*ReadWriteSession) GetCluster

func (_m *ReadWriteSession) GetCluster(runtimeID string) (model.Cluster, dberrors.Error)

GetCluster provides a mock function with given fields: runtimeID

func (*ReadWriteSession) GetGardenerClusterByName

func (_m *ReadWriteSession) GetGardenerClusterByName(name string) (model.Cluster, dberrors.Error)

GetGardenerClusterByName provides a mock function with given fields: name

func (*ReadWriteSession) GetLastOperation

func (_m *ReadWriteSession) GetLastOperation(runtimeID string) (model.Operation, dberrors.Error)

GetLastOperation provides a mock function with given fields: runtimeID

func (*ReadWriteSession) GetOperation

func (_m *ReadWriteSession) GetOperation(operationID string) (model.Operation, dberrors.Error)

GetOperation provides a mock function with given fields: operationID

func (*ReadWriteSession) GetRuntimeUpgrade

func (_m *ReadWriteSession) GetRuntimeUpgrade(operationId string) (model.RuntimeUpgrade, dberrors.Error)

GetRuntimeUpgrade provides a mock function with given fields: operationId

func (*ReadWriteSession) GetTenant

func (_m *ReadWriteSession) GetTenant(runtimeID string) (string, dberrors.Error)

GetTenant provides a mock function with given fields: runtimeID

func (*ReadWriteSession) GetTenantForOperation

func (_m *ReadWriteSession) GetTenantForOperation(operationID string) (string, dberrors.Error)

GetTenantForOperation provides a mock function with given fields: operationID

func (*ReadWriteSession) InProgressOperationsCount

func (_m *ReadWriteSession) InProgressOperationsCount() (model.OperationsCount, dberrors.Error)

InProgressOperationsCount provides a mock function with given fields:

func (*ReadWriteSession) InsertCluster

func (_m *ReadWriteSession) InsertCluster(cluster model.Cluster) dberrors.Error

InsertCluster provides a mock function with given fields: cluster

func (*ReadWriteSession) InsertGardenerConfig

func (_m *ReadWriteSession) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error

InsertGardenerConfig provides a mock function with given fields: config

func (*ReadWriteSession) InsertKymaConfig

func (_m *ReadWriteSession) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error

InsertKymaConfig provides a mock function with given fields: kymaConfig

func (*ReadWriteSession) InsertOperation

func (_m *ReadWriteSession) InsertOperation(operation model.Operation) dberrors.Error

InsertOperation provides a mock function with given fields: operation

func (*ReadWriteSession) InsertRuntimeUpgrade

func (_m *ReadWriteSession) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error

InsertRuntimeUpgrade provides a mock function with given fields: runtimeUpgrade

func (*ReadWriteSession) ListInProgressOperations

func (_m *ReadWriteSession) ListInProgressOperations() ([]model.Operation, dberrors.Error)

ListInProgressOperations provides a mock function with given fields:

func (*ReadWriteSession) MarkClusterAsDeleted

func (_m *ReadWriteSession) MarkClusterAsDeleted(runtimeID string) dberrors.Error

MarkClusterAsDeleted provides a mock function with given fields: runtimeID

func (*ReadWriteSession) SetActiveKymaConfig

func (_m *ReadWriteSession) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error

SetActiveKymaConfig provides a mock function with given fields: runtimeID, kymaConfigId

func (*ReadWriteSession) TransitionOperation

func (_m *ReadWriteSession) TransitionOperation(operationID string, message string, stage model.OperationStage, transitionTime time.Time) dberrors.Error

TransitionOperation provides a mock function with given fields: operationID, message, stage, transitionTime

func (*ReadWriteSession) UpdateKubeconfig

func (_m *ReadWriteSession) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error

UpdateKubeconfig provides a mock function with given fields: runtimeID, kubeconfig

func (*ReadWriteSession) UpdateOperationState

func (_m *ReadWriteSession) UpdateOperationState(operationID string, message string, state model.OperationState, endTime time.Time) dberrors.Error

UpdateOperationState provides a mock function with given fields: operationID, message, state, endTime

func (*ReadWriteSession) UpdateUpgradeState

func (_m *ReadWriteSession) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error

UpdateUpgradeState provides a mock function with given fields: operationID, upgradeState

type WriteSession

type WriteSession struct {
	mock.Mock
}

WriteSession is an autogenerated mock type for the WriteSession type

func (*WriteSession) DeleteCluster

func (_m *WriteSession) DeleteCluster(runtimeID string) dberrors.Error

DeleteCluster provides a mock function with given fields: runtimeID

func (*WriteSession) FixShootProvisioningStage

func (_m *WriteSession) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error

FixShootProvisioningStage provides a mock function with given fields: message, newStage, transitionTime

func (*WriteSession) InsertCluster

func (_m *WriteSession) InsertCluster(cluster model.Cluster) dberrors.Error

InsertCluster provides a mock function with given fields: cluster

func (*WriteSession) InsertGardenerConfig

func (_m *WriteSession) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error

InsertGardenerConfig provides a mock function with given fields: config

func (*WriteSession) InsertKymaConfig

func (_m *WriteSession) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error

InsertKymaConfig provides a mock function with given fields: kymaConfig

func (*WriteSession) InsertOperation

func (_m *WriteSession) InsertOperation(operation model.Operation) dberrors.Error

InsertOperation provides a mock function with given fields: operation

func (*WriteSession) InsertRuntimeUpgrade

func (_m *WriteSession) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error

InsertRuntimeUpgrade provides a mock function with given fields: runtimeUpgrade

func (*WriteSession) MarkClusterAsDeleted

func (_m *WriteSession) MarkClusterAsDeleted(runtimeID string) dberrors.Error

MarkClusterAsDeleted provides a mock function with given fields: runtimeID

func (*WriteSession) SetActiveKymaConfig

func (_m *WriteSession) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error

SetActiveKymaConfig provides a mock function with given fields: runtimeID, kymaConfigId

func (*WriteSession) TransitionOperation

func (_m *WriteSession) TransitionOperation(operationID string, message string, stage model.OperationStage, transitionTime time.Time) dberrors.Error

TransitionOperation provides a mock function with given fields: operationID, message, stage, transitionTime

func (*WriteSession) UpdateKubeconfig

func (_m *WriteSession) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error

UpdateKubeconfig provides a mock function with given fields: runtimeID, kubeconfig

func (*WriteSession) UpdateOperationState

func (_m *WriteSession) UpdateOperationState(operationID string, message string, state model.OperationState, endTime time.Time) dberrors.Error

UpdateOperationState provides a mock function with given fields: operationID, message, state, endTime

func (*WriteSession) UpdateUpgradeState

func (_m *WriteSession) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error

UpdateUpgradeState provides a mock function with given fields: operationID, upgradeState

type WriteSessionWithinTransaction

type WriteSessionWithinTransaction struct {
	mock.Mock
}

WriteSessionWithinTransaction is an autogenerated mock type for the WriteSessionWithinTransaction type

func (*WriteSessionWithinTransaction) Commit

Commit provides a mock function with given fields:

func (*WriteSessionWithinTransaction) DeleteCluster

func (_m *WriteSessionWithinTransaction) DeleteCluster(runtimeID string) dberrors.Error

DeleteCluster provides a mock function with given fields: runtimeID

func (*WriteSessionWithinTransaction) FixShootProvisioningStage

func (_m *WriteSessionWithinTransaction) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error

FixShootProvisioningStage provides a mock function with given fields: message, newStage, transitionTime

func (*WriteSessionWithinTransaction) InsertCluster

func (_m *WriteSessionWithinTransaction) InsertCluster(cluster model.Cluster) dberrors.Error

InsertCluster provides a mock function with given fields: cluster

func (*WriteSessionWithinTransaction) InsertGardenerConfig

func (_m *WriteSessionWithinTransaction) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error

InsertGardenerConfig provides a mock function with given fields: config

func (*WriteSessionWithinTransaction) InsertKymaConfig

func (_m *WriteSessionWithinTransaction) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error

InsertKymaConfig provides a mock function with given fields: kymaConfig

func (*WriteSessionWithinTransaction) InsertOperation

func (_m *WriteSessionWithinTransaction) InsertOperation(operation model.Operation) dberrors.Error

InsertOperation provides a mock function with given fields: operation

func (*WriteSessionWithinTransaction) InsertRuntimeUpgrade

func (_m *WriteSessionWithinTransaction) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error

InsertRuntimeUpgrade provides a mock function with given fields: runtimeUpgrade

func (*WriteSessionWithinTransaction) MarkClusterAsDeleted

func (_m *WriteSessionWithinTransaction) MarkClusterAsDeleted(runtimeID string) dberrors.Error

MarkClusterAsDeleted provides a mock function with given fields: runtimeID

func (*WriteSessionWithinTransaction) RollbackUnlessCommitted

func (_m *WriteSessionWithinTransaction) RollbackUnlessCommitted()

RollbackUnlessCommitted provides a mock function with given fields:

func (*WriteSessionWithinTransaction) SetActiveKymaConfig

func (_m *WriteSessionWithinTransaction) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error

SetActiveKymaConfig provides a mock function with given fields: runtimeID, kymaConfigId

func (*WriteSessionWithinTransaction) TransitionOperation

func (_m *WriteSessionWithinTransaction) TransitionOperation(operationID string, message string, stage model.OperationStage, transitionTime time.Time) dberrors.Error

TransitionOperation provides a mock function with given fields: operationID, message, stage, transitionTime

func (*WriteSessionWithinTransaction) UpdateKubeconfig

func (_m *WriteSessionWithinTransaction) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error

UpdateKubeconfig provides a mock function with given fields: runtimeID, kubeconfig

func (*WriteSessionWithinTransaction) UpdateOperationState

func (_m *WriteSessionWithinTransaction) UpdateOperationState(operationID string, message string, state model.OperationState, endTime time.Time) dberrors.Error

UpdateOperationState provides a mock function with given fields: operationID, message, state, endTime

func (*WriteSessionWithinTransaction) UpdateUpgradeState

func (_m *WriteSessionWithinTransaction) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error

UpdateUpgradeState provides a mock function with given fields: operationID, upgradeState

Jump to

Keyboard shortcuts

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