Documentation ¶
Index ¶
- type Factory
- type ReadSession
- func (_m *ReadSession) GetCluster(runtimeID string) (model.Cluster, dberrors.Error)
- func (_m *ReadSession) GetGardenerClusterByName(name string) (model.Cluster, dberrors.Error)
- func (_m *ReadSession) GetLastOperation(runtimeID string) (model.Operation, dberrors.Error)
- func (_m *ReadSession) GetOperation(operationID string) (model.Operation, dberrors.Error)
- func (_m *ReadSession) GetRuntimeUpgrade(operationId string) (model.RuntimeUpgrade, dberrors.Error)
- func (_m *ReadSession) GetTenant(runtimeID string) (string, dberrors.Error)
- func (_m *ReadSession) GetTenantForOperation(operationID string) (string, dberrors.Error)
- func (_m *ReadSession) InProgressOperationsCount() (model.OperationsCount, dberrors.Error)
- func (_m *ReadSession) ListInProgressOperations() ([]model.Operation, dberrors.Error)
- type ReadWriteSession
- func (_m *ReadWriteSession) DeleteCluster(runtimeID string) dberrors.Error
- func (_m *ReadWriteSession) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error
- func (_m *ReadWriteSession) GetCluster(runtimeID string) (model.Cluster, dberrors.Error)
- func (_m *ReadWriteSession) GetGardenerClusterByName(name string) (model.Cluster, dberrors.Error)
- func (_m *ReadWriteSession) GetLastOperation(runtimeID string) (model.Operation, dberrors.Error)
- func (_m *ReadWriteSession) GetOperation(operationID string) (model.Operation, dberrors.Error)
- func (_m *ReadWriteSession) GetRuntimeUpgrade(operationId string) (model.RuntimeUpgrade, dberrors.Error)
- func (_m *ReadWriteSession) GetTenant(runtimeID string) (string, dberrors.Error)
- func (_m *ReadWriteSession) GetTenantForOperation(operationID string) (string, dberrors.Error)
- func (_m *ReadWriteSession) InProgressOperationsCount() (model.OperationsCount, dberrors.Error)
- func (_m *ReadWriteSession) InsertCluster(cluster model.Cluster) dberrors.Error
- func (_m *ReadWriteSession) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error
- func (_m *ReadWriteSession) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error
- func (_m *ReadWriteSession) InsertOperation(operation model.Operation) dberrors.Error
- func (_m *ReadWriteSession) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error
- func (_m *ReadWriteSession) ListInProgressOperations() ([]model.Operation, dberrors.Error)
- func (_m *ReadWriteSession) MarkClusterAsDeleted(runtimeID string) dberrors.Error
- func (_m *ReadWriteSession) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error
- func (_m *ReadWriteSession) TransitionOperation(operationID string, message string, stage model.OperationStage, ...) dberrors.Error
- func (_m *ReadWriteSession) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error
- func (_m *ReadWriteSession) UpdateOperationState(operationID string, message string, state model.OperationState, ...) dberrors.Error
- func (_m *ReadWriteSession) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error
- type WriteSession
- func (_m *WriteSession) DeleteCluster(runtimeID string) dberrors.Error
- func (_m *WriteSession) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error
- func (_m *WriteSession) InsertCluster(cluster model.Cluster) dberrors.Error
- func (_m *WriteSession) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error
- func (_m *WriteSession) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error
- func (_m *WriteSession) InsertOperation(operation model.Operation) dberrors.Error
- func (_m *WriteSession) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error
- func (_m *WriteSession) MarkClusterAsDeleted(runtimeID string) dberrors.Error
- func (_m *WriteSession) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error
- func (_m *WriteSession) TransitionOperation(operationID string, message string, stage model.OperationStage, ...) dberrors.Error
- func (_m *WriteSession) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error
- func (_m *WriteSession) UpdateOperationState(operationID string, message string, state model.OperationState, ...) dberrors.Error
- func (_m *WriteSession) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error
- type WriteSessionWithinTransaction
- func (_m *WriteSessionWithinTransaction) Commit() dberrors.Error
- func (_m *WriteSessionWithinTransaction) DeleteCluster(runtimeID string) dberrors.Error
- func (_m *WriteSessionWithinTransaction) FixShootProvisioningStage(message string, newStage model.OperationStage, transitionTime time.Time) dberrors.Error
- func (_m *WriteSessionWithinTransaction) InsertCluster(cluster model.Cluster) dberrors.Error
- func (_m *WriteSessionWithinTransaction) InsertGardenerConfig(config model.GardenerConfig) dberrors.Error
- func (_m *WriteSessionWithinTransaction) InsertKymaConfig(kymaConfig model.KymaConfig) dberrors.Error
- func (_m *WriteSessionWithinTransaction) InsertOperation(operation model.Operation) dberrors.Error
- func (_m *WriteSessionWithinTransaction) InsertRuntimeUpgrade(runtimeUpgrade model.RuntimeUpgrade) dberrors.Error
- func (_m *WriteSessionWithinTransaction) MarkClusterAsDeleted(runtimeID string) dberrors.Error
- func (_m *WriteSessionWithinTransaction) RollbackUnlessCommitted()
- func (_m *WriteSessionWithinTransaction) SetActiveKymaConfig(runtimeID string, kymaConfigId string) dberrors.Error
- func (_m *WriteSessionWithinTransaction) TransitionOperation(operationID string, message string, stage model.OperationStage, ...) dberrors.Error
- func (_m *WriteSessionWithinTransaction) UpdateKubeconfig(runtimeID string, kubeconfig string) dberrors.Error
- func (_m *WriteSessionWithinTransaction) UpdateOperationState(operationID string, message string, state model.OperationState, ...) dberrors.Error
- func (_m *WriteSessionWithinTransaction) UpdateUpgradeState(operationID string, upgradeState model.UpgradeState) dberrors.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
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 ¶
ReadSession is an autogenerated mock type for the ReadSession type
func (*ReadSession) GetCluster ¶
GetCluster provides a mock function with given fields: runtimeID
func (*ReadSession) GetGardenerClusterByName ¶
GetGardenerClusterByName provides a mock function with given fields: name
func (*ReadSession) GetLastOperation ¶
GetLastOperation provides a mock function with given fields: runtimeID
func (*ReadSession) GetOperation ¶
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 ¶
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 ¶
GetCluster provides a mock function with given fields: runtimeID
func (*ReadWriteSession) GetGardenerClusterByName ¶
GetGardenerClusterByName provides a mock function with given fields: name
func (*ReadWriteSession) GetLastOperation ¶
GetLastOperation provides a mock function with given fields: runtimeID
func (*ReadWriteSession) GetOperation ¶
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 ¶
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 ¶
WriteSessionWithinTransaction is an autogenerated mock type for the WriteSessionWithinTransaction type
func (*WriteSessionWithinTransaction) Commit ¶
func (_m *WriteSessionWithinTransaction) Commit() dberrors.Error
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