Documentation ¶
Overview ¶
Package versionservice provides an interface for the Perocona version service.
Index ¶
Constants ¶
View Source
const ( // PXCOperatorName is the name of the PXC operator in the version service. PXCOperatorName = "pxc-operator" // PSMDBOperatorName is the name of the PSMDB operator in the version service. PSMDBOperatorName = "psmdb-operator" // PGOperatorName is the name of the PG operator in the version service. PGOperatorName = "pg-operator" )
Variables ¶
View Source
var EngineTypeToOperatorName = map[everestv1alpha1.EngineType]string{ everestv1alpha1.DatabaseEnginePXC: PXCOperatorName, everestv1alpha1.DatabaseEnginePSMDB: PSMDBOperatorName, everestv1alpha1.DatabaseEnginePostgresql: PGOperatorName, }
EngineTypeToOperatorName maps an engine type to the operator name in the version service.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { GetSupportedEngineVersions(ctx context.Context, operator, version string) ([]string, error) GetEverestMetadata(ctx context.Context) (*perconavs.MetadataResponse, error) }
Interface is the interface for the version service client.
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t interface { mock.TestingT Cleanup(func()) }, ) *MockInterface
NewMockInterface creates a new instance of MockInterface. 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 (*MockInterface) GetEverestMetadata ¶
func (_m *MockInterface) GetEverestMetadata(ctx context.Context) (*version.MetadataResponse, error)
GetEverestMetadata provides a mock function with given fields: ctx
func (*MockInterface) GetSupportedEngineVersions ¶
func (_m *MockInterface) GetSupportedEngineVersions(ctx context.Context, operator string, _a2 string) ([]string, error)
GetSupportedEngineVersions provides a mock function with given fields: ctx, operator, _a2
Click to show internal directories.
Click to hide internal directories.