mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 02:48:39 +02:00
update codegen
This commit is contained in:
@@ -35,7 +35,7 @@ import (
|
|||||||
|
|
||||||
var scheme = runtime.NewScheme()
|
var scheme = runtime.NewScheme()
|
||||||
var codecs = serializer.NewCodecFactory(scheme)
|
var codecs = serializer.NewCodecFactory(scheme)
|
||||||
var parameterCodec = runtime.NewParameterCodec(scheme)
|
|
||||||
var localSchemeBuilder = runtime.SchemeBuilder{
|
var localSchemeBuilder = runtime.SchemeBuilder{
|
||||||
acidv1.AddToScheme,
|
acidv1.AddToScheme,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,8 +32,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// PostgresqlLister helps list Postgresqls.
|
// PostgresqlLister helps list Postgresqls.
|
||||||
|
// All objects returned here must be treated as read-only.
|
||||||
type PostgresqlLister interface {
|
type PostgresqlLister interface {
|
||||||
// List lists all Postgresqls in the indexer.
|
// List lists all Postgresqls in the indexer.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
List(selector labels.Selector) (ret []*v1.Postgresql, err error)
|
List(selector labels.Selector) (ret []*v1.Postgresql, err error)
|
||||||
// Postgresqls returns an object that can list and get Postgresqls.
|
// Postgresqls returns an object that can list and get Postgresqls.
|
||||||
Postgresqls(namespace string) PostgresqlNamespaceLister
|
Postgresqls(namespace string) PostgresqlNamespaceLister
|
||||||
@@ -64,10 +66,13 @@ func (s *postgresqlLister) Postgresqls(namespace string) PostgresqlNamespaceList
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostgresqlNamespaceLister helps list and get Postgresqls.
|
// PostgresqlNamespaceLister helps list and get Postgresqls.
|
||||||
|
// All objects returned here must be treated as read-only.
|
||||||
type PostgresqlNamespaceLister interface {
|
type PostgresqlNamespaceLister interface {
|
||||||
// List lists all Postgresqls in the indexer for a given namespace.
|
// List lists all Postgresqls in the indexer for a given namespace.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
List(selector labels.Selector) (ret []*v1.Postgresql, err error)
|
List(selector labels.Selector) (ret []*v1.Postgresql, err error)
|
||||||
// Get retrieves the Postgresql from the indexer for a given namespace and name.
|
// Get retrieves the Postgresql from the indexer for a given namespace and name.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
Get(name string) (*v1.Postgresql, error)
|
Get(name string) (*v1.Postgresql, error)
|
||||||
PostgresqlNamespaceListerExpansion
|
PostgresqlNamespaceListerExpansion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user