From 3cd32635f289e312d4a0e0b8bfe7c7be820faca3 Mon Sep 17 00:00:00 2001 From: Tapajit Chandra Paul Date: Tue, 16 Jan 2024 19:54:41 +0600 Subject: [PATCH] Run make fmt lint Signed-off-by: Tapajit Chandra Paul --- .config/api-rules/violation_exceptions.list | 8 +- .../v1alpha1/zz_generated.deepcopy.go | 3 +- .../v1alpha1/zz_generated.deepcopy.go | 3 +- .../v1alpha1/zz_generated.deepcopy.go | 3 +- apis/kafka/v1alpha1/zz_generated.deepcopy.go | 3 +- apis/ops/v1alpha1/zz_generated.deepcopy.go | 3 +- client/clientset/versioned/clientset.go | 264 ------------- .../versioned/fake/clientset_generated.go | 163 -------- client/clientset/versioned/fake/doc.go | 20 - client/clientset/versioned/fake/register.go | 79 ---- client/clientset/versioned/scheme/doc.go | 20 - client/clientset/versioned/scheme/register.go | 79 ---- .../archiver/v1alpha1/archiver_client.go | 118 ------ .../versioned/typed/archiver/v1alpha1/doc.go | 20 - .../typed/archiver/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_archiver_client.go | 49 --- .../v1alpha1/fake/fake_mongodbarchiver.go | 142 ------- .../v1alpha1/fake/fake_mysqlarchiver.go | 142 ------- .../v1alpha1/fake/fake_postgresarchiver.go | 142 ------- .../archiver/v1alpha1/generated_expansion.go | 25 -- .../archiver/v1alpha1/mongodbarchiver.go | 196 ---------- .../typed/archiver/v1alpha1/mysqlarchiver.go | 196 ---------- .../archiver/v1alpha1/postgresarchiver.go | 196 ---------- .../v1alpha1/autoscaling_client.go | 163 -------- .../typed/autoscaling/v1alpha1/doc.go | 20 - .../v1alpha1/elasticsearchautoscaler.go | 196 ---------- .../autoscaling/v1alpha1/etcdautoscaler.go | 196 ---------- .../typed/autoscaling/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_autoscaling_client.go | 85 ----- .../fake/fake_elasticsearchautoscaler.go | 142 ------- .../v1alpha1/fake/fake_etcdautoscaler.go | 142 ------- .../v1alpha1/fake/fake_mariadbautoscaler.go | 142 ------- .../v1alpha1/fake/fake_memcachedautoscaler.go | 142 ------- .../v1alpha1/fake/fake_mongodbautoscaler.go | 142 ------- .../v1alpha1/fake/fake_mysqlautoscaler.go | 142 ------- .../fake/fake_perconaxtradbautoscaler.go | 142 ------- .../v1alpha1/fake/fake_pgbouncerautoscaler.go | 142 ------- .../v1alpha1/fake/fake_postgresautoscaler.go | 142 ------- .../v1alpha1/fake/fake_proxysqlautoscaler.go | 142 ------- .../v1alpha1/fake/fake_redisautoscaler.go | 142 ------- .../fake/fake_redissentinelautoscaler.go | 142 ------- .../v1alpha1/generated_expansion.go | 43 --- .../autoscaling/v1alpha1/mariadbautoscaler.go | 196 ---------- .../v1alpha1/memcachedautoscaler.go | 196 ---------- .../autoscaling/v1alpha1/mongodbautoscaler.go | 196 ---------- .../autoscaling/v1alpha1/mysqlautoscaler.go | 196 ---------- .../v1alpha1/perconaxtradbautoscaler.go | 196 ---------- .../v1alpha1/pgbouncerautoscaler.go | 196 ---------- .../v1alpha1/postgresautoscaler.go | 196 ---------- .../v1alpha1/proxysqlautoscaler.go | 196 ---------- .../autoscaling/v1alpha1/redisautoscaler.go | 196 ---------- .../v1alpha1/redissentinelautoscaler.go | 196 ---------- .../typed/catalog/v1alpha1/catalog_client.go | 178 --------- .../versioned/typed/catalog/v1alpha1/doc.go | 20 - .../typed/catalog/v1alpha1/druidversion.go | 169 --------- .../catalog/v1alpha1/elasticsearchversion.go | 169 --------- .../typed/catalog/v1alpha1/etcdversion.go | 169 --------- .../typed/catalog/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_catalog_client.go | 97 ----- .../v1alpha1/fake/fake_druidversion.go | 122 ------ .../fake/fake_elasticsearchversion.go | 122 ------ .../catalog/v1alpha1/fake/fake_etcdversion.go | 122 ------ .../fake/fake_kafkaconnectorversion.go | 122 ------ .../v1alpha1/fake/fake_kafkaversion.go | 122 ------ .../v1alpha1/fake/fake_mariadbversion.go | 122 ------ .../v1alpha1/fake/fake_memcachedversion.go | 122 ------ .../v1alpha1/fake/fake_mongodbversion.go | 122 ------ .../v1alpha1/fake/fake_mysqlversion.go | 122 ------ .../fake/fake_perconaxtradbversion.go | 122 ------ .../v1alpha1/fake/fake_pgbouncerversion.go | 122 ------ .../v1alpha1/fake/fake_postgresversion.go | 122 ------ .../v1alpha1/fake/fake_proxysqlversion.go | 122 ------ .../v1alpha1/fake/fake_redisversion.go | 122 ------ .../v1alpha1/fake/fake_singlestoreversion.go | 122 ------ .../catalog/v1alpha1/generated_expansion.go | 49 --- .../catalog/v1alpha1/kafkaconnectorversion.go | 169 --------- .../typed/catalog/v1alpha1/kafkaversion.go | 169 --------- .../typed/catalog/v1alpha1/mariadbversion.go | 169 --------- .../catalog/v1alpha1/memcachedversion.go | 169 --------- .../typed/catalog/v1alpha1/mongodbversion.go | 169 --------- .../typed/catalog/v1alpha1/mysqlversion.go | 169 --------- .../catalog/v1alpha1/perconaxtradbversion.go | 169 --------- .../catalog/v1alpha1/pgbouncerversion.go | 169 --------- .../typed/catalog/v1alpha1/postgresversion.go | 169 --------- .../typed/catalog/v1alpha1/proxysqlversion.go | 169 --------- .../typed/catalog/v1alpha1/redisversion.go | 169 --------- .../catalog/v1alpha1/singlestoreversion.go | 169 --------- .../typed/config/v1alpha1/config_client.go | 103 ------ .../versioned/typed/config/v1alpha1/doc.go | 20 - .../typed/config/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_config_client.go | 35 -- .../config/v1alpha1/generated_expansion.go | 19 - .../dashboard/v1alpha1/dashboard_client.go | 108 ------ .../versioned/typed/dashboard/v1alpha1/doc.go | 20 - .../v1alpha1/elasticsearchdashboard.go | 196 ---------- .../typed/dashboard/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_dashboard_client.go | 41 -- .../fake/fake_elasticsearchdashboard.go | 142 ------- .../dashboard/v1alpha1/generated_expansion.go | 21 -- .../typed/kafka/v1alpha1/connectcluster.go | 196 ---------- .../typed/kafka/v1alpha1/connector.go | 196 ---------- .../versioned/typed/kafka/v1alpha1/doc.go | 20 - .../typed/kafka/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_connectcluster.go | 142 ------- .../kafka/v1alpha1/fake/fake_connector.go | 142 ------- .../kafka/v1alpha1/fake/fake_kafka_client.go | 45 --- .../kafka/v1alpha1/generated_expansion.go | 23 -- .../typed/kafka/v1alpha1/kafka_client.go | 113 ------ .../versioned/typed/kubedb/v1alpha1/doc.go | 20 - .../typed/kubedb/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_kubedb_client.go | 35 -- .../kubedb/v1alpha1/generated_expansion.go | 19 - .../typed/kubedb/v1alpha1/kubedb_client.go | 103 ------ .../versioned/typed/kubedb/v1alpha2/doc.go | 20 - .../versioned/typed/kubedb/v1alpha2/druid.go | 196 ---------- .../typed/kubedb/v1alpha2/elasticsearch.go | 196 ---------- .../versioned/typed/kubedb/v1alpha2/etcd.go | 196 ---------- .../typed/kubedb/v1alpha2/fake/doc.go | 20 - .../typed/kubedb/v1alpha2/fake/fake_druid.go | 142 ------- .../v1alpha2/fake/fake_elasticsearch.go | 142 ------- .../typed/kubedb/v1alpha2/fake/fake_etcd.go | 142 ------- .../typed/kubedb/v1alpha2/fake/fake_kafka.go | 142 ------- .../v1alpha2/fake/fake_kubedb_client.go | 97 ----- .../kubedb/v1alpha2/fake/fake_mariadb.go | 142 ------- .../kubedb/v1alpha2/fake/fake_memcached.go | 142 ------- .../kubedb/v1alpha2/fake/fake_mongodb.go | 142 ------- .../typed/kubedb/v1alpha2/fake/fake_mysql.go | 142 ------- .../v1alpha2/fake/fake_perconaxtradb.go | 142 ------- .../kubedb/v1alpha2/fake/fake_pgbouncer.go | 142 ------- .../kubedb/v1alpha2/fake/fake_postgres.go | 142 ------- .../kubedb/v1alpha2/fake/fake_proxysql.go | 142 ------- .../typed/kubedb/v1alpha2/fake/fake_redis.go | 142 ------- .../v1alpha2/fake/fake_redissentinel.go | 142 ------- .../kubedb/v1alpha2/fake/fake_singlestore.go | 142 ------- .../kubedb/v1alpha2/generated_expansion.go | 49 --- .../versioned/typed/kubedb/v1alpha2/kafka.go | 196 ---------- .../typed/kubedb/v1alpha2/kubedb_client.go | 178 --------- .../typed/kubedb/v1alpha2/mariadb.go | 196 ---------- .../typed/kubedb/v1alpha2/memcached.go | 196 ---------- .../typed/kubedb/v1alpha2/mongodb.go | 196 ---------- .../versioned/typed/kubedb/v1alpha2/mysql.go | 196 ---------- .../typed/kubedb/v1alpha2/perconaxtradb.go | 196 ---------- .../typed/kubedb/v1alpha2/pgbouncer.go | 196 ---------- .../typed/kubedb/v1alpha2/postgres.go | 196 ---------- .../typed/kubedb/v1alpha2/proxysql.go | 196 ---------- .../versioned/typed/kubedb/v1alpha2/redis.go | 196 ---------- .../typed/kubedb/v1alpha2/redissentinel.go | 196 ---------- .../typed/kubedb/v1alpha2/singlestore.go | 196 ---------- .../versioned/typed/ops/v1alpha1/doc.go | 20 - .../ops/v1alpha1/elasticsearchopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/etcdopsrequest.go | 196 ---------- .../versioned/typed/ops/v1alpha1/fake/doc.go | 20 - .../fake/fake_elasticsearchopsrequest.go | 142 ------- .../ops/v1alpha1/fake/fake_etcdopsrequest.go | 142 ------- .../ops/v1alpha1/fake/fake_kafkaopsrequest.go | 142 ------- .../v1alpha1/fake/fake_mariadbopsrequest.go | 142 ------- .../v1alpha1/fake/fake_memcachedopsrequest.go | 142 ------- .../v1alpha1/fake/fake_mongodbopsrequest.go | 142 ------- .../ops/v1alpha1/fake/fake_mysqlopsrequest.go | 142 ------- .../ops/v1alpha1/fake/fake_ops_client.go | 89 ----- .../fake/fake_perconaxtradbopsrequest.go | 142 ------- .../v1alpha1/fake/fake_pgbounceropsrequest.go | 142 ------- .../v1alpha1/fake/fake_postgresopsrequest.go | 142 ------- .../v1alpha1/fake/fake_proxysqlopsrequest.go | 142 ------- .../ops/v1alpha1/fake/fake_redisopsrequest.go | 142 ------- .../fake/fake_redissentinelopsrequest.go | 142 ------- .../typed/ops/v1alpha1/generated_expansion.go | 45 --- .../typed/ops/v1alpha1/kafkaopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/mariadbopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/memcachedopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/mongodbopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/mysqlopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/ops_client.go | 168 --------- .../ops/v1alpha1/perconaxtradbopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/pgbounceropsrequest.go | 196 ---------- .../typed/ops/v1alpha1/postgresopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/proxysqlopsrequest.go | 196 ---------- .../typed/ops/v1alpha1/redisopsrequest.go | 196 ---------- .../ops/v1alpha1/redissentinelopsrequest.go | 196 ---------- .../versioned/typed/postgres/v1alpha1/doc.go | 20 - .../typed/postgres/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_postgres_client.go | 45 --- .../postgres/v1alpha1/fake/fake_publisher.go | 142 ------- .../postgres/v1alpha1/fake/fake_subscriber.go | 142 ------- .../postgres/v1alpha1/generated_expansion.go | 23 -- .../postgres/v1alpha1/postgres_client.go | 113 ------ .../typed/postgres/v1alpha1/publisher.go | 196 ---------- .../typed/postgres/v1alpha1/subscriber.go | 196 ---------- .../versioned/typed/schema/v1alpha1/doc.go | 20 - .../typed/schema/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_mariadbdatabase.go | 142 ------- .../v1alpha1/fake/fake_mongodbdatabase.go | 142 ------- .../v1alpha1/fake/fake_mysqldatabase.go | 142 ------- .../v1alpha1/fake/fake_postgresdatabase.go | 142 ------- .../v1alpha1/fake/fake_schema_client.go | 53 --- .../schema/v1alpha1/generated_expansion.go | 27 -- .../typed/schema/v1alpha1/mariadbdatabase.go | 196 ---------- .../typed/schema/v1alpha1/mongodbdatabase.go | 196 ---------- .../typed/schema/v1alpha1/mysqldatabase.go | 196 ---------- .../typed/schema/v1alpha1/postgresdatabase.go | 196 ---------- .../typed/schema/v1alpha1/schema_client.go | 123 ------ .../versioned/typed/ui/v1alpha1/doc.go | 20 - .../versioned/typed/ui/v1alpha1/fake/doc.go | 20 - .../typed/ui/v1alpha1/fake/fake_ui_client.go | 35 -- .../typed/ui/v1alpha1/generated_expansion.go | 19 - .../versioned/typed/ui/v1alpha1/ui_client.go | 103 ------ .../archiver/v1alpha1/mongodbarchiver.go | 9 +- .../archiver/v1alpha1/mysqlarchiver.go | 9 +- .../archiver/v1alpha1/postgresarchiver.go | 9 +- .../v1alpha1/elasticsearchautoscaler.go | 9 +- .../autoscaling/v1alpha1/etcdautoscaler.go | 9 +- .../autoscaling/v1alpha1/mariadbautoscaler.go | 9 +- .../v1alpha1/memcachedautoscaler.go | 9 +- .../autoscaling/v1alpha1/mongodbautoscaler.go | 9 +- .../autoscaling/v1alpha1/mysqlautoscaler.go | 9 +- .../v1alpha1/perconaxtradbautoscaler.go | 9 +- .../v1alpha1/pgbouncerautoscaler.go | 9 +- .../v1alpha1/postgresautoscaler.go | 9 +- .../v1alpha1/proxysqlautoscaler.go | 9 +- .../autoscaling/v1alpha1/redisautoscaler.go | 9 +- .../v1alpha1/redissentinelautoscaler.go | 9 +- .../catalog/v1alpha1/druidversion.go | 9 +- .../catalog/v1alpha1/elasticsearchversion.go | 9 +- .../catalog/v1alpha1/etcdversion.go | 9 +- .../catalog/v1alpha1/kafkaconnectorversion.go | 9 +- .../catalog/v1alpha1/kafkaversion.go | 9 +- .../catalog/v1alpha1/mariadbversion.go | 9 +- .../catalog/v1alpha1/memcachedversion.go | 9 +- .../catalog/v1alpha1/mongodbversion.go | 9 +- .../catalog/v1alpha1/mysqlversion.go | 9 +- .../catalog/v1alpha1/perconaxtradbversion.go | 9 +- .../catalog/v1alpha1/pgbouncerversion.go | 9 +- .../catalog/v1alpha1/postgresversion.go | 9 +- .../catalog/v1alpha1/proxysqlversion.go | 9 +- .../catalog/v1alpha1/redisversion.go | 9 +- .../catalog/v1alpha1/singlestoreversion.go | 9 +- .../v1alpha1/elasticsearchdashboard.go | 9 +- client/informers/externalversions/factory.go | 9 +- client/informers/externalversions/generic.go | 5 +- .../internalinterfaces/factory_interfaces.go | 3 +- .../kafka/v1alpha1/connectcluster.go | 9 +- .../kafka/v1alpha1/connector.go | 9 +- .../externalversions/kubedb/v1alpha2/druid.go | 9 +- .../kubedb/v1alpha2/elasticsearch.go | 9 +- .../externalversions/kubedb/v1alpha2/etcd.go | 9 +- .../externalversions/kubedb/v1alpha2/kafka.go | 9 +- .../kubedb/v1alpha2/mariadb.go | 9 +- .../kubedb/v1alpha2/memcached.go | 9 +- .../kubedb/v1alpha2/mongodb.go | 9 +- .../externalversions/kubedb/v1alpha2/mysql.go | 9 +- .../kubedb/v1alpha2/perconaxtradb.go | 9 +- .../kubedb/v1alpha2/pgbouncer.go | 9 +- .../kubedb/v1alpha2/postgres.go | 9 +- .../kubedb/v1alpha2/proxysql.go | 9 +- .../externalversions/kubedb/v1alpha2/redis.go | 9 +- .../kubedb/v1alpha2/redissentinel.go | 9 +- .../kubedb/v1alpha2/singlestore.go | 9 +- .../ops/v1alpha1/elasticsearchopsrequest.go | 9 +- .../ops/v1alpha1/etcdopsrequest.go | 9 +- .../ops/v1alpha1/kafkaopsrequest.go | 9 +- .../ops/v1alpha1/mariadbopsrequest.go | 9 +- .../ops/v1alpha1/memcachedopsrequest.go | 9 +- .../ops/v1alpha1/mongodbopsrequest.go | 9 +- .../ops/v1alpha1/mysqlopsrequest.go | 9 +- .../ops/v1alpha1/perconaxtradbopsrequest.go | 9 +- .../ops/v1alpha1/pgbounceropsrequest.go | 9 +- .../ops/v1alpha1/postgresopsrequest.go | 9 +- .../ops/v1alpha1/proxysqlopsrequest.go | 9 +- .../ops/v1alpha1/redisopsrequest.go | 9 +- .../ops/v1alpha1/redissentinelopsrequest.go | 9 +- .../postgres/v1alpha1/publisher.go | 9 +- .../postgres/v1alpha1/subscriber.go | 9 +- .../schema/v1alpha1/mariadbdatabase.go | 9 +- .../schema/v1alpha1/mongodbdatabase.go | 9 +- .../schema/v1alpha1/mysqldatabase.go | 9 +- .../schema/v1alpha1/postgresdatabase.go | 9 +- .../archiver/v1alpha1/mongodbarchiver.go | 3 +- .../archiver/v1alpha1/mysqlarchiver.go | 3 +- .../archiver/v1alpha1/postgresarchiver.go | 3 +- .../v1alpha1/elasticsearchautoscaler.go | 3 +- .../autoscaling/v1alpha1/etcdautoscaler.go | 3 +- .../autoscaling/v1alpha1/mariadbautoscaler.go | 3 +- .../v1alpha1/memcachedautoscaler.go | 3 +- .../autoscaling/v1alpha1/mongodbautoscaler.go | 3 +- .../autoscaling/v1alpha1/mysqlautoscaler.go | 3 +- .../v1alpha1/perconaxtradbautoscaler.go | 3 +- .../v1alpha1/pgbouncerautoscaler.go | 3 +- .../v1alpha1/postgresautoscaler.go | 3 +- .../v1alpha1/proxysqlautoscaler.go | 3 +- .../autoscaling/v1alpha1/redisautoscaler.go | 3 +- .../v1alpha1/redissentinelautoscaler.go | 3 +- .../listers/catalog/v1alpha1/druidversion.go | 3 +- .../catalog/v1alpha1/elasticsearchversion.go | 3 +- .../listers/catalog/v1alpha1/etcdversion.go | 3 +- .../catalog/v1alpha1/kafkaconnectorversion.go | 3 +- .../listers/catalog/v1alpha1/kafkaversion.go | 3 +- .../catalog/v1alpha1/mariadbversion.go | 3 +- .../catalog/v1alpha1/memcachedversion.go | 3 +- .../catalog/v1alpha1/mongodbversion.go | 3 +- .../listers/catalog/v1alpha1/mysqlversion.go | 3 +- .../catalog/v1alpha1/perconaxtradbversion.go | 3 +- .../catalog/v1alpha1/pgbouncerversion.go | 3 +- .../catalog/v1alpha1/postgresversion.go | 3 +- .../catalog/v1alpha1/proxysqlversion.go | 3 +- .../listers/catalog/v1alpha1/redisversion.go | 3 +- .../catalog/v1alpha1/singlestoreversion.go | 3 +- .../v1alpha1/elasticsearchdashboard.go | 3 +- .../listers/kafka/v1alpha1/connectcluster.go | 3 +- client/listers/kafka/v1alpha1/connector.go | 3 +- client/listers/kubedb/v1alpha2/druid.go | 3 +- .../listers/kubedb/v1alpha2/elasticsearch.go | 3 +- client/listers/kubedb/v1alpha2/etcd.go | 3 +- client/listers/kubedb/v1alpha2/kafka.go | 3 +- client/listers/kubedb/v1alpha2/mariadb.go | 3 +- client/listers/kubedb/v1alpha2/memcached.go | 3 +- client/listers/kubedb/v1alpha2/mongodb.go | 3 +- client/listers/kubedb/v1alpha2/mysql.go | 3 +- .../listers/kubedb/v1alpha2/perconaxtradb.go | 3 +- client/listers/kubedb/v1alpha2/pgbouncer.go | 3 +- client/listers/kubedb/v1alpha2/postgres.go | 3 +- client/listers/kubedb/v1alpha2/proxysql.go | 3 +- client/listers/kubedb/v1alpha2/redis.go | 3 +- .../listers/kubedb/v1alpha2/redissentinel.go | 3 +- client/listers/kubedb/v1alpha2/singlestore.go | 3 +- .../ops/v1alpha1/elasticsearchopsrequest.go | 3 +- client/listers/ops/v1alpha1/etcdopsrequest.go | 3 +- .../listers/ops/v1alpha1/kafkaopsrequest.go | 3 +- .../listers/ops/v1alpha1/mariadbopsrequest.go | 3 +- .../ops/v1alpha1/memcachedopsrequest.go | 3 +- .../listers/ops/v1alpha1/mongodbopsrequest.go | 3 +- .../listers/ops/v1alpha1/mysqlopsrequest.go | 3 +- .../ops/v1alpha1/perconaxtradbopsrequest.go | 3 +- .../ops/v1alpha1/pgbounceropsrequest.go | 3 +- .../ops/v1alpha1/postgresopsrequest.go | 3 +- .../ops/v1alpha1/proxysqlopsrequest.go | 3 +- .../listers/ops/v1alpha1/redisopsrequest.go | 3 +- .../ops/v1alpha1/redissentinelopsrequest.go | 3 +- client/listers/postgres/v1alpha1/publisher.go | 3 +- .../listers/postgres/v1alpha1/subscriber.go | 3 +- .../schema/v1alpha1/mariadbdatabase.go | 3 +- .../schema/v1alpha1/mongodbdatabase.go | 3 +- .../listers/schema/v1alpha1/mysqldatabase.go | 3 +- .../schema/v1alpha1/postgresdatabase.go | 3 +- go.mod | 6 +- go.sum | 10 +- .../jonboulle/clockwork/.editorconfig | 12 + .../github.com/jonboulle/clockwork/.gitignore | 27 ++ vendor/github.com/jonboulle/clockwork/LICENSE | 201 ++++++++++ .../github.com/jonboulle/clockwork/README.md | 80 ++++ .../jonboulle/clockwork/clockwork.go | 349 ++++++++++++++++++ .../github.com/jonboulle/clockwork/context.go | 25 ++ .../github.com/jonboulle/clockwork/ticker.go | 48 +++ .../github.com/jonboulle/clockwork/timer.go | 53 +++ vendor/go.bytebuilders.dev/audit/lib/node.go | 127 +++++++ .../audit/lib/publisher.go | 82 +--- .../go.bytebuilders.dev/audit/lib/resource.go | 150 ++++++++ vendor/gomodules.xyz/counter/LICENSE | 201 ++++++++++ vendor/gomodules.xyz/counter/hourly/int.go | 20 + vendor/gomodules.xyz/counter/hourly/int32.go | 20 + vendor/gomodules.xyz/counter/hourly/int64.go | 20 + vendor/gomodules.xyz/counter/hourly/lib.go | 78 ++++ vendor/modules.txt | 8 +- 362 files changed, 1788 insertions(+), 26258 deletions(-) delete mode 100644 client/clientset/versioned/clientset.go delete mode 100644 client/clientset/versioned/fake/clientset_generated.go delete mode 100644 client/clientset/versioned/fake/doc.go delete mode 100644 client/clientset/versioned/fake/register.go delete mode 100644 client/clientset/versioned/scheme/doc.go delete mode 100644 client/clientset/versioned/scheme/register.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/archiver_client.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_archiver_client.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mongodbarchiver.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mysqlarchiver.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_postgresarchiver.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/mongodbarchiver.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/mysqlarchiver.go delete mode 100644 client/clientset/versioned/typed/archiver/v1alpha1/postgresarchiver.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/elasticsearchautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/etcdautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_elasticsearchautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_etcdautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mariadbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_memcachedautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mongodbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mysqlautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_perconaxtradbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_pgbouncerautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_postgresautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_proxysqlautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redisautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redissentinelautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/mariadbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/memcachedautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/mongodbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/mysqlautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/perconaxtradbautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/pgbouncerautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/postgresautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/proxysqlautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/redisautoscaler.go delete mode 100644 client/clientset/versioned/typed/autoscaling/v1alpha1/redissentinelautoscaler.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/catalog_client.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/druidversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/elasticsearchversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/etcdversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_catalog_client.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_druidversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_elasticsearchversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_etcdversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaconnectorversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mariadbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_memcachedversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mongodbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mysqlversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_perconaxtradbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_pgbouncerversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_postgresversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_proxysqlversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_redisversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_singlestoreversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/kafkaconnectorversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/kafkaversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/mariadbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/memcachedversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/mongodbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/mysqlversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/perconaxtradbversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/pgbouncerversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/postgresversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/proxysqlversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/redisversion.go delete mode 100644 client/clientset/versioned/typed/catalog/v1alpha1/singlestoreversion.go delete mode 100644 client/clientset/versioned/typed/config/v1alpha1/config_client.go delete mode 100644 client/clientset/versioned/typed/config/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/config/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go delete mode 100644 client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/dashboard_client.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/elasticsearchdashboard.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_dashboard_client.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_elasticsearchdashboard.go delete mode 100644 client/clientset/versioned/typed/dashboard/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/connectcluster.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/connector.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connectcluster.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connector.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_kafka_client.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/kafka/v1alpha1/kafka_client.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha1/fake/fake_kubedb_client.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha1/kubedb_client.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/doc.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/druid.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/elasticsearch.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/etcd.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/doc.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_druid.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_elasticsearch.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_etcd.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kafka.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kubedb_client.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mariadb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_memcached.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mongodb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mysql.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_perconaxtradb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_pgbouncer.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_postgres.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_proxysql.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redis.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redissentinel.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_singlestore.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/kafka.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/kubedb_client.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/mariadb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/memcached.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/mongodb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/mysql.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/perconaxtradb.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/pgbouncer.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/postgres.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/proxysql.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/redis.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/redissentinel.go delete mode 100644 client/clientset/versioned/typed/kubedb/v1alpha2/singlestore.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/elasticsearchopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/etcdopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_elasticsearchopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_etcdopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_kafkaopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mariadbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_memcachedopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mongodbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mysqlopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_ops_client.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_perconaxtradbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_pgbounceropsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_postgresopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_proxysqlopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redisopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redissentinelopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/kafkaopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/mariadbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/memcachedopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/mongodbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/mysqlopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/ops_client.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/perconaxtradbopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/pgbounceropsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/postgresopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/proxysqlopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/redisopsrequest.go delete mode 100644 client/clientset/versioned/typed/ops/v1alpha1/redissentinelopsrequest.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_postgres_client.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_publisher.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_subscriber.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/postgres_client.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/publisher.go delete mode 100644 client/clientset/versioned/typed/postgres/v1alpha1/subscriber.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mariadbdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mongodbdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mysqldatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/fake_postgresdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/fake/fake_schema_client.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/mariadbdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/mongodbdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/mysqldatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/postgresdatabase.go delete mode 100644 client/clientset/versioned/typed/schema/v1alpha1/schema_client.go delete mode 100644 client/clientset/versioned/typed/ui/v1alpha1/doc.go delete mode 100644 client/clientset/versioned/typed/ui/v1alpha1/fake/doc.go delete mode 100644 client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go delete mode 100644 client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go delete mode 100644 client/clientset/versioned/typed/ui/v1alpha1/ui_client.go create mode 100644 vendor/github.com/jonboulle/clockwork/.editorconfig create mode 100644 vendor/github.com/jonboulle/clockwork/.gitignore create mode 100644 vendor/github.com/jonboulle/clockwork/LICENSE create mode 100644 vendor/github.com/jonboulle/clockwork/README.md create mode 100644 vendor/github.com/jonboulle/clockwork/clockwork.go create mode 100644 vendor/github.com/jonboulle/clockwork/context.go create mode 100644 vendor/github.com/jonboulle/clockwork/ticker.go create mode 100644 vendor/github.com/jonboulle/clockwork/timer.go create mode 100644 vendor/go.bytebuilders.dev/audit/lib/node.go create mode 100644 vendor/go.bytebuilders.dev/audit/lib/resource.go create mode 100644 vendor/gomodules.xyz/counter/LICENSE create mode 100644 vendor/gomodules.xyz/counter/hourly/int.go create mode 100644 vendor/gomodules.xyz/counter/hourly/int32.go create mode 100644 vendor/gomodules.xyz/counter/hourly/int64.go create mode 100644 vendor/gomodules.xyz/counter/hourly/lib.go diff --git a/.config/api-rules/violation_exceptions.list b/.config/api-rules/violation_exceptions.list index 0ff8ac3866..ebe59466a0 100644 --- a/.config/api-rules/violation_exceptions.list +++ b/.config/api-rules/violation_exceptions.list @@ -178,8 +178,10 @@ API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,PodSpec,V API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,ExternalIPs API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,LoadBalancerSourceRanges API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,Ports -API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/dashboard/v1alpha1,ElasticsearchDashboardSpec,ServiceTemplates -API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/dashboard/v1alpha1,ElasticsearchDashboardStatus,Conditions +API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/kafka/v1alpha1,ConnectClusterSpec,ConnectorPlugins +API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/kafka/v1alpha1,ConnectClusterSpec,ServiceTemplates +API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/kafka/v1alpha1,ConnectClusterStatus,Conditions +API rule violation: list_type_missing,kubedb.dev/apimachinery/apis/kafka/v1alpha1,ConnectorStatus,Conditions API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState API rule violation: names_match,k8s.io/api/core/v1,DaemonEndpoint,Port @@ -229,3 +231,5 @@ API rule violation: names_match,kmodules.xyz/client-go/api/v1,TimeOfDay,Time API rule violation: names_match,kmodules.xyz/offshoot-api/api/v1,ContainerRuntimeSettings,IONice API rule violation: names_match,kmodules.xyz/offshoot-api/api/v1,VolumeSource,CephFS API rule violation: names_match,kmodules.xyz/offshoot-api/api/v1,VolumeSource,StorageOS +API rule violation: names_match,kubedb.dev/apimachinery/apis/kafka/v1alpha1,ConnectClusterApp,ConnectCluster +API rule violation: names_match,kubedb.dev/apimachinery/apis/kafka/v1alpha1,connectClusterStatsService,ConnectCluster diff --git a/apis/archiver/v1alpha1/zz_generated.deepcopy.go b/apis/archiver/v1alpha1/zz_generated.deepcopy.go index 8c0eb196e4..700ac7ffed 100644 --- a/apis/archiver/v1alpha1/zz_generated.deepcopy.go +++ b/apis/archiver/v1alpha1/zz_generated.deepcopy.go @@ -22,12 +22,11 @@ limitations under the License. package v1alpha1 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" v1 "kmodules.xyz/client-go/api/v1" apiv1 "kmodules.xyz/offshoot-api/api/v1" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" corev1alpha1 "kubestash.dev/apimachinery/apis/core/v1alpha1" ) diff --git a/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go b/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go index 601e2a8570..0f1fcf4914 100644 --- a/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go +++ b/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go @@ -22,13 +22,12 @@ limitations under the License. package v1alpha1 import ( - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - v2beta2 "k8s.io/api/autoscaling/v2beta2" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" v1 "kmodules.xyz/client-go/api/v1" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/apis/dashboard/v1alpha1/zz_generated.deepcopy.go b/apis/dashboard/v1alpha1/zz_generated.deepcopy.go index 93a7b51b19..1769aba24c 100644 --- a/apis/dashboard/v1alpha1/zz_generated.deepcopy.go +++ b/apis/dashboard/v1alpha1/zz_generated.deepcopy.go @@ -22,11 +22,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" apiv1 "kmodules.xyz/client-go/api/v1" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/apis/kafka/v1alpha1/zz_generated.deepcopy.go b/apis/kafka/v1alpha1/zz_generated.deepcopy.go index 6cd5d7cc1c..27aa9dd2a9 100644 --- a/apis/kafka/v1alpha1/zz_generated.deepcopy.go +++ b/apis/kafka/v1alpha1/zz_generated.deepcopy.go @@ -22,12 +22,11 @@ limitations under the License. package v1alpha1 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" v1 "kmodules.xyz/client-go/api/v1" apiv1 "kmodules.xyz/monitoring-agent-api/api/v1" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/apis/ops/v1alpha1/zz_generated.deepcopy.go b/apis/ops/v1alpha1/zz_generated.deepcopy.go index 1bd5e710d9..ba1dd35f49 100644 --- a/apis/ops/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ops/v1alpha1/zz_generated.deepcopy.go @@ -22,12 +22,11 @@ limitations under the License. package v1alpha1 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" apiv1 "kmodules.xyz/client-go/api/v1" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/client/clientset/versioned/clientset.go b/client/clientset/versioned/clientset.go deleted file mode 100644 index edffe832b7..0000000000 --- a/client/clientset/versioned/clientset.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package versioned - -import ( - "fmt" - "net/http" - - archiverv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/archiver/v1alpha1" - autoscalingv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1" - catalogv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1" - configv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/config/v1alpha1" - dashboardv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/dashboard/v1alpha1" - kafkav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1" - kubedbv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha1" - kubedbv1alpha2 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2" - opsv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1" - postgresv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1" - schemav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1" - uiv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ui/v1alpha1" - - discovery "k8s.io/client-go/discovery" - rest "k8s.io/client-go/rest" - flowcontrol "k8s.io/client-go/util/flowcontrol" -) - -type Interface interface { - Discovery() discovery.DiscoveryInterface - ArchiverV1alpha1() archiverv1alpha1.ArchiverV1alpha1Interface - AutoscalingV1alpha1() autoscalingv1alpha1.AutoscalingV1alpha1Interface - CatalogV1alpha1() catalogv1alpha1.CatalogV1alpha1Interface - ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface - DashboardV1alpha1() dashboardv1alpha1.DashboardV1alpha1Interface - KafkaV1alpha1() kafkav1alpha1.KafkaV1alpha1Interface - KubedbV1alpha1() kubedbv1alpha1.KubedbV1alpha1Interface - KubedbV1alpha2() kubedbv1alpha2.KubedbV1alpha2Interface - OpsV1alpha1() opsv1alpha1.OpsV1alpha1Interface - PostgresV1alpha1() postgresv1alpha1.PostgresV1alpha1Interface - SchemaV1alpha1() schemav1alpha1.SchemaV1alpha1Interface - UiV1alpha1() uiv1alpha1.UiV1alpha1Interface -} - -// Clientset contains the clients for groups. -type Clientset struct { - *discovery.DiscoveryClient - archiverV1alpha1 *archiverv1alpha1.ArchiverV1alpha1Client - autoscalingV1alpha1 *autoscalingv1alpha1.AutoscalingV1alpha1Client - catalogV1alpha1 *catalogv1alpha1.CatalogV1alpha1Client - configV1alpha1 *configv1alpha1.ConfigV1alpha1Client - dashboardV1alpha1 *dashboardv1alpha1.DashboardV1alpha1Client - kafkaV1alpha1 *kafkav1alpha1.KafkaV1alpha1Client - kubedbV1alpha1 *kubedbv1alpha1.KubedbV1alpha1Client - kubedbV1alpha2 *kubedbv1alpha2.KubedbV1alpha2Client - opsV1alpha1 *opsv1alpha1.OpsV1alpha1Client - postgresV1alpha1 *postgresv1alpha1.PostgresV1alpha1Client - schemaV1alpha1 *schemav1alpha1.SchemaV1alpha1Client - uiV1alpha1 *uiv1alpha1.UiV1alpha1Client -} - -// ArchiverV1alpha1 retrieves the ArchiverV1alpha1Client -func (c *Clientset) ArchiverV1alpha1() archiverv1alpha1.ArchiverV1alpha1Interface { - return c.archiverV1alpha1 -} - -// AutoscalingV1alpha1 retrieves the AutoscalingV1alpha1Client -func (c *Clientset) AutoscalingV1alpha1() autoscalingv1alpha1.AutoscalingV1alpha1Interface { - return c.autoscalingV1alpha1 -} - -// CatalogV1alpha1 retrieves the CatalogV1alpha1Client -func (c *Clientset) CatalogV1alpha1() catalogv1alpha1.CatalogV1alpha1Interface { - return c.catalogV1alpha1 -} - -// ConfigV1alpha1 retrieves the ConfigV1alpha1Client -func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { - return c.configV1alpha1 -} - -// DashboardV1alpha1 retrieves the DashboardV1alpha1Client -func (c *Clientset) DashboardV1alpha1() dashboardv1alpha1.DashboardV1alpha1Interface { - return c.dashboardV1alpha1 -} - -// KafkaV1alpha1 retrieves the KafkaV1alpha1Client -func (c *Clientset) KafkaV1alpha1() kafkav1alpha1.KafkaV1alpha1Interface { - return c.kafkaV1alpha1 -} - -// KubedbV1alpha1 retrieves the KubedbV1alpha1Client -func (c *Clientset) KubedbV1alpha1() kubedbv1alpha1.KubedbV1alpha1Interface { - return c.kubedbV1alpha1 -} - -// KubedbV1alpha2 retrieves the KubedbV1alpha2Client -func (c *Clientset) KubedbV1alpha2() kubedbv1alpha2.KubedbV1alpha2Interface { - return c.kubedbV1alpha2 -} - -// OpsV1alpha1 retrieves the OpsV1alpha1Client -func (c *Clientset) OpsV1alpha1() opsv1alpha1.OpsV1alpha1Interface { - return c.opsV1alpha1 -} - -// PostgresV1alpha1 retrieves the PostgresV1alpha1Client -func (c *Clientset) PostgresV1alpha1() postgresv1alpha1.PostgresV1alpha1Interface { - return c.postgresV1alpha1 -} - -// SchemaV1alpha1 retrieves the SchemaV1alpha1Client -func (c *Clientset) SchemaV1alpha1() schemav1alpha1.SchemaV1alpha1Interface { - return c.schemaV1alpha1 -} - -// UiV1alpha1 retrieves the UiV1alpha1Client -func (c *Clientset) UiV1alpha1() uiv1alpha1.UiV1alpha1Interface { - return c.uiV1alpha1 -} - -// Discovery retrieves the DiscoveryClient -func (c *Clientset) Discovery() discovery.DiscoveryInterface { - if c == nil { - return nil - } - return c.DiscoveryClient -} - -// NewForConfig creates a new Clientset for the given config. -// If config's RateLimiter is not set and QPS and Burst are acceptable, -// NewForConfig will generate a rate-limiter in configShallowCopy. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*Clientset, error) { - configShallowCopy := *c - - if configShallowCopy.UserAgent == "" { - configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent() - } - - // share the transport between all clients - httpClient, err := rest.HTTPClientFor(&configShallowCopy) - if err != nil { - return nil, err - } - - return NewForConfigAndClient(&configShallowCopy, httpClient) -} - -// NewForConfigAndClient creates a new Clientset for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -// If config's RateLimiter is not set and QPS and Burst are acceptable, -// NewForConfigAndClient will generate a rate-limiter in configShallowCopy. -func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) { - configShallowCopy := *c - if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { - if configShallowCopy.Burst <= 0 { - return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0") - } - configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) - } - - var cs Clientset - var err error - cs.archiverV1alpha1, err = archiverv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.autoscalingV1alpha1, err = autoscalingv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.catalogV1alpha1, err = catalogv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.configV1alpha1, err = configv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.dashboardV1alpha1, err = dashboardv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.kafkaV1alpha1, err = kafkav1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.kubedbV1alpha1, err = kubedbv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.kubedbV1alpha2, err = kubedbv1alpha2.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.opsV1alpha1, err = opsv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.postgresV1alpha1, err = postgresv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.schemaV1alpha1, err = schemav1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - cs.uiV1alpha1, err = uiv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - - cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } - return &cs, nil -} - -// NewForConfigOrDie creates a new Clientset for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *Clientset { - cs, err := NewForConfig(c) - if err != nil { - panic(err) - } - return cs -} - -// New creates a new Clientset for the given RESTClient. -func New(c rest.Interface) *Clientset { - var cs Clientset - cs.archiverV1alpha1 = archiverv1alpha1.New(c) - cs.autoscalingV1alpha1 = autoscalingv1alpha1.New(c) - cs.catalogV1alpha1 = catalogv1alpha1.New(c) - cs.configV1alpha1 = configv1alpha1.New(c) - cs.dashboardV1alpha1 = dashboardv1alpha1.New(c) - cs.kafkaV1alpha1 = kafkav1alpha1.New(c) - cs.kubedbV1alpha1 = kubedbv1alpha1.New(c) - cs.kubedbV1alpha2 = kubedbv1alpha2.New(c) - cs.opsV1alpha1 = opsv1alpha1.New(c) - cs.postgresV1alpha1 = postgresv1alpha1.New(c) - cs.schemaV1alpha1 = schemav1alpha1.New(c) - cs.uiV1alpha1 = uiv1alpha1.New(c) - - cs.DiscoveryClient = discovery.NewDiscoveryClient(c) - return &cs -} diff --git a/client/clientset/versioned/fake/clientset_generated.go b/client/clientset/versioned/fake/clientset_generated.go deleted file mode 100644 index 55c93a681a..0000000000 --- a/client/clientset/versioned/fake/clientset_generated.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - clientset "kubedb.dev/apimachinery/client/clientset/versioned" - archiverv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/archiver/v1alpha1" - fakearchiverv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/archiver/v1alpha1/fake" - autoscalingv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1" - fakeautoscalingv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1/fake" - catalogv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1" - fakecatalogv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1/fake" - configv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/config/v1alpha1" - fakeconfigv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/config/v1alpha1/fake" - dashboardv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/dashboard/v1alpha1" - fakedashboardv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/dashboard/v1alpha1/fake" - kafkav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1" - fakekafkav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1/fake" - kubedbv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha1" - fakekubedbv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha1/fake" - kubedbv1alpha2 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2" - fakekubedbv1alpha2 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2/fake" - opsv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1" - fakeopsv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1/fake" - postgresv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1" - fakepostgresv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1/fake" - schemav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1" - fakeschemav1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1/fake" - uiv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ui/v1alpha1" - fakeuiv1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ui/v1alpha1/fake" - - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/watch" - "k8s.io/client-go/discovery" - fakediscovery "k8s.io/client-go/discovery/fake" - "k8s.io/client-go/testing" -) - -// NewSimpleClientset returns a clientset that will respond with the provided objects. -// It's backed by a very simple object tracker that processes creates, updates and deletions as-is, -// without applying any validations and/or defaults. It shouldn't be considered a replacement -// for a real clientset and is mostly useful in simple unit tests. -func NewSimpleClientset(objects ...runtime.Object) *Clientset { - o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) - for _, obj := range objects { - if err := o.Add(obj); err != nil { - panic(err) - } - } - - cs := &Clientset{tracker: o} - cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} - cs.AddReactor("*", "*", testing.ObjectReaction(o)) - cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { - gvr := action.GetResource() - ns := action.GetNamespace() - watch, err := o.Watch(gvr, ns) - if err != nil { - return false, nil, err - } - return true, watch, nil - }) - - return cs -} - -// Clientset implements clientset.Interface. Meant to be embedded into a -// struct to get a default implementation. This makes faking out just the method -// you want to test easier. -type Clientset struct { - testing.Fake - discovery *fakediscovery.FakeDiscovery - tracker testing.ObjectTracker -} - -func (c *Clientset) Discovery() discovery.DiscoveryInterface { - return c.discovery -} - -func (c *Clientset) Tracker() testing.ObjectTracker { - return c.tracker -} - -var ( - _ clientset.Interface = &Clientset{} - _ testing.FakeClient = &Clientset{} -) - -// ArchiverV1alpha1 retrieves the ArchiverV1alpha1Client -func (c *Clientset) ArchiverV1alpha1() archiverv1alpha1.ArchiverV1alpha1Interface { - return &fakearchiverv1alpha1.FakeArchiverV1alpha1{Fake: &c.Fake} -} - -// AutoscalingV1alpha1 retrieves the AutoscalingV1alpha1Client -func (c *Clientset) AutoscalingV1alpha1() autoscalingv1alpha1.AutoscalingV1alpha1Interface { - return &fakeautoscalingv1alpha1.FakeAutoscalingV1alpha1{Fake: &c.Fake} -} - -// CatalogV1alpha1 retrieves the CatalogV1alpha1Client -func (c *Clientset) CatalogV1alpha1() catalogv1alpha1.CatalogV1alpha1Interface { - return &fakecatalogv1alpha1.FakeCatalogV1alpha1{Fake: &c.Fake} -} - -// ConfigV1alpha1 retrieves the ConfigV1alpha1Client -func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { - return &fakeconfigv1alpha1.FakeConfigV1alpha1{Fake: &c.Fake} -} - -// DashboardV1alpha1 retrieves the DashboardV1alpha1Client -func (c *Clientset) DashboardV1alpha1() dashboardv1alpha1.DashboardV1alpha1Interface { - return &fakedashboardv1alpha1.FakeDashboardV1alpha1{Fake: &c.Fake} -} - -// KafkaV1alpha1 retrieves the KafkaV1alpha1Client -func (c *Clientset) KafkaV1alpha1() kafkav1alpha1.KafkaV1alpha1Interface { - return &fakekafkav1alpha1.FakeKafkaV1alpha1{Fake: &c.Fake} -} - -// KubedbV1alpha1 retrieves the KubedbV1alpha1Client -func (c *Clientset) KubedbV1alpha1() kubedbv1alpha1.KubedbV1alpha1Interface { - return &fakekubedbv1alpha1.FakeKubedbV1alpha1{Fake: &c.Fake} -} - -// KubedbV1alpha2 retrieves the KubedbV1alpha2Client -func (c *Clientset) KubedbV1alpha2() kubedbv1alpha2.KubedbV1alpha2Interface { - return &fakekubedbv1alpha2.FakeKubedbV1alpha2{Fake: &c.Fake} -} - -// OpsV1alpha1 retrieves the OpsV1alpha1Client -func (c *Clientset) OpsV1alpha1() opsv1alpha1.OpsV1alpha1Interface { - return &fakeopsv1alpha1.FakeOpsV1alpha1{Fake: &c.Fake} -} - -// PostgresV1alpha1 retrieves the PostgresV1alpha1Client -func (c *Clientset) PostgresV1alpha1() postgresv1alpha1.PostgresV1alpha1Interface { - return &fakepostgresv1alpha1.FakePostgresV1alpha1{Fake: &c.Fake} -} - -// SchemaV1alpha1 retrieves the SchemaV1alpha1Client -func (c *Clientset) SchemaV1alpha1() schemav1alpha1.SchemaV1alpha1Interface { - return &fakeschemav1alpha1.FakeSchemaV1alpha1{Fake: &c.Fake} -} - -// UiV1alpha1 retrieves the UiV1alpha1Client -func (c *Clientset) UiV1alpha1() uiv1alpha1.UiV1alpha1Interface { - return &fakeuiv1alpha1.FakeUiV1alpha1{Fake: &c.Fake} -} diff --git a/client/clientset/versioned/fake/doc.go b/client/clientset/versioned/fake/doc.go deleted file mode 100644 index dc103569a3..0000000000 --- a/client/clientset/versioned/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated fake clientset. -package fake diff --git a/client/clientset/versioned/fake/register.go b/client/clientset/versioned/fake/register.go deleted file mode 100644 index 34aaf8caf7..0000000000 --- a/client/clientset/versioned/fake/register.go +++ /dev/null @@ -1,79 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - configv1alpha1 "kubedb.dev/apimachinery/apis/config/v1alpha1" - dashboardv1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - kubedbv1alpha1 "kubedb.dev/apimachinery/apis/kubedb/v1alpha1" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - uiv1alpha1 "kubedb.dev/apimachinery/apis/ui/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - schema "k8s.io/apimachinery/pkg/runtime/schema" - serializer "k8s.io/apimachinery/pkg/runtime/serializer" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" -) - -var scheme = runtime.NewScheme() -var codecs = serializer.NewCodecFactory(scheme) - -var localSchemeBuilder = runtime.SchemeBuilder{ - archiverv1alpha1.AddToScheme, - autoscalingv1alpha1.AddToScheme, - catalogv1alpha1.AddToScheme, - configv1alpha1.AddToScheme, - dashboardv1alpha1.AddToScheme, - kafkav1alpha1.AddToScheme, - kubedbv1alpha1.AddToScheme, - kubedbv1alpha2.AddToScheme, - opsv1alpha1.AddToScheme, - postgresv1alpha1.AddToScheme, - schemav1alpha1.AddToScheme, - uiv1alpha1.AddToScheme, -} - -// AddToScheme adds all types of this clientset into the given scheme. This allows composition -// of clientsets, like in: -// -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) -// -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) -// -// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types -// correctly. -var AddToScheme = localSchemeBuilder.AddToScheme - -func init() { - v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"}) - utilruntime.Must(AddToScheme(scheme)) -} diff --git a/client/clientset/versioned/scheme/doc.go b/client/clientset/versioned/scheme/doc.go deleted file mode 100644 index 47c55e4037..0000000000 --- a/client/clientset/versioned/scheme/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package contains the scheme of the automatically generated clientset. -package scheme diff --git a/client/clientset/versioned/scheme/register.go b/client/clientset/versioned/scheme/register.go deleted file mode 100644 index 3d858f3679..0000000000 --- a/client/clientset/versioned/scheme/register.go +++ /dev/null @@ -1,79 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package scheme - -import ( - archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - configv1alpha1 "kubedb.dev/apimachinery/apis/config/v1alpha1" - dashboardv1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - kubedbv1alpha1 "kubedb.dev/apimachinery/apis/kubedb/v1alpha1" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - uiv1alpha1 "kubedb.dev/apimachinery/apis/ui/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - schema "k8s.io/apimachinery/pkg/runtime/schema" - serializer "k8s.io/apimachinery/pkg/runtime/serializer" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" -) - -var Scheme = runtime.NewScheme() -var Codecs = serializer.NewCodecFactory(Scheme) -var ParameterCodec = runtime.NewParameterCodec(Scheme) -var localSchemeBuilder = runtime.SchemeBuilder{ - archiverv1alpha1.AddToScheme, - autoscalingv1alpha1.AddToScheme, - catalogv1alpha1.AddToScheme, - configv1alpha1.AddToScheme, - dashboardv1alpha1.AddToScheme, - kafkav1alpha1.AddToScheme, - kubedbv1alpha1.AddToScheme, - kubedbv1alpha2.AddToScheme, - opsv1alpha1.AddToScheme, - postgresv1alpha1.AddToScheme, - schemav1alpha1.AddToScheme, - uiv1alpha1.AddToScheme, -} - -// AddToScheme adds all types of this clientset into the given scheme. This allows composition -// of clientsets, like in: -// -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) -// -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) -// -// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types -// correctly. -var AddToScheme = localSchemeBuilder.AddToScheme - -func init() { - v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"}) - utilruntime.Must(AddToScheme(Scheme)) -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/archiver_client.go b/client/clientset/versioned/typed/archiver/v1alpha1/archiver_client.go deleted file mode 100644 index 732f5fd48f..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/archiver_client.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type ArchiverV1alpha1Interface interface { - RESTClient() rest.Interface - MongoDBArchiversGetter - MySQLArchiversGetter - PostgresArchiversGetter -} - -// ArchiverV1alpha1Client is used to interact with features provided by the archiver.kubedb.com group. -type ArchiverV1alpha1Client struct { - restClient rest.Interface -} - -func (c *ArchiverV1alpha1Client) MongoDBArchivers(namespace string) MongoDBArchiverInterface { - return newMongoDBArchivers(c, namespace) -} - -func (c *ArchiverV1alpha1Client) MySQLArchivers(namespace string) MySQLArchiverInterface { - return newMySQLArchivers(c, namespace) -} - -func (c *ArchiverV1alpha1Client) PostgresArchivers(namespace string) PostgresArchiverInterface { - return newPostgresArchivers(c, namespace) -} - -// NewForConfig creates a new ArchiverV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*ArchiverV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new ArchiverV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ArchiverV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &ArchiverV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new ArchiverV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *ArchiverV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new ArchiverV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *ArchiverV1alpha1Client { - return &ArchiverV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *ArchiverV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/doc.go b/client/clientset/versioned/typed/archiver/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/archiver/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_archiver_client.go b/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_archiver_client.go deleted file mode 100644 index 1b0c2309d9..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_archiver_client.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/archiver/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeArchiverV1alpha1 struct { - *testing.Fake -} - -func (c *FakeArchiverV1alpha1) MongoDBArchivers(namespace string) v1alpha1.MongoDBArchiverInterface { - return &FakeMongoDBArchivers{c, namespace} -} - -func (c *FakeArchiverV1alpha1) MySQLArchivers(namespace string) v1alpha1.MySQLArchiverInterface { - return &FakeMySQLArchivers{c, namespace} -} - -func (c *FakeArchiverV1alpha1) PostgresArchivers(namespace string) v1alpha1.PostgresArchiverInterface { - return &FakePostgresArchivers{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeArchiverV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mongodbarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mongodbarchiver.go deleted file mode 100644 index a5c414b8f5..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mongodbarchiver.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBArchivers implements MongoDBArchiverInterface -type FakeMongoDBArchivers struct { - Fake *FakeArchiverV1alpha1 - ns string -} - -var mongodbarchiversResource = v1alpha1.SchemeGroupVersion.WithResource("mongodbarchivers") - -var mongodbarchiversKind = v1alpha1.SchemeGroupVersion.WithKind("MongoDBArchiver") - -// Get takes name of the mongoDBArchiver, and returns the corresponding mongoDBArchiver object, and an error if there is any. -func (c *FakeMongoDBArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mongodbarchiversResource, c.ns, name), &v1alpha1.MongoDBArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBArchiver), err -} - -// List takes label and field selectors, and returns the list of MongoDBArchivers that match those selectors. -func (c *FakeMongoDBArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBArchiverList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mongodbarchiversResource, mongodbarchiversKind, c.ns, opts), &v1alpha1.MongoDBArchiverList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MongoDBArchiverList{ListMeta: obj.(*v1alpha1.MongoDBArchiverList).ListMeta} - for _, item := range obj.(*v1alpha1.MongoDBArchiverList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBArchivers. -func (c *FakeMongoDBArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mongodbarchiversResource, c.ns, opts)) - -} - -// Create takes the representation of a mongoDBArchiver and creates it. Returns the server's representation of the mongoDBArchiver, and an error, if there is any. -func (c *FakeMongoDBArchivers) Create(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.CreateOptions) (result *v1alpha1.MongoDBArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mongodbarchiversResource, c.ns, mongoDBArchiver), &v1alpha1.MongoDBArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBArchiver), err -} - -// Update takes the representation of a mongoDBArchiver and updates it. Returns the server's representation of the mongoDBArchiver, and an error, if there is any. -func (c *FakeMongoDBArchivers) Update(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (result *v1alpha1.MongoDBArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mongodbarchiversResource, c.ns, mongoDBArchiver), &v1alpha1.MongoDBArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBArchiver), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMongoDBArchivers) UpdateStatus(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (*v1alpha1.MongoDBArchiver, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mongodbarchiversResource, "status", c.ns, mongoDBArchiver), &v1alpha1.MongoDBArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBArchiver), err -} - -// Delete takes name of the mongoDBArchiver and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mongodbarchiversResource, c.ns, name, opts), &v1alpha1.MongoDBArchiver{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mongodbarchiversResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MongoDBArchiverList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDBArchiver. -func (c *FakeMongoDBArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mongodbarchiversResource, c.ns, name, pt, data, subresources...), &v1alpha1.MongoDBArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBArchiver), err -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mysqlarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mysqlarchiver.go deleted file mode 100644 index 86b3eceaef..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_mysqlarchiver.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLArchivers implements MySQLArchiverInterface -type FakeMySQLArchivers struct { - Fake *FakeArchiverV1alpha1 - ns string -} - -var mysqlarchiversResource = v1alpha1.SchemeGroupVersion.WithResource("mysqlarchivers") - -var mysqlarchiversKind = v1alpha1.SchemeGroupVersion.WithKind("MySQLArchiver") - -// Get takes name of the mySQLArchiver, and returns the corresponding mySQLArchiver object, and an error if there is any. -func (c *FakeMySQLArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mysqlarchiversResource, c.ns, name), &v1alpha1.MySQLArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLArchiver), err -} - -// List takes label and field selectors, and returns the list of MySQLArchivers that match those selectors. -func (c *FakeMySQLArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLArchiverList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mysqlarchiversResource, mysqlarchiversKind, c.ns, opts), &v1alpha1.MySQLArchiverList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MySQLArchiverList{ListMeta: obj.(*v1alpha1.MySQLArchiverList).ListMeta} - for _, item := range obj.(*v1alpha1.MySQLArchiverList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLArchivers. -func (c *FakeMySQLArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mysqlarchiversResource, c.ns, opts)) - -} - -// Create takes the representation of a mySQLArchiver and creates it. Returns the server's representation of the mySQLArchiver, and an error, if there is any. -func (c *FakeMySQLArchivers) Create(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.CreateOptions) (result *v1alpha1.MySQLArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mysqlarchiversResource, c.ns, mySQLArchiver), &v1alpha1.MySQLArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLArchiver), err -} - -// Update takes the representation of a mySQLArchiver and updates it. Returns the server's representation of the mySQLArchiver, and an error, if there is any. -func (c *FakeMySQLArchivers) Update(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (result *v1alpha1.MySQLArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mysqlarchiversResource, c.ns, mySQLArchiver), &v1alpha1.MySQLArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLArchiver), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMySQLArchivers) UpdateStatus(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (*v1alpha1.MySQLArchiver, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mysqlarchiversResource, "status", c.ns, mySQLArchiver), &v1alpha1.MySQLArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLArchiver), err -} - -// Delete takes name of the mySQLArchiver and deletes it. Returns an error if one occurs. -func (c *FakeMySQLArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mysqlarchiversResource, c.ns, name, opts), &v1alpha1.MySQLArchiver{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mysqlarchiversResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MySQLArchiverList{}) - return err -} - -// Patch applies the patch and returns the patched mySQLArchiver. -func (c *FakeMySQLArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mysqlarchiversResource, c.ns, name, pt, data, subresources...), &v1alpha1.MySQLArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLArchiver), err -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_postgresarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_postgresarchiver.go deleted file mode 100644 index 0596ffa733..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/fake/fake_postgresarchiver.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgresArchivers implements PostgresArchiverInterface -type FakePostgresArchivers struct { - Fake *FakeArchiverV1alpha1 - ns string -} - -var postgresarchiversResource = v1alpha1.SchemeGroupVersion.WithResource("postgresarchivers") - -var postgresarchiversKind = v1alpha1.SchemeGroupVersion.WithKind("PostgresArchiver") - -// Get takes name of the postgresArchiver, and returns the corresponding postgresArchiver object, and an error if there is any. -func (c *FakePostgresArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(postgresarchiversResource, c.ns, name), &v1alpha1.PostgresArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresArchiver), err -} - -// List takes label and field selectors, and returns the list of PostgresArchivers that match those selectors. -func (c *FakePostgresArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresArchiverList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(postgresarchiversResource, postgresarchiversKind, c.ns, opts), &v1alpha1.PostgresArchiverList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PostgresArchiverList{ListMeta: obj.(*v1alpha1.PostgresArchiverList).ListMeta} - for _, item := range obj.(*v1alpha1.PostgresArchiverList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgresArchivers. -func (c *FakePostgresArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(postgresarchiversResource, c.ns, opts)) - -} - -// Create takes the representation of a postgresArchiver and creates it. Returns the server's representation of the postgresArchiver, and an error, if there is any. -func (c *FakePostgresArchivers) Create(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.CreateOptions) (result *v1alpha1.PostgresArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(postgresarchiversResource, c.ns, postgresArchiver), &v1alpha1.PostgresArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresArchiver), err -} - -// Update takes the representation of a postgresArchiver and updates it. Returns the server's representation of the postgresArchiver, and an error, if there is any. -func (c *FakePostgresArchivers) Update(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (result *v1alpha1.PostgresArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(postgresarchiversResource, c.ns, postgresArchiver), &v1alpha1.PostgresArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresArchiver), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePostgresArchivers) UpdateStatus(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (*v1alpha1.PostgresArchiver, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(postgresarchiversResource, "status", c.ns, postgresArchiver), &v1alpha1.PostgresArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresArchiver), err -} - -// Delete takes name of the postgresArchiver and deletes it. Returns an error if one occurs. -func (c *FakePostgresArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(postgresarchiversResource, c.ns, name, opts), &v1alpha1.PostgresArchiver{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgresArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(postgresarchiversResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PostgresArchiverList{}) - return err -} - -// Patch applies the patch and returns the patched postgresArchiver. -func (c *FakePostgresArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresArchiver, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(postgresarchiversResource, c.ns, name, pt, data, subresources...), &v1alpha1.PostgresArchiver{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresArchiver), err -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/archiver/v1alpha1/generated_expansion.go deleted file mode 100644 index deb97e37a0..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type MongoDBArchiverExpansion interface{} - -type MySQLArchiverExpansion interface{} - -type PostgresArchiverExpansion interface{} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/mongodbarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/mongodbarchiver.go deleted file mode 100644 index 75fe59c4ee..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/mongodbarchiver.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBArchiversGetter has a method to return a MongoDBArchiverInterface. -// A group's client should implement this interface. -type MongoDBArchiversGetter interface { - MongoDBArchivers(namespace string) MongoDBArchiverInterface -} - -// MongoDBArchiverInterface has methods to work with MongoDBArchiver resources. -type MongoDBArchiverInterface interface { - Create(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.CreateOptions) (*v1alpha1.MongoDBArchiver, error) - Update(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (*v1alpha1.MongoDBArchiver, error) - UpdateStatus(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (*v1alpha1.MongoDBArchiver, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBArchiver, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBArchiverList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBArchiver, err error) - MongoDBArchiverExpansion -} - -// mongoDBArchivers implements MongoDBArchiverInterface -type mongoDBArchivers struct { - client rest.Interface - ns string -} - -// newMongoDBArchivers returns a MongoDBArchivers -func newMongoDBArchivers(c *ArchiverV1alpha1Client, namespace string) *mongoDBArchivers { - return &mongoDBArchivers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mongoDBArchiver, and returns the corresponding mongoDBArchiver object, and an error if there is any. -func (c *mongoDBArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBArchiver, err error) { - result = &v1alpha1.MongoDBArchiver{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbarchivers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBArchivers that match those selectors. -func (c *mongoDBArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBArchiverList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MongoDBArchiverList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBArchivers. -func (c *mongoDBArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mongodbarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDBArchiver and creates it. Returns the server's representation of the mongoDBArchiver, and an error, if there is any. -func (c *mongoDBArchivers) Create(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.CreateOptions) (result *v1alpha1.MongoDBArchiver, err error) { - result = &v1alpha1.MongoDBArchiver{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mongodbarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBArchiver). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDBArchiver and updates it. Returns the server's representation of the mongoDBArchiver, and an error, if there is any. -func (c *mongoDBArchivers) Update(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (result *v1alpha1.MongoDBArchiver, err error) { - result = &v1alpha1.MongoDBArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbarchivers"). - Name(mongoDBArchiver.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBArchiver). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mongoDBArchivers) UpdateStatus(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (result *v1alpha1.MongoDBArchiver, err error) { - result = &v1alpha1.MongoDBArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbarchivers"). - Name(mongoDBArchiver.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBArchiver). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDBArchiver and deletes it. Returns an error if one occurs. -func (c *mongoDBArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbarchivers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbarchivers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDBArchiver. -func (c *mongoDBArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBArchiver, err error) { - result = &v1alpha1.MongoDBArchiver{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mongodbarchivers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/mysqlarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/mysqlarchiver.go deleted file mode 100644 index 381f812f27..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/mysqlarchiver.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLArchiversGetter has a method to return a MySQLArchiverInterface. -// A group's client should implement this interface. -type MySQLArchiversGetter interface { - MySQLArchivers(namespace string) MySQLArchiverInterface -} - -// MySQLArchiverInterface has methods to work with MySQLArchiver resources. -type MySQLArchiverInterface interface { - Create(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.CreateOptions) (*v1alpha1.MySQLArchiver, error) - Update(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (*v1alpha1.MySQLArchiver, error) - UpdateStatus(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (*v1alpha1.MySQLArchiver, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLArchiver, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLArchiverList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLArchiver, err error) - MySQLArchiverExpansion -} - -// mySQLArchivers implements MySQLArchiverInterface -type mySQLArchivers struct { - client rest.Interface - ns string -} - -// newMySQLArchivers returns a MySQLArchivers -func newMySQLArchivers(c *ArchiverV1alpha1Client, namespace string) *mySQLArchivers { - return &mySQLArchivers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mySQLArchiver, and returns the corresponding mySQLArchiver object, and an error if there is any. -func (c *mySQLArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLArchiver, err error) { - result = &v1alpha1.MySQLArchiver{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlarchivers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLArchivers that match those selectors. -func (c *mySQLArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLArchiverList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MySQLArchiverList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLArchivers. -func (c *mySQLArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mysqlarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQLArchiver and creates it. Returns the server's representation of the mySQLArchiver, and an error, if there is any. -func (c *mySQLArchivers) Create(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.CreateOptions) (result *v1alpha1.MySQLArchiver, err error) { - result = &v1alpha1.MySQLArchiver{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mysqlarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLArchiver). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQLArchiver and updates it. Returns the server's representation of the mySQLArchiver, and an error, if there is any. -func (c *mySQLArchivers) Update(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (result *v1alpha1.MySQLArchiver, err error) { - result = &v1alpha1.MySQLArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlarchivers"). - Name(mySQLArchiver.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLArchiver). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mySQLArchivers) UpdateStatus(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (result *v1alpha1.MySQLArchiver, err error) { - result = &v1alpha1.MySQLArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlarchivers"). - Name(mySQLArchiver.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLArchiver). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQLArchiver and deletes it. Returns an error if one occurs. -func (c *mySQLArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlarchivers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlarchivers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQLArchiver. -func (c *mySQLArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLArchiver, err error) { - result = &v1alpha1.MySQLArchiver{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mysqlarchivers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/archiver/v1alpha1/postgresarchiver.go b/client/clientset/versioned/typed/archiver/v1alpha1/postgresarchiver.go deleted file mode 100644 index cf377abc3c..0000000000 --- a/client/clientset/versioned/typed/archiver/v1alpha1/postgresarchiver.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresArchiversGetter has a method to return a PostgresArchiverInterface. -// A group's client should implement this interface. -type PostgresArchiversGetter interface { - PostgresArchivers(namespace string) PostgresArchiverInterface -} - -// PostgresArchiverInterface has methods to work with PostgresArchiver resources. -type PostgresArchiverInterface interface { - Create(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.CreateOptions) (*v1alpha1.PostgresArchiver, error) - Update(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (*v1alpha1.PostgresArchiver, error) - UpdateStatus(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (*v1alpha1.PostgresArchiver, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresArchiver, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresArchiverList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresArchiver, err error) - PostgresArchiverExpansion -} - -// postgresArchivers implements PostgresArchiverInterface -type postgresArchivers struct { - client rest.Interface - ns string -} - -// newPostgresArchivers returns a PostgresArchivers -func newPostgresArchivers(c *ArchiverV1alpha1Client, namespace string) *postgresArchivers { - return &postgresArchivers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the postgresArchiver, and returns the corresponding postgresArchiver object, and an error if there is any. -func (c *postgresArchivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresArchiver, err error) { - result = &v1alpha1.PostgresArchiver{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresarchivers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PostgresArchivers that match those selectors. -func (c *postgresArchivers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresArchiverList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PostgresArchiverList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgresArchivers. -func (c *postgresArchivers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("postgresarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgresArchiver and creates it. Returns the server's representation of the postgresArchiver, and an error, if there is any. -func (c *postgresArchivers) Create(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.CreateOptions) (result *v1alpha1.PostgresArchiver, err error) { - result = &v1alpha1.PostgresArchiver{} - err = c.client.Post(). - Namespace(c.ns). - Resource("postgresarchivers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresArchiver). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgresArchiver and updates it. Returns the server's representation of the postgresArchiver, and an error, if there is any. -func (c *postgresArchivers) Update(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (result *v1alpha1.PostgresArchiver, err error) { - result = &v1alpha1.PostgresArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresarchivers"). - Name(postgresArchiver.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresArchiver). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *postgresArchivers) UpdateStatus(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (result *v1alpha1.PostgresArchiver, err error) { - result = &v1alpha1.PostgresArchiver{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresarchivers"). - Name(postgresArchiver.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresArchiver). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgresArchiver and deletes it. Returns an error if one occurs. -func (c *postgresArchivers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresarchivers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgresArchivers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresarchivers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgresArchiver. -func (c *postgresArchivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresArchiver, err error) { - result = &v1alpha1.PostgresArchiver{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("postgresarchivers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go deleted file mode 100644 index c21edf1363..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/autoscaling_client.go +++ /dev/null @@ -1,163 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type AutoscalingV1alpha1Interface interface { - RESTClient() rest.Interface - ElasticsearchAutoscalersGetter - EtcdAutoscalersGetter - MariaDBAutoscalersGetter - MemcachedAutoscalersGetter - MongoDBAutoscalersGetter - MySQLAutoscalersGetter - PerconaXtraDBAutoscalersGetter - PgBouncerAutoscalersGetter - PostgresAutoscalersGetter - ProxySQLAutoscalersGetter - RedisAutoscalersGetter - RedisSentinelAutoscalersGetter -} - -// AutoscalingV1alpha1Client is used to interact with features provided by the autoscaling.kubedb.com group. -type AutoscalingV1alpha1Client struct { - restClient rest.Interface -} - -func (c *AutoscalingV1alpha1Client) ElasticsearchAutoscalers(namespace string) ElasticsearchAutoscalerInterface { - return newElasticsearchAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) EtcdAutoscalers(namespace string) EtcdAutoscalerInterface { - return newEtcdAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) MariaDBAutoscalers(namespace string) MariaDBAutoscalerInterface { - return newMariaDBAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) MemcachedAutoscalers(namespace string) MemcachedAutoscalerInterface { - return newMemcachedAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) MongoDBAutoscalers(namespace string) MongoDBAutoscalerInterface { - return newMongoDBAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) MySQLAutoscalers(namespace string) MySQLAutoscalerInterface { - return newMySQLAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) PerconaXtraDBAutoscalers(namespace string) PerconaXtraDBAutoscalerInterface { - return newPerconaXtraDBAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) PgBouncerAutoscalers(namespace string) PgBouncerAutoscalerInterface { - return newPgBouncerAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) PostgresAutoscalers(namespace string) PostgresAutoscalerInterface { - return newPostgresAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) ProxySQLAutoscalers(namespace string) ProxySQLAutoscalerInterface { - return newProxySQLAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) RedisAutoscalers(namespace string) RedisAutoscalerInterface { - return newRedisAutoscalers(c, namespace) -} - -func (c *AutoscalingV1alpha1Client) RedisSentinelAutoscalers(namespace string) RedisSentinelAutoscalerInterface { - return newRedisSentinelAutoscalers(c, namespace) -} - -// NewForConfig creates a new AutoscalingV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*AutoscalingV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new AutoscalingV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*AutoscalingV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &AutoscalingV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new AutoscalingV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *AutoscalingV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new AutoscalingV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *AutoscalingV1alpha1Client { - return &AutoscalingV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *AutoscalingV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/doc.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/elasticsearchautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/elasticsearchautoscaler.go deleted file mode 100644 index 7cd9d84315..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/elasticsearchautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ElasticsearchAutoscalersGetter has a method to return a ElasticsearchAutoscalerInterface. -// A group's client should implement this interface. -type ElasticsearchAutoscalersGetter interface { - ElasticsearchAutoscalers(namespace string) ElasticsearchAutoscalerInterface -} - -// ElasticsearchAutoscalerInterface has methods to work with ElasticsearchAutoscaler resources. -type ElasticsearchAutoscalerInterface interface { - Create(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.CreateOptions) (*v1alpha1.ElasticsearchAutoscaler, error) - Update(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchAutoscaler, error) - UpdateStatus(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ElasticsearchAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ElasticsearchAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchAutoscaler, err error) - ElasticsearchAutoscalerExpansion -} - -// elasticsearchAutoscalers implements ElasticsearchAutoscalerInterface -type elasticsearchAutoscalers struct { - client rest.Interface - ns string -} - -// newElasticsearchAutoscalers returns a ElasticsearchAutoscalers -func newElasticsearchAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *elasticsearchAutoscalers { - return &elasticsearchAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the elasticsearchAutoscaler, and returns the corresponding elasticsearchAutoscaler object, and an error if there is any. -func (c *elasticsearchAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - result = &v1alpha1.ElasticsearchAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ElasticsearchAutoscalers that match those selectors. -func (c *elasticsearchAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ElasticsearchAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested elasticsearchAutoscalers. -func (c *elasticsearchAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a elasticsearchAutoscaler and creates it. Returns the server's representation of the elasticsearchAutoscaler, and an error, if there is any. -func (c *elasticsearchAutoscalers) Create(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - result = &v1alpha1.ElasticsearchAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a elasticsearchAutoscaler and updates it. Returns the server's representation of the elasticsearchAutoscaler, and an error, if there is any. -func (c *elasticsearchAutoscalers) Update(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - result = &v1alpha1.ElasticsearchAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - Name(elasticsearchAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *elasticsearchAutoscalers) UpdateStatus(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - result = &v1alpha1.ElasticsearchAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - Name(elasticsearchAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the elasticsearchAutoscaler and deletes it. Returns an error if one occurs. -func (c *elasticsearchAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *elasticsearchAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched elasticsearchAutoscaler. -func (c *elasticsearchAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - result = &v1alpha1.ElasticsearchAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("elasticsearchautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/etcdautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/etcdautoscaler.go deleted file mode 100644 index c2b5a9a8e2..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/etcdautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// EtcdAutoscalersGetter has a method to return a EtcdAutoscalerInterface. -// A group's client should implement this interface. -type EtcdAutoscalersGetter interface { - EtcdAutoscalers(namespace string) EtcdAutoscalerInterface -} - -// EtcdAutoscalerInterface has methods to work with EtcdAutoscaler resources. -type EtcdAutoscalerInterface interface { - Create(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.CreateOptions) (*v1alpha1.EtcdAutoscaler, error) - Update(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (*v1alpha1.EtcdAutoscaler, error) - UpdateStatus(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (*v1alpha1.EtcdAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.EtcdAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.EtcdAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdAutoscaler, err error) - EtcdAutoscalerExpansion -} - -// etcdAutoscalers implements EtcdAutoscalerInterface -type etcdAutoscalers struct { - client rest.Interface - ns string -} - -// newEtcdAutoscalers returns a EtcdAutoscalers -func newEtcdAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *etcdAutoscalers { - return &etcdAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the etcdAutoscaler, and returns the corresponding etcdAutoscaler object, and an error if there is any. -func (c *etcdAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - result = &v1alpha1.EtcdAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcdautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of EtcdAutoscalers that match those selectors. -func (c *etcdAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.EtcdAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcdautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested etcdAutoscalers. -func (c *etcdAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("etcdautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a etcdAutoscaler and creates it. Returns the server's representation of the etcdAutoscaler, and an error, if there is any. -func (c *etcdAutoscalers) Create(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.CreateOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - result = &v1alpha1.EtcdAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("etcdautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a etcdAutoscaler and updates it. Returns the server's representation of the etcdAutoscaler, and an error, if there is any. -func (c *etcdAutoscalers) Update(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - result = &v1alpha1.EtcdAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcdautoscalers"). - Name(etcdAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *etcdAutoscalers) UpdateStatus(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - result = &v1alpha1.EtcdAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcdautoscalers"). - Name(etcdAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the etcdAutoscaler and deletes it. Returns an error if one occurs. -func (c *etcdAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("etcdautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *etcdAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("etcdautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched etcdAutoscaler. -func (c *etcdAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdAutoscaler, err error) { - result = &v1alpha1.EtcdAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("etcdautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go deleted file mode 100644 index 437dbe06ae..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_autoscaling_client.go +++ /dev/null @@ -1,85 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/autoscaling/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeAutoscalingV1alpha1 struct { - *testing.Fake -} - -func (c *FakeAutoscalingV1alpha1) ElasticsearchAutoscalers(namespace string) v1alpha1.ElasticsearchAutoscalerInterface { - return &FakeElasticsearchAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) EtcdAutoscalers(namespace string) v1alpha1.EtcdAutoscalerInterface { - return &FakeEtcdAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) MariaDBAutoscalers(namespace string) v1alpha1.MariaDBAutoscalerInterface { - return &FakeMariaDBAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) MemcachedAutoscalers(namespace string) v1alpha1.MemcachedAutoscalerInterface { - return &FakeMemcachedAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) MongoDBAutoscalers(namespace string) v1alpha1.MongoDBAutoscalerInterface { - return &FakeMongoDBAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) MySQLAutoscalers(namespace string) v1alpha1.MySQLAutoscalerInterface { - return &FakeMySQLAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) PerconaXtraDBAutoscalers(namespace string) v1alpha1.PerconaXtraDBAutoscalerInterface { - return &FakePerconaXtraDBAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) PgBouncerAutoscalers(namespace string) v1alpha1.PgBouncerAutoscalerInterface { - return &FakePgBouncerAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) PostgresAutoscalers(namespace string) v1alpha1.PostgresAutoscalerInterface { - return &FakePostgresAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) ProxySQLAutoscalers(namespace string) v1alpha1.ProxySQLAutoscalerInterface { - return &FakeProxySQLAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) RedisAutoscalers(namespace string) v1alpha1.RedisAutoscalerInterface { - return &FakeRedisAutoscalers{c, namespace} -} - -func (c *FakeAutoscalingV1alpha1) RedisSentinelAutoscalers(namespace string) v1alpha1.RedisSentinelAutoscalerInterface { - return &FakeRedisSentinelAutoscalers{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeAutoscalingV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_elasticsearchautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_elasticsearchautoscaler.go deleted file mode 100644 index 01315bbdbd..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_elasticsearchautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeElasticsearchAutoscalers implements ElasticsearchAutoscalerInterface -type FakeElasticsearchAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var elasticsearchautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("elasticsearchautoscalers") - -var elasticsearchautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("ElasticsearchAutoscaler") - -// Get takes name of the elasticsearchAutoscaler, and returns the corresponding elasticsearchAutoscaler object, and an error if there is any. -func (c *FakeElasticsearchAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(elasticsearchautoscalersResource, c.ns, name), &v1alpha1.ElasticsearchAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchAutoscaler), err -} - -// List takes label and field selectors, and returns the list of ElasticsearchAutoscalers that match those selectors. -func (c *FakeElasticsearchAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(elasticsearchautoscalersResource, elasticsearchautoscalersKind, c.ns, opts), &v1alpha1.ElasticsearchAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ElasticsearchAutoscalerList{ListMeta: obj.(*v1alpha1.ElasticsearchAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.ElasticsearchAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested elasticsearchAutoscalers. -func (c *FakeElasticsearchAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(elasticsearchautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a elasticsearchAutoscaler and creates it. Returns the server's representation of the elasticsearchAutoscaler, and an error, if there is any. -func (c *FakeElasticsearchAutoscalers) Create(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(elasticsearchautoscalersResource, c.ns, elasticsearchAutoscaler), &v1alpha1.ElasticsearchAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchAutoscaler), err -} - -// Update takes the representation of a elasticsearchAutoscaler and updates it. Returns the server's representation of the elasticsearchAutoscaler, and an error, if there is any. -func (c *FakeElasticsearchAutoscalers) Update(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(elasticsearchautoscalersResource, c.ns, elasticsearchAutoscaler), &v1alpha1.ElasticsearchAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeElasticsearchAutoscalers) UpdateStatus(ctx context.Context, elasticsearchAutoscaler *v1alpha1.ElasticsearchAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(elasticsearchautoscalersResource, "status", c.ns, elasticsearchAutoscaler), &v1alpha1.ElasticsearchAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchAutoscaler), err -} - -// Delete takes name of the elasticsearchAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeElasticsearchAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(elasticsearchautoscalersResource, c.ns, name, opts), &v1alpha1.ElasticsearchAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeElasticsearchAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(elasticsearchautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ElasticsearchAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched elasticsearchAutoscaler. -func (c *FakeElasticsearchAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(elasticsearchautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.ElasticsearchAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_etcdautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_etcdautoscaler.go deleted file mode 100644 index c412e85fa2..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_etcdautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeEtcdAutoscalers implements EtcdAutoscalerInterface -type FakeEtcdAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var etcdautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("etcdautoscalers") - -var etcdautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("EtcdAutoscaler") - -// Get takes name of the etcdAutoscaler, and returns the corresponding etcdAutoscaler object, and an error if there is any. -func (c *FakeEtcdAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(etcdautoscalersResource, c.ns, name), &v1alpha1.EtcdAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdAutoscaler), err -} - -// List takes label and field selectors, and returns the list of EtcdAutoscalers that match those selectors. -func (c *FakeEtcdAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(etcdautoscalersResource, etcdautoscalersKind, c.ns, opts), &v1alpha1.EtcdAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.EtcdAutoscalerList{ListMeta: obj.(*v1alpha1.EtcdAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.EtcdAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested etcdAutoscalers. -func (c *FakeEtcdAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(etcdautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a etcdAutoscaler and creates it. Returns the server's representation of the etcdAutoscaler, and an error, if there is any. -func (c *FakeEtcdAutoscalers) Create(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.CreateOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(etcdautoscalersResource, c.ns, etcdAutoscaler), &v1alpha1.EtcdAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdAutoscaler), err -} - -// Update takes the representation of a etcdAutoscaler and updates it. Returns the server's representation of the etcdAutoscaler, and an error, if there is any. -func (c *FakeEtcdAutoscalers) Update(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.EtcdAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(etcdautoscalersResource, c.ns, etcdAutoscaler), &v1alpha1.EtcdAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeEtcdAutoscalers) UpdateStatus(ctx context.Context, etcdAutoscaler *v1alpha1.EtcdAutoscaler, opts v1.UpdateOptions) (*v1alpha1.EtcdAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(etcdautoscalersResource, "status", c.ns, etcdAutoscaler), &v1alpha1.EtcdAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdAutoscaler), err -} - -// Delete takes name of the etcdAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeEtcdAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(etcdautoscalersResource, c.ns, name, opts), &v1alpha1.EtcdAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEtcdAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(etcdautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.EtcdAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched etcdAutoscaler. -func (c *FakeEtcdAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(etcdautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.EtcdAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mariadbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mariadbautoscaler.go deleted file mode 100644 index 18bdae8fbe..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mariadbautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMariaDBAutoscalers implements MariaDBAutoscalerInterface -type FakeMariaDBAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var mariadbautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("mariadbautoscalers") - -var mariadbautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("MariaDBAutoscaler") - -// Get takes name of the mariaDBAutoscaler, and returns the corresponding mariaDBAutoscaler object, and an error if there is any. -func (c *FakeMariaDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mariadbautoscalersResource, c.ns, name), &v1alpha1.MariaDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBAutoscaler), err -} - -// List takes label and field selectors, and returns the list of MariaDBAutoscalers that match those selectors. -func (c *FakeMariaDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mariadbautoscalersResource, mariadbautoscalersKind, c.ns, opts), &v1alpha1.MariaDBAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MariaDBAutoscalerList{ListMeta: obj.(*v1alpha1.MariaDBAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.MariaDBAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mariaDBAutoscalers. -func (c *FakeMariaDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mariadbautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a mariaDBAutoscaler and creates it. Returns the server's representation of the mariaDBAutoscaler, and an error, if there is any. -func (c *FakeMariaDBAutoscalers) Create(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mariadbautoscalersResource, c.ns, mariaDBAutoscaler), &v1alpha1.MariaDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBAutoscaler), err -} - -// Update takes the representation of a mariaDBAutoscaler and updates it. Returns the server's representation of the mariaDBAutoscaler, and an error, if there is any. -func (c *FakeMariaDBAutoscalers) Update(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mariadbautoscalersResource, c.ns, mariaDBAutoscaler), &v1alpha1.MariaDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMariaDBAutoscalers) UpdateStatus(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MariaDBAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mariadbautoscalersResource, "status", c.ns, mariaDBAutoscaler), &v1alpha1.MariaDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBAutoscaler), err -} - -// Delete takes name of the mariaDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeMariaDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mariadbautoscalersResource, c.ns, name, opts), &v1alpha1.MariaDBAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMariaDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mariadbautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MariaDBAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched mariaDBAutoscaler. -func (c *FakeMariaDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mariadbautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.MariaDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_memcachedautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_memcachedautoscaler.go deleted file mode 100644 index 8cc0c0879d..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_memcachedautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMemcachedAutoscalers implements MemcachedAutoscalerInterface -type FakeMemcachedAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var memcachedautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("memcachedautoscalers") - -var memcachedautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("MemcachedAutoscaler") - -// Get takes name of the memcachedAutoscaler, and returns the corresponding memcachedAutoscaler object, and an error if there is any. -func (c *FakeMemcachedAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(memcachedautoscalersResource, c.ns, name), &v1alpha1.MemcachedAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedAutoscaler), err -} - -// List takes label and field selectors, and returns the list of MemcachedAutoscalers that match those selectors. -func (c *FakeMemcachedAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(memcachedautoscalersResource, memcachedautoscalersKind, c.ns, opts), &v1alpha1.MemcachedAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MemcachedAutoscalerList{ListMeta: obj.(*v1alpha1.MemcachedAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.MemcachedAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested memcachedAutoscalers. -func (c *FakeMemcachedAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(memcachedautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a memcachedAutoscaler and creates it. Returns the server's representation of the memcachedAutoscaler, and an error, if there is any. -func (c *FakeMemcachedAutoscalers) Create(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(memcachedautoscalersResource, c.ns, memcachedAutoscaler), &v1alpha1.MemcachedAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedAutoscaler), err -} - -// Update takes the representation of a memcachedAutoscaler and updates it. Returns the server's representation of the memcachedAutoscaler, and an error, if there is any. -func (c *FakeMemcachedAutoscalers) Update(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(memcachedautoscalersResource, c.ns, memcachedAutoscaler), &v1alpha1.MemcachedAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMemcachedAutoscalers) UpdateStatus(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MemcachedAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(memcachedautoscalersResource, "status", c.ns, memcachedAutoscaler), &v1alpha1.MemcachedAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedAutoscaler), err -} - -// Delete takes name of the memcachedAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeMemcachedAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(memcachedautoscalersResource, c.ns, name, opts), &v1alpha1.MemcachedAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMemcachedAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(memcachedautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MemcachedAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched memcachedAutoscaler. -func (c *FakeMemcachedAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(memcachedautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.MemcachedAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mongodbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mongodbautoscaler.go deleted file mode 100644 index 5c431e6138..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mongodbautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBAutoscalers implements MongoDBAutoscalerInterface -type FakeMongoDBAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var mongodbautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("mongodbautoscalers") - -var mongodbautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("MongoDBAutoscaler") - -// Get takes name of the mongoDBAutoscaler, and returns the corresponding mongoDBAutoscaler object, and an error if there is any. -func (c *FakeMongoDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mongodbautoscalersResource, c.ns, name), &v1alpha1.MongoDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBAutoscaler), err -} - -// List takes label and field selectors, and returns the list of MongoDBAutoscalers that match those selectors. -func (c *FakeMongoDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mongodbautoscalersResource, mongodbautoscalersKind, c.ns, opts), &v1alpha1.MongoDBAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MongoDBAutoscalerList{ListMeta: obj.(*v1alpha1.MongoDBAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.MongoDBAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBAutoscalers. -func (c *FakeMongoDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mongodbautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a mongoDBAutoscaler and creates it. Returns the server's representation of the mongoDBAutoscaler, and an error, if there is any. -func (c *FakeMongoDBAutoscalers) Create(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mongodbautoscalersResource, c.ns, mongoDBAutoscaler), &v1alpha1.MongoDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBAutoscaler), err -} - -// Update takes the representation of a mongoDBAutoscaler and updates it. Returns the server's representation of the mongoDBAutoscaler, and an error, if there is any. -func (c *FakeMongoDBAutoscalers) Update(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mongodbautoscalersResource, c.ns, mongoDBAutoscaler), &v1alpha1.MongoDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMongoDBAutoscalers) UpdateStatus(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MongoDBAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mongodbautoscalersResource, "status", c.ns, mongoDBAutoscaler), &v1alpha1.MongoDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBAutoscaler), err -} - -// Delete takes name of the mongoDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mongodbautoscalersResource, c.ns, name, opts), &v1alpha1.MongoDBAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mongodbautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MongoDBAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDBAutoscaler. -func (c *FakeMongoDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mongodbautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.MongoDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mysqlautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mysqlautoscaler.go deleted file mode 100644 index da587cb823..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_mysqlautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLAutoscalers implements MySQLAutoscalerInterface -type FakeMySQLAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var mysqlautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("mysqlautoscalers") - -var mysqlautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("MySQLAutoscaler") - -// Get takes name of the mySQLAutoscaler, and returns the corresponding mySQLAutoscaler object, and an error if there is any. -func (c *FakeMySQLAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mysqlautoscalersResource, c.ns, name), &v1alpha1.MySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLAutoscaler), err -} - -// List takes label and field selectors, and returns the list of MySQLAutoscalers that match those selectors. -func (c *FakeMySQLAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mysqlautoscalersResource, mysqlautoscalersKind, c.ns, opts), &v1alpha1.MySQLAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MySQLAutoscalerList{ListMeta: obj.(*v1alpha1.MySQLAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.MySQLAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLAutoscalers. -func (c *FakeMySQLAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mysqlautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a mySQLAutoscaler and creates it. Returns the server's representation of the mySQLAutoscaler, and an error, if there is any. -func (c *FakeMySQLAutoscalers) Create(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mysqlautoscalersResource, c.ns, mySQLAutoscaler), &v1alpha1.MySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLAutoscaler), err -} - -// Update takes the representation of a mySQLAutoscaler and updates it. Returns the server's representation of the mySQLAutoscaler, and an error, if there is any. -func (c *FakeMySQLAutoscalers) Update(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mysqlautoscalersResource, c.ns, mySQLAutoscaler), &v1alpha1.MySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMySQLAutoscalers) UpdateStatus(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MySQLAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mysqlautoscalersResource, "status", c.ns, mySQLAutoscaler), &v1alpha1.MySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLAutoscaler), err -} - -// Delete takes name of the mySQLAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeMySQLAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mysqlautoscalersResource, c.ns, name, opts), &v1alpha1.MySQLAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mysqlautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MySQLAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched mySQLAutoscaler. -func (c *FakeMySQLAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mysqlautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.MySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_perconaxtradbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_perconaxtradbautoscaler.go deleted file mode 100644 index 4b50fa58a2..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_perconaxtradbautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePerconaXtraDBAutoscalers implements PerconaXtraDBAutoscalerInterface -type FakePerconaXtraDBAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var perconaxtradbautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("perconaxtradbautoscalers") - -var perconaxtradbautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("PerconaXtraDBAutoscaler") - -// Get takes name of the perconaXtraDBAutoscaler, and returns the corresponding perconaXtraDBAutoscaler object, and an error if there is any. -func (c *FakePerconaXtraDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(perconaxtradbautoscalersResource, c.ns, name), &v1alpha1.PerconaXtraDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBAutoscaler), err -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBAutoscalers that match those selectors. -func (c *FakePerconaXtraDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(perconaxtradbautoscalersResource, perconaxtradbautoscalersKind, c.ns, opts), &v1alpha1.PerconaXtraDBAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PerconaXtraDBAutoscalerList{ListMeta: obj.(*v1alpha1.PerconaXtraDBAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.PerconaXtraDBAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBAutoscalers. -func (c *FakePerconaXtraDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(perconaxtradbautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a perconaXtraDBAutoscaler and creates it. Returns the server's representation of the perconaXtraDBAutoscaler, and an error, if there is any. -func (c *FakePerconaXtraDBAutoscalers) Create(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(perconaxtradbautoscalersResource, c.ns, perconaXtraDBAutoscaler), &v1alpha1.PerconaXtraDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBAutoscaler), err -} - -// Update takes the representation of a perconaXtraDBAutoscaler and updates it. Returns the server's representation of the perconaXtraDBAutoscaler, and an error, if there is any. -func (c *FakePerconaXtraDBAutoscalers) Update(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(perconaxtradbautoscalersResource, c.ns, perconaXtraDBAutoscaler), &v1alpha1.PerconaXtraDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePerconaXtraDBAutoscalers) UpdateStatus(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(perconaxtradbautoscalersResource, "status", c.ns, perconaXtraDBAutoscaler), &v1alpha1.PerconaXtraDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBAutoscaler), err -} - -// Delete takes name of the perconaXtraDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakePerconaXtraDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(perconaxtradbautoscalersResource, c.ns, name, opts), &v1alpha1.PerconaXtraDBAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePerconaXtraDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(perconaxtradbautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PerconaXtraDBAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched perconaXtraDBAutoscaler. -func (c *FakePerconaXtraDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(perconaxtradbautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.PerconaXtraDBAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_pgbouncerautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_pgbouncerautoscaler.go deleted file mode 100644 index bd0b044067..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_pgbouncerautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePgBouncerAutoscalers implements PgBouncerAutoscalerInterface -type FakePgBouncerAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var pgbouncerautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("pgbouncerautoscalers") - -var pgbouncerautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("PgBouncerAutoscaler") - -// Get takes name of the pgBouncerAutoscaler, and returns the corresponding pgBouncerAutoscaler object, and an error if there is any. -func (c *FakePgBouncerAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(pgbouncerautoscalersResource, c.ns, name), &v1alpha1.PgBouncerAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerAutoscaler), err -} - -// List takes label and field selectors, and returns the list of PgBouncerAutoscalers that match those selectors. -func (c *FakePgBouncerAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(pgbouncerautoscalersResource, pgbouncerautoscalersKind, c.ns, opts), &v1alpha1.PgBouncerAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PgBouncerAutoscalerList{ListMeta: obj.(*v1alpha1.PgBouncerAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.PgBouncerAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested pgBouncerAutoscalers. -func (c *FakePgBouncerAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(pgbouncerautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a pgBouncerAutoscaler and creates it. Returns the server's representation of the pgBouncerAutoscaler, and an error, if there is any. -func (c *FakePgBouncerAutoscalers) Create(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(pgbouncerautoscalersResource, c.ns, pgBouncerAutoscaler), &v1alpha1.PgBouncerAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerAutoscaler), err -} - -// Update takes the representation of a pgBouncerAutoscaler and updates it. Returns the server's representation of the pgBouncerAutoscaler, and an error, if there is any. -func (c *FakePgBouncerAutoscalers) Update(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(pgbouncerautoscalersResource, c.ns, pgBouncerAutoscaler), &v1alpha1.PgBouncerAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePgBouncerAutoscalers) UpdateStatus(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PgBouncerAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(pgbouncerautoscalersResource, "status", c.ns, pgBouncerAutoscaler), &v1alpha1.PgBouncerAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerAutoscaler), err -} - -// Delete takes name of the pgBouncerAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakePgBouncerAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(pgbouncerautoscalersResource, c.ns, name, opts), &v1alpha1.PgBouncerAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePgBouncerAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(pgbouncerautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PgBouncerAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched pgBouncerAutoscaler. -func (c *FakePgBouncerAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(pgbouncerautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.PgBouncerAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_postgresautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_postgresautoscaler.go deleted file mode 100644 index 2ff6fb811d..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_postgresautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgresAutoscalers implements PostgresAutoscalerInterface -type FakePostgresAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var postgresautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("postgresautoscalers") - -var postgresautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("PostgresAutoscaler") - -// Get takes name of the postgresAutoscaler, and returns the corresponding postgresAutoscaler object, and an error if there is any. -func (c *FakePostgresAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(postgresautoscalersResource, c.ns, name), &v1alpha1.PostgresAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresAutoscaler), err -} - -// List takes label and field selectors, and returns the list of PostgresAutoscalers that match those selectors. -func (c *FakePostgresAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(postgresautoscalersResource, postgresautoscalersKind, c.ns, opts), &v1alpha1.PostgresAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PostgresAutoscalerList{ListMeta: obj.(*v1alpha1.PostgresAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.PostgresAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgresAutoscalers. -func (c *FakePostgresAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(postgresautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a postgresAutoscaler and creates it. Returns the server's representation of the postgresAutoscaler, and an error, if there is any. -func (c *FakePostgresAutoscalers) Create(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(postgresautoscalersResource, c.ns, postgresAutoscaler), &v1alpha1.PostgresAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresAutoscaler), err -} - -// Update takes the representation of a postgresAutoscaler and updates it. Returns the server's representation of the postgresAutoscaler, and an error, if there is any. -func (c *FakePostgresAutoscalers) Update(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(postgresautoscalersResource, c.ns, postgresAutoscaler), &v1alpha1.PostgresAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePostgresAutoscalers) UpdateStatus(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PostgresAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(postgresautoscalersResource, "status", c.ns, postgresAutoscaler), &v1alpha1.PostgresAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresAutoscaler), err -} - -// Delete takes name of the postgresAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakePostgresAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(postgresautoscalersResource, c.ns, name, opts), &v1alpha1.PostgresAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgresAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(postgresautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PostgresAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched postgresAutoscaler. -func (c *FakePostgresAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(postgresautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.PostgresAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_proxysqlautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_proxysqlautoscaler.go deleted file mode 100644 index 14100f5995..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_proxysqlautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeProxySQLAutoscalers implements ProxySQLAutoscalerInterface -type FakeProxySQLAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var proxysqlautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("proxysqlautoscalers") - -var proxysqlautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("ProxySQLAutoscaler") - -// Get takes name of the proxySQLAutoscaler, and returns the corresponding proxySQLAutoscaler object, and an error if there is any. -func (c *FakeProxySQLAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(proxysqlautoscalersResource, c.ns, name), &v1alpha1.ProxySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLAutoscaler), err -} - -// List takes label and field selectors, and returns the list of ProxySQLAutoscalers that match those selectors. -func (c *FakeProxySQLAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(proxysqlautoscalersResource, proxysqlautoscalersKind, c.ns, opts), &v1alpha1.ProxySQLAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ProxySQLAutoscalerList{ListMeta: obj.(*v1alpha1.ProxySQLAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.ProxySQLAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested proxySQLAutoscalers. -func (c *FakeProxySQLAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(proxysqlautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a proxySQLAutoscaler and creates it. Returns the server's representation of the proxySQLAutoscaler, and an error, if there is any. -func (c *FakeProxySQLAutoscalers) Create(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.CreateOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(proxysqlautoscalersResource, c.ns, proxySQLAutoscaler), &v1alpha1.ProxySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLAutoscaler), err -} - -// Update takes the representation of a proxySQLAutoscaler and updates it. Returns the server's representation of the proxySQLAutoscaler, and an error, if there is any. -func (c *FakeProxySQLAutoscalers) Update(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(proxysqlautoscalersResource, c.ns, proxySQLAutoscaler), &v1alpha1.ProxySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProxySQLAutoscalers) UpdateStatus(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ProxySQLAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(proxysqlautoscalersResource, "status", c.ns, proxySQLAutoscaler), &v1alpha1.ProxySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLAutoscaler), err -} - -// Delete takes name of the proxySQLAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeProxySQLAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(proxysqlautoscalersResource, c.ns, name, opts), &v1alpha1.ProxySQLAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProxySQLAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(proxysqlautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ProxySQLAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched proxySQLAutoscaler. -func (c *FakeProxySQLAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(proxysqlautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.ProxySQLAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redisautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redisautoscaler.go deleted file mode 100644 index ada906e573..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redisautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisAutoscalers implements RedisAutoscalerInterface -type FakeRedisAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var redisautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("redisautoscalers") - -var redisautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("RedisAutoscaler") - -// Get takes name of the redisAutoscaler, and returns the corresponding redisAutoscaler object, and an error if there is any. -func (c *FakeRedisAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redisautoscalersResource, c.ns, name), &v1alpha1.RedisAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisAutoscaler), err -} - -// List takes label and field selectors, and returns the list of RedisAutoscalers that match those selectors. -func (c *FakeRedisAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redisautoscalersResource, redisautoscalersKind, c.ns, opts), &v1alpha1.RedisAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RedisAutoscalerList{ListMeta: obj.(*v1alpha1.RedisAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.RedisAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisAutoscalers. -func (c *FakeRedisAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redisautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a redisAutoscaler and creates it. Returns the server's representation of the redisAutoscaler, and an error, if there is any. -func (c *FakeRedisAutoscalers) Create(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.CreateOptions) (result *v1alpha1.RedisAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redisautoscalersResource, c.ns, redisAutoscaler), &v1alpha1.RedisAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisAutoscaler), err -} - -// Update takes the representation of a redisAutoscaler and updates it. Returns the server's representation of the redisAutoscaler, and an error, if there is any. -func (c *FakeRedisAutoscalers) Update(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redisautoscalersResource, c.ns, redisAutoscaler), &v1alpha1.RedisAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedisAutoscalers) UpdateStatus(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redisautoscalersResource, "status", c.ns, redisAutoscaler), &v1alpha1.RedisAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisAutoscaler), err -} - -// Delete takes name of the redisAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeRedisAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redisautoscalersResource, c.ns, name, opts), &v1alpha1.RedisAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redisautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RedisAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched redisAutoscaler. -func (c *FakeRedisAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redisautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.RedisAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redissentinelautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redissentinelautoscaler.go deleted file mode 100644 index 16274a680e..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/fake/fake_redissentinelautoscaler.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisSentinelAutoscalers implements RedisSentinelAutoscalerInterface -type FakeRedisSentinelAutoscalers struct { - Fake *FakeAutoscalingV1alpha1 - ns string -} - -var redissentinelautoscalersResource = v1alpha1.SchemeGroupVersion.WithResource("redissentinelautoscalers") - -var redissentinelautoscalersKind = v1alpha1.SchemeGroupVersion.WithKind("RedisSentinelAutoscaler") - -// Get takes name of the redisSentinelAutoscaler, and returns the corresponding redisSentinelAutoscaler object, and an error if there is any. -func (c *FakeRedisSentinelAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redissentinelautoscalersResource, c.ns, name), &v1alpha1.RedisSentinelAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelAutoscaler), err -} - -// List takes label and field selectors, and returns the list of RedisSentinelAutoscalers that match those selectors. -func (c *FakeRedisSentinelAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisSentinelAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redissentinelautoscalersResource, redissentinelautoscalersKind, c.ns, opts), &v1alpha1.RedisSentinelAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RedisSentinelAutoscalerList{ListMeta: obj.(*v1alpha1.RedisSentinelAutoscalerList).ListMeta} - for _, item := range obj.(*v1alpha1.RedisSentinelAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisSentinelAutoscalers. -func (c *FakeRedisSentinelAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redissentinelautoscalersResource, c.ns, opts)) - -} - -// Create takes the representation of a redisSentinelAutoscaler and creates it. Returns the server's representation of the redisSentinelAutoscaler, and an error, if there is any. -func (c *FakeRedisSentinelAutoscalers) Create(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.CreateOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redissentinelautoscalersResource, c.ns, redisSentinelAutoscaler), &v1alpha1.RedisSentinelAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelAutoscaler), err -} - -// Update takes the representation of a redisSentinelAutoscaler and updates it. Returns the server's representation of the redisSentinelAutoscaler, and an error, if there is any. -func (c *FakeRedisSentinelAutoscalers) Update(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redissentinelautoscalersResource, c.ns, redisSentinelAutoscaler), &v1alpha1.RedisSentinelAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelAutoscaler), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedisSentinelAutoscalers) UpdateStatus(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redissentinelautoscalersResource, "status", c.ns, redisSentinelAutoscaler), &v1alpha1.RedisSentinelAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelAutoscaler), err -} - -// Delete takes name of the redisSentinelAutoscaler and deletes it. Returns an error if one occurs. -func (c *FakeRedisSentinelAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redissentinelautoscalersResource, c.ns, name, opts), &v1alpha1.RedisSentinelAutoscaler{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisSentinelAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redissentinelautoscalersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RedisSentinelAutoscalerList{}) - return err -} - -// Patch applies the patch and returns the patched redisSentinelAutoscaler. -func (c *FakeRedisSentinelAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redissentinelautoscalersResource, c.ns, name, pt, data, subresources...), &v1alpha1.RedisSentinelAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelAutoscaler), err -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/generated_expansion.go deleted file mode 100644 index 4f67968e7e..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ElasticsearchAutoscalerExpansion interface{} - -type EtcdAutoscalerExpansion interface{} - -type MariaDBAutoscalerExpansion interface{} - -type MemcachedAutoscalerExpansion interface{} - -type MongoDBAutoscalerExpansion interface{} - -type MySQLAutoscalerExpansion interface{} - -type PerconaXtraDBAutoscalerExpansion interface{} - -type PgBouncerAutoscalerExpansion interface{} - -type PostgresAutoscalerExpansion interface{} - -type ProxySQLAutoscalerExpansion interface{} - -type RedisAutoscalerExpansion interface{} - -type RedisSentinelAutoscalerExpansion interface{} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/mariadbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/mariadbautoscaler.go deleted file mode 100644 index 18bcb8c795..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/mariadbautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MariaDBAutoscalersGetter has a method to return a MariaDBAutoscalerInterface. -// A group's client should implement this interface. -type MariaDBAutoscalersGetter interface { - MariaDBAutoscalers(namespace string) MariaDBAutoscalerInterface -} - -// MariaDBAutoscalerInterface has methods to work with MariaDBAutoscaler resources. -type MariaDBAutoscalerInterface interface { - Create(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.CreateOptions) (*v1alpha1.MariaDBAutoscaler, error) - Update(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MariaDBAutoscaler, error) - UpdateStatus(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MariaDBAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MariaDBAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MariaDBAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBAutoscaler, err error) - MariaDBAutoscalerExpansion -} - -// mariaDBAutoscalers implements MariaDBAutoscalerInterface -type mariaDBAutoscalers struct { - client rest.Interface - ns string -} - -// newMariaDBAutoscalers returns a MariaDBAutoscalers -func newMariaDBAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *mariaDBAutoscalers { - return &mariaDBAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mariaDBAutoscaler, and returns the corresponding mariaDBAutoscaler object, and an error if there is any. -func (c *mariaDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - result = &v1alpha1.MariaDBAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MariaDBAutoscalers that match those selectors. -func (c *mariaDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MariaDBAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mariaDBAutoscalers. -func (c *mariaDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mariaDBAutoscaler and creates it. Returns the server's representation of the mariaDBAutoscaler, and an error, if there is any. -func (c *mariaDBAutoscalers) Create(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - result = &v1alpha1.MariaDBAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mariaDBAutoscaler and updates it. Returns the server's representation of the mariaDBAutoscaler, and an error, if there is any. -func (c *mariaDBAutoscalers) Update(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - result = &v1alpha1.MariaDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - Name(mariaDBAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mariaDBAutoscalers) UpdateStatus(ctx context.Context, mariaDBAutoscaler *v1alpha1.MariaDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MariaDBAutoscaler, err error) { - result = &v1alpha1.MariaDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - Name(mariaDBAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mariaDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *mariaDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mariaDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mariaDBAutoscaler. -func (c *mariaDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBAutoscaler, err error) { - result = &v1alpha1.MariaDBAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mariadbautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/memcachedautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/memcachedautoscaler.go deleted file mode 100644 index 1c17d53770..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/memcachedautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MemcachedAutoscalersGetter has a method to return a MemcachedAutoscalerInterface. -// A group's client should implement this interface. -type MemcachedAutoscalersGetter interface { - MemcachedAutoscalers(namespace string) MemcachedAutoscalerInterface -} - -// MemcachedAutoscalerInterface has methods to work with MemcachedAutoscaler resources. -type MemcachedAutoscalerInterface interface { - Create(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.CreateOptions) (*v1alpha1.MemcachedAutoscaler, error) - Update(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MemcachedAutoscaler, error) - UpdateStatus(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MemcachedAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MemcachedAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MemcachedAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedAutoscaler, err error) - MemcachedAutoscalerExpansion -} - -// memcachedAutoscalers implements MemcachedAutoscalerInterface -type memcachedAutoscalers struct { - client rest.Interface - ns string -} - -// newMemcachedAutoscalers returns a MemcachedAutoscalers -func newMemcachedAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *memcachedAutoscalers { - return &memcachedAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the memcachedAutoscaler, and returns the corresponding memcachedAutoscaler object, and an error if there is any. -func (c *memcachedAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - result = &v1alpha1.MemcachedAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MemcachedAutoscalers that match those selectors. -func (c *memcachedAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MemcachedAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested memcachedAutoscalers. -func (c *memcachedAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a memcachedAutoscaler and creates it. Returns the server's representation of the memcachedAutoscaler, and an error, if there is any. -func (c *memcachedAutoscalers) Create(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - result = &v1alpha1.MemcachedAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a memcachedAutoscaler and updates it. Returns the server's representation of the memcachedAutoscaler, and an error, if there is any. -func (c *memcachedAutoscalers) Update(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - result = &v1alpha1.MemcachedAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - Name(memcachedAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *memcachedAutoscalers) UpdateStatus(ctx context.Context, memcachedAutoscaler *v1alpha1.MemcachedAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MemcachedAutoscaler, err error) { - result = &v1alpha1.MemcachedAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - Name(memcachedAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the memcachedAutoscaler and deletes it. Returns an error if one occurs. -func (c *memcachedAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *memcachedAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("memcachedautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched memcachedAutoscaler. -func (c *memcachedAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedAutoscaler, err error) { - result = &v1alpha1.MemcachedAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("memcachedautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/mongodbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/mongodbautoscaler.go deleted file mode 100644 index 7f2beb91cd..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/mongodbautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBAutoscalersGetter has a method to return a MongoDBAutoscalerInterface. -// A group's client should implement this interface. -type MongoDBAutoscalersGetter interface { - MongoDBAutoscalers(namespace string) MongoDBAutoscalerInterface -} - -// MongoDBAutoscalerInterface has methods to work with MongoDBAutoscaler resources. -type MongoDBAutoscalerInterface interface { - Create(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.CreateOptions) (*v1alpha1.MongoDBAutoscaler, error) - Update(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MongoDBAutoscaler, error) - UpdateStatus(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MongoDBAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBAutoscaler, err error) - MongoDBAutoscalerExpansion -} - -// mongoDBAutoscalers implements MongoDBAutoscalerInterface -type mongoDBAutoscalers struct { - client rest.Interface - ns string -} - -// newMongoDBAutoscalers returns a MongoDBAutoscalers -func newMongoDBAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *mongoDBAutoscalers { - return &mongoDBAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mongoDBAutoscaler, and returns the corresponding mongoDBAutoscaler object, and an error if there is any. -func (c *mongoDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - result = &v1alpha1.MongoDBAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBAutoscalers that match those selectors. -func (c *mongoDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MongoDBAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBAutoscalers. -func (c *mongoDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDBAutoscaler and creates it. Returns the server's representation of the mongoDBAutoscaler, and an error, if there is any. -func (c *mongoDBAutoscalers) Create(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - result = &v1alpha1.MongoDBAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDBAutoscaler and updates it. Returns the server's representation of the mongoDBAutoscaler, and an error, if there is any. -func (c *mongoDBAutoscalers) Update(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - result = &v1alpha1.MongoDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - Name(mongoDBAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mongoDBAutoscalers) UpdateStatus(ctx context.Context, mongoDBAutoscaler *v1alpha1.MongoDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MongoDBAutoscaler, err error) { - result = &v1alpha1.MongoDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - Name(mongoDBAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *mongoDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDBAutoscaler. -func (c *mongoDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBAutoscaler, err error) { - result = &v1alpha1.MongoDBAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mongodbautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/mysqlautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/mysqlautoscaler.go deleted file mode 100644 index c4fef6fae5..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/mysqlautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLAutoscalersGetter has a method to return a MySQLAutoscalerInterface. -// A group's client should implement this interface. -type MySQLAutoscalersGetter interface { - MySQLAutoscalers(namespace string) MySQLAutoscalerInterface -} - -// MySQLAutoscalerInterface has methods to work with MySQLAutoscaler resources. -type MySQLAutoscalerInterface interface { - Create(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.CreateOptions) (*v1alpha1.MySQLAutoscaler, error) - Update(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MySQLAutoscaler, error) - UpdateStatus(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.MySQLAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLAutoscaler, err error) - MySQLAutoscalerExpansion -} - -// mySQLAutoscalers implements MySQLAutoscalerInterface -type mySQLAutoscalers struct { - client rest.Interface - ns string -} - -// newMySQLAutoscalers returns a MySQLAutoscalers -func newMySQLAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *mySQLAutoscalers { - return &mySQLAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mySQLAutoscaler, and returns the corresponding mySQLAutoscaler object, and an error if there is any. -func (c *mySQLAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - result = &v1alpha1.MySQLAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLAutoscalers that match those selectors. -func (c *mySQLAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MySQLAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLAutoscalers. -func (c *mySQLAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQLAutoscaler and creates it. Returns the server's representation of the mySQLAutoscaler, and an error, if there is any. -func (c *mySQLAutoscalers) Create(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.CreateOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - result = &v1alpha1.MySQLAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQLAutoscaler and updates it. Returns the server's representation of the mySQLAutoscaler, and an error, if there is any. -func (c *mySQLAutoscalers) Update(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - result = &v1alpha1.MySQLAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - Name(mySQLAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mySQLAutoscalers) UpdateStatus(ctx context.Context, mySQLAutoscaler *v1alpha1.MySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.MySQLAutoscaler, err error) { - result = &v1alpha1.MySQLAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - Name(mySQLAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQLAutoscaler and deletes it. Returns an error if one occurs. -func (c *mySQLAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQLAutoscaler. -func (c *mySQLAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLAutoscaler, err error) { - result = &v1alpha1.MySQLAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mysqlautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/perconaxtradbautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/perconaxtradbautoscaler.go deleted file mode 100644 index 99e215b1b9..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/perconaxtradbautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PerconaXtraDBAutoscalersGetter has a method to return a PerconaXtraDBAutoscalerInterface. -// A group's client should implement this interface. -type PerconaXtraDBAutoscalersGetter interface { - PerconaXtraDBAutoscalers(namespace string) PerconaXtraDBAutoscalerInterface -} - -// PerconaXtraDBAutoscalerInterface has methods to work with PerconaXtraDBAutoscaler resources. -type PerconaXtraDBAutoscalerInterface interface { - Create(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.CreateOptions) (*v1alpha1.PerconaXtraDBAutoscaler, error) - Update(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBAutoscaler, error) - UpdateStatus(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PerconaXtraDBAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PerconaXtraDBAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) - PerconaXtraDBAutoscalerExpansion -} - -// perconaXtraDBAutoscalers implements PerconaXtraDBAutoscalerInterface -type perconaXtraDBAutoscalers struct { - client rest.Interface - ns string -} - -// newPerconaXtraDBAutoscalers returns a PerconaXtraDBAutoscalers -func newPerconaXtraDBAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *perconaXtraDBAutoscalers { - return &perconaXtraDBAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the perconaXtraDBAutoscaler, and returns the corresponding perconaXtraDBAutoscaler object, and an error if there is any. -func (c *perconaXtraDBAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - result = &v1alpha1.PerconaXtraDBAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBAutoscalers that match those selectors. -func (c *perconaXtraDBAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PerconaXtraDBAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBAutoscalers. -func (c *perconaXtraDBAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a perconaXtraDBAutoscaler and creates it. Returns the server's representation of the perconaXtraDBAutoscaler, and an error, if there is any. -func (c *perconaXtraDBAutoscalers) Create(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - result = &v1alpha1.PerconaXtraDBAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a perconaXtraDBAutoscaler and updates it. Returns the server's representation of the perconaXtraDBAutoscaler, and an error, if there is any. -func (c *perconaXtraDBAutoscalers) Update(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - result = &v1alpha1.PerconaXtraDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - Name(perconaXtraDBAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *perconaXtraDBAutoscalers) UpdateStatus(ctx context.Context, perconaXtraDBAutoscaler *v1alpha1.PerconaXtraDBAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - result = &v1alpha1.PerconaXtraDBAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - Name(perconaXtraDBAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the perconaXtraDBAutoscaler and deletes it. Returns an error if one occurs. -func (c *perconaXtraDBAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *perconaXtraDBAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched perconaXtraDBAutoscaler. -func (c *perconaXtraDBAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBAutoscaler, err error) { - result = &v1alpha1.PerconaXtraDBAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("perconaxtradbautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/pgbouncerautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/pgbouncerautoscaler.go deleted file mode 100644 index 6e4b21a54e..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/pgbouncerautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PgBouncerAutoscalersGetter has a method to return a PgBouncerAutoscalerInterface. -// A group's client should implement this interface. -type PgBouncerAutoscalersGetter interface { - PgBouncerAutoscalers(namespace string) PgBouncerAutoscalerInterface -} - -// PgBouncerAutoscalerInterface has methods to work with PgBouncerAutoscaler resources. -type PgBouncerAutoscalerInterface interface { - Create(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.CreateOptions) (*v1alpha1.PgBouncerAutoscaler, error) - Update(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PgBouncerAutoscaler, error) - UpdateStatus(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PgBouncerAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PgBouncerAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PgBouncerAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerAutoscaler, err error) - PgBouncerAutoscalerExpansion -} - -// pgBouncerAutoscalers implements PgBouncerAutoscalerInterface -type pgBouncerAutoscalers struct { - client rest.Interface - ns string -} - -// newPgBouncerAutoscalers returns a PgBouncerAutoscalers -func newPgBouncerAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *pgBouncerAutoscalers { - return &pgBouncerAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the pgBouncerAutoscaler, and returns the corresponding pgBouncerAutoscaler object, and an error if there is any. -func (c *pgBouncerAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - result = &v1alpha1.PgBouncerAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PgBouncerAutoscalers that match those selectors. -func (c *pgBouncerAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PgBouncerAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested pgBouncerAutoscalers. -func (c *pgBouncerAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a pgBouncerAutoscaler and creates it. Returns the server's representation of the pgBouncerAutoscaler, and an error, if there is any. -func (c *pgBouncerAutoscalers) Create(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - result = &v1alpha1.PgBouncerAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a pgBouncerAutoscaler and updates it. Returns the server's representation of the pgBouncerAutoscaler, and an error, if there is any. -func (c *pgBouncerAutoscalers) Update(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - result = &v1alpha1.PgBouncerAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - Name(pgBouncerAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *pgBouncerAutoscalers) UpdateStatus(ctx context.Context, pgBouncerAutoscaler *v1alpha1.PgBouncerAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerAutoscaler, err error) { - result = &v1alpha1.PgBouncerAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - Name(pgBouncerAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the pgBouncerAutoscaler and deletes it. Returns an error if one occurs. -func (c *pgBouncerAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *pgBouncerAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched pgBouncerAutoscaler. -func (c *pgBouncerAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerAutoscaler, err error) { - result = &v1alpha1.PgBouncerAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("pgbouncerautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/postgresautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/postgresautoscaler.go deleted file mode 100644 index fd5ed79d96..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/postgresautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresAutoscalersGetter has a method to return a PostgresAutoscalerInterface. -// A group's client should implement this interface. -type PostgresAutoscalersGetter interface { - PostgresAutoscalers(namespace string) PostgresAutoscalerInterface -} - -// PostgresAutoscalerInterface has methods to work with PostgresAutoscaler resources. -type PostgresAutoscalerInterface interface { - Create(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.CreateOptions) (*v1alpha1.PostgresAutoscaler, error) - Update(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PostgresAutoscaler, error) - UpdateStatus(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (*v1alpha1.PostgresAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresAutoscaler, err error) - PostgresAutoscalerExpansion -} - -// postgresAutoscalers implements PostgresAutoscalerInterface -type postgresAutoscalers struct { - client rest.Interface - ns string -} - -// newPostgresAutoscalers returns a PostgresAutoscalers -func newPostgresAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *postgresAutoscalers { - return &postgresAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the postgresAutoscaler, and returns the corresponding postgresAutoscaler object, and an error if there is any. -func (c *postgresAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - result = &v1alpha1.PostgresAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PostgresAutoscalers that match those selectors. -func (c *postgresAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PostgresAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgresAutoscalers. -func (c *postgresAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("postgresautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgresAutoscaler and creates it. Returns the server's representation of the postgresAutoscaler, and an error, if there is any. -func (c *postgresAutoscalers) Create(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.CreateOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - result = &v1alpha1.PostgresAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("postgresautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgresAutoscaler and updates it. Returns the server's representation of the postgresAutoscaler, and an error, if there is any. -func (c *postgresAutoscalers) Update(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - result = &v1alpha1.PostgresAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresautoscalers"). - Name(postgresAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *postgresAutoscalers) UpdateStatus(ctx context.Context, postgresAutoscaler *v1alpha1.PostgresAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.PostgresAutoscaler, err error) { - result = &v1alpha1.PostgresAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresautoscalers"). - Name(postgresAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgresAutoscaler and deletes it. Returns an error if one occurs. -func (c *postgresAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgresAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgresAutoscaler. -func (c *postgresAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresAutoscaler, err error) { - result = &v1alpha1.PostgresAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("postgresautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/proxysqlautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/proxysqlautoscaler.go deleted file mode 100644 index e978bab1ed..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/proxysqlautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ProxySQLAutoscalersGetter has a method to return a ProxySQLAutoscalerInterface. -// A group's client should implement this interface. -type ProxySQLAutoscalersGetter interface { - ProxySQLAutoscalers(namespace string) ProxySQLAutoscalerInterface -} - -// ProxySQLAutoscalerInterface has methods to work with ProxySQLAutoscaler resources. -type ProxySQLAutoscalerInterface interface { - Create(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.CreateOptions) (*v1alpha1.ProxySQLAutoscaler, error) - Update(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ProxySQLAutoscaler, error) - UpdateStatus(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (*v1alpha1.ProxySQLAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ProxySQLAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ProxySQLAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLAutoscaler, err error) - ProxySQLAutoscalerExpansion -} - -// proxySQLAutoscalers implements ProxySQLAutoscalerInterface -type proxySQLAutoscalers struct { - client rest.Interface - ns string -} - -// newProxySQLAutoscalers returns a ProxySQLAutoscalers -func newProxySQLAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *proxySQLAutoscalers { - return &proxySQLAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the proxySQLAutoscaler, and returns the corresponding proxySQLAutoscaler object, and an error if there is any. -func (c *proxySQLAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - result = &v1alpha1.ProxySQLAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProxySQLAutoscalers that match those selectors. -func (c *proxySQLAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ProxySQLAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested proxySQLAutoscalers. -func (c *proxySQLAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a proxySQLAutoscaler and creates it. Returns the server's representation of the proxySQLAutoscaler, and an error, if there is any. -func (c *proxySQLAutoscalers) Create(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.CreateOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - result = &v1alpha1.ProxySQLAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a proxySQLAutoscaler and updates it. Returns the server's representation of the proxySQLAutoscaler, and an error, if there is any. -func (c *proxySQLAutoscalers) Update(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - result = &v1alpha1.ProxySQLAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - Name(proxySQLAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *proxySQLAutoscalers) UpdateStatus(ctx context.Context, proxySQLAutoscaler *v1alpha1.ProxySQLAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLAutoscaler, err error) { - result = &v1alpha1.ProxySQLAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - Name(proxySQLAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the proxySQLAutoscaler and deletes it. Returns an error if one occurs. -func (c *proxySQLAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *proxySQLAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched proxySQLAutoscaler. -func (c *proxySQLAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLAutoscaler, err error) { - result = &v1alpha1.ProxySQLAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("proxysqlautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/redisautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/redisautoscaler.go deleted file mode 100644 index e40fbffae2..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/redisautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisAutoscalersGetter has a method to return a RedisAutoscalerInterface. -// A group's client should implement this interface. -type RedisAutoscalersGetter interface { - RedisAutoscalers(namespace string) RedisAutoscalerInterface -} - -// RedisAutoscalerInterface has methods to work with RedisAutoscaler resources. -type RedisAutoscalerInterface interface { - Create(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.CreateOptions) (*v1alpha1.RedisAutoscaler, error) - Update(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisAutoscaler, error) - UpdateStatus(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RedisAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RedisAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisAutoscaler, err error) - RedisAutoscalerExpansion -} - -// redisAutoscalers implements RedisAutoscalerInterface -type redisAutoscalers struct { - client rest.Interface - ns string -} - -// newRedisAutoscalers returns a RedisAutoscalers -func newRedisAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *redisAutoscalers { - return &redisAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redisAutoscaler, and returns the corresponding redisAutoscaler object, and an error if there is any. -func (c *redisAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisAutoscaler, err error) { - result = &v1alpha1.RedisAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redisautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisAutoscalers that match those selectors. -func (c *redisAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RedisAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redisautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisAutoscalers. -func (c *redisAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redisautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisAutoscaler and creates it. Returns the server's representation of the redisAutoscaler, and an error, if there is any. -func (c *redisAutoscalers) Create(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.CreateOptions) (result *v1alpha1.RedisAutoscaler, err error) { - result = &v1alpha1.RedisAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redisautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisAutoscaler and updates it. Returns the server's representation of the redisAutoscaler, and an error, if there is any. -func (c *redisAutoscalers) Update(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisAutoscaler, err error) { - result = &v1alpha1.RedisAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redisautoscalers"). - Name(redisAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redisAutoscalers) UpdateStatus(ctx context.Context, redisAutoscaler *v1alpha1.RedisAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisAutoscaler, err error) { - result = &v1alpha1.RedisAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redisautoscalers"). - Name(redisAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisAutoscaler and deletes it. Returns an error if one occurs. -func (c *redisAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redisautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redisautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisAutoscaler. -func (c *redisAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisAutoscaler, err error) { - result = &v1alpha1.RedisAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redisautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/autoscaling/v1alpha1/redissentinelautoscaler.go b/client/clientset/versioned/typed/autoscaling/v1alpha1/redissentinelautoscaler.go deleted file mode 100644 index d7be4476cb..0000000000 --- a/client/clientset/versioned/typed/autoscaling/v1alpha1/redissentinelautoscaler.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisSentinelAutoscalersGetter has a method to return a RedisSentinelAutoscalerInterface. -// A group's client should implement this interface. -type RedisSentinelAutoscalersGetter interface { - RedisSentinelAutoscalers(namespace string) RedisSentinelAutoscalerInterface -} - -// RedisSentinelAutoscalerInterface has methods to work with RedisSentinelAutoscaler resources. -type RedisSentinelAutoscalerInterface interface { - Create(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.CreateOptions) (*v1alpha1.RedisSentinelAutoscaler, error) - Update(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelAutoscaler, error) - UpdateStatus(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelAutoscaler, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RedisSentinelAutoscaler, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RedisSentinelAutoscalerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelAutoscaler, err error) - RedisSentinelAutoscalerExpansion -} - -// redisSentinelAutoscalers implements RedisSentinelAutoscalerInterface -type redisSentinelAutoscalers struct { - client rest.Interface - ns string -} - -// newRedisSentinelAutoscalers returns a RedisSentinelAutoscalers -func newRedisSentinelAutoscalers(c *AutoscalingV1alpha1Client, namespace string) *redisSentinelAutoscalers { - return &redisSentinelAutoscalers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redisSentinelAutoscaler, and returns the corresponding redisSentinelAutoscaler object, and an error if there is any. -func (c *redisSentinelAutoscalers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - result = &v1alpha1.RedisSentinelAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisSentinelAutoscalers that match those selectors. -func (c *redisSentinelAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisSentinelAutoscalerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RedisSentinelAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisSentinelAutoscalers. -func (c *redisSentinelAutoscalers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisSentinelAutoscaler and creates it. Returns the server's representation of the redisSentinelAutoscaler, and an error, if there is any. -func (c *redisSentinelAutoscalers) Create(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.CreateOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - result = &v1alpha1.RedisSentinelAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelAutoscaler). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisSentinelAutoscaler and updates it. Returns the server's representation of the redisSentinelAutoscaler, and an error, if there is any. -func (c *redisSentinelAutoscalers) Update(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - result = &v1alpha1.RedisSentinelAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - Name(redisSentinelAutoscaler.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelAutoscaler). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redisSentinelAutoscalers) UpdateStatus(ctx context.Context, redisSentinelAutoscaler *v1alpha1.RedisSentinelAutoscaler, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - result = &v1alpha1.RedisSentinelAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - Name(redisSentinelAutoscaler.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelAutoscaler). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisSentinelAutoscaler and deletes it. Returns an error if one occurs. -func (c *redisSentinelAutoscalers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisSentinelAutoscalers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisSentinelAutoscaler. -func (c *redisSentinelAutoscalers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelAutoscaler, err error) { - result = &v1alpha1.RedisSentinelAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redissentinelautoscalers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/catalog_client.go b/client/clientset/versioned/typed/catalog/v1alpha1/catalog_client.go deleted file mode 100644 index d4836c50a3..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/catalog_client.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type CatalogV1alpha1Interface interface { - RESTClient() rest.Interface - DruidVersionsGetter - ElasticsearchVersionsGetter - EtcdVersionsGetter - KafkaConnectorVersionsGetter - KafkaVersionsGetter - MariaDBVersionsGetter - MemcachedVersionsGetter - MongoDBVersionsGetter - MySQLVersionsGetter - PerconaXtraDBVersionsGetter - PgBouncerVersionsGetter - PostgresVersionsGetter - ProxySQLVersionsGetter - RedisVersionsGetter - SinglestoreVersionsGetter -} - -// CatalogV1alpha1Client is used to interact with features provided by the catalog.kubedb.com group. -type CatalogV1alpha1Client struct { - restClient rest.Interface -} - -func (c *CatalogV1alpha1Client) DruidVersions() DruidVersionInterface { - return newDruidVersions(c) -} - -func (c *CatalogV1alpha1Client) ElasticsearchVersions() ElasticsearchVersionInterface { - return newElasticsearchVersions(c) -} - -func (c *CatalogV1alpha1Client) EtcdVersions() EtcdVersionInterface { - return newEtcdVersions(c) -} - -func (c *CatalogV1alpha1Client) KafkaConnectorVersions() KafkaConnectorVersionInterface { - return newKafkaConnectorVersions(c) -} - -func (c *CatalogV1alpha1Client) KafkaVersions() KafkaVersionInterface { - return newKafkaVersions(c) -} - -func (c *CatalogV1alpha1Client) MariaDBVersions() MariaDBVersionInterface { - return newMariaDBVersions(c) -} - -func (c *CatalogV1alpha1Client) MemcachedVersions() MemcachedVersionInterface { - return newMemcachedVersions(c) -} - -func (c *CatalogV1alpha1Client) MongoDBVersions() MongoDBVersionInterface { - return newMongoDBVersions(c) -} - -func (c *CatalogV1alpha1Client) MySQLVersions() MySQLVersionInterface { - return newMySQLVersions(c) -} - -func (c *CatalogV1alpha1Client) PerconaXtraDBVersions() PerconaXtraDBVersionInterface { - return newPerconaXtraDBVersions(c) -} - -func (c *CatalogV1alpha1Client) PgBouncerVersions() PgBouncerVersionInterface { - return newPgBouncerVersions(c) -} - -func (c *CatalogV1alpha1Client) PostgresVersions() PostgresVersionInterface { - return newPostgresVersions(c) -} - -func (c *CatalogV1alpha1Client) ProxySQLVersions() ProxySQLVersionInterface { - return newProxySQLVersions(c) -} - -func (c *CatalogV1alpha1Client) RedisVersions() RedisVersionInterface { - return newRedisVersions(c) -} - -func (c *CatalogV1alpha1Client) SinglestoreVersions() SinglestoreVersionInterface { - return newSinglestoreVersions(c) -} - -// NewForConfig creates a new CatalogV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*CatalogV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new CatalogV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*CatalogV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &CatalogV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new CatalogV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CatalogV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new CatalogV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *CatalogV1alpha1Client { - return &CatalogV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *CatalogV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/doc.go b/client/clientset/versioned/typed/catalog/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/druidversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/druidversion.go deleted file mode 100644 index 316692b9a8..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/druidversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// DruidVersionsGetter has a method to return a DruidVersionInterface. -// A group's client should implement this interface. -type DruidVersionsGetter interface { - DruidVersions() DruidVersionInterface -} - -// DruidVersionInterface has methods to work with DruidVersion resources. -type DruidVersionInterface interface { - Create(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.CreateOptions) (*v1alpha1.DruidVersion, error) - Update(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.UpdateOptions) (*v1alpha1.DruidVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.DruidVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.DruidVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DruidVersion, err error) - DruidVersionExpansion -} - -// druidVersions implements DruidVersionInterface -type druidVersions struct { - client rest.Interface -} - -// newDruidVersions returns a DruidVersions -func newDruidVersions(c *CatalogV1alpha1Client) *druidVersions { - return &druidVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the druidVersion, and returns the corresponding druidVersion object, and an error if there is any. -func (c *druidVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.DruidVersion, err error) { - result = &v1alpha1.DruidVersion{} - err = c.client.Get(). - Resource("druidversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of DruidVersions that match those selectors. -func (c *druidVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DruidVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.DruidVersionList{} - err = c.client.Get(). - Resource("druidversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested druidVersions. -func (c *druidVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("druidversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a druidVersion and creates it. Returns the server's representation of the druidVersion, and an error, if there is any. -func (c *druidVersions) Create(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.CreateOptions) (result *v1alpha1.DruidVersion, err error) { - result = &v1alpha1.DruidVersion{} - err = c.client.Post(). - Resource("druidversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(druidVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a druidVersion and updates it. Returns the server's representation of the druidVersion, and an error, if there is any. -func (c *druidVersions) Update(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.UpdateOptions) (result *v1alpha1.DruidVersion, err error) { - result = &v1alpha1.DruidVersion{} - err = c.client.Put(). - Resource("druidversions"). - Name(druidVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(druidVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the druidVersion and deletes it. Returns an error if one occurs. -func (c *druidVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("druidversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *druidVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("druidversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched druidVersion. -func (c *druidVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DruidVersion, err error) { - result = &v1alpha1.DruidVersion{} - err = c.client.Patch(pt). - Resource("druidversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/elasticsearchversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/elasticsearchversion.go deleted file mode 100644 index 6cc5ca77ed..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/elasticsearchversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ElasticsearchVersionsGetter has a method to return a ElasticsearchVersionInterface. -// A group's client should implement this interface. -type ElasticsearchVersionsGetter interface { - ElasticsearchVersions() ElasticsearchVersionInterface -} - -// ElasticsearchVersionInterface has methods to work with ElasticsearchVersion resources. -type ElasticsearchVersionInterface interface { - Create(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.CreateOptions) (*v1alpha1.ElasticsearchVersion, error) - Update(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ElasticsearchVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ElasticsearchVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchVersion, err error) - ElasticsearchVersionExpansion -} - -// elasticsearchVersions implements ElasticsearchVersionInterface -type elasticsearchVersions struct { - client rest.Interface -} - -// newElasticsearchVersions returns a ElasticsearchVersions -func newElasticsearchVersions(c *CatalogV1alpha1Client) *elasticsearchVersions { - return &elasticsearchVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the elasticsearchVersion, and returns the corresponding elasticsearchVersion object, and an error if there is any. -func (c *elasticsearchVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - result = &v1alpha1.ElasticsearchVersion{} - err = c.client.Get(). - Resource("elasticsearchversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ElasticsearchVersions that match those selectors. -func (c *elasticsearchVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ElasticsearchVersionList{} - err = c.client.Get(). - Resource("elasticsearchversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested elasticsearchVersions. -func (c *elasticsearchVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("elasticsearchversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a elasticsearchVersion and creates it. Returns the server's representation of the elasticsearchVersion, and an error, if there is any. -func (c *elasticsearchVersions) Create(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - result = &v1alpha1.ElasticsearchVersion{} - err = c.client.Post(). - Resource("elasticsearchversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a elasticsearchVersion and updates it. Returns the server's representation of the elasticsearchVersion, and an error, if there is any. -func (c *elasticsearchVersions) Update(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - result = &v1alpha1.ElasticsearchVersion{} - err = c.client.Put(). - Resource("elasticsearchversions"). - Name(elasticsearchVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the elasticsearchVersion and deletes it. Returns an error if one occurs. -func (c *elasticsearchVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("elasticsearchversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *elasticsearchVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("elasticsearchversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched elasticsearchVersion. -func (c *elasticsearchVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchVersion, err error) { - result = &v1alpha1.ElasticsearchVersion{} - err = c.client.Patch(pt). - Resource("elasticsearchversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/etcdversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/etcdversion.go deleted file mode 100644 index 7b2f068c1c..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/etcdversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// EtcdVersionsGetter has a method to return a EtcdVersionInterface. -// A group's client should implement this interface. -type EtcdVersionsGetter interface { - EtcdVersions() EtcdVersionInterface -} - -// EtcdVersionInterface has methods to work with EtcdVersion resources. -type EtcdVersionInterface interface { - Create(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.CreateOptions) (*v1alpha1.EtcdVersion, error) - Update(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.UpdateOptions) (*v1alpha1.EtcdVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.EtcdVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.EtcdVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdVersion, err error) - EtcdVersionExpansion -} - -// etcdVersions implements EtcdVersionInterface -type etcdVersions struct { - client rest.Interface -} - -// newEtcdVersions returns a EtcdVersions -func newEtcdVersions(c *CatalogV1alpha1Client) *etcdVersions { - return &etcdVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the etcdVersion, and returns the corresponding etcdVersion object, and an error if there is any. -func (c *etcdVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdVersion, err error) { - result = &v1alpha1.EtcdVersion{} - err = c.client.Get(). - Resource("etcdversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of EtcdVersions that match those selectors. -func (c *etcdVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.EtcdVersionList{} - err = c.client.Get(). - Resource("etcdversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested etcdVersions. -func (c *etcdVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("etcdversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a etcdVersion and creates it. Returns the server's representation of the etcdVersion, and an error, if there is any. -func (c *etcdVersions) Create(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.CreateOptions) (result *v1alpha1.EtcdVersion, err error) { - result = &v1alpha1.EtcdVersion{} - err = c.client.Post(). - Resource("etcdversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a etcdVersion and updates it. Returns the server's representation of the etcdVersion, and an error, if there is any. -func (c *etcdVersions) Update(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.UpdateOptions) (result *v1alpha1.EtcdVersion, err error) { - result = &v1alpha1.EtcdVersion{} - err = c.client.Put(). - Resource("etcdversions"). - Name(etcdVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the etcdVersion and deletes it. Returns an error if one occurs. -func (c *etcdVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("etcdversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *etcdVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("etcdversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched etcdVersion. -func (c *etcdVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdVersion, err error) { - result = &v1alpha1.EtcdVersion{} - err = c.client.Patch(pt). - Resource("etcdversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_catalog_client.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_catalog_client.go deleted file mode 100644 index cc6a9fc487..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_catalog_client.go +++ /dev/null @@ -1,97 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/catalog/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeCatalogV1alpha1 struct { - *testing.Fake -} - -func (c *FakeCatalogV1alpha1) DruidVersions() v1alpha1.DruidVersionInterface { - return &FakeDruidVersions{c} -} - -func (c *FakeCatalogV1alpha1) ElasticsearchVersions() v1alpha1.ElasticsearchVersionInterface { - return &FakeElasticsearchVersions{c} -} - -func (c *FakeCatalogV1alpha1) EtcdVersions() v1alpha1.EtcdVersionInterface { - return &FakeEtcdVersions{c} -} - -func (c *FakeCatalogV1alpha1) KafkaConnectorVersions() v1alpha1.KafkaConnectorVersionInterface { - return &FakeKafkaConnectorVersions{c} -} - -func (c *FakeCatalogV1alpha1) KafkaVersions() v1alpha1.KafkaVersionInterface { - return &FakeKafkaVersions{c} -} - -func (c *FakeCatalogV1alpha1) MariaDBVersions() v1alpha1.MariaDBVersionInterface { - return &FakeMariaDBVersions{c} -} - -func (c *FakeCatalogV1alpha1) MemcachedVersions() v1alpha1.MemcachedVersionInterface { - return &FakeMemcachedVersions{c} -} - -func (c *FakeCatalogV1alpha1) MongoDBVersions() v1alpha1.MongoDBVersionInterface { - return &FakeMongoDBVersions{c} -} - -func (c *FakeCatalogV1alpha1) MySQLVersions() v1alpha1.MySQLVersionInterface { - return &FakeMySQLVersions{c} -} - -func (c *FakeCatalogV1alpha1) PerconaXtraDBVersions() v1alpha1.PerconaXtraDBVersionInterface { - return &FakePerconaXtraDBVersions{c} -} - -func (c *FakeCatalogV1alpha1) PgBouncerVersions() v1alpha1.PgBouncerVersionInterface { - return &FakePgBouncerVersions{c} -} - -func (c *FakeCatalogV1alpha1) PostgresVersions() v1alpha1.PostgresVersionInterface { - return &FakePostgresVersions{c} -} - -func (c *FakeCatalogV1alpha1) ProxySQLVersions() v1alpha1.ProxySQLVersionInterface { - return &FakeProxySQLVersions{c} -} - -func (c *FakeCatalogV1alpha1) RedisVersions() v1alpha1.RedisVersionInterface { - return &FakeRedisVersions{c} -} - -func (c *FakeCatalogV1alpha1) SinglestoreVersions() v1alpha1.SinglestoreVersionInterface { - return &FakeSinglestoreVersions{c} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeCatalogV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_druidversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_druidversion.go deleted file mode 100644 index 84ff093113..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_druidversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeDruidVersions implements DruidVersionInterface -type FakeDruidVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var druidversionsResource = v1alpha1.SchemeGroupVersion.WithResource("druidversions") - -var druidversionsKind = v1alpha1.SchemeGroupVersion.WithKind("DruidVersion") - -// Get takes name of the druidVersion, and returns the corresponding druidVersion object, and an error if there is any. -func (c *FakeDruidVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.DruidVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(druidversionsResource, name), &v1alpha1.DruidVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.DruidVersion), err -} - -// List takes label and field selectors, and returns the list of DruidVersions that match those selectors. -func (c *FakeDruidVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DruidVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(druidversionsResource, druidversionsKind, opts), &v1alpha1.DruidVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.DruidVersionList{ListMeta: obj.(*v1alpha1.DruidVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.DruidVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested druidVersions. -func (c *FakeDruidVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(druidversionsResource, opts)) -} - -// Create takes the representation of a druidVersion and creates it. Returns the server's representation of the druidVersion, and an error, if there is any. -func (c *FakeDruidVersions) Create(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.CreateOptions) (result *v1alpha1.DruidVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(druidversionsResource, druidVersion), &v1alpha1.DruidVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.DruidVersion), err -} - -// Update takes the representation of a druidVersion and updates it. Returns the server's representation of the druidVersion, and an error, if there is any. -func (c *FakeDruidVersions) Update(ctx context.Context, druidVersion *v1alpha1.DruidVersion, opts v1.UpdateOptions) (result *v1alpha1.DruidVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(druidversionsResource, druidVersion), &v1alpha1.DruidVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.DruidVersion), err -} - -// Delete takes name of the druidVersion and deletes it. Returns an error if one occurs. -func (c *FakeDruidVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(druidversionsResource, name, opts), &v1alpha1.DruidVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDruidVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(druidversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.DruidVersionList{}) - return err -} - -// Patch applies the patch and returns the patched druidVersion. -func (c *FakeDruidVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.DruidVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(druidversionsResource, name, pt, data, subresources...), &v1alpha1.DruidVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.DruidVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_elasticsearchversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_elasticsearchversion.go deleted file mode 100644 index eac4ec9584..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_elasticsearchversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeElasticsearchVersions implements ElasticsearchVersionInterface -type FakeElasticsearchVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var elasticsearchversionsResource = v1alpha1.SchemeGroupVersion.WithResource("elasticsearchversions") - -var elasticsearchversionsKind = v1alpha1.SchemeGroupVersion.WithKind("ElasticsearchVersion") - -// Get takes name of the elasticsearchVersion, and returns the corresponding elasticsearchVersion object, and an error if there is any. -func (c *FakeElasticsearchVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(elasticsearchversionsResource, name), &v1alpha1.ElasticsearchVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchVersion), err -} - -// List takes label and field selectors, and returns the list of ElasticsearchVersions that match those selectors. -func (c *FakeElasticsearchVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(elasticsearchversionsResource, elasticsearchversionsKind, opts), &v1alpha1.ElasticsearchVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ElasticsearchVersionList{ListMeta: obj.(*v1alpha1.ElasticsearchVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.ElasticsearchVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested elasticsearchVersions. -func (c *FakeElasticsearchVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(elasticsearchversionsResource, opts)) -} - -// Create takes the representation of a elasticsearchVersion and creates it. Returns the server's representation of the elasticsearchVersion, and an error, if there is any. -func (c *FakeElasticsearchVersions) Create(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(elasticsearchversionsResource, elasticsearchVersion), &v1alpha1.ElasticsearchVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchVersion), err -} - -// Update takes the representation of a elasticsearchVersion and updates it. Returns the server's representation of the elasticsearchVersion, and an error, if there is any. -func (c *FakeElasticsearchVersions) Update(ctx context.Context, elasticsearchVersion *v1alpha1.ElasticsearchVersion, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(elasticsearchversionsResource, elasticsearchVersion), &v1alpha1.ElasticsearchVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchVersion), err -} - -// Delete takes name of the elasticsearchVersion and deletes it. Returns an error if one occurs. -func (c *FakeElasticsearchVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(elasticsearchversionsResource, name, opts), &v1alpha1.ElasticsearchVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeElasticsearchVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(elasticsearchversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ElasticsearchVersionList{}) - return err -} - -// Patch applies the patch and returns the patched elasticsearchVersion. -func (c *FakeElasticsearchVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(elasticsearchversionsResource, name, pt, data, subresources...), &v1alpha1.ElasticsearchVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_etcdversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_etcdversion.go deleted file mode 100644 index 1e5654208d..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_etcdversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeEtcdVersions implements EtcdVersionInterface -type FakeEtcdVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var etcdversionsResource = v1alpha1.SchemeGroupVersion.WithResource("etcdversions") - -var etcdversionsKind = v1alpha1.SchemeGroupVersion.WithKind("EtcdVersion") - -// Get takes name of the etcdVersion, and returns the corresponding etcdVersion object, and an error if there is any. -func (c *FakeEtcdVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(etcdversionsResource, name), &v1alpha1.EtcdVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdVersion), err -} - -// List takes label and field selectors, and returns the list of EtcdVersions that match those selectors. -func (c *FakeEtcdVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(etcdversionsResource, etcdversionsKind, opts), &v1alpha1.EtcdVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.EtcdVersionList{ListMeta: obj.(*v1alpha1.EtcdVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.EtcdVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested etcdVersions. -func (c *FakeEtcdVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(etcdversionsResource, opts)) -} - -// Create takes the representation of a etcdVersion and creates it. Returns the server's representation of the etcdVersion, and an error, if there is any. -func (c *FakeEtcdVersions) Create(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.CreateOptions) (result *v1alpha1.EtcdVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(etcdversionsResource, etcdVersion), &v1alpha1.EtcdVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdVersion), err -} - -// Update takes the representation of a etcdVersion and updates it. Returns the server's representation of the etcdVersion, and an error, if there is any. -func (c *FakeEtcdVersions) Update(ctx context.Context, etcdVersion *v1alpha1.EtcdVersion, opts v1.UpdateOptions) (result *v1alpha1.EtcdVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(etcdversionsResource, etcdVersion), &v1alpha1.EtcdVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdVersion), err -} - -// Delete takes name of the etcdVersion and deletes it. Returns an error if one occurs. -func (c *FakeEtcdVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(etcdversionsResource, name, opts), &v1alpha1.EtcdVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEtcdVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(etcdversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.EtcdVersionList{}) - return err -} - -// Patch applies the patch and returns the patched etcdVersion. -func (c *FakeEtcdVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(etcdversionsResource, name, pt, data, subresources...), &v1alpha1.EtcdVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaconnectorversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaconnectorversion.go deleted file mode 100644 index 52aae94c49..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaconnectorversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeKafkaConnectorVersions implements KafkaConnectorVersionInterface -type FakeKafkaConnectorVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var kafkaconnectorversionsResource = v1alpha1.SchemeGroupVersion.WithResource("kafkaconnectorversions") - -var kafkaconnectorversionsKind = v1alpha1.SchemeGroupVersion.WithKind("KafkaConnectorVersion") - -// Get takes name of the kafkaConnectorVersion, and returns the corresponding kafkaConnectorVersion object, and an error if there is any. -func (c *FakeKafkaConnectorVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(kafkaconnectorversionsResource, name), &v1alpha1.KafkaConnectorVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaConnectorVersion), err -} - -// List takes label and field selectors, and returns the list of KafkaConnectorVersions that match those selectors. -func (c *FakeKafkaConnectorVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaConnectorVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(kafkaconnectorversionsResource, kafkaconnectorversionsKind, opts), &v1alpha1.KafkaConnectorVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.KafkaConnectorVersionList{ListMeta: obj.(*v1alpha1.KafkaConnectorVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.KafkaConnectorVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested kafkaConnectorVersions. -func (c *FakeKafkaConnectorVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(kafkaconnectorversionsResource, opts)) -} - -// Create takes the representation of a kafkaConnectorVersion and creates it. Returns the server's representation of the kafkaConnectorVersion, and an error, if there is any. -func (c *FakeKafkaConnectorVersions) Create(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.CreateOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(kafkaconnectorversionsResource, kafkaConnectorVersion), &v1alpha1.KafkaConnectorVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaConnectorVersion), err -} - -// Update takes the representation of a kafkaConnectorVersion and updates it. Returns the server's representation of the kafkaConnectorVersion, and an error, if there is any. -func (c *FakeKafkaConnectorVersions) Update(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.UpdateOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(kafkaconnectorversionsResource, kafkaConnectorVersion), &v1alpha1.KafkaConnectorVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaConnectorVersion), err -} - -// Delete takes name of the kafkaConnectorVersion and deletes it. Returns an error if one occurs. -func (c *FakeKafkaConnectorVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(kafkaconnectorversionsResource, name, opts), &v1alpha1.KafkaConnectorVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeKafkaConnectorVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(kafkaconnectorversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.KafkaConnectorVersionList{}) - return err -} - -// Patch applies the patch and returns the patched kafkaConnectorVersion. -func (c *FakeKafkaConnectorVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaConnectorVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(kafkaconnectorversionsResource, name, pt, data, subresources...), &v1alpha1.KafkaConnectorVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaConnectorVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaversion.go deleted file mode 100644 index 69ff23841a..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_kafkaversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeKafkaVersions implements KafkaVersionInterface -type FakeKafkaVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var kafkaversionsResource = v1alpha1.SchemeGroupVersion.WithResource("kafkaversions") - -var kafkaversionsKind = v1alpha1.SchemeGroupVersion.WithKind("KafkaVersion") - -// Get takes name of the kafkaVersion, and returns the corresponding kafkaVersion object, and an error if there is any. -func (c *FakeKafkaVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(kafkaversionsResource, name), &v1alpha1.KafkaVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaVersion), err -} - -// List takes label and field selectors, and returns the list of KafkaVersions that match those selectors. -func (c *FakeKafkaVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(kafkaversionsResource, kafkaversionsKind, opts), &v1alpha1.KafkaVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.KafkaVersionList{ListMeta: obj.(*v1alpha1.KafkaVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.KafkaVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested kafkaVersions. -func (c *FakeKafkaVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(kafkaversionsResource, opts)) -} - -// Create takes the representation of a kafkaVersion and creates it. Returns the server's representation of the kafkaVersion, and an error, if there is any. -func (c *FakeKafkaVersions) Create(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.CreateOptions) (result *v1alpha1.KafkaVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(kafkaversionsResource, kafkaVersion), &v1alpha1.KafkaVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaVersion), err -} - -// Update takes the representation of a kafkaVersion and updates it. Returns the server's representation of the kafkaVersion, and an error, if there is any. -func (c *FakeKafkaVersions) Update(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.UpdateOptions) (result *v1alpha1.KafkaVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(kafkaversionsResource, kafkaVersion), &v1alpha1.KafkaVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaVersion), err -} - -// Delete takes name of the kafkaVersion and deletes it. Returns an error if one occurs. -func (c *FakeKafkaVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(kafkaversionsResource, name, opts), &v1alpha1.KafkaVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeKafkaVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(kafkaversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.KafkaVersionList{}) - return err -} - -// Patch applies the patch and returns the patched kafkaVersion. -func (c *FakeKafkaVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(kafkaversionsResource, name, pt, data, subresources...), &v1alpha1.KafkaVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mariadbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mariadbversion.go deleted file mode 100644 index b63d0295ff..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mariadbversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMariaDBVersions implements MariaDBVersionInterface -type FakeMariaDBVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var mariadbversionsResource = v1alpha1.SchemeGroupVersion.WithResource("mariadbversions") - -var mariadbversionsKind = v1alpha1.SchemeGroupVersion.WithKind("MariaDBVersion") - -// Get takes name of the mariaDBVersion, and returns the corresponding mariaDBVersion object, and an error if there is any. -func (c *FakeMariaDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(mariadbversionsResource, name), &v1alpha1.MariaDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBVersion), err -} - -// List takes label and field selectors, and returns the list of MariaDBVersions that match those selectors. -func (c *FakeMariaDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(mariadbversionsResource, mariadbversionsKind, opts), &v1alpha1.MariaDBVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MariaDBVersionList{ListMeta: obj.(*v1alpha1.MariaDBVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.MariaDBVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mariaDBVersions. -func (c *FakeMariaDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(mariadbversionsResource, opts)) -} - -// Create takes the representation of a mariaDBVersion and creates it. Returns the server's representation of the mariaDBVersion, and an error, if there is any. -func (c *FakeMariaDBVersions) Create(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.CreateOptions) (result *v1alpha1.MariaDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(mariadbversionsResource, mariaDBVersion), &v1alpha1.MariaDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBVersion), err -} - -// Update takes the representation of a mariaDBVersion and updates it. Returns the server's representation of the mariaDBVersion, and an error, if there is any. -func (c *FakeMariaDBVersions) Update(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.UpdateOptions) (result *v1alpha1.MariaDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(mariadbversionsResource, mariaDBVersion), &v1alpha1.MariaDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBVersion), err -} - -// Delete takes name of the mariaDBVersion and deletes it. Returns an error if one occurs. -func (c *FakeMariaDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(mariadbversionsResource, name, opts), &v1alpha1.MariaDBVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMariaDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(mariadbversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MariaDBVersionList{}) - return err -} - -// Patch applies the patch and returns the patched mariaDBVersion. -func (c *FakeMariaDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(mariadbversionsResource, name, pt, data, subresources...), &v1alpha1.MariaDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_memcachedversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_memcachedversion.go deleted file mode 100644 index fd0f15e52b..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_memcachedversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMemcachedVersions implements MemcachedVersionInterface -type FakeMemcachedVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var memcachedversionsResource = v1alpha1.SchemeGroupVersion.WithResource("memcachedversions") - -var memcachedversionsKind = v1alpha1.SchemeGroupVersion.WithKind("MemcachedVersion") - -// Get takes name of the memcachedVersion, and returns the corresponding memcachedVersion object, and an error if there is any. -func (c *FakeMemcachedVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(memcachedversionsResource, name), &v1alpha1.MemcachedVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedVersion), err -} - -// List takes label and field selectors, and returns the list of MemcachedVersions that match those selectors. -func (c *FakeMemcachedVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(memcachedversionsResource, memcachedversionsKind, opts), &v1alpha1.MemcachedVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MemcachedVersionList{ListMeta: obj.(*v1alpha1.MemcachedVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.MemcachedVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested memcachedVersions. -func (c *FakeMemcachedVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(memcachedversionsResource, opts)) -} - -// Create takes the representation of a memcachedVersion and creates it. Returns the server's representation of the memcachedVersion, and an error, if there is any. -func (c *FakeMemcachedVersions) Create(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.CreateOptions) (result *v1alpha1.MemcachedVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(memcachedversionsResource, memcachedVersion), &v1alpha1.MemcachedVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedVersion), err -} - -// Update takes the representation of a memcachedVersion and updates it. Returns the server's representation of the memcachedVersion, and an error, if there is any. -func (c *FakeMemcachedVersions) Update(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.UpdateOptions) (result *v1alpha1.MemcachedVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(memcachedversionsResource, memcachedVersion), &v1alpha1.MemcachedVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedVersion), err -} - -// Delete takes name of the memcachedVersion and deletes it. Returns an error if one occurs. -func (c *FakeMemcachedVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(memcachedversionsResource, name, opts), &v1alpha1.MemcachedVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMemcachedVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(memcachedversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MemcachedVersionList{}) - return err -} - -// Patch applies the patch and returns the patched memcachedVersion. -func (c *FakeMemcachedVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(memcachedversionsResource, name, pt, data, subresources...), &v1alpha1.MemcachedVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mongodbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mongodbversion.go deleted file mode 100644 index 4391e42116..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mongodbversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBVersions implements MongoDBVersionInterface -type FakeMongoDBVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var mongodbversionsResource = v1alpha1.SchemeGroupVersion.WithResource("mongodbversions") - -var mongodbversionsKind = v1alpha1.SchemeGroupVersion.WithKind("MongoDBVersion") - -// Get takes name of the mongoDBVersion, and returns the corresponding mongoDBVersion object, and an error if there is any. -func (c *FakeMongoDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(mongodbversionsResource, name), &v1alpha1.MongoDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBVersion), err -} - -// List takes label and field selectors, and returns the list of MongoDBVersions that match those selectors. -func (c *FakeMongoDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(mongodbversionsResource, mongodbversionsKind, opts), &v1alpha1.MongoDBVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MongoDBVersionList{ListMeta: obj.(*v1alpha1.MongoDBVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.MongoDBVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBVersions. -func (c *FakeMongoDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(mongodbversionsResource, opts)) -} - -// Create takes the representation of a mongoDBVersion and creates it. Returns the server's representation of the mongoDBVersion, and an error, if there is any. -func (c *FakeMongoDBVersions) Create(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.CreateOptions) (result *v1alpha1.MongoDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(mongodbversionsResource, mongoDBVersion), &v1alpha1.MongoDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBVersion), err -} - -// Update takes the representation of a mongoDBVersion and updates it. Returns the server's representation of the mongoDBVersion, and an error, if there is any. -func (c *FakeMongoDBVersions) Update(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.UpdateOptions) (result *v1alpha1.MongoDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(mongodbversionsResource, mongoDBVersion), &v1alpha1.MongoDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBVersion), err -} - -// Delete takes name of the mongoDBVersion and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(mongodbversionsResource, name, opts), &v1alpha1.MongoDBVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(mongodbversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MongoDBVersionList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDBVersion. -func (c *FakeMongoDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(mongodbversionsResource, name, pt, data, subresources...), &v1alpha1.MongoDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mysqlversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mysqlversion.go deleted file mode 100644 index d158774727..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_mysqlversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLVersions implements MySQLVersionInterface -type FakeMySQLVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var mysqlversionsResource = v1alpha1.SchemeGroupVersion.WithResource("mysqlversions") - -var mysqlversionsKind = v1alpha1.SchemeGroupVersion.WithKind("MySQLVersion") - -// Get takes name of the mySQLVersion, and returns the corresponding mySQLVersion object, and an error if there is any. -func (c *FakeMySQLVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(mysqlversionsResource, name), &v1alpha1.MySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLVersion), err -} - -// List takes label and field selectors, and returns the list of MySQLVersions that match those selectors. -func (c *FakeMySQLVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(mysqlversionsResource, mysqlversionsKind, opts), &v1alpha1.MySQLVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MySQLVersionList{ListMeta: obj.(*v1alpha1.MySQLVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.MySQLVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLVersions. -func (c *FakeMySQLVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(mysqlversionsResource, opts)) -} - -// Create takes the representation of a mySQLVersion and creates it. Returns the server's representation of the mySQLVersion, and an error, if there is any. -func (c *FakeMySQLVersions) Create(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.CreateOptions) (result *v1alpha1.MySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(mysqlversionsResource, mySQLVersion), &v1alpha1.MySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLVersion), err -} - -// Update takes the representation of a mySQLVersion and updates it. Returns the server's representation of the mySQLVersion, and an error, if there is any. -func (c *FakeMySQLVersions) Update(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.UpdateOptions) (result *v1alpha1.MySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(mysqlversionsResource, mySQLVersion), &v1alpha1.MySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLVersion), err -} - -// Delete takes name of the mySQLVersion and deletes it. Returns an error if one occurs. -func (c *FakeMySQLVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(mysqlversionsResource, name, opts), &v1alpha1.MySQLVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(mysqlversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MySQLVersionList{}) - return err -} - -// Patch applies the patch and returns the patched mySQLVersion. -func (c *FakeMySQLVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(mysqlversionsResource, name, pt, data, subresources...), &v1alpha1.MySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_perconaxtradbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_perconaxtradbversion.go deleted file mode 100644 index 584b61af8b..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_perconaxtradbversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePerconaXtraDBVersions implements PerconaXtraDBVersionInterface -type FakePerconaXtraDBVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var perconaxtradbversionsResource = v1alpha1.SchemeGroupVersion.WithResource("perconaxtradbversions") - -var perconaxtradbversionsKind = v1alpha1.SchemeGroupVersion.WithKind("PerconaXtraDBVersion") - -// Get takes name of the perconaXtraDBVersion, and returns the corresponding perconaXtraDBVersion object, and an error if there is any. -func (c *FakePerconaXtraDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(perconaxtradbversionsResource, name), &v1alpha1.PerconaXtraDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBVersion), err -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBVersions that match those selectors. -func (c *FakePerconaXtraDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(perconaxtradbversionsResource, perconaxtradbversionsKind, opts), &v1alpha1.PerconaXtraDBVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PerconaXtraDBVersionList{ListMeta: obj.(*v1alpha1.PerconaXtraDBVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.PerconaXtraDBVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBVersions. -func (c *FakePerconaXtraDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(perconaxtradbversionsResource, opts)) -} - -// Create takes the representation of a perconaXtraDBVersion and creates it. Returns the server's representation of the perconaXtraDBVersion, and an error, if there is any. -func (c *FakePerconaXtraDBVersions) Create(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(perconaxtradbversionsResource, perconaXtraDBVersion), &v1alpha1.PerconaXtraDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBVersion), err -} - -// Update takes the representation of a perconaXtraDBVersion and updates it. Returns the server's representation of the perconaXtraDBVersion, and an error, if there is any. -func (c *FakePerconaXtraDBVersions) Update(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(perconaxtradbversionsResource, perconaXtraDBVersion), &v1alpha1.PerconaXtraDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBVersion), err -} - -// Delete takes name of the perconaXtraDBVersion and deletes it. Returns an error if one occurs. -func (c *FakePerconaXtraDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(perconaxtradbversionsResource, name, opts), &v1alpha1.PerconaXtraDBVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePerconaXtraDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(perconaxtradbversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PerconaXtraDBVersionList{}) - return err -} - -// Patch applies the patch and returns the patched perconaXtraDBVersion. -func (c *FakePerconaXtraDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(perconaxtradbversionsResource, name, pt, data, subresources...), &v1alpha1.PerconaXtraDBVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_pgbouncerversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_pgbouncerversion.go deleted file mode 100644 index 40dc496cfe..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_pgbouncerversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePgBouncerVersions implements PgBouncerVersionInterface -type FakePgBouncerVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var pgbouncerversionsResource = v1alpha1.SchemeGroupVersion.WithResource("pgbouncerversions") - -var pgbouncerversionsKind = v1alpha1.SchemeGroupVersion.WithKind("PgBouncerVersion") - -// Get takes name of the pgBouncerVersion, and returns the corresponding pgBouncerVersion object, and an error if there is any. -func (c *FakePgBouncerVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(pgbouncerversionsResource, name), &v1alpha1.PgBouncerVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerVersion), err -} - -// List takes label and field selectors, and returns the list of PgBouncerVersions that match those selectors. -func (c *FakePgBouncerVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(pgbouncerversionsResource, pgbouncerversionsKind, opts), &v1alpha1.PgBouncerVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PgBouncerVersionList{ListMeta: obj.(*v1alpha1.PgBouncerVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.PgBouncerVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested pgBouncerVersions. -func (c *FakePgBouncerVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(pgbouncerversionsResource, opts)) -} - -// Create takes the representation of a pgBouncerVersion and creates it. Returns the server's representation of the pgBouncerVersion, and an error, if there is any. -func (c *FakePgBouncerVersions) Create(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.CreateOptions) (result *v1alpha1.PgBouncerVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(pgbouncerversionsResource, pgBouncerVersion), &v1alpha1.PgBouncerVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerVersion), err -} - -// Update takes the representation of a pgBouncerVersion and updates it. Returns the server's representation of the pgBouncerVersion, and an error, if there is any. -func (c *FakePgBouncerVersions) Update(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(pgbouncerversionsResource, pgBouncerVersion), &v1alpha1.PgBouncerVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerVersion), err -} - -// Delete takes name of the pgBouncerVersion and deletes it. Returns an error if one occurs. -func (c *FakePgBouncerVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(pgbouncerversionsResource, name, opts), &v1alpha1.PgBouncerVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePgBouncerVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(pgbouncerversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PgBouncerVersionList{}) - return err -} - -// Patch applies the patch and returns the patched pgBouncerVersion. -func (c *FakePgBouncerVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(pgbouncerversionsResource, name, pt, data, subresources...), &v1alpha1.PgBouncerVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_postgresversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_postgresversion.go deleted file mode 100644 index a2f09b0450..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_postgresversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgresVersions implements PostgresVersionInterface -type FakePostgresVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var postgresversionsResource = v1alpha1.SchemeGroupVersion.WithResource("postgresversions") - -var postgresversionsKind = v1alpha1.SchemeGroupVersion.WithKind("PostgresVersion") - -// Get takes name of the postgresVersion, and returns the corresponding postgresVersion object, and an error if there is any. -func (c *FakePostgresVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(postgresversionsResource, name), &v1alpha1.PostgresVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresVersion), err -} - -// List takes label and field selectors, and returns the list of PostgresVersions that match those selectors. -func (c *FakePostgresVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(postgresversionsResource, postgresversionsKind, opts), &v1alpha1.PostgresVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PostgresVersionList{ListMeta: obj.(*v1alpha1.PostgresVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.PostgresVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgresVersions. -func (c *FakePostgresVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(postgresversionsResource, opts)) -} - -// Create takes the representation of a postgresVersion and creates it. Returns the server's representation of the postgresVersion, and an error, if there is any. -func (c *FakePostgresVersions) Create(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.CreateOptions) (result *v1alpha1.PostgresVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(postgresversionsResource, postgresVersion), &v1alpha1.PostgresVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresVersion), err -} - -// Update takes the representation of a postgresVersion and updates it. Returns the server's representation of the postgresVersion, and an error, if there is any. -func (c *FakePostgresVersions) Update(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.UpdateOptions) (result *v1alpha1.PostgresVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(postgresversionsResource, postgresVersion), &v1alpha1.PostgresVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresVersion), err -} - -// Delete takes name of the postgresVersion and deletes it. Returns an error if one occurs. -func (c *FakePostgresVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(postgresversionsResource, name, opts), &v1alpha1.PostgresVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgresVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(postgresversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PostgresVersionList{}) - return err -} - -// Patch applies the patch and returns the patched postgresVersion. -func (c *FakePostgresVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(postgresversionsResource, name, pt, data, subresources...), &v1alpha1.PostgresVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_proxysqlversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_proxysqlversion.go deleted file mode 100644 index a31bf03c59..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_proxysqlversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeProxySQLVersions implements ProxySQLVersionInterface -type FakeProxySQLVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var proxysqlversionsResource = v1alpha1.SchemeGroupVersion.WithResource("proxysqlversions") - -var proxysqlversionsKind = v1alpha1.SchemeGroupVersion.WithKind("ProxySQLVersion") - -// Get takes name of the proxySQLVersion, and returns the corresponding proxySQLVersion object, and an error if there is any. -func (c *FakeProxySQLVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(proxysqlversionsResource, name), &v1alpha1.ProxySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLVersion), err -} - -// List takes label and field selectors, and returns the list of ProxySQLVersions that match those selectors. -func (c *FakeProxySQLVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(proxysqlversionsResource, proxysqlversionsKind, opts), &v1alpha1.ProxySQLVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ProxySQLVersionList{ListMeta: obj.(*v1alpha1.ProxySQLVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.ProxySQLVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested proxySQLVersions. -func (c *FakeProxySQLVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(proxysqlversionsResource, opts)) -} - -// Create takes the representation of a proxySQLVersion and creates it. Returns the server's representation of the proxySQLVersion, and an error, if there is any. -func (c *FakeProxySQLVersions) Create(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.CreateOptions) (result *v1alpha1.ProxySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(proxysqlversionsResource, proxySQLVersion), &v1alpha1.ProxySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLVersion), err -} - -// Update takes the representation of a proxySQLVersion and updates it. Returns the server's representation of the proxySQLVersion, and an error, if there is any. -func (c *FakeProxySQLVersions) Update(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(proxysqlversionsResource, proxySQLVersion), &v1alpha1.ProxySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLVersion), err -} - -// Delete takes name of the proxySQLVersion and deletes it. Returns an error if one occurs. -func (c *FakeProxySQLVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(proxysqlversionsResource, name, opts), &v1alpha1.ProxySQLVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProxySQLVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(proxysqlversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ProxySQLVersionList{}) - return err -} - -// Patch applies the patch and returns the patched proxySQLVersion. -func (c *FakeProxySQLVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(proxysqlversionsResource, name, pt, data, subresources...), &v1alpha1.ProxySQLVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_redisversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_redisversion.go deleted file mode 100644 index 0fa1ba9469..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_redisversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisVersions implements RedisVersionInterface -type FakeRedisVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var redisversionsResource = v1alpha1.SchemeGroupVersion.WithResource("redisversions") - -var redisversionsKind = v1alpha1.SchemeGroupVersion.WithKind("RedisVersion") - -// Get takes name of the redisVersion, and returns the corresponding redisVersion object, and an error if there is any. -func (c *FakeRedisVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(redisversionsResource, name), &v1alpha1.RedisVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisVersion), err -} - -// List takes label and field selectors, and returns the list of RedisVersions that match those selectors. -func (c *FakeRedisVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(redisversionsResource, redisversionsKind, opts), &v1alpha1.RedisVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RedisVersionList{ListMeta: obj.(*v1alpha1.RedisVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.RedisVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisVersions. -func (c *FakeRedisVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(redisversionsResource, opts)) -} - -// Create takes the representation of a redisVersion and creates it. Returns the server's representation of the redisVersion, and an error, if there is any. -func (c *FakeRedisVersions) Create(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.CreateOptions) (result *v1alpha1.RedisVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(redisversionsResource, redisVersion), &v1alpha1.RedisVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisVersion), err -} - -// Update takes the representation of a redisVersion and updates it. Returns the server's representation of the redisVersion, and an error, if there is any. -func (c *FakeRedisVersions) Update(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.UpdateOptions) (result *v1alpha1.RedisVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(redisversionsResource, redisVersion), &v1alpha1.RedisVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisVersion), err -} - -// Delete takes name of the redisVersion and deletes it. Returns an error if one occurs. -func (c *FakeRedisVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(redisversionsResource, name, opts), &v1alpha1.RedisVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(redisversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RedisVersionList{}) - return err -} - -// Patch applies the patch and returns the patched redisVersion. -func (c *FakeRedisVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(redisversionsResource, name, pt, data, subresources...), &v1alpha1.RedisVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_singlestoreversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_singlestoreversion.go deleted file mode 100644 index c610c70517..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/fake/fake_singlestoreversion.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSinglestoreVersions implements SinglestoreVersionInterface -type FakeSinglestoreVersions struct { - Fake *FakeCatalogV1alpha1 -} - -var singlestoreversionsResource = v1alpha1.SchemeGroupVersion.WithResource("singlestoreversions") - -var singlestoreversionsKind = v1alpha1.SchemeGroupVersion.WithKind("SinglestoreVersion") - -// Get takes name of the singlestoreVersion, and returns the corresponding singlestoreVersion object, and an error if there is any. -func (c *FakeSinglestoreVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SinglestoreVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootGetAction(singlestoreversionsResource, name), &v1alpha1.SinglestoreVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SinglestoreVersion), err -} - -// List takes label and field selectors, and returns the list of SinglestoreVersions that match those selectors. -func (c *FakeSinglestoreVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SinglestoreVersionList, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootListAction(singlestoreversionsResource, singlestoreversionsKind, opts), &v1alpha1.SinglestoreVersionList{}) - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SinglestoreVersionList{ListMeta: obj.(*v1alpha1.SinglestoreVersionList).ListMeta} - for _, item := range obj.(*v1alpha1.SinglestoreVersionList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested singlestoreVersions. -func (c *FakeSinglestoreVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchAction(singlestoreversionsResource, opts)) -} - -// Create takes the representation of a singlestoreVersion and creates it. Returns the server's representation of the singlestoreVersion, and an error, if there is any. -func (c *FakeSinglestoreVersions) Create(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.CreateOptions) (result *v1alpha1.SinglestoreVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootCreateAction(singlestoreversionsResource, singlestoreVersion), &v1alpha1.SinglestoreVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SinglestoreVersion), err -} - -// Update takes the representation of a singlestoreVersion and updates it. Returns the server's representation of the singlestoreVersion, and an error, if there is any. -func (c *FakeSinglestoreVersions) Update(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.UpdateOptions) (result *v1alpha1.SinglestoreVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootUpdateAction(singlestoreversionsResource, singlestoreVersion), &v1alpha1.SinglestoreVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SinglestoreVersion), err -} - -// Delete takes name of the singlestoreVersion and deletes it. Returns an error if one occurs. -func (c *FakeSinglestoreVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(singlestoreversionsResource, name, opts), &v1alpha1.SinglestoreVersion{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSinglestoreVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewRootDeleteCollectionAction(singlestoreversionsResource, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.SinglestoreVersionList{}) - return err -} - -// Patch applies the patch and returns the patched singlestoreVersion. -func (c *FakeSinglestoreVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SinglestoreVersion, err error) { - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceAction(singlestoreversionsResource, name, pt, data, subresources...), &v1alpha1.SinglestoreVersion{}) - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SinglestoreVersion), err -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/catalog/v1alpha1/generated_expansion.go deleted file mode 100644 index 4d12707e3f..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type DruidVersionExpansion interface{} - -type ElasticsearchVersionExpansion interface{} - -type EtcdVersionExpansion interface{} - -type KafkaConnectorVersionExpansion interface{} - -type KafkaVersionExpansion interface{} - -type MariaDBVersionExpansion interface{} - -type MemcachedVersionExpansion interface{} - -type MongoDBVersionExpansion interface{} - -type MySQLVersionExpansion interface{} - -type PerconaXtraDBVersionExpansion interface{} - -type PgBouncerVersionExpansion interface{} - -type PostgresVersionExpansion interface{} - -type ProxySQLVersionExpansion interface{} - -type RedisVersionExpansion interface{} - -type SinglestoreVersionExpansion interface{} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/kafkaconnectorversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/kafkaconnectorversion.go deleted file mode 100644 index 0e49fe60b2..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/kafkaconnectorversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// KafkaConnectorVersionsGetter has a method to return a KafkaConnectorVersionInterface. -// A group's client should implement this interface. -type KafkaConnectorVersionsGetter interface { - KafkaConnectorVersions() KafkaConnectorVersionInterface -} - -// KafkaConnectorVersionInterface has methods to work with KafkaConnectorVersion resources. -type KafkaConnectorVersionInterface interface { - Create(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.CreateOptions) (*v1alpha1.KafkaConnectorVersion, error) - Update(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.UpdateOptions) (*v1alpha1.KafkaConnectorVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.KafkaConnectorVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.KafkaConnectorVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaConnectorVersion, err error) - KafkaConnectorVersionExpansion -} - -// kafkaConnectorVersions implements KafkaConnectorVersionInterface -type kafkaConnectorVersions struct { - client rest.Interface -} - -// newKafkaConnectorVersions returns a KafkaConnectorVersions -func newKafkaConnectorVersions(c *CatalogV1alpha1Client) *kafkaConnectorVersions { - return &kafkaConnectorVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the kafkaConnectorVersion, and returns the corresponding kafkaConnectorVersion object, and an error if there is any. -func (c *kafkaConnectorVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - result = &v1alpha1.KafkaConnectorVersion{} - err = c.client.Get(). - Resource("kafkaconnectorversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of KafkaConnectorVersions that match those selectors. -func (c *kafkaConnectorVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaConnectorVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.KafkaConnectorVersionList{} - err = c.client.Get(). - Resource("kafkaconnectorversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested kafkaConnectorVersions. -func (c *kafkaConnectorVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("kafkaconnectorversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a kafkaConnectorVersion and creates it. Returns the server's representation of the kafkaConnectorVersion, and an error, if there is any. -func (c *kafkaConnectorVersions) Create(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.CreateOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - result = &v1alpha1.KafkaConnectorVersion{} - err = c.client.Post(). - Resource("kafkaconnectorversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaConnectorVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a kafkaConnectorVersion and updates it. Returns the server's representation of the kafkaConnectorVersion, and an error, if there is any. -func (c *kafkaConnectorVersions) Update(ctx context.Context, kafkaConnectorVersion *v1alpha1.KafkaConnectorVersion, opts v1.UpdateOptions) (result *v1alpha1.KafkaConnectorVersion, err error) { - result = &v1alpha1.KafkaConnectorVersion{} - err = c.client.Put(). - Resource("kafkaconnectorversions"). - Name(kafkaConnectorVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaConnectorVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the kafkaConnectorVersion and deletes it. Returns an error if one occurs. -func (c *kafkaConnectorVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("kafkaconnectorversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *kafkaConnectorVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("kafkaconnectorversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched kafkaConnectorVersion. -func (c *kafkaConnectorVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaConnectorVersion, err error) { - result = &v1alpha1.KafkaConnectorVersion{} - err = c.client.Patch(pt). - Resource("kafkaconnectorversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/kafkaversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/kafkaversion.go deleted file mode 100644 index b1537a23c8..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/kafkaversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// KafkaVersionsGetter has a method to return a KafkaVersionInterface. -// A group's client should implement this interface. -type KafkaVersionsGetter interface { - KafkaVersions() KafkaVersionInterface -} - -// KafkaVersionInterface has methods to work with KafkaVersion resources. -type KafkaVersionInterface interface { - Create(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.CreateOptions) (*v1alpha1.KafkaVersion, error) - Update(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.UpdateOptions) (*v1alpha1.KafkaVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.KafkaVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.KafkaVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaVersion, err error) - KafkaVersionExpansion -} - -// kafkaVersions implements KafkaVersionInterface -type kafkaVersions struct { - client rest.Interface -} - -// newKafkaVersions returns a KafkaVersions -func newKafkaVersions(c *CatalogV1alpha1Client) *kafkaVersions { - return &kafkaVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the kafkaVersion, and returns the corresponding kafkaVersion object, and an error if there is any. -func (c *kafkaVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaVersion, err error) { - result = &v1alpha1.KafkaVersion{} - err = c.client.Get(). - Resource("kafkaversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of KafkaVersions that match those selectors. -func (c *kafkaVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.KafkaVersionList{} - err = c.client.Get(). - Resource("kafkaversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested kafkaVersions. -func (c *kafkaVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("kafkaversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a kafkaVersion and creates it. Returns the server's representation of the kafkaVersion, and an error, if there is any. -func (c *kafkaVersions) Create(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.CreateOptions) (result *v1alpha1.KafkaVersion, err error) { - result = &v1alpha1.KafkaVersion{} - err = c.client.Post(). - Resource("kafkaversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a kafkaVersion and updates it. Returns the server's representation of the kafkaVersion, and an error, if there is any. -func (c *kafkaVersions) Update(ctx context.Context, kafkaVersion *v1alpha1.KafkaVersion, opts v1.UpdateOptions) (result *v1alpha1.KafkaVersion, err error) { - result = &v1alpha1.KafkaVersion{} - err = c.client.Put(). - Resource("kafkaversions"). - Name(kafkaVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the kafkaVersion and deletes it. Returns an error if one occurs. -func (c *kafkaVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("kafkaversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *kafkaVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("kafkaversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched kafkaVersion. -func (c *kafkaVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaVersion, err error) { - result = &v1alpha1.KafkaVersion{} - err = c.client.Patch(pt). - Resource("kafkaversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/mariadbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/mariadbversion.go deleted file mode 100644 index 45e7820369..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/mariadbversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MariaDBVersionsGetter has a method to return a MariaDBVersionInterface. -// A group's client should implement this interface. -type MariaDBVersionsGetter interface { - MariaDBVersions() MariaDBVersionInterface -} - -// MariaDBVersionInterface has methods to work with MariaDBVersion resources. -type MariaDBVersionInterface interface { - Create(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.CreateOptions) (*v1alpha1.MariaDBVersion, error) - Update(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.UpdateOptions) (*v1alpha1.MariaDBVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MariaDBVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MariaDBVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBVersion, err error) - MariaDBVersionExpansion -} - -// mariaDBVersions implements MariaDBVersionInterface -type mariaDBVersions struct { - client rest.Interface -} - -// newMariaDBVersions returns a MariaDBVersions -func newMariaDBVersions(c *CatalogV1alpha1Client) *mariaDBVersions { - return &mariaDBVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the mariaDBVersion, and returns the corresponding mariaDBVersion object, and an error if there is any. -func (c *mariaDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBVersion, err error) { - result = &v1alpha1.MariaDBVersion{} - err = c.client.Get(). - Resource("mariadbversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MariaDBVersions that match those selectors. -func (c *mariaDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MariaDBVersionList{} - err = c.client.Get(). - Resource("mariadbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mariaDBVersions. -func (c *mariaDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("mariadbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mariaDBVersion and creates it. Returns the server's representation of the mariaDBVersion, and an error, if there is any. -func (c *mariaDBVersions) Create(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.CreateOptions) (result *v1alpha1.MariaDBVersion, err error) { - result = &v1alpha1.MariaDBVersion{} - err = c.client.Post(). - Resource("mariadbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mariaDBVersion and updates it. Returns the server's representation of the mariaDBVersion, and an error, if there is any. -func (c *mariaDBVersions) Update(ctx context.Context, mariaDBVersion *v1alpha1.MariaDBVersion, opts v1.UpdateOptions) (result *v1alpha1.MariaDBVersion, err error) { - result = &v1alpha1.MariaDBVersion{} - err = c.client.Put(). - Resource("mariadbversions"). - Name(mariaDBVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mariaDBVersion and deletes it. Returns an error if one occurs. -func (c *mariaDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("mariadbversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mariaDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("mariadbversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mariaDBVersion. -func (c *mariaDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBVersion, err error) { - result = &v1alpha1.MariaDBVersion{} - err = c.client.Patch(pt). - Resource("mariadbversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/memcachedversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/memcachedversion.go deleted file mode 100644 index a2d2f9200e..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/memcachedversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MemcachedVersionsGetter has a method to return a MemcachedVersionInterface. -// A group's client should implement this interface. -type MemcachedVersionsGetter interface { - MemcachedVersions() MemcachedVersionInterface -} - -// MemcachedVersionInterface has methods to work with MemcachedVersion resources. -type MemcachedVersionInterface interface { - Create(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.CreateOptions) (*v1alpha1.MemcachedVersion, error) - Update(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.UpdateOptions) (*v1alpha1.MemcachedVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MemcachedVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MemcachedVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedVersion, err error) - MemcachedVersionExpansion -} - -// memcachedVersions implements MemcachedVersionInterface -type memcachedVersions struct { - client rest.Interface -} - -// newMemcachedVersions returns a MemcachedVersions -func newMemcachedVersions(c *CatalogV1alpha1Client) *memcachedVersions { - return &memcachedVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the memcachedVersion, and returns the corresponding memcachedVersion object, and an error if there is any. -func (c *memcachedVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedVersion, err error) { - result = &v1alpha1.MemcachedVersion{} - err = c.client.Get(). - Resource("memcachedversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MemcachedVersions that match those selectors. -func (c *memcachedVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MemcachedVersionList{} - err = c.client.Get(). - Resource("memcachedversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested memcachedVersions. -func (c *memcachedVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("memcachedversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a memcachedVersion and creates it. Returns the server's representation of the memcachedVersion, and an error, if there is any. -func (c *memcachedVersions) Create(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.CreateOptions) (result *v1alpha1.MemcachedVersion, err error) { - result = &v1alpha1.MemcachedVersion{} - err = c.client.Post(). - Resource("memcachedversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a memcachedVersion and updates it. Returns the server's representation of the memcachedVersion, and an error, if there is any. -func (c *memcachedVersions) Update(ctx context.Context, memcachedVersion *v1alpha1.MemcachedVersion, opts v1.UpdateOptions) (result *v1alpha1.MemcachedVersion, err error) { - result = &v1alpha1.MemcachedVersion{} - err = c.client.Put(). - Resource("memcachedversions"). - Name(memcachedVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the memcachedVersion and deletes it. Returns an error if one occurs. -func (c *memcachedVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("memcachedversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *memcachedVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("memcachedversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched memcachedVersion. -func (c *memcachedVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedVersion, err error) { - result = &v1alpha1.MemcachedVersion{} - err = c.client.Patch(pt). - Resource("memcachedversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/mongodbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/mongodbversion.go deleted file mode 100644 index 15994c0358..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/mongodbversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBVersionsGetter has a method to return a MongoDBVersionInterface. -// A group's client should implement this interface. -type MongoDBVersionsGetter interface { - MongoDBVersions() MongoDBVersionInterface -} - -// MongoDBVersionInterface has methods to work with MongoDBVersion resources. -type MongoDBVersionInterface interface { - Create(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.CreateOptions) (*v1alpha1.MongoDBVersion, error) - Update(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.UpdateOptions) (*v1alpha1.MongoDBVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBVersion, err error) - MongoDBVersionExpansion -} - -// mongoDBVersions implements MongoDBVersionInterface -type mongoDBVersions struct { - client rest.Interface -} - -// newMongoDBVersions returns a MongoDBVersions -func newMongoDBVersions(c *CatalogV1alpha1Client) *mongoDBVersions { - return &mongoDBVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the mongoDBVersion, and returns the corresponding mongoDBVersion object, and an error if there is any. -func (c *mongoDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBVersion, err error) { - result = &v1alpha1.MongoDBVersion{} - err = c.client.Get(). - Resource("mongodbversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBVersions that match those selectors. -func (c *mongoDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MongoDBVersionList{} - err = c.client.Get(). - Resource("mongodbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBVersions. -func (c *mongoDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("mongodbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDBVersion and creates it. Returns the server's representation of the mongoDBVersion, and an error, if there is any. -func (c *mongoDBVersions) Create(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.CreateOptions) (result *v1alpha1.MongoDBVersion, err error) { - result = &v1alpha1.MongoDBVersion{} - err = c.client.Post(). - Resource("mongodbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDBVersion and updates it. Returns the server's representation of the mongoDBVersion, and an error, if there is any. -func (c *mongoDBVersions) Update(ctx context.Context, mongoDBVersion *v1alpha1.MongoDBVersion, opts v1.UpdateOptions) (result *v1alpha1.MongoDBVersion, err error) { - result = &v1alpha1.MongoDBVersion{} - err = c.client.Put(). - Resource("mongodbversions"). - Name(mongoDBVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDBVersion and deletes it. Returns an error if one occurs. -func (c *mongoDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("mongodbversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("mongodbversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDBVersion. -func (c *mongoDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBVersion, err error) { - result = &v1alpha1.MongoDBVersion{} - err = c.client.Patch(pt). - Resource("mongodbversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/mysqlversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/mysqlversion.go deleted file mode 100644 index ff4ec41727..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/mysqlversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLVersionsGetter has a method to return a MySQLVersionInterface. -// A group's client should implement this interface. -type MySQLVersionsGetter interface { - MySQLVersions() MySQLVersionInterface -} - -// MySQLVersionInterface has methods to work with MySQLVersion resources. -type MySQLVersionInterface interface { - Create(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.CreateOptions) (*v1alpha1.MySQLVersion, error) - Update(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.UpdateOptions) (*v1alpha1.MySQLVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLVersion, err error) - MySQLVersionExpansion -} - -// mySQLVersions implements MySQLVersionInterface -type mySQLVersions struct { - client rest.Interface -} - -// newMySQLVersions returns a MySQLVersions -func newMySQLVersions(c *CatalogV1alpha1Client) *mySQLVersions { - return &mySQLVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the mySQLVersion, and returns the corresponding mySQLVersion object, and an error if there is any. -func (c *mySQLVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLVersion, err error) { - result = &v1alpha1.MySQLVersion{} - err = c.client.Get(). - Resource("mysqlversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLVersions that match those selectors. -func (c *mySQLVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MySQLVersionList{} - err = c.client.Get(). - Resource("mysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLVersions. -func (c *mySQLVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("mysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQLVersion and creates it. Returns the server's representation of the mySQLVersion, and an error, if there is any. -func (c *mySQLVersions) Create(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.CreateOptions) (result *v1alpha1.MySQLVersion, err error) { - result = &v1alpha1.MySQLVersion{} - err = c.client.Post(). - Resource("mysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQLVersion and updates it. Returns the server's representation of the mySQLVersion, and an error, if there is any. -func (c *mySQLVersions) Update(ctx context.Context, mySQLVersion *v1alpha1.MySQLVersion, opts v1.UpdateOptions) (result *v1alpha1.MySQLVersion, err error) { - result = &v1alpha1.MySQLVersion{} - err = c.client.Put(). - Resource("mysqlversions"). - Name(mySQLVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQLVersion and deletes it. Returns an error if one occurs. -func (c *mySQLVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("mysqlversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("mysqlversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQLVersion. -func (c *mySQLVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLVersion, err error) { - result = &v1alpha1.MySQLVersion{} - err = c.client.Patch(pt). - Resource("mysqlversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/perconaxtradbversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/perconaxtradbversion.go deleted file mode 100644 index e5c033edba..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/perconaxtradbversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PerconaXtraDBVersionsGetter has a method to return a PerconaXtraDBVersionInterface. -// A group's client should implement this interface. -type PerconaXtraDBVersionsGetter interface { - PerconaXtraDBVersions() PerconaXtraDBVersionInterface -} - -// PerconaXtraDBVersionInterface has methods to work with PerconaXtraDBVersion resources. -type PerconaXtraDBVersionInterface interface { - Create(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.CreateOptions) (*v1alpha1.PerconaXtraDBVersion, error) - Update(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PerconaXtraDBVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PerconaXtraDBVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBVersion, err error) - PerconaXtraDBVersionExpansion -} - -// perconaXtraDBVersions implements PerconaXtraDBVersionInterface -type perconaXtraDBVersions struct { - client rest.Interface -} - -// newPerconaXtraDBVersions returns a PerconaXtraDBVersions -func newPerconaXtraDBVersions(c *CatalogV1alpha1Client) *perconaXtraDBVersions { - return &perconaXtraDBVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the perconaXtraDBVersion, and returns the corresponding perconaXtraDBVersion object, and an error if there is any. -func (c *perconaXtraDBVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - result = &v1alpha1.PerconaXtraDBVersion{} - err = c.client.Get(). - Resource("perconaxtradbversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBVersions that match those selectors. -func (c *perconaXtraDBVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PerconaXtraDBVersionList{} - err = c.client.Get(). - Resource("perconaxtradbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBVersions. -func (c *perconaXtraDBVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("perconaxtradbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a perconaXtraDBVersion and creates it. Returns the server's representation of the perconaXtraDBVersion, and an error, if there is any. -func (c *perconaXtraDBVersions) Create(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - result = &v1alpha1.PerconaXtraDBVersion{} - err = c.client.Post(). - Resource("perconaxtradbversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a perconaXtraDBVersion and updates it. Returns the server's representation of the perconaXtraDBVersion, and an error, if there is any. -func (c *perconaXtraDBVersions) Update(ctx context.Context, perconaXtraDBVersion *v1alpha1.PerconaXtraDBVersion, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBVersion, err error) { - result = &v1alpha1.PerconaXtraDBVersion{} - err = c.client.Put(). - Resource("perconaxtradbversions"). - Name(perconaXtraDBVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the perconaXtraDBVersion and deletes it. Returns an error if one occurs. -func (c *perconaXtraDBVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("perconaxtradbversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *perconaXtraDBVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("perconaxtradbversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched perconaXtraDBVersion. -func (c *perconaXtraDBVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBVersion, err error) { - result = &v1alpha1.PerconaXtraDBVersion{} - err = c.client.Patch(pt). - Resource("perconaxtradbversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/pgbouncerversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/pgbouncerversion.go deleted file mode 100644 index d83877574e..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/pgbouncerversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PgBouncerVersionsGetter has a method to return a PgBouncerVersionInterface. -// A group's client should implement this interface. -type PgBouncerVersionsGetter interface { - PgBouncerVersions() PgBouncerVersionInterface -} - -// PgBouncerVersionInterface has methods to work with PgBouncerVersion resources. -type PgBouncerVersionInterface interface { - Create(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.CreateOptions) (*v1alpha1.PgBouncerVersion, error) - Update(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.UpdateOptions) (*v1alpha1.PgBouncerVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PgBouncerVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PgBouncerVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerVersion, err error) - PgBouncerVersionExpansion -} - -// pgBouncerVersions implements PgBouncerVersionInterface -type pgBouncerVersions struct { - client rest.Interface -} - -// newPgBouncerVersions returns a PgBouncerVersions -func newPgBouncerVersions(c *CatalogV1alpha1Client) *pgBouncerVersions { - return &pgBouncerVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the pgBouncerVersion, and returns the corresponding pgBouncerVersion object, and an error if there is any. -func (c *pgBouncerVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerVersion, err error) { - result = &v1alpha1.PgBouncerVersion{} - err = c.client.Get(). - Resource("pgbouncerversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PgBouncerVersions that match those selectors. -func (c *pgBouncerVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PgBouncerVersionList{} - err = c.client.Get(). - Resource("pgbouncerversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested pgBouncerVersions. -func (c *pgBouncerVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("pgbouncerversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a pgBouncerVersion and creates it. Returns the server's representation of the pgBouncerVersion, and an error, if there is any. -func (c *pgBouncerVersions) Create(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.CreateOptions) (result *v1alpha1.PgBouncerVersion, err error) { - result = &v1alpha1.PgBouncerVersion{} - err = c.client.Post(). - Resource("pgbouncerversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a pgBouncerVersion and updates it. Returns the server's representation of the pgBouncerVersion, and an error, if there is any. -func (c *pgBouncerVersions) Update(ctx context.Context, pgBouncerVersion *v1alpha1.PgBouncerVersion, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerVersion, err error) { - result = &v1alpha1.PgBouncerVersion{} - err = c.client.Put(). - Resource("pgbouncerversions"). - Name(pgBouncerVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the pgBouncerVersion and deletes it. Returns an error if one occurs. -func (c *pgBouncerVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("pgbouncerversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *pgBouncerVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("pgbouncerversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched pgBouncerVersion. -func (c *pgBouncerVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerVersion, err error) { - result = &v1alpha1.PgBouncerVersion{} - err = c.client.Patch(pt). - Resource("pgbouncerversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/postgresversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/postgresversion.go deleted file mode 100644 index a546863d05..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/postgresversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresVersionsGetter has a method to return a PostgresVersionInterface. -// A group's client should implement this interface. -type PostgresVersionsGetter interface { - PostgresVersions() PostgresVersionInterface -} - -// PostgresVersionInterface has methods to work with PostgresVersion resources. -type PostgresVersionInterface interface { - Create(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.CreateOptions) (*v1alpha1.PostgresVersion, error) - Update(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.UpdateOptions) (*v1alpha1.PostgresVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresVersion, err error) - PostgresVersionExpansion -} - -// postgresVersions implements PostgresVersionInterface -type postgresVersions struct { - client rest.Interface -} - -// newPostgresVersions returns a PostgresVersions -func newPostgresVersions(c *CatalogV1alpha1Client) *postgresVersions { - return &postgresVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the postgresVersion, and returns the corresponding postgresVersion object, and an error if there is any. -func (c *postgresVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresVersion, err error) { - result = &v1alpha1.PostgresVersion{} - err = c.client.Get(). - Resource("postgresversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PostgresVersions that match those selectors. -func (c *postgresVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PostgresVersionList{} - err = c.client.Get(). - Resource("postgresversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgresVersions. -func (c *postgresVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("postgresversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgresVersion and creates it. Returns the server's representation of the postgresVersion, and an error, if there is any. -func (c *postgresVersions) Create(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.CreateOptions) (result *v1alpha1.PostgresVersion, err error) { - result = &v1alpha1.PostgresVersion{} - err = c.client.Post(). - Resource("postgresversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgresVersion and updates it. Returns the server's representation of the postgresVersion, and an error, if there is any. -func (c *postgresVersions) Update(ctx context.Context, postgresVersion *v1alpha1.PostgresVersion, opts v1.UpdateOptions) (result *v1alpha1.PostgresVersion, err error) { - result = &v1alpha1.PostgresVersion{} - err = c.client.Put(). - Resource("postgresversions"). - Name(postgresVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgresVersion and deletes it. Returns an error if one occurs. -func (c *postgresVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("postgresversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgresVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("postgresversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgresVersion. -func (c *postgresVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresVersion, err error) { - result = &v1alpha1.PostgresVersion{} - err = c.client.Patch(pt). - Resource("postgresversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/proxysqlversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/proxysqlversion.go deleted file mode 100644 index 659c1496cb..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/proxysqlversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ProxySQLVersionsGetter has a method to return a ProxySQLVersionInterface. -// A group's client should implement this interface. -type ProxySQLVersionsGetter interface { - ProxySQLVersions() ProxySQLVersionInterface -} - -// ProxySQLVersionInterface has methods to work with ProxySQLVersion resources. -type ProxySQLVersionInterface interface { - Create(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.CreateOptions) (*v1alpha1.ProxySQLVersion, error) - Update(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.UpdateOptions) (*v1alpha1.ProxySQLVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ProxySQLVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ProxySQLVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLVersion, err error) - ProxySQLVersionExpansion -} - -// proxySQLVersions implements ProxySQLVersionInterface -type proxySQLVersions struct { - client rest.Interface -} - -// newProxySQLVersions returns a ProxySQLVersions -func newProxySQLVersions(c *CatalogV1alpha1Client) *proxySQLVersions { - return &proxySQLVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the proxySQLVersion, and returns the corresponding proxySQLVersion object, and an error if there is any. -func (c *proxySQLVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLVersion, err error) { - result = &v1alpha1.ProxySQLVersion{} - err = c.client.Get(). - Resource("proxysqlversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProxySQLVersions that match those selectors. -func (c *proxySQLVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ProxySQLVersionList{} - err = c.client.Get(). - Resource("proxysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested proxySQLVersions. -func (c *proxySQLVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("proxysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a proxySQLVersion and creates it. Returns the server's representation of the proxySQLVersion, and an error, if there is any. -func (c *proxySQLVersions) Create(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.CreateOptions) (result *v1alpha1.ProxySQLVersion, err error) { - result = &v1alpha1.ProxySQLVersion{} - err = c.client.Post(). - Resource("proxysqlversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a proxySQLVersion and updates it. Returns the server's representation of the proxySQLVersion, and an error, if there is any. -func (c *proxySQLVersions) Update(ctx context.Context, proxySQLVersion *v1alpha1.ProxySQLVersion, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLVersion, err error) { - result = &v1alpha1.ProxySQLVersion{} - err = c.client.Put(). - Resource("proxysqlversions"). - Name(proxySQLVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the proxySQLVersion and deletes it. Returns an error if one occurs. -func (c *proxySQLVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("proxysqlversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *proxySQLVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("proxysqlversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched proxySQLVersion. -func (c *proxySQLVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLVersion, err error) { - result = &v1alpha1.ProxySQLVersion{} - err = c.client.Patch(pt). - Resource("proxysqlversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/redisversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/redisversion.go deleted file mode 100644 index 9092595b31..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/redisversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisVersionsGetter has a method to return a RedisVersionInterface. -// A group's client should implement this interface. -type RedisVersionsGetter interface { - RedisVersions() RedisVersionInterface -} - -// RedisVersionInterface has methods to work with RedisVersion resources. -type RedisVersionInterface interface { - Create(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.CreateOptions) (*v1alpha1.RedisVersion, error) - Update(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.UpdateOptions) (*v1alpha1.RedisVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RedisVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RedisVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisVersion, err error) - RedisVersionExpansion -} - -// redisVersions implements RedisVersionInterface -type redisVersions struct { - client rest.Interface -} - -// newRedisVersions returns a RedisVersions -func newRedisVersions(c *CatalogV1alpha1Client) *redisVersions { - return &redisVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the redisVersion, and returns the corresponding redisVersion object, and an error if there is any. -func (c *redisVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisVersion, err error) { - result = &v1alpha1.RedisVersion{} - err = c.client.Get(). - Resource("redisversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisVersions that match those selectors. -func (c *redisVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RedisVersionList{} - err = c.client.Get(). - Resource("redisversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisVersions. -func (c *redisVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("redisversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisVersion and creates it. Returns the server's representation of the redisVersion, and an error, if there is any. -func (c *redisVersions) Create(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.CreateOptions) (result *v1alpha1.RedisVersion, err error) { - result = &v1alpha1.RedisVersion{} - err = c.client.Post(). - Resource("redisversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisVersion and updates it. Returns the server's representation of the redisVersion, and an error, if there is any. -func (c *redisVersions) Update(ctx context.Context, redisVersion *v1alpha1.RedisVersion, opts v1.UpdateOptions) (result *v1alpha1.RedisVersion, err error) { - result = &v1alpha1.RedisVersion{} - err = c.client.Put(). - Resource("redisversions"). - Name(redisVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisVersion and deletes it. Returns an error if one occurs. -func (c *redisVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("redisversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("redisversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisVersion. -func (c *redisVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisVersion, err error) { - result = &v1alpha1.RedisVersion{} - err = c.client.Patch(pt). - Resource("redisversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/catalog/v1alpha1/singlestoreversion.go b/client/clientset/versioned/typed/catalog/v1alpha1/singlestoreversion.go deleted file mode 100644 index 893eb6421f..0000000000 --- a/client/clientset/versioned/typed/catalog/v1alpha1/singlestoreversion.go +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SinglestoreVersionsGetter has a method to return a SinglestoreVersionInterface. -// A group's client should implement this interface. -type SinglestoreVersionsGetter interface { - SinglestoreVersions() SinglestoreVersionInterface -} - -// SinglestoreVersionInterface has methods to work with SinglestoreVersion resources. -type SinglestoreVersionInterface interface { - Create(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.CreateOptions) (*v1alpha1.SinglestoreVersion, error) - Update(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.UpdateOptions) (*v1alpha1.SinglestoreVersion, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.SinglestoreVersion, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SinglestoreVersionList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SinglestoreVersion, err error) - SinglestoreVersionExpansion -} - -// singlestoreVersions implements SinglestoreVersionInterface -type singlestoreVersions struct { - client rest.Interface -} - -// newSinglestoreVersions returns a SinglestoreVersions -func newSinglestoreVersions(c *CatalogV1alpha1Client) *singlestoreVersions { - return &singlestoreVersions{ - client: c.RESTClient(), - } -} - -// Get takes name of the singlestoreVersion, and returns the corresponding singlestoreVersion object, and an error if there is any. -func (c *singlestoreVersions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SinglestoreVersion, err error) { - result = &v1alpha1.SinglestoreVersion{} - err = c.client.Get(). - Resource("singlestoreversions"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SinglestoreVersions that match those selectors. -func (c *singlestoreVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SinglestoreVersionList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.SinglestoreVersionList{} - err = c.client.Get(). - Resource("singlestoreversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested singlestoreVersions. -func (c *singlestoreVersions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("singlestoreversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a singlestoreVersion and creates it. Returns the server's representation of the singlestoreVersion, and an error, if there is any. -func (c *singlestoreVersions) Create(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.CreateOptions) (result *v1alpha1.SinglestoreVersion, err error) { - result = &v1alpha1.SinglestoreVersion{} - err = c.client.Post(). - Resource("singlestoreversions"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(singlestoreVersion). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a singlestoreVersion and updates it. Returns the server's representation of the singlestoreVersion, and an error, if there is any. -func (c *singlestoreVersions) Update(ctx context.Context, singlestoreVersion *v1alpha1.SinglestoreVersion, opts v1.UpdateOptions) (result *v1alpha1.SinglestoreVersion, err error) { - result = &v1alpha1.SinglestoreVersion{} - err = c.client.Put(). - Resource("singlestoreversions"). - Name(singlestoreVersion.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(singlestoreVersion). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the singlestoreVersion and deletes it. Returns an error if one occurs. -func (c *singlestoreVersions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("singlestoreversions"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *singlestoreVersions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("singlestoreversions"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched singlestoreVersion. -func (c *singlestoreVersions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SinglestoreVersion, err error) { - result = &v1alpha1.SinglestoreVersion{} - err = c.client.Patch(pt). - Resource("singlestoreversions"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/config/v1alpha1/config_client.go b/client/clientset/versioned/typed/config/v1alpha1/config_client.go deleted file mode 100644 index 4c00381abe..0000000000 --- a/client/clientset/versioned/typed/config/v1alpha1/config_client.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/config/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type ConfigV1alpha1Interface interface { - RESTClient() rest.Interface -} - -// ConfigV1alpha1Client is used to interact with features provided by the config.kubedb.com group. -type ConfigV1alpha1Client struct { - restClient rest.Interface -} - -// NewForConfig creates a new ConfigV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*ConfigV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new ConfigV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ConfigV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &ConfigV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new ConfigV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *ConfigV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new ConfigV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *ConfigV1alpha1Client { - return &ConfigV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *ConfigV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/config/v1alpha1/doc.go b/client/clientset/versioned/typed/config/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/config/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go b/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go deleted file mode 100644 index 01f54c4182..0000000000 --- a/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeConfigV1alpha1 struct { - *testing.Fake -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeConfigV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go deleted file mode 100644 index 3a3a7f61f1..0000000000 --- a/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/dashboard_client.go b/client/clientset/versioned/typed/dashboard/v1alpha1/dashboard_client.go deleted file mode 100644 index 2e4a287473..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/dashboard_client.go +++ /dev/null @@ -1,108 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type DashboardV1alpha1Interface interface { - RESTClient() rest.Interface - ElasticsearchDashboardsGetter -} - -// DashboardV1alpha1Client is used to interact with features provided by the dashboard.kubedb.com group. -type DashboardV1alpha1Client struct { - restClient rest.Interface -} - -func (c *DashboardV1alpha1Client) ElasticsearchDashboards(namespace string) ElasticsearchDashboardInterface { - return newElasticsearchDashboards(c, namespace) -} - -// NewForConfig creates a new DashboardV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*DashboardV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new DashboardV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*DashboardV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &DashboardV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new DashboardV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *DashboardV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new DashboardV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *DashboardV1alpha1Client { - return &DashboardV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *DashboardV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/doc.go b/client/clientset/versioned/typed/dashboard/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/elasticsearchdashboard.go b/client/clientset/versioned/typed/dashboard/v1alpha1/elasticsearchdashboard.go deleted file mode 100644 index 5af006ae23..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/elasticsearchdashboard.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ElasticsearchDashboardsGetter has a method to return a ElasticsearchDashboardInterface. -// A group's client should implement this interface. -type ElasticsearchDashboardsGetter interface { - ElasticsearchDashboards(namespace string) ElasticsearchDashboardInterface -} - -// ElasticsearchDashboardInterface has methods to work with ElasticsearchDashboard resources. -type ElasticsearchDashboardInterface interface { - Create(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.CreateOptions) (*v1alpha1.ElasticsearchDashboard, error) - Update(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchDashboard, error) - UpdateStatus(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchDashboard, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ElasticsearchDashboard, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ElasticsearchDashboardList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchDashboard, err error) - ElasticsearchDashboardExpansion -} - -// elasticsearchDashboards implements ElasticsearchDashboardInterface -type elasticsearchDashboards struct { - client rest.Interface - ns string -} - -// newElasticsearchDashboards returns a ElasticsearchDashboards -func newElasticsearchDashboards(c *DashboardV1alpha1Client, namespace string) *elasticsearchDashboards { - return &elasticsearchDashboards{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the elasticsearchDashboard, and returns the corresponding elasticsearchDashboard object, and an error if there is any. -func (c *elasticsearchDashboards) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - result = &v1alpha1.ElasticsearchDashboard{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ElasticsearchDashboards that match those selectors. -func (c *elasticsearchDashboards) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchDashboardList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ElasticsearchDashboardList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested elasticsearchDashboards. -func (c *elasticsearchDashboards) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a elasticsearchDashboard and creates it. Returns the server's representation of the elasticsearchDashboard, and an error, if there is any. -func (c *elasticsearchDashboards) Create(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - result = &v1alpha1.ElasticsearchDashboard{} - err = c.client.Post(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchDashboard). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a elasticsearchDashboard and updates it. Returns the server's representation of the elasticsearchDashboard, and an error, if there is any. -func (c *elasticsearchDashboards) Update(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - result = &v1alpha1.ElasticsearchDashboard{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - Name(elasticsearchDashboard.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchDashboard). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *elasticsearchDashboards) UpdateStatus(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - result = &v1alpha1.ElasticsearchDashboard{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - Name(elasticsearchDashboard.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchDashboard). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the elasticsearchDashboard and deletes it. Returns an error if one occurs. -func (c *elasticsearchDashboards) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *elasticsearchDashboards) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched elasticsearchDashboard. -func (c *elasticsearchDashboards) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchDashboard, err error) { - result = &v1alpha1.ElasticsearchDashboard{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("elasticsearchdashboards"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/dashboard/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_dashboard_client.go b/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_dashboard_client.go deleted file mode 100644 index 0e797db631..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_dashboard_client.go +++ /dev/null @@ -1,41 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/dashboard/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeDashboardV1alpha1 struct { - *testing.Fake -} - -func (c *FakeDashboardV1alpha1) ElasticsearchDashboards(namespace string) v1alpha1.ElasticsearchDashboardInterface { - return &FakeElasticsearchDashboards{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeDashboardV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_elasticsearchdashboard.go b/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_elasticsearchdashboard.go deleted file mode 100644 index 57ecd1b0f6..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/fake/fake_elasticsearchdashboard.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeElasticsearchDashboards implements ElasticsearchDashboardInterface -type FakeElasticsearchDashboards struct { - Fake *FakeDashboardV1alpha1 - ns string -} - -var elasticsearchdashboardsResource = v1alpha1.SchemeGroupVersion.WithResource("elasticsearchdashboards") - -var elasticsearchdashboardsKind = v1alpha1.SchemeGroupVersion.WithKind("ElasticsearchDashboard") - -// Get takes name of the elasticsearchDashboard, and returns the corresponding elasticsearchDashboard object, and an error if there is any. -func (c *FakeElasticsearchDashboards) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(elasticsearchdashboardsResource, c.ns, name), &v1alpha1.ElasticsearchDashboard{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchDashboard), err -} - -// List takes label and field selectors, and returns the list of ElasticsearchDashboards that match those selectors. -func (c *FakeElasticsearchDashboards) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchDashboardList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(elasticsearchdashboardsResource, elasticsearchdashboardsKind, c.ns, opts), &v1alpha1.ElasticsearchDashboardList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ElasticsearchDashboardList{ListMeta: obj.(*v1alpha1.ElasticsearchDashboardList).ListMeta} - for _, item := range obj.(*v1alpha1.ElasticsearchDashboardList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested elasticsearchDashboards. -func (c *FakeElasticsearchDashboards) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(elasticsearchdashboardsResource, c.ns, opts)) - -} - -// Create takes the representation of a elasticsearchDashboard and creates it. Returns the server's representation of the elasticsearchDashboard, and an error, if there is any. -func (c *FakeElasticsearchDashboards) Create(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(elasticsearchdashboardsResource, c.ns, elasticsearchDashboard), &v1alpha1.ElasticsearchDashboard{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchDashboard), err -} - -// Update takes the representation of a elasticsearchDashboard and updates it. Returns the server's representation of the elasticsearchDashboard, and an error, if there is any. -func (c *FakeElasticsearchDashboards) Update(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchDashboard, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(elasticsearchdashboardsResource, c.ns, elasticsearchDashboard), &v1alpha1.ElasticsearchDashboard{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchDashboard), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeElasticsearchDashboards) UpdateStatus(ctx context.Context, elasticsearchDashboard *v1alpha1.ElasticsearchDashboard, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchDashboard, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(elasticsearchdashboardsResource, "status", c.ns, elasticsearchDashboard), &v1alpha1.ElasticsearchDashboard{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchDashboard), err -} - -// Delete takes name of the elasticsearchDashboard and deletes it. Returns an error if one occurs. -func (c *FakeElasticsearchDashboards) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(elasticsearchdashboardsResource, c.ns, name, opts), &v1alpha1.ElasticsearchDashboard{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeElasticsearchDashboards) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(elasticsearchdashboardsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ElasticsearchDashboardList{}) - return err -} - -// Patch applies the patch and returns the patched elasticsearchDashboard. -func (c *FakeElasticsearchDashboards) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchDashboard, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(elasticsearchdashboardsResource, c.ns, name, pt, data, subresources...), &v1alpha1.ElasticsearchDashboard{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchDashboard), err -} diff --git a/client/clientset/versioned/typed/dashboard/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/dashboard/v1alpha1/generated_expansion.go deleted file mode 100644 index 9a631f2f1b..0000000000 --- a/client/clientset/versioned/typed/dashboard/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ElasticsearchDashboardExpansion interface{} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/connectcluster.go b/client/clientset/versioned/typed/kafka/v1alpha1/connectcluster.go deleted file mode 100644 index b9511d8408..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/connectcluster.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ConnectClustersGetter has a method to return a ConnectClusterInterface. -// A group's client should implement this interface. -type ConnectClustersGetter interface { - ConnectClusters(namespace string) ConnectClusterInterface -} - -// ConnectClusterInterface has methods to work with ConnectCluster resources. -type ConnectClusterInterface interface { - Create(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.CreateOptions) (*v1alpha1.ConnectCluster, error) - Update(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (*v1alpha1.ConnectCluster, error) - UpdateStatus(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (*v1alpha1.ConnectCluster, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ConnectCluster, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ConnectClusterList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConnectCluster, err error) - ConnectClusterExpansion -} - -// connectClusters implements ConnectClusterInterface -type connectClusters struct { - client rest.Interface - ns string -} - -// newConnectClusters returns a ConnectClusters -func newConnectClusters(c *KafkaV1alpha1Client, namespace string) *connectClusters { - return &connectClusters{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the connectCluster, and returns the corresponding connectCluster object, and an error if there is any. -func (c *connectClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConnectCluster, err error) { - result = &v1alpha1.ConnectCluster{} - err = c.client.Get(). - Namespace(c.ns). - Resource("connectclusters"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ConnectClusters that match those selectors. -func (c *connectClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConnectClusterList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ConnectClusterList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("connectclusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested connectClusters. -func (c *connectClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("connectclusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a connectCluster and creates it. Returns the server's representation of the connectCluster, and an error, if there is any. -func (c *connectClusters) Create(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.CreateOptions) (result *v1alpha1.ConnectCluster, err error) { - result = &v1alpha1.ConnectCluster{} - err = c.client.Post(). - Namespace(c.ns). - Resource("connectclusters"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connectCluster). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a connectCluster and updates it. Returns the server's representation of the connectCluster, and an error, if there is any. -func (c *connectClusters) Update(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (result *v1alpha1.ConnectCluster, err error) { - result = &v1alpha1.ConnectCluster{} - err = c.client.Put(). - Namespace(c.ns). - Resource("connectclusters"). - Name(connectCluster.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connectCluster). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *connectClusters) UpdateStatus(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (result *v1alpha1.ConnectCluster, err error) { - result = &v1alpha1.ConnectCluster{} - err = c.client.Put(). - Namespace(c.ns). - Resource("connectclusters"). - Name(connectCluster.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connectCluster). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the connectCluster and deletes it. Returns an error if one occurs. -func (c *connectClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("connectclusters"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *connectClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("connectclusters"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched connectCluster. -func (c *connectClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConnectCluster, err error) { - result = &v1alpha1.ConnectCluster{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("connectclusters"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/connector.go b/client/clientset/versioned/typed/kafka/v1alpha1/connector.go deleted file mode 100644 index c1cf2f1ef4..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/connector.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ConnectorsGetter has a method to return a ConnectorInterface. -// A group's client should implement this interface. -type ConnectorsGetter interface { - Connectors(namespace string) ConnectorInterface -} - -// ConnectorInterface has methods to work with Connector resources. -type ConnectorInterface interface { - Create(ctx context.Context, connector *v1alpha1.Connector, opts v1.CreateOptions) (*v1alpha1.Connector, error) - Update(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (*v1alpha1.Connector, error) - UpdateStatus(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (*v1alpha1.Connector, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Connector, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ConnectorList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Connector, err error) - ConnectorExpansion -} - -// connectors implements ConnectorInterface -type connectors struct { - client rest.Interface - ns string -} - -// newConnectors returns a Connectors -func newConnectors(c *KafkaV1alpha1Client, namespace string) *connectors { - return &connectors{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the connector, and returns the corresponding connector object, and an error if there is any. -func (c *connectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Connector, err error) { - result = &v1alpha1.Connector{} - err = c.client.Get(). - Namespace(c.ns). - Resource("connectors"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Connectors that match those selectors. -func (c *connectors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConnectorList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ConnectorList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("connectors"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested connectors. -func (c *connectors) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("connectors"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a connector and creates it. Returns the server's representation of the connector, and an error, if there is any. -func (c *connectors) Create(ctx context.Context, connector *v1alpha1.Connector, opts v1.CreateOptions) (result *v1alpha1.Connector, err error) { - result = &v1alpha1.Connector{} - err = c.client.Post(). - Namespace(c.ns). - Resource("connectors"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connector). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a connector and updates it. Returns the server's representation of the connector, and an error, if there is any. -func (c *connectors) Update(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (result *v1alpha1.Connector, err error) { - result = &v1alpha1.Connector{} - err = c.client.Put(). - Namespace(c.ns). - Resource("connectors"). - Name(connector.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connector). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *connectors) UpdateStatus(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (result *v1alpha1.Connector, err error) { - result = &v1alpha1.Connector{} - err = c.client.Put(). - Namespace(c.ns). - Resource("connectors"). - Name(connector.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(connector). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the connector and deletes it. Returns an error if one occurs. -func (c *connectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("connectors"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *connectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("connectors"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched connector. -func (c *connectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Connector, err error) { - result = &v1alpha1.Connector{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("connectors"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/doc.go b/client/clientset/versioned/typed/kafka/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/kafka/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connectcluster.go b/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connectcluster.go deleted file mode 100644 index ce8b036b58..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connectcluster.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeConnectClusters implements ConnectClusterInterface -type FakeConnectClusters struct { - Fake *FakeKafkaV1alpha1 - ns string -} - -var connectclustersResource = v1alpha1.SchemeGroupVersion.WithResource("connectclusters") - -var connectclustersKind = v1alpha1.SchemeGroupVersion.WithKind("ConnectCluster") - -// Get takes name of the connectCluster, and returns the corresponding connectCluster object, and an error if there is any. -func (c *FakeConnectClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConnectCluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(connectclustersResource, c.ns, name), &v1alpha1.ConnectCluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ConnectCluster), err -} - -// List takes label and field selectors, and returns the list of ConnectClusters that match those selectors. -func (c *FakeConnectClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConnectClusterList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(connectclustersResource, connectclustersKind, c.ns, opts), &v1alpha1.ConnectClusterList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ConnectClusterList{ListMeta: obj.(*v1alpha1.ConnectClusterList).ListMeta} - for _, item := range obj.(*v1alpha1.ConnectClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested connectClusters. -func (c *FakeConnectClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(connectclustersResource, c.ns, opts)) - -} - -// Create takes the representation of a connectCluster and creates it. Returns the server's representation of the connectCluster, and an error, if there is any. -func (c *FakeConnectClusters) Create(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.CreateOptions) (result *v1alpha1.ConnectCluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(connectclustersResource, c.ns, connectCluster), &v1alpha1.ConnectCluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ConnectCluster), err -} - -// Update takes the representation of a connectCluster and updates it. Returns the server's representation of the connectCluster, and an error, if there is any. -func (c *FakeConnectClusters) Update(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (result *v1alpha1.ConnectCluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(connectclustersResource, c.ns, connectCluster), &v1alpha1.ConnectCluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ConnectCluster), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeConnectClusters) UpdateStatus(ctx context.Context, connectCluster *v1alpha1.ConnectCluster, opts v1.UpdateOptions) (*v1alpha1.ConnectCluster, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(connectclustersResource, "status", c.ns, connectCluster), &v1alpha1.ConnectCluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ConnectCluster), err -} - -// Delete takes name of the connectCluster and deletes it. Returns an error if one occurs. -func (c *FakeConnectClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(connectclustersResource, c.ns, name, opts), &v1alpha1.ConnectCluster{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeConnectClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(connectclustersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ConnectClusterList{}) - return err -} - -// Patch applies the patch and returns the patched connectCluster. -func (c *FakeConnectClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConnectCluster, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(connectclustersResource, c.ns, name, pt, data, subresources...), &v1alpha1.ConnectCluster{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ConnectCluster), err -} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connector.go b/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connector.go deleted file mode 100644 index d3ef7e14b7..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_connector.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeConnectors implements ConnectorInterface -type FakeConnectors struct { - Fake *FakeKafkaV1alpha1 - ns string -} - -var connectorsResource = v1alpha1.SchemeGroupVersion.WithResource("connectors") - -var connectorsKind = v1alpha1.SchemeGroupVersion.WithKind("Connector") - -// Get takes name of the connector, and returns the corresponding connector object, and an error if there is any. -func (c *FakeConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Connector, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(connectorsResource, c.ns, name), &v1alpha1.Connector{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Connector), err -} - -// List takes label and field selectors, and returns the list of Connectors that match those selectors. -func (c *FakeConnectors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConnectorList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(connectorsResource, connectorsKind, c.ns, opts), &v1alpha1.ConnectorList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ConnectorList{ListMeta: obj.(*v1alpha1.ConnectorList).ListMeta} - for _, item := range obj.(*v1alpha1.ConnectorList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested connectors. -func (c *FakeConnectors) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(connectorsResource, c.ns, opts)) - -} - -// Create takes the representation of a connector and creates it. Returns the server's representation of the connector, and an error, if there is any. -func (c *FakeConnectors) Create(ctx context.Context, connector *v1alpha1.Connector, opts v1.CreateOptions) (result *v1alpha1.Connector, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(connectorsResource, c.ns, connector), &v1alpha1.Connector{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Connector), err -} - -// Update takes the representation of a connector and updates it. Returns the server's representation of the connector, and an error, if there is any. -func (c *FakeConnectors) Update(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (result *v1alpha1.Connector, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(connectorsResource, c.ns, connector), &v1alpha1.Connector{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Connector), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeConnectors) UpdateStatus(ctx context.Context, connector *v1alpha1.Connector, opts v1.UpdateOptions) (*v1alpha1.Connector, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(connectorsResource, "status", c.ns, connector), &v1alpha1.Connector{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Connector), err -} - -// Delete takes name of the connector and deletes it. Returns an error if one occurs. -func (c *FakeConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(connectorsResource, c.ns, name, opts), &v1alpha1.Connector{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(connectorsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ConnectorList{}) - return err -} - -// Patch applies the patch and returns the patched connector. -func (c *FakeConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Connector, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(connectorsResource, c.ns, name, pt, data, subresources...), &v1alpha1.Connector{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Connector), err -} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_kafka_client.go b/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_kafka_client.go deleted file mode 100644 index 6a0ae93010..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/fake/fake_kafka_client.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kafka/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeKafkaV1alpha1 struct { - *testing.Fake -} - -func (c *FakeKafkaV1alpha1) ConnectClusters(namespace string) v1alpha1.ConnectClusterInterface { - return &FakeConnectClusters{c, namespace} -} - -func (c *FakeKafkaV1alpha1) Connectors(namespace string) v1alpha1.ConnectorInterface { - return &FakeConnectors{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeKafkaV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/kafka/v1alpha1/generated_expansion.go deleted file mode 100644 index 4868973549..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ConnectClusterExpansion interface{} - -type ConnectorExpansion interface{} diff --git a/client/clientset/versioned/typed/kafka/v1alpha1/kafka_client.go b/client/clientset/versioned/typed/kafka/v1alpha1/kafka_client.go deleted file mode 100644 index e57b0527b8..0000000000 --- a/client/clientset/versioned/typed/kafka/v1alpha1/kafka_client.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type KafkaV1alpha1Interface interface { - RESTClient() rest.Interface - ConnectClustersGetter - ConnectorsGetter -} - -// KafkaV1alpha1Client is used to interact with features provided by the kafka.kubedb.com group. -type KafkaV1alpha1Client struct { - restClient rest.Interface -} - -func (c *KafkaV1alpha1Client) ConnectClusters(namespace string) ConnectClusterInterface { - return newConnectClusters(c, namespace) -} - -func (c *KafkaV1alpha1Client) Connectors(namespace string) ConnectorInterface { - return newConnectors(c, namespace) -} - -// NewForConfig creates a new KafkaV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*KafkaV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new KafkaV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*KafkaV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &KafkaV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new KafkaV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *KafkaV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new KafkaV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *KafkaV1alpha1Client { - return &KafkaV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *KafkaV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha1/doc.go b/client/clientset/versioned/typed/kubedb/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/kubedb/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/kubedb/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/kubedb/v1alpha1/fake/fake_kubedb_client.go b/client/clientset/versioned/typed/kubedb/v1alpha1/fake/fake_kubedb_client.go deleted file mode 100644 index 42eca20db7..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha1/fake/fake_kubedb_client.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeKubedbV1alpha1 struct { - *testing.Fake -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeKubedbV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/kubedb/v1alpha1/generated_expansion.go deleted file mode 100644 index 3a3a7f61f1..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 diff --git a/client/clientset/versioned/typed/kubedb/v1alpha1/kubedb_client.go b/client/clientset/versioned/typed/kubedb/v1alpha1/kubedb_client.go deleted file mode 100644 index d4b7476d7f..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha1/kubedb_client.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/kubedb/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type KubedbV1alpha1Interface interface { - RESTClient() rest.Interface -} - -// KubedbV1alpha1Client is used to interact with features provided by the kubedb.com group. -type KubedbV1alpha1Client struct { - restClient rest.Interface -} - -// NewForConfig creates a new KubedbV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*KubedbV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new KubedbV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*KubedbV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &KubedbV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new KubedbV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *KubedbV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new KubedbV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *KubedbV1alpha1Client { - return &KubedbV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *KubedbV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/doc.go b/client/clientset/versioned/typed/kubedb/v1alpha2/doc.go deleted file mode 100644 index 499dbf27ec..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha2 diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/druid.go b/client/clientset/versioned/typed/kubedb/v1alpha2/druid.go deleted file mode 100644 index d127d98e1d..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/druid.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// DruidsGetter has a method to return a DruidInterface. -// A group's client should implement this interface. -type DruidsGetter interface { - Druids(namespace string) DruidInterface -} - -// DruidInterface has methods to work with Druid resources. -type DruidInterface interface { - Create(ctx context.Context, druid *v1alpha2.Druid, opts v1.CreateOptions) (*v1alpha2.Druid, error) - Update(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (*v1alpha2.Druid, error) - UpdateStatus(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (*v1alpha2.Druid, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Druid, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.DruidList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Druid, err error) - DruidExpansion -} - -// druids implements DruidInterface -type druids struct { - client rest.Interface - ns string -} - -// newDruids returns a Druids -func newDruids(c *KubedbV1alpha2Client, namespace string) *druids { - return &druids{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the druid, and returns the corresponding druid object, and an error if there is any. -func (c *druids) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Druid, err error) { - result = &v1alpha2.Druid{} - err = c.client.Get(). - Namespace(c.ns). - Resource("druids"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Druids that match those selectors. -func (c *druids) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.DruidList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.DruidList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("druids"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested druids. -func (c *druids) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("druids"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a druid and creates it. Returns the server's representation of the druid, and an error, if there is any. -func (c *druids) Create(ctx context.Context, druid *v1alpha2.Druid, opts v1.CreateOptions) (result *v1alpha2.Druid, err error) { - result = &v1alpha2.Druid{} - err = c.client.Post(). - Namespace(c.ns). - Resource("druids"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(druid). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a druid and updates it. Returns the server's representation of the druid, and an error, if there is any. -func (c *druids) Update(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (result *v1alpha2.Druid, err error) { - result = &v1alpha2.Druid{} - err = c.client.Put(). - Namespace(c.ns). - Resource("druids"). - Name(druid.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(druid). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *druids) UpdateStatus(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (result *v1alpha2.Druid, err error) { - result = &v1alpha2.Druid{} - err = c.client.Put(). - Namespace(c.ns). - Resource("druids"). - Name(druid.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(druid). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the druid and deletes it. Returns an error if one occurs. -func (c *druids) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("druids"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *druids) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("druids"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched druid. -func (c *druids) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Druid, err error) { - result = &v1alpha2.Druid{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("druids"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/elasticsearch.go b/client/clientset/versioned/typed/kubedb/v1alpha2/elasticsearch.go deleted file mode 100644 index 9a83917a39..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/elasticsearch.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ElasticsearchesGetter has a method to return a ElasticsearchInterface. -// A group's client should implement this interface. -type ElasticsearchesGetter interface { - Elasticsearches(namespace string) ElasticsearchInterface -} - -// ElasticsearchInterface has methods to work with Elasticsearch resources. -type ElasticsearchInterface interface { - Create(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.CreateOptions) (*v1alpha2.Elasticsearch, error) - Update(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (*v1alpha2.Elasticsearch, error) - UpdateStatus(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (*v1alpha2.Elasticsearch, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Elasticsearch, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ElasticsearchList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Elasticsearch, err error) - ElasticsearchExpansion -} - -// elasticsearches implements ElasticsearchInterface -type elasticsearches struct { - client rest.Interface - ns string -} - -// newElasticsearches returns a Elasticsearches -func newElasticsearches(c *KubedbV1alpha2Client, namespace string) *elasticsearches { - return &elasticsearches{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the elasticsearch, and returns the corresponding elasticsearch object, and an error if there is any. -func (c *elasticsearches) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Elasticsearch, err error) { - result = &v1alpha2.Elasticsearch{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearches"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Elasticsearches that match those selectors. -func (c *elasticsearches) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ElasticsearchList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.ElasticsearchList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearches"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested elasticsearches. -func (c *elasticsearches) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("elasticsearches"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a elasticsearch and creates it. Returns the server's representation of the elasticsearch, and an error, if there is any. -func (c *elasticsearches) Create(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.CreateOptions) (result *v1alpha2.Elasticsearch, err error) { - result = &v1alpha2.Elasticsearch{} - err = c.client.Post(). - Namespace(c.ns). - Resource("elasticsearches"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearch). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a elasticsearch and updates it. Returns the server's representation of the elasticsearch, and an error, if there is any. -func (c *elasticsearches) Update(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (result *v1alpha2.Elasticsearch, err error) { - result = &v1alpha2.Elasticsearch{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearches"). - Name(elasticsearch.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearch). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *elasticsearches) UpdateStatus(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (result *v1alpha2.Elasticsearch, err error) { - result = &v1alpha2.Elasticsearch{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearches"). - Name(elasticsearch.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearch). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the elasticsearch and deletes it. Returns an error if one occurs. -func (c *elasticsearches) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearches"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *elasticsearches) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearches"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched elasticsearch. -func (c *elasticsearches) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Elasticsearch, err error) { - result = &v1alpha2.Elasticsearch{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("elasticsearches"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/etcd.go b/client/clientset/versioned/typed/kubedb/v1alpha2/etcd.go deleted file mode 100644 index 79242a95b2..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/etcd.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// EtcdsGetter has a method to return a EtcdInterface. -// A group's client should implement this interface. -type EtcdsGetter interface { - Etcds(namespace string) EtcdInterface -} - -// EtcdInterface has methods to work with Etcd resources. -type EtcdInterface interface { - Create(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.CreateOptions) (*v1alpha2.Etcd, error) - Update(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (*v1alpha2.Etcd, error) - UpdateStatus(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (*v1alpha2.Etcd, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Etcd, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.EtcdList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Etcd, err error) - EtcdExpansion -} - -// etcds implements EtcdInterface -type etcds struct { - client rest.Interface - ns string -} - -// newEtcds returns a Etcds -func newEtcds(c *KubedbV1alpha2Client, namespace string) *etcds { - return &etcds{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the etcd, and returns the corresponding etcd object, and an error if there is any. -func (c *etcds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Etcd, err error) { - result = &v1alpha2.Etcd{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcds"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Etcds that match those selectors. -func (c *etcds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.EtcdList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.EtcdList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested etcds. -func (c *etcds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("etcds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a etcd and creates it. Returns the server's representation of the etcd, and an error, if there is any. -func (c *etcds) Create(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.CreateOptions) (result *v1alpha2.Etcd, err error) { - result = &v1alpha2.Etcd{} - err = c.client.Post(). - Namespace(c.ns). - Resource("etcds"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcd). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a etcd and updates it. Returns the server's representation of the etcd, and an error, if there is any. -func (c *etcds) Update(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (result *v1alpha2.Etcd, err error) { - result = &v1alpha2.Etcd{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcds"). - Name(etcd.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcd). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *etcds) UpdateStatus(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (result *v1alpha2.Etcd, err error) { - result = &v1alpha2.Etcd{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcds"). - Name(etcd.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcd). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the etcd and deletes it. Returns an error if one occurs. -func (c *etcds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("etcds"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *etcds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("etcds"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched etcd. -func (c *etcds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Etcd, err error) { - result = &v1alpha2.Etcd{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("etcds"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/doc.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_druid.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_druid.go deleted file mode 100644 index 42cba3c9f9..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_druid.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeDruids implements DruidInterface -type FakeDruids struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var druidsResource = v1alpha2.SchemeGroupVersion.WithResource("druids") - -var druidsKind = v1alpha2.SchemeGroupVersion.WithKind("Druid") - -// Get takes name of the druid, and returns the corresponding druid object, and an error if there is any. -func (c *FakeDruids) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Druid, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(druidsResource, c.ns, name), &v1alpha2.Druid{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Druid), err -} - -// List takes label and field selectors, and returns the list of Druids that match those selectors. -func (c *FakeDruids) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.DruidList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(druidsResource, druidsKind, c.ns, opts), &v1alpha2.DruidList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.DruidList{ListMeta: obj.(*v1alpha2.DruidList).ListMeta} - for _, item := range obj.(*v1alpha2.DruidList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested druids. -func (c *FakeDruids) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(druidsResource, c.ns, opts)) - -} - -// Create takes the representation of a druid and creates it. Returns the server's representation of the druid, and an error, if there is any. -func (c *FakeDruids) Create(ctx context.Context, druid *v1alpha2.Druid, opts v1.CreateOptions) (result *v1alpha2.Druid, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(druidsResource, c.ns, druid), &v1alpha2.Druid{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Druid), err -} - -// Update takes the representation of a druid and updates it. Returns the server's representation of the druid, and an error, if there is any. -func (c *FakeDruids) Update(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (result *v1alpha2.Druid, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(druidsResource, c.ns, druid), &v1alpha2.Druid{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Druid), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDruids) UpdateStatus(ctx context.Context, druid *v1alpha2.Druid, opts v1.UpdateOptions) (*v1alpha2.Druid, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(druidsResource, "status", c.ns, druid), &v1alpha2.Druid{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Druid), err -} - -// Delete takes name of the druid and deletes it. Returns an error if one occurs. -func (c *FakeDruids) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(druidsResource, c.ns, name, opts), &v1alpha2.Druid{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDruids) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(druidsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.DruidList{}) - return err -} - -// Patch applies the patch and returns the patched druid. -func (c *FakeDruids) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Druid, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(druidsResource, c.ns, name, pt, data, subresources...), &v1alpha2.Druid{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Druid), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_elasticsearch.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_elasticsearch.go deleted file mode 100644 index 60cd32569b..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_elasticsearch.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeElasticsearches implements ElasticsearchInterface -type FakeElasticsearches struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var elasticsearchesResource = v1alpha2.SchemeGroupVersion.WithResource("elasticsearches") - -var elasticsearchesKind = v1alpha2.SchemeGroupVersion.WithKind("Elasticsearch") - -// Get takes name of the elasticsearch, and returns the corresponding elasticsearch object, and an error if there is any. -func (c *FakeElasticsearches) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Elasticsearch, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(elasticsearchesResource, c.ns, name), &v1alpha2.Elasticsearch{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Elasticsearch), err -} - -// List takes label and field selectors, and returns the list of Elasticsearches that match those selectors. -func (c *FakeElasticsearches) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ElasticsearchList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(elasticsearchesResource, elasticsearchesKind, c.ns, opts), &v1alpha2.ElasticsearchList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.ElasticsearchList{ListMeta: obj.(*v1alpha2.ElasticsearchList).ListMeta} - for _, item := range obj.(*v1alpha2.ElasticsearchList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested elasticsearches. -func (c *FakeElasticsearches) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(elasticsearchesResource, c.ns, opts)) - -} - -// Create takes the representation of a elasticsearch and creates it. Returns the server's representation of the elasticsearch, and an error, if there is any. -func (c *FakeElasticsearches) Create(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.CreateOptions) (result *v1alpha2.Elasticsearch, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(elasticsearchesResource, c.ns, elasticsearch), &v1alpha2.Elasticsearch{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Elasticsearch), err -} - -// Update takes the representation of a elasticsearch and updates it. Returns the server's representation of the elasticsearch, and an error, if there is any. -func (c *FakeElasticsearches) Update(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (result *v1alpha2.Elasticsearch, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(elasticsearchesResource, c.ns, elasticsearch), &v1alpha2.Elasticsearch{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Elasticsearch), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeElasticsearches) UpdateStatus(ctx context.Context, elasticsearch *v1alpha2.Elasticsearch, opts v1.UpdateOptions) (*v1alpha2.Elasticsearch, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(elasticsearchesResource, "status", c.ns, elasticsearch), &v1alpha2.Elasticsearch{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Elasticsearch), err -} - -// Delete takes name of the elasticsearch and deletes it. Returns an error if one occurs. -func (c *FakeElasticsearches) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(elasticsearchesResource, c.ns, name, opts), &v1alpha2.Elasticsearch{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeElasticsearches) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(elasticsearchesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.ElasticsearchList{}) - return err -} - -// Patch applies the patch and returns the patched elasticsearch. -func (c *FakeElasticsearches) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Elasticsearch, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(elasticsearchesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Elasticsearch{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Elasticsearch), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_etcd.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_etcd.go deleted file mode 100644 index 1c30818a34..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_etcd.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeEtcds implements EtcdInterface -type FakeEtcds struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var etcdsResource = v1alpha2.SchemeGroupVersion.WithResource("etcds") - -var etcdsKind = v1alpha2.SchemeGroupVersion.WithKind("Etcd") - -// Get takes name of the etcd, and returns the corresponding etcd object, and an error if there is any. -func (c *FakeEtcds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Etcd, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(etcdsResource, c.ns, name), &v1alpha2.Etcd{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Etcd), err -} - -// List takes label and field selectors, and returns the list of Etcds that match those selectors. -func (c *FakeEtcds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.EtcdList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(etcdsResource, etcdsKind, c.ns, opts), &v1alpha2.EtcdList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.EtcdList{ListMeta: obj.(*v1alpha2.EtcdList).ListMeta} - for _, item := range obj.(*v1alpha2.EtcdList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested etcds. -func (c *FakeEtcds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(etcdsResource, c.ns, opts)) - -} - -// Create takes the representation of a etcd and creates it. Returns the server's representation of the etcd, and an error, if there is any. -func (c *FakeEtcds) Create(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.CreateOptions) (result *v1alpha2.Etcd, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(etcdsResource, c.ns, etcd), &v1alpha2.Etcd{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Etcd), err -} - -// Update takes the representation of a etcd and updates it. Returns the server's representation of the etcd, and an error, if there is any. -func (c *FakeEtcds) Update(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (result *v1alpha2.Etcd, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(etcdsResource, c.ns, etcd), &v1alpha2.Etcd{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Etcd), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeEtcds) UpdateStatus(ctx context.Context, etcd *v1alpha2.Etcd, opts v1.UpdateOptions) (*v1alpha2.Etcd, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(etcdsResource, "status", c.ns, etcd), &v1alpha2.Etcd{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Etcd), err -} - -// Delete takes name of the etcd and deletes it. Returns an error if one occurs. -func (c *FakeEtcds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(etcdsResource, c.ns, name, opts), &v1alpha2.Etcd{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEtcds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(etcdsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.EtcdList{}) - return err -} - -// Patch applies the patch and returns the patched etcd. -func (c *FakeEtcds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Etcd, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(etcdsResource, c.ns, name, pt, data, subresources...), &v1alpha2.Etcd{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Etcd), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kafka.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kafka.go deleted file mode 100644 index 7056c1e3b5..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kafka.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeKafkas implements KafkaInterface -type FakeKafkas struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var kafkasResource = v1alpha2.SchemeGroupVersion.WithResource("kafkas") - -var kafkasKind = v1alpha2.SchemeGroupVersion.WithKind("Kafka") - -// Get takes name of the kafka, and returns the corresponding kafka object, and an error if there is any. -func (c *FakeKafkas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Kafka, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(kafkasResource, c.ns, name), &v1alpha2.Kafka{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Kafka), err -} - -// List takes label and field selectors, and returns the list of Kafkas that match those selectors. -func (c *FakeKafkas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.KafkaList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(kafkasResource, kafkasKind, c.ns, opts), &v1alpha2.KafkaList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.KafkaList{ListMeta: obj.(*v1alpha2.KafkaList).ListMeta} - for _, item := range obj.(*v1alpha2.KafkaList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested kafkas. -func (c *FakeKafkas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(kafkasResource, c.ns, opts)) - -} - -// Create takes the representation of a kafka and creates it. Returns the server's representation of the kafka, and an error, if there is any. -func (c *FakeKafkas) Create(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.CreateOptions) (result *v1alpha2.Kafka, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(kafkasResource, c.ns, kafka), &v1alpha2.Kafka{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Kafka), err -} - -// Update takes the representation of a kafka and updates it. Returns the server's representation of the kafka, and an error, if there is any. -func (c *FakeKafkas) Update(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (result *v1alpha2.Kafka, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(kafkasResource, c.ns, kafka), &v1alpha2.Kafka{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Kafka), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeKafkas) UpdateStatus(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (*v1alpha2.Kafka, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(kafkasResource, "status", c.ns, kafka), &v1alpha2.Kafka{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Kafka), err -} - -// Delete takes name of the kafka and deletes it. Returns an error if one occurs. -func (c *FakeKafkas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(kafkasResource, c.ns, name, opts), &v1alpha2.Kafka{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeKafkas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(kafkasResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.KafkaList{}) - return err -} - -// Patch applies the patch and returns the patched kafka. -func (c *FakeKafkas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Kafka, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(kafkasResource, c.ns, name, pt, data, subresources...), &v1alpha2.Kafka{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Kafka), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kubedb_client.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kubedb_client.go deleted file mode 100644 index bcf1940604..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_kubedb_client.go +++ /dev/null @@ -1,97 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha2 "kubedb.dev/apimachinery/client/clientset/versioned/typed/kubedb/v1alpha2" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeKubedbV1alpha2 struct { - *testing.Fake -} - -func (c *FakeKubedbV1alpha2) Druids(namespace string) v1alpha2.DruidInterface { - return &FakeDruids{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Elasticsearches(namespace string) v1alpha2.ElasticsearchInterface { - return &FakeElasticsearches{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Etcds(namespace string) v1alpha2.EtcdInterface { - return &FakeEtcds{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Kafkas(namespace string) v1alpha2.KafkaInterface { - return &FakeKafkas{c, namespace} -} - -func (c *FakeKubedbV1alpha2) MariaDBs(namespace string) v1alpha2.MariaDBInterface { - return &FakeMariaDBs{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Memcacheds(namespace string) v1alpha2.MemcachedInterface { - return &FakeMemcacheds{c, namespace} -} - -func (c *FakeKubedbV1alpha2) MongoDBs(namespace string) v1alpha2.MongoDBInterface { - return &FakeMongoDBs{c, namespace} -} - -func (c *FakeKubedbV1alpha2) MySQLs(namespace string) v1alpha2.MySQLInterface { - return &FakeMySQLs{c, namespace} -} - -func (c *FakeKubedbV1alpha2) PerconaXtraDBs(namespace string) v1alpha2.PerconaXtraDBInterface { - return &FakePerconaXtraDBs{c, namespace} -} - -func (c *FakeKubedbV1alpha2) PgBouncers(namespace string) v1alpha2.PgBouncerInterface { - return &FakePgBouncers{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Postgreses(namespace string) v1alpha2.PostgresInterface { - return &FakePostgreses{c, namespace} -} - -func (c *FakeKubedbV1alpha2) ProxySQLs(namespace string) v1alpha2.ProxySQLInterface { - return &FakeProxySQLs{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Redises(namespace string) v1alpha2.RedisInterface { - return &FakeRedises{c, namespace} -} - -func (c *FakeKubedbV1alpha2) RedisSentinels(namespace string) v1alpha2.RedisSentinelInterface { - return &FakeRedisSentinels{c, namespace} -} - -func (c *FakeKubedbV1alpha2) Singlestores(namespace string) v1alpha2.SinglestoreInterface { - return &FakeSinglestores{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeKubedbV1alpha2) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mariadb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mariadb.go deleted file mode 100644 index 3c2f7d6101..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mariadb.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMariaDBs implements MariaDBInterface -type FakeMariaDBs struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var mariadbsResource = v1alpha2.SchemeGroupVersion.WithResource("mariadbs") - -var mariadbsKind = v1alpha2.SchemeGroupVersion.WithKind("MariaDB") - -// Get takes name of the mariaDB, and returns the corresponding mariaDB object, and an error if there is any. -func (c *FakeMariaDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MariaDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mariadbsResource, c.ns, name), &v1alpha2.MariaDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MariaDB), err -} - -// List takes label and field selectors, and returns the list of MariaDBs that match those selectors. -func (c *FakeMariaDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MariaDBList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mariadbsResource, mariadbsKind, c.ns, opts), &v1alpha2.MariaDBList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.MariaDBList{ListMeta: obj.(*v1alpha2.MariaDBList).ListMeta} - for _, item := range obj.(*v1alpha2.MariaDBList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mariaDBs. -func (c *FakeMariaDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mariadbsResource, c.ns, opts)) - -} - -// Create takes the representation of a mariaDB and creates it. Returns the server's representation of the mariaDB, and an error, if there is any. -func (c *FakeMariaDBs) Create(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.CreateOptions) (result *v1alpha2.MariaDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mariadbsResource, c.ns, mariaDB), &v1alpha2.MariaDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MariaDB), err -} - -// Update takes the representation of a mariaDB and updates it. Returns the server's representation of the mariaDB, and an error, if there is any. -func (c *FakeMariaDBs) Update(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (result *v1alpha2.MariaDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mariadbsResource, c.ns, mariaDB), &v1alpha2.MariaDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MariaDB), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMariaDBs) UpdateStatus(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (*v1alpha2.MariaDB, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mariadbsResource, "status", c.ns, mariaDB), &v1alpha2.MariaDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MariaDB), err -} - -// Delete takes name of the mariaDB and deletes it. Returns an error if one occurs. -func (c *FakeMariaDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mariadbsResource, c.ns, name, opts), &v1alpha2.MariaDB{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMariaDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mariadbsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.MariaDBList{}) - return err -} - -// Patch applies the patch and returns the patched mariaDB. -func (c *FakeMariaDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MariaDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mariadbsResource, c.ns, name, pt, data, subresources...), &v1alpha2.MariaDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MariaDB), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_memcached.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_memcached.go deleted file mode 100644 index 64517da4a9..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_memcached.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMemcacheds implements MemcachedInterface -type FakeMemcacheds struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var memcachedsResource = v1alpha2.SchemeGroupVersion.WithResource("memcacheds") - -var memcachedsKind = v1alpha2.SchemeGroupVersion.WithKind("Memcached") - -// Get takes name of the memcached, and returns the corresponding memcached object, and an error if there is any. -func (c *FakeMemcacheds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Memcached, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(memcachedsResource, c.ns, name), &v1alpha2.Memcached{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Memcached), err -} - -// List takes label and field selectors, and returns the list of Memcacheds that match those selectors. -func (c *FakeMemcacheds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MemcachedList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(memcachedsResource, memcachedsKind, c.ns, opts), &v1alpha2.MemcachedList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.MemcachedList{ListMeta: obj.(*v1alpha2.MemcachedList).ListMeta} - for _, item := range obj.(*v1alpha2.MemcachedList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested memcacheds. -func (c *FakeMemcacheds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(memcachedsResource, c.ns, opts)) - -} - -// Create takes the representation of a memcached and creates it. Returns the server's representation of the memcached, and an error, if there is any. -func (c *FakeMemcacheds) Create(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.CreateOptions) (result *v1alpha2.Memcached, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(memcachedsResource, c.ns, memcached), &v1alpha2.Memcached{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Memcached), err -} - -// Update takes the representation of a memcached and updates it. Returns the server's representation of the memcached, and an error, if there is any. -func (c *FakeMemcacheds) Update(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (result *v1alpha2.Memcached, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(memcachedsResource, c.ns, memcached), &v1alpha2.Memcached{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Memcached), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMemcacheds) UpdateStatus(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (*v1alpha2.Memcached, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(memcachedsResource, "status", c.ns, memcached), &v1alpha2.Memcached{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Memcached), err -} - -// Delete takes name of the memcached and deletes it. Returns an error if one occurs. -func (c *FakeMemcacheds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(memcachedsResource, c.ns, name, opts), &v1alpha2.Memcached{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMemcacheds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(memcachedsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.MemcachedList{}) - return err -} - -// Patch applies the patch and returns the patched memcached. -func (c *FakeMemcacheds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Memcached, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(memcachedsResource, c.ns, name, pt, data, subresources...), &v1alpha2.Memcached{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Memcached), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mongodb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mongodb.go deleted file mode 100644 index 363a1f1ec6..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mongodb.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBs implements MongoDBInterface -type FakeMongoDBs struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var mongodbsResource = v1alpha2.SchemeGroupVersion.WithResource("mongodbs") - -var mongodbsKind = v1alpha2.SchemeGroupVersion.WithKind("MongoDB") - -// Get takes name of the mongoDB, and returns the corresponding mongoDB object, and an error if there is any. -func (c *FakeMongoDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MongoDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mongodbsResource, c.ns, name), &v1alpha2.MongoDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MongoDB), err -} - -// List takes label and field selectors, and returns the list of MongoDBs that match those selectors. -func (c *FakeMongoDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MongoDBList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mongodbsResource, mongodbsKind, c.ns, opts), &v1alpha2.MongoDBList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.MongoDBList{ListMeta: obj.(*v1alpha2.MongoDBList).ListMeta} - for _, item := range obj.(*v1alpha2.MongoDBList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBs. -func (c *FakeMongoDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mongodbsResource, c.ns, opts)) - -} - -// Create takes the representation of a mongoDB and creates it. Returns the server's representation of the mongoDB, and an error, if there is any. -func (c *FakeMongoDBs) Create(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.CreateOptions) (result *v1alpha2.MongoDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mongodbsResource, c.ns, mongoDB), &v1alpha2.MongoDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MongoDB), err -} - -// Update takes the representation of a mongoDB and updates it. Returns the server's representation of the mongoDB, and an error, if there is any. -func (c *FakeMongoDBs) Update(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (result *v1alpha2.MongoDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mongodbsResource, c.ns, mongoDB), &v1alpha2.MongoDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MongoDB), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMongoDBs) UpdateStatus(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (*v1alpha2.MongoDB, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mongodbsResource, "status", c.ns, mongoDB), &v1alpha2.MongoDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MongoDB), err -} - -// Delete takes name of the mongoDB and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mongodbsResource, c.ns, name, opts), &v1alpha2.MongoDB{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mongodbsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.MongoDBList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDB. -func (c *FakeMongoDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MongoDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mongodbsResource, c.ns, name, pt, data, subresources...), &v1alpha2.MongoDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MongoDB), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mysql.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mysql.go deleted file mode 100644 index 270186e9d2..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_mysql.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLs implements MySQLInterface -type FakeMySQLs struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var mysqlsResource = v1alpha2.SchemeGroupVersion.WithResource("mysqls") - -var mysqlsKind = v1alpha2.SchemeGroupVersion.WithKind("MySQL") - -// Get takes name of the mySQL, and returns the corresponding mySQL object, and an error if there is any. -func (c *FakeMySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mysqlsResource, c.ns, name), &v1alpha2.MySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MySQL), err -} - -// List takes label and field selectors, and returns the list of MySQLs that match those selectors. -func (c *FakeMySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MySQLList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mysqlsResource, mysqlsKind, c.ns, opts), &v1alpha2.MySQLList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.MySQLList{ListMeta: obj.(*v1alpha2.MySQLList).ListMeta} - for _, item := range obj.(*v1alpha2.MySQLList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLs. -func (c *FakeMySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mysqlsResource, c.ns, opts)) - -} - -// Create takes the representation of a mySQL and creates it. Returns the server's representation of the mySQL, and an error, if there is any. -func (c *FakeMySQLs) Create(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.CreateOptions) (result *v1alpha2.MySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mysqlsResource, c.ns, mySQL), &v1alpha2.MySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MySQL), err -} - -// Update takes the representation of a mySQL and updates it. Returns the server's representation of the mySQL, and an error, if there is any. -func (c *FakeMySQLs) Update(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (result *v1alpha2.MySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mysqlsResource, c.ns, mySQL), &v1alpha2.MySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MySQL), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMySQLs) UpdateStatus(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (*v1alpha2.MySQL, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mysqlsResource, "status", c.ns, mySQL), &v1alpha2.MySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MySQL), err -} - -// Delete takes name of the mySQL and deletes it. Returns an error if one occurs. -func (c *FakeMySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mysqlsResource, c.ns, name, opts), &v1alpha2.MySQL{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mysqlsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.MySQLList{}) - return err -} - -// Patch applies the patch and returns the patched mySQL. -func (c *FakeMySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mysqlsResource, c.ns, name, pt, data, subresources...), &v1alpha2.MySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.MySQL), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_perconaxtradb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_perconaxtradb.go deleted file mode 100644 index 3176eedd8c..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_perconaxtradb.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePerconaXtraDBs implements PerconaXtraDBInterface -type FakePerconaXtraDBs struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var perconaxtradbsResource = v1alpha2.SchemeGroupVersion.WithResource("perconaxtradbs") - -var perconaxtradbsKind = v1alpha2.SchemeGroupVersion.WithKind("PerconaXtraDB") - -// Get takes name of the perconaXtraDB, and returns the corresponding perconaXtraDB object, and an error if there is any. -func (c *FakePerconaXtraDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PerconaXtraDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(perconaxtradbsResource, c.ns, name), &v1alpha2.PerconaXtraDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PerconaXtraDB), err -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBs that match those selectors. -func (c *FakePerconaXtraDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PerconaXtraDBList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(perconaxtradbsResource, perconaxtradbsKind, c.ns, opts), &v1alpha2.PerconaXtraDBList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.PerconaXtraDBList{ListMeta: obj.(*v1alpha2.PerconaXtraDBList).ListMeta} - for _, item := range obj.(*v1alpha2.PerconaXtraDBList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBs. -func (c *FakePerconaXtraDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(perconaxtradbsResource, c.ns, opts)) - -} - -// Create takes the representation of a perconaXtraDB and creates it. Returns the server's representation of the perconaXtraDB, and an error, if there is any. -func (c *FakePerconaXtraDBs) Create(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.CreateOptions) (result *v1alpha2.PerconaXtraDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(perconaxtradbsResource, c.ns, perconaXtraDB), &v1alpha2.PerconaXtraDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PerconaXtraDB), err -} - -// Update takes the representation of a perconaXtraDB and updates it. Returns the server's representation of the perconaXtraDB, and an error, if there is any. -func (c *FakePerconaXtraDBs) Update(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (result *v1alpha2.PerconaXtraDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(perconaxtradbsResource, c.ns, perconaXtraDB), &v1alpha2.PerconaXtraDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PerconaXtraDB), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePerconaXtraDBs) UpdateStatus(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (*v1alpha2.PerconaXtraDB, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(perconaxtradbsResource, "status", c.ns, perconaXtraDB), &v1alpha2.PerconaXtraDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PerconaXtraDB), err -} - -// Delete takes name of the perconaXtraDB and deletes it. Returns an error if one occurs. -func (c *FakePerconaXtraDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(perconaxtradbsResource, c.ns, name, opts), &v1alpha2.PerconaXtraDB{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePerconaXtraDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(perconaxtradbsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.PerconaXtraDBList{}) - return err -} - -// Patch applies the patch and returns the patched perconaXtraDB. -func (c *FakePerconaXtraDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PerconaXtraDB, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(perconaxtradbsResource, c.ns, name, pt, data, subresources...), &v1alpha2.PerconaXtraDB{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PerconaXtraDB), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_pgbouncer.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_pgbouncer.go deleted file mode 100644 index beaa975b32..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_pgbouncer.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePgBouncers implements PgBouncerInterface -type FakePgBouncers struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var pgbouncersResource = v1alpha2.SchemeGroupVersion.WithResource("pgbouncers") - -var pgbouncersKind = v1alpha2.SchemeGroupVersion.WithKind("PgBouncer") - -// Get takes name of the pgBouncer, and returns the corresponding pgBouncer object, and an error if there is any. -func (c *FakePgBouncers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PgBouncer, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(pgbouncersResource, c.ns, name), &v1alpha2.PgBouncer{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PgBouncer), err -} - -// List takes label and field selectors, and returns the list of PgBouncers that match those selectors. -func (c *FakePgBouncers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PgBouncerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(pgbouncersResource, pgbouncersKind, c.ns, opts), &v1alpha2.PgBouncerList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.PgBouncerList{ListMeta: obj.(*v1alpha2.PgBouncerList).ListMeta} - for _, item := range obj.(*v1alpha2.PgBouncerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested pgBouncers. -func (c *FakePgBouncers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(pgbouncersResource, c.ns, opts)) - -} - -// Create takes the representation of a pgBouncer and creates it. Returns the server's representation of the pgBouncer, and an error, if there is any. -func (c *FakePgBouncers) Create(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.CreateOptions) (result *v1alpha2.PgBouncer, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(pgbouncersResource, c.ns, pgBouncer), &v1alpha2.PgBouncer{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PgBouncer), err -} - -// Update takes the representation of a pgBouncer and updates it. Returns the server's representation of the pgBouncer, and an error, if there is any. -func (c *FakePgBouncers) Update(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (result *v1alpha2.PgBouncer, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(pgbouncersResource, c.ns, pgBouncer), &v1alpha2.PgBouncer{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PgBouncer), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePgBouncers) UpdateStatus(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (*v1alpha2.PgBouncer, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(pgbouncersResource, "status", c.ns, pgBouncer), &v1alpha2.PgBouncer{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PgBouncer), err -} - -// Delete takes name of the pgBouncer and deletes it. Returns an error if one occurs. -func (c *FakePgBouncers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(pgbouncersResource, c.ns, name, opts), &v1alpha2.PgBouncer{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePgBouncers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(pgbouncersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.PgBouncerList{}) - return err -} - -// Patch applies the patch and returns the patched pgBouncer. -func (c *FakePgBouncers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PgBouncer, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(pgbouncersResource, c.ns, name, pt, data, subresources...), &v1alpha2.PgBouncer{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.PgBouncer), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_postgres.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_postgres.go deleted file mode 100644 index b19a048fee..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_postgres.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgreses implements PostgresInterface -type FakePostgreses struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var postgresesResource = v1alpha2.SchemeGroupVersion.WithResource("postgreses") - -var postgresesKind = v1alpha2.SchemeGroupVersion.WithKind("Postgres") - -// Get takes name of the postgres, and returns the corresponding postgres object, and an error if there is any. -func (c *FakePostgreses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Postgres, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(postgresesResource, c.ns, name), &v1alpha2.Postgres{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Postgres), err -} - -// List takes label and field selectors, and returns the list of Postgreses that match those selectors. -func (c *FakePostgreses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PostgresList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(postgresesResource, postgresesKind, c.ns, opts), &v1alpha2.PostgresList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.PostgresList{ListMeta: obj.(*v1alpha2.PostgresList).ListMeta} - for _, item := range obj.(*v1alpha2.PostgresList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgreses. -func (c *FakePostgreses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(postgresesResource, c.ns, opts)) - -} - -// Create takes the representation of a postgres and creates it. Returns the server's representation of the postgres, and an error, if there is any. -func (c *FakePostgreses) Create(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.CreateOptions) (result *v1alpha2.Postgres, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(postgresesResource, c.ns, postgres), &v1alpha2.Postgres{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Postgres), err -} - -// Update takes the representation of a postgres and updates it. Returns the server's representation of the postgres, and an error, if there is any. -func (c *FakePostgreses) Update(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (result *v1alpha2.Postgres, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(postgresesResource, c.ns, postgres), &v1alpha2.Postgres{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Postgres), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePostgreses) UpdateStatus(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (*v1alpha2.Postgres, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(postgresesResource, "status", c.ns, postgres), &v1alpha2.Postgres{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Postgres), err -} - -// Delete takes name of the postgres and deletes it. Returns an error if one occurs. -func (c *FakePostgreses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(postgresesResource, c.ns, name, opts), &v1alpha2.Postgres{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgreses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(postgresesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.PostgresList{}) - return err -} - -// Patch applies the patch and returns the patched postgres. -func (c *FakePostgreses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Postgres, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(postgresesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Postgres{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Postgres), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_proxysql.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_proxysql.go deleted file mode 100644 index 595129ebba..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_proxysql.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeProxySQLs implements ProxySQLInterface -type FakeProxySQLs struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var proxysqlsResource = v1alpha2.SchemeGroupVersion.WithResource("proxysqls") - -var proxysqlsKind = v1alpha2.SchemeGroupVersion.WithKind("ProxySQL") - -// Get takes name of the proxySQL, and returns the corresponding proxySQL object, and an error if there is any. -func (c *FakeProxySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ProxySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(proxysqlsResource, c.ns, name), &v1alpha2.ProxySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.ProxySQL), err -} - -// List takes label and field selectors, and returns the list of ProxySQLs that match those selectors. -func (c *FakeProxySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ProxySQLList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(proxysqlsResource, proxysqlsKind, c.ns, opts), &v1alpha2.ProxySQLList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.ProxySQLList{ListMeta: obj.(*v1alpha2.ProxySQLList).ListMeta} - for _, item := range obj.(*v1alpha2.ProxySQLList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested proxySQLs. -func (c *FakeProxySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(proxysqlsResource, c.ns, opts)) - -} - -// Create takes the representation of a proxySQL and creates it. Returns the server's representation of the proxySQL, and an error, if there is any. -func (c *FakeProxySQLs) Create(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.CreateOptions) (result *v1alpha2.ProxySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(proxysqlsResource, c.ns, proxySQL), &v1alpha2.ProxySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.ProxySQL), err -} - -// Update takes the representation of a proxySQL and updates it. Returns the server's representation of the proxySQL, and an error, if there is any. -func (c *FakeProxySQLs) Update(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (result *v1alpha2.ProxySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(proxysqlsResource, c.ns, proxySQL), &v1alpha2.ProxySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.ProxySQL), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProxySQLs) UpdateStatus(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (*v1alpha2.ProxySQL, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(proxysqlsResource, "status", c.ns, proxySQL), &v1alpha2.ProxySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.ProxySQL), err -} - -// Delete takes name of the proxySQL and deletes it. Returns an error if one occurs. -func (c *FakeProxySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(proxysqlsResource, c.ns, name, opts), &v1alpha2.ProxySQL{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProxySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(proxysqlsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.ProxySQLList{}) - return err -} - -// Patch applies the patch and returns the patched proxySQL. -func (c *FakeProxySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ProxySQL, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(proxysqlsResource, c.ns, name, pt, data, subresources...), &v1alpha2.ProxySQL{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.ProxySQL), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redis.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redis.go deleted file mode 100644 index 0c16d5b83c..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redis.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedises implements RedisInterface -type FakeRedises struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var redisesResource = v1alpha2.SchemeGroupVersion.WithResource("redises") - -var redisesKind = v1alpha2.SchemeGroupVersion.WithKind("Redis") - -// Get takes name of the redis, and returns the corresponding redis object, and an error if there is any. -func (c *FakeRedises) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Redis, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redisesResource, c.ns, name), &v1alpha2.Redis{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Redis), err -} - -// List takes label and field selectors, and returns the list of Redises that match those selectors. -func (c *FakeRedises) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RedisList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redisesResource, redisesKind, c.ns, opts), &v1alpha2.RedisList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.RedisList{ListMeta: obj.(*v1alpha2.RedisList).ListMeta} - for _, item := range obj.(*v1alpha2.RedisList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redises. -func (c *FakeRedises) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redisesResource, c.ns, opts)) - -} - -// Create takes the representation of a redis and creates it. Returns the server's representation of the redis, and an error, if there is any. -func (c *FakeRedises) Create(ctx context.Context, redis *v1alpha2.Redis, opts v1.CreateOptions) (result *v1alpha2.Redis, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redisesResource, c.ns, redis), &v1alpha2.Redis{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Redis), err -} - -// Update takes the representation of a redis and updates it. Returns the server's representation of the redis, and an error, if there is any. -func (c *FakeRedises) Update(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (result *v1alpha2.Redis, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redisesResource, c.ns, redis), &v1alpha2.Redis{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Redis), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedises) UpdateStatus(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (*v1alpha2.Redis, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redisesResource, "status", c.ns, redis), &v1alpha2.Redis{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Redis), err -} - -// Delete takes name of the redis and deletes it. Returns an error if one occurs. -func (c *FakeRedises) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redisesResource, c.ns, name, opts), &v1alpha2.Redis{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedises) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redisesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.RedisList{}) - return err -} - -// Patch applies the patch and returns the patched redis. -func (c *FakeRedises) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Redis, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redisesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Redis{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Redis), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redissentinel.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redissentinel.go deleted file mode 100644 index 32e5f09cf7..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_redissentinel.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisSentinels implements RedisSentinelInterface -type FakeRedisSentinels struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var redissentinelsResource = v1alpha2.SchemeGroupVersion.WithResource("redissentinels") - -var redissentinelsKind = v1alpha2.SchemeGroupVersion.WithKind("RedisSentinel") - -// Get takes name of the redisSentinel, and returns the corresponding redisSentinel object, and an error if there is any. -func (c *FakeRedisSentinels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.RedisSentinel, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redissentinelsResource, c.ns, name), &v1alpha2.RedisSentinel{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.RedisSentinel), err -} - -// List takes label and field selectors, and returns the list of RedisSentinels that match those selectors. -func (c *FakeRedisSentinels) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RedisSentinelList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redissentinelsResource, redissentinelsKind, c.ns, opts), &v1alpha2.RedisSentinelList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.RedisSentinelList{ListMeta: obj.(*v1alpha2.RedisSentinelList).ListMeta} - for _, item := range obj.(*v1alpha2.RedisSentinelList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisSentinels. -func (c *FakeRedisSentinels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redissentinelsResource, c.ns, opts)) - -} - -// Create takes the representation of a redisSentinel and creates it. Returns the server's representation of the redisSentinel, and an error, if there is any. -func (c *FakeRedisSentinels) Create(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.CreateOptions) (result *v1alpha2.RedisSentinel, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redissentinelsResource, c.ns, redisSentinel), &v1alpha2.RedisSentinel{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.RedisSentinel), err -} - -// Update takes the representation of a redisSentinel and updates it. Returns the server's representation of the redisSentinel, and an error, if there is any. -func (c *FakeRedisSentinels) Update(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (result *v1alpha2.RedisSentinel, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redissentinelsResource, c.ns, redisSentinel), &v1alpha2.RedisSentinel{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.RedisSentinel), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedisSentinels) UpdateStatus(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (*v1alpha2.RedisSentinel, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redissentinelsResource, "status", c.ns, redisSentinel), &v1alpha2.RedisSentinel{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.RedisSentinel), err -} - -// Delete takes name of the redisSentinel and deletes it. Returns an error if one occurs. -func (c *FakeRedisSentinels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redissentinelsResource, c.ns, name, opts), &v1alpha2.RedisSentinel{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisSentinels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redissentinelsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.RedisSentinelList{}) - return err -} - -// Patch applies the patch and returns the patched redisSentinel. -func (c *FakeRedisSentinels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.RedisSentinel, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redissentinelsResource, c.ns, name, pt, data, subresources...), &v1alpha2.RedisSentinel{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.RedisSentinel), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_singlestore.go b/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_singlestore.go deleted file mode 100644 index 6485ebe34d..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/fake/fake_singlestore.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSinglestores implements SinglestoreInterface -type FakeSinglestores struct { - Fake *FakeKubedbV1alpha2 - ns string -} - -var singlestoresResource = v1alpha2.SchemeGroupVersion.WithResource("singlestores") - -var singlestoresKind = v1alpha2.SchemeGroupVersion.WithKind("Singlestore") - -// Get takes name of the singlestore, and returns the corresponding singlestore object, and an error if there is any. -func (c *FakeSinglestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Singlestore, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(singlestoresResource, c.ns, name), &v1alpha2.Singlestore{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Singlestore), err -} - -// List takes label and field selectors, and returns the list of Singlestores that match those selectors. -func (c *FakeSinglestores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.SinglestoreList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(singlestoresResource, singlestoresKind, c.ns, opts), &v1alpha2.SinglestoreList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha2.SinglestoreList{ListMeta: obj.(*v1alpha2.SinglestoreList).ListMeta} - for _, item := range obj.(*v1alpha2.SinglestoreList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested singlestores. -func (c *FakeSinglestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(singlestoresResource, c.ns, opts)) - -} - -// Create takes the representation of a singlestore and creates it. Returns the server's representation of the singlestore, and an error, if there is any. -func (c *FakeSinglestores) Create(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.CreateOptions) (result *v1alpha2.Singlestore, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(singlestoresResource, c.ns, singlestore), &v1alpha2.Singlestore{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Singlestore), err -} - -// Update takes the representation of a singlestore and updates it. Returns the server's representation of the singlestore, and an error, if there is any. -func (c *FakeSinglestores) Update(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (result *v1alpha2.Singlestore, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(singlestoresResource, c.ns, singlestore), &v1alpha2.Singlestore{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Singlestore), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSinglestores) UpdateStatus(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (*v1alpha2.Singlestore, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(singlestoresResource, "status", c.ns, singlestore), &v1alpha2.Singlestore{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Singlestore), err -} - -// Delete takes name of the singlestore and deletes it. Returns an error if one occurs. -func (c *FakeSinglestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(singlestoresResource, c.ns, name, opts), &v1alpha2.Singlestore{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSinglestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(singlestoresResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha2.SinglestoreList{}) - return err -} - -// Patch applies the patch and returns the patched singlestore. -func (c *FakeSinglestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Singlestore, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(singlestoresResource, c.ns, name, pt, data, subresources...), &v1alpha2.Singlestore{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha2.Singlestore), err -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/generated_expansion.go b/client/clientset/versioned/typed/kubedb/v1alpha2/generated_expansion.go deleted file mode 100644 index b76344094a..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/generated_expansion.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -type DruidExpansion interface{} - -type ElasticsearchExpansion interface{} - -type EtcdExpansion interface{} - -type KafkaExpansion interface{} - -type MariaDBExpansion interface{} - -type MemcachedExpansion interface{} - -type MongoDBExpansion interface{} - -type MySQLExpansion interface{} - -type PerconaXtraDBExpansion interface{} - -type PgBouncerExpansion interface{} - -type PostgresExpansion interface{} - -type ProxySQLExpansion interface{} - -type RedisExpansion interface{} - -type RedisSentinelExpansion interface{} - -type SinglestoreExpansion interface{} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/kafka.go b/client/clientset/versioned/typed/kubedb/v1alpha2/kafka.go deleted file mode 100644 index 3a809e67ba..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/kafka.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// KafkasGetter has a method to return a KafkaInterface. -// A group's client should implement this interface. -type KafkasGetter interface { - Kafkas(namespace string) KafkaInterface -} - -// KafkaInterface has methods to work with Kafka resources. -type KafkaInterface interface { - Create(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.CreateOptions) (*v1alpha2.Kafka, error) - Update(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (*v1alpha2.Kafka, error) - UpdateStatus(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (*v1alpha2.Kafka, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Kafka, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.KafkaList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Kafka, err error) - KafkaExpansion -} - -// kafkas implements KafkaInterface -type kafkas struct { - client rest.Interface - ns string -} - -// newKafkas returns a Kafkas -func newKafkas(c *KubedbV1alpha2Client, namespace string) *kafkas { - return &kafkas{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the kafka, and returns the corresponding kafka object, and an error if there is any. -func (c *kafkas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Kafka, err error) { - result = &v1alpha2.Kafka{} - err = c.client.Get(). - Namespace(c.ns). - Resource("kafkas"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Kafkas that match those selectors. -func (c *kafkas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.KafkaList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.KafkaList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("kafkas"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested kafkas. -func (c *kafkas) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("kafkas"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a kafka and creates it. Returns the server's representation of the kafka, and an error, if there is any. -func (c *kafkas) Create(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.CreateOptions) (result *v1alpha2.Kafka, err error) { - result = &v1alpha2.Kafka{} - err = c.client.Post(). - Namespace(c.ns). - Resource("kafkas"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafka). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a kafka and updates it. Returns the server's representation of the kafka, and an error, if there is any. -func (c *kafkas) Update(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (result *v1alpha2.Kafka, err error) { - result = &v1alpha2.Kafka{} - err = c.client.Put(). - Namespace(c.ns). - Resource("kafkas"). - Name(kafka.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafka). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *kafkas) UpdateStatus(ctx context.Context, kafka *v1alpha2.Kafka, opts v1.UpdateOptions) (result *v1alpha2.Kafka, err error) { - result = &v1alpha2.Kafka{} - err = c.client.Put(). - Namespace(c.ns). - Resource("kafkas"). - Name(kafka.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafka). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the kafka and deletes it. Returns an error if one occurs. -func (c *kafkas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("kafkas"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *kafkas) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("kafkas"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched kafka. -func (c *kafkas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Kafka, err error) { - result = &v1alpha2.Kafka{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("kafkas"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/kubedb_client.go b/client/clientset/versioned/typed/kubedb/v1alpha2/kubedb_client.go deleted file mode 100644 index 463f048acd..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/kubedb_client.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "net/http" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type KubedbV1alpha2Interface interface { - RESTClient() rest.Interface - DruidsGetter - ElasticsearchesGetter - EtcdsGetter - KafkasGetter - MariaDBsGetter - MemcachedsGetter - MongoDBsGetter - MySQLsGetter - PerconaXtraDBsGetter - PgBouncersGetter - PostgresesGetter - ProxySQLsGetter - RedisesGetter - RedisSentinelsGetter - SinglestoresGetter -} - -// KubedbV1alpha2Client is used to interact with features provided by the kubedb.com group. -type KubedbV1alpha2Client struct { - restClient rest.Interface -} - -func (c *KubedbV1alpha2Client) Druids(namespace string) DruidInterface { - return newDruids(c, namespace) -} - -func (c *KubedbV1alpha2Client) Elasticsearches(namespace string) ElasticsearchInterface { - return newElasticsearches(c, namespace) -} - -func (c *KubedbV1alpha2Client) Etcds(namespace string) EtcdInterface { - return newEtcds(c, namespace) -} - -func (c *KubedbV1alpha2Client) Kafkas(namespace string) KafkaInterface { - return newKafkas(c, namespace) -} - -func (c *KubedbV1alpha2Client) MariaDBs(namespace string) MariaDBInterface { - return newMariaDBs(c, namespace) -} - -func (c *KubedbV1alpha2Client) Memcacheds(namespace string) MemcachedInterface { - return newMemcacheds(c, namespace) -} - -func (c *KubedbV1alpha2Client) MongoDBs(namespace string) MongoDBInterface { - return newMongoDBs(c, namespace) -} - -func (c *KubedbV1alpha2Client) MySQLs(namespace string) MySQLInterface { - return newMySQLs(c, namespace) -} - -func (c *KubedbV1alpha2Client) PerconaXtraDBs(namespace string) PerconaXtraDBInterface { - return newPerconaXtraDBs(c, namespace) -} - -func (c *KubedbV1alpha2Client) PgBouncers(namespace string) PgBouncerInterface { - return newPgBouncers(c, namespace) -} - -func (c *KubedbV1alpha2Client) Postgreses(namespace string) PostgresInterface { - return newPostgreses(c, namespace) -} - -func (c *KubedbV1alpha2Client) ProxySQLs(namespace string) ProxySQLInterface { - return newProxySQLs(c, namespace) -} - -func (c *KubedbV1alpha2Client) Redises(namespace string) RedisInterface { - return newRedises(c, namespace) -} - -func (c *KubedbV1alpha2Client) RedisSentinels(namespace string) RedisSentinelInterface { - return newRedisSentinels(c, namespace) -} - -func (c *KubedbV1alpha2Client) Singlestores(namespace string) SinglestoreInterface { - return newSinglestores(c, namespace) -} - -// NewForConfig creates a new KubedbV1alpha2Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*KubedbV1alpha2Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new KubedbV1alpha2Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*KubedbV1alpha2Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &KubedbV1alpha2Client{client}, nil -} - -// NewForConfigOrDie creates a new KubedbV1alpha2Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *KubedbV1alpha2Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new KubedbV1alpha2Client for the given RESTClient. -func New(c rest.Interface) *KubedbV1alpha2Client { - return &KubedbV1alpha2Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha2.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *KubedbV1alpha2Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/mariadb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/mariadb.go deleted file mode 100644 index 37314271d9..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/mariadb.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MariaDBsGetter has a method to return a MariaDBInterface. -// A group's client should implement this interface. -type MariaDBsGetter interface { - MariaDBs(namespace string) MariaDBInterface -} - -// MariaDBInterface has methods to work with MariaDB resources. -type MariaDBInterface interface { - Create(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.CreateOptions) (*v1alpha2.MariaDB, error) - Update(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (*v1alpha2.MariaDB, error) - UpdateStatus(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (*v1alpha2.MariaDB, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.MariaDB, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.MariaDBList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MariaDB, err error) - MariaDBExpansion -} - -// mariaDBs implements MariaDBInterface -type mariaDBs struct { - client rest.Interface - ns string -} - -// newMariaDBs returns a MariaDBs -func newMariaDBs(c *KubedbV1alpha2Client, namespace string) *mariaDBs { - return &mariaDBs{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mariaDB, and returns the corresponding mariaDB object, and an error if there is any. -func (c *mariaDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MariaDB, err error) { - result = &v1alpha2.MariaDB{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MariaDBs that match those selectors. -func (c *mariaDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MariaDBList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.MariaDBList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mariaDBs. -func (c *mariaDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mariadbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mariaDB and creates it. Returns the server's representation of the mariaDB, and an error, if there is any. -func (c *mariaDBs) Create(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.CreateOptions) (result *v1alpha2.MariaDB, err error) { - result = &v1alpha2.MariaDB{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mariadbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDB). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mariaDB and updates it. Returns the server's representation of the mariaDB, and an error, if there is any. -func (c *mariaDBs) Update(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (result *v1alpha2.MariaDB, err error) { - result = &v1alpha2.MariaDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbs"). - Name(mariaDB.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDB). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mariaDBs) UpdateStatus(ctx context.Context, mariaDB *v1alpha2.MariaDB, opts v1.UpdateOptions) (result *v1alpha2.MariaDB, err error) { - result = &v1alpha2.MariaDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbs"). - Name(mariaDB.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDB). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mariaDB and deletes it. Returns an error if one occurs. -func (c *mariaDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mariaDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mariaDB. -func (c *mariaDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MariaDB, err error) { - result = &v1alpha2.MariaDB{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mariadbs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/memcached.go b/client/clientset/versioned/typed/kubedb/v1alpha2/memcached.go deleted file mode 100644 index 4b18840723..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/memcached.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MemcachedsGetter has a method to return a MemcachedInterface. -// A group's client should implement this interface. -type MemcachedsGetter interface { - Memcacheds(namespace string) MemcachedInterface -} - -// MemcachedInterface has methods to work with Memcached resources. -type MemcachedInterface interface { - Create(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.CreateOptions) (*v1alpha2.Memcached, error) - Update(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (*v1alpha2.Memcached, error) - UpdateStatus(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (*v1alpha2.Memcached, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Memcached, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.MemcachedList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Memcached, err error) - MemcachedExpansion -} - -// memcacheds implements MemcachedInterface -type memcacheds struct { - client rest.Interface - ns string -} - -// newMemcacheds returns a Memcacheds -func newMemcacheds(c *KubedbV1alpha2Client, namespace string) *memcacheds { - return &memcacheds{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the memcached, and returns the corresponding memcached object, and an error if there is any. -func (c *memcacheds) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Memcached, err error) { - result = &v1alpha2.Memcached{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcacheds"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Memcacheds that match those selectors. -func (c *memcacheds) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MemcachedList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.MemcachedList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcacheds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested memcacheds. -func (c *memcacheds) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("memcacheds"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a memcached and creates it. Returns the server's representation of the memcached, and an error, if there is any. -func (c *memcacheds) Create(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.CreateOptions) (result *v1alpha2.Memcached, err error) { - result = &v1alpha2.Memcached{} - err = c.client.Post(). - Namespace(c.ns). - Resource("memcacheds"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcached). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a memcached and updates it. Returns the server's representation of the memcached, and an error, if there is any. -func (c *memcacheds) Update(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (result *v1alpha2.Memcached, err error) { - result = &v1alpha2.Memcached{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcacheds"). - Name(memcached.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcached). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *memcacheds) UpdateStatus(ctx context.Context, memcached *v1alpha2.Memcached, opts v1.UpdateOptions) (result *v1alpha2.Memcached, err error) { - result = &v1alpha2.Memcached{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcacheds"). - Name(memcached.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcached). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the memcached and deletes it. Returns an error if one occurs. -func (c *memcacheds) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("memcacheds"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *memcacheds) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("memcacheds"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched memcached. -func (c *memcacheds) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Memcached, err error) { - result = &v1alpha2.Memcached{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("memcacheds"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/mongodb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/mongodb.go deleted file mode 100644 index b662f3901d..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/mongodb.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBsGetter has a method to return a MongoDBInterface. -// A group's client should implement this interface. -type MongoDBsGetter interface { - MongoDBs(namespace string) MongoDBInterface -} - -// MongoDBInterface has methods to work with MongoDB resources. -type MongoDBInterface interface { - Create(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.CreateOptions) (*v1alpha2.MongoDB, error) - Update(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (*v1alpha2.MongoDB, error) - UpdateStatus(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (*v1alpha2.MongoDB, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.MongoDB, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.MongoDBList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MongoDB, err error) - MongoDBExpansion -} - -// mongoDBs implements MongoDBInterface -type mongoDBs struct { - client rest.Interface - ns string -} - -// newMongoDBs returns a MongoDBs -func newMongoDBs(c *KubedbV1alpha2Client, namespace string) *mongoDBs { - return &mongoDBs{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mongoDB, and returns the corresponding mongoDB object, and an error if there is any. -func (c *mongoDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MongoDB, err error) { - result = &v1alpha2.MongoDB{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBs that match those selectors. -func (c *mongoDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MongoDBList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.MongoDBList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBs. -func (c *mongoDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mongodbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDB and creates it. Returns the server's representation of the mongoDB, and an error, if there is any. -func (c *mongoDBs) Create(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.CreateOptions) (result *v1alpha2.MongoDB, err error) { - result = &v1alpha2.MongoDB{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mongodbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDB). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDB and updates it. Returns the server's representation of the mongoDB, and an error, if there is any. -func (c *mongoDBs) Update(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (result *v1alpha2.MongoDB, err error) { - result = &v1alpha2.MongoDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbs"). - Name(mongoDB.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDB). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mongoDBs) UpdateStatus(ctx context.Context, mongoDB *v1alpha2.MongoDB, opts v1.UpdateOptions) (result *v1alpha2.MongoDB, err error) { - result = &v1alpha2.MongoDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbs"). - Name(mongoDB.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDB). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDB and deletes it. Returns an error if one occurs. -func (c *mongoDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDB. -func (c *mongoDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MongoDB, err error) { - result = &v1alpha2.MongoDB{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mongodbs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/mysql.go b/client/clientset/versioned/typed/kubedb/v1alpha2/mysql.go deleted file mode 100644 index 5592cd93f9..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/mysql.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLsGetter has a method to return a MySQLInterface. -// A group's client should implement this interface. -type MySQLsGetter interface { - MySQLs(namespace string) MySQLInterface -} - -// MySQLInterface has methods to work with MySQL resources. -type MySQLInterface interface { - Create(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.CreateOptions) (*v1alpha2.MySQL, error) - Update(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (*v1alpha2.MySQL, error) - UpdateStatus(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (*v1alpha2.MySQL, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.MySQL, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.MySQLList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MySQL, err error) - MySQLExpansion -} - -// mySQLs implements MySQLInterface -type mySQLs struct { - client rest.Interface - ns string -} - -// newMySQLs returns a MySQLs -func newMySQLs(c *KubedbV1alpha2Client, namespace string) *mySQLs { - return &mySQLs{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mySQL, and returns the corresponding mySQL object, and an error if there is any. -func (c *mySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.MySQL, err error) { - result = &v1alpha2.MySQL{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqls"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLs that match those selectors. -func (c *mySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.MySQLList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.MySQLList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLs. -func (c *mySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQL and creates it. Returns the server's representation of the mySQL, and an error, if there is any. -func (c *mySQLs) Create(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.CreateOptions) (result *v1alpha2.MySQL, err error) { - result = &v1alpha2.MySQL{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQL). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQL and updates it. Returns the server's representation of the mySQL, and an error, if there is any. -func (c *mySQLs) Update(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (result *v1alpha2.MySQL, err error) { - result = &v1alpha2.MySQL{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqls"). - Name(mySQL.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQL). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mySQLs) UpdateStatus(ctx context.Context, mySQL *v1alpha2.MySQL, opts v1.UpdateOptions) (result *v1alpha2.MySQL, err error) { - result = &v1alpha2.MySQL{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqls"). - Name(mySQL.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQL). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQL and deletes it. Returns an error if one occurs. -func (c *mySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqls"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqls"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQL. -func (c *mySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.MySQL, err error) { - result = &v1alpha2.MySQL{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mysqls"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/perconaxtradb.go b/client/clientset/versioned/typed/kubedb/v1alpha2/perconaxtradb.go deleted file mode 100644 index f500b04ef5..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/perconaxtradb.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PerconaXtraDBsGetter has a method to return a PerconaXtraDBInterface. -// A group's client should implement this interface. -type PerconaXtraDBsGetter interface { - PerconaXtraDBs(namespace string) PerconaXtraDBInterface -} - -// PerconaXtraDBInterface has methods to work with PerconaXtraDB resources. -type PerconaXtraDBInterface interface { - Create(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.CreateOptions) (*v1alpha2.PerconaXtraDB, error) - Update(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (*v1alpha2.PerconaXtraDB, error) - UpdateStatus(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (*v1alpha2.PerconaXtraDB, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.PerconaXtraDB, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.PerconaXtraDBList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PerconaXtraDB, err error) - PerconaXtraDBExpansion -} - -// perconaXtraDBs implements PerconaXtraDBInterface -type perconaXtraDBs struct { - client rest.Interface - ns string -} - -// newPerconaXtraDBs returns a PerconaXtraDBs -func newPerconaXtraDBs(c *KubedbV1alpha2Client, namespace string) *perconaXtraDBs { - return &perconaXtraDBs{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the perconaXtraDB, and returns the corresponding perconaXtraDB object, and an error if there is any. -func (c *perconaXtraDBs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PerconaXtraDB, err error) { - result = &v1alpha2.PerconaXtraDB{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBs that match those selectors. -func (c *perconaXtraDBs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PerconaXtraDBList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.PerconaXtraDBList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBs. -func (c *perconaXtraDBs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a perconaXtraDB and creates it. Returns the server's representation of the perconaXtraDB, and an error, if there is any. -func (c *perconaXtraDBs) Create(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.CreateOptions) (result *v1alpha2.PerconaXtraDB, err error) { - result = &v1alpha2.PerconaXtraDB{} - err = c.client.Post(). - Namespace(c.ns). - Resource("perconaxtradbs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDB). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a perconaXtraDB and updates it. Returns the server's representation of the perconaXtraDB, and an error, if there is any. -func (c *perconaXtraDBs) Update(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (result *v1alpha2.PerconaXtraDB, err error) { - result = &v1alpha2.PerconaXtraDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbs"). - Name(perconaXtraDB.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDB). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *perconaXtraDBs) UpdateStatus(ctx context.Context, perconaXtraDB *v1alpha2.PerconaXtraDB, opts v1.UpdateOptions) (result *v1alpha2.PerconaXtraDB, err error) { - result = &v1alpha2.PerconaXtraDB{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbs"). - Name(perconaXtraDB.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDB). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the perconaXtraDB and deletes it. Returns an error if one occurs. -func (c *perconaXtraDBs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *perconaXtraDBs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched perconaXtraDB. -func (c *perconaXtraDBs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PerconaXtraDB, err error) { - result = &v1alpha2.PerconaXtraDB{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("perconaxtradbs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/pgbouncer.go b/client/clientset/versioned/typed/kubedb/v1alpha2/pgbouncer.go deleted file mode 100644 index f10768c946..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/pgbouncer.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PgBouncersGetter has a method to return a PgBouncerInterface. -// A group's client should implement this interface. -type PgBouncersGetter interface { - PgBouncers(namespace string) PgBouncerInterface -} - -// PgBouncerInterface has methods to work with PgBouncer resources. -type PgBouncerInterface interface { - Create(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.CreateOptions) (*v1alpha2.PgBouncer, error) - Update(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (*v1alpha2.PgBouncer, error) - UpdateStatus(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (*v1alpha2.PgBouncer, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.PgBouncer, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.PgBouncerList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PgBouncer, err error) - PgBouncerExpansion -} - -// pgBouncers implements PgBouncerInterface -type pgBouncers struct { - client rest.Interface - ns string -} - -// newPgBouncers returns a PgBouncers -func newPgBouncers(c *KubedbV1alpha2Client, namespace string) *pgBouncers { - return &pgBouncers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the pgBouncer, and returns the corresponding pgBouncer object, and an error if there is any. -func (c *pgBouncers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PgBouncer, err error) { - result = &v1alpha2.PgBouncer{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbouncers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PgBouncers that match those selectors. -func (c *pgBouncers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PgBouncerList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.PgBouncerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbouncers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested pgBouncers. -func (c *pgBouncers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("pgbouncers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a pgBouncer and creates it. Returns the server's representation of the pgBouncer, and an error, if there is any. -func (c *pgBouncers) Create(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.CreateOptions) (result *v1alpha2.PgBouncer, err error) { - result = &v1alpha2.PgBouncer{} - err = c.client.Post(). - Namespace(c.ns). - Resource("pgbouncers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncer). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a pgBouncer and updates it. Returns the server's representation of the pgBouncer, and an error, if there is any. -func (c *pgBouncers) Update(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (result *v1alpha2.PgBouncer, err error) { - result = &v1alpha2.PgBouncer{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbouncers"). - Name(pgBouncer.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncer). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *pgBouncers) UpdateStatus(ctx context.Context, pgBouncer *v1alpha2.PgBouncer, opts v1.UpdateOptions) (result *v1alpha2.PgBouncer, err error) { - result = &v1alpha2.PgBouncer{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbouncers"). - Name(pgBouncer.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncer). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the pgBouncer and deletes it. Returns an error if one occurs. -func (c *pgBouncers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbouncers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *pgBouncers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbouncers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched pgBouncer. -func (c *pgBouncers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.PgBouncer, err error) { - result = &v1alpha2.PgBouncer{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("pgbouncers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/postgres.go b/client/clientset/versioned/typed/kubedb/v1alpha2/postgres.go deleted file mode 100644 index 1d6676a724..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/postgres.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresesGetter has a method to return a PostgresInterface. -// A group's client should implement this interface. -type PostgresesGetter interface { - Postgreses(namespace string) PostgresInterface -} - -// PostgresInterface has methods to work with Postgres resources. -type PostgresInterface interface { - Create(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.CreateOptions) (*v1alpha2.Postgres, error) - Update(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (*v1alpha2.Postgres, error) - UpdateStatus(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (*v1alpha2.Postgres, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Postgres, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.PostgresList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Postgres, err error) - PostgresExpansion -} - -// postgreses implements PostgresInterface -type postgreses struct { - client rest.Interface - ns string -} - -// newPostgreses returns a Postgreses -func newPostgreses(c *KubedbV1alpha2Client, namespace string) *postgreses { - return &postgreses{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the postgres, and returns the corresponding postgres object, and an error if there is any. -func (c *postgreses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Postgres, err error) { - result = &v1alpha2.Postgres{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgreses"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Postgreses that match those selectors. -func (c *postgreses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PostgresList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.PostgresList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgreses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgreses. -func (c *postgreses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("postgreses"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgres and creates it. Returns the server's representation of the postgres, and an error, if there is any. -func (c *postgreses) Create(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.CreateOptions) (result *v1alpha2.Postgres, err error) { - result = &v1alpha2.Postgres{} - err = c.client.Post(). - Namespace(c.ns). - Resource("postgreses"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgres). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgres and updates it. Returns the server's representation of the postgres, and an error, if there is any. -func (c *postgreses) Update(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (result *v1alpha2.Postgres, err error) { - result = &v1alpha2.Postgres{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgreses"). - Name(postgres.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgres). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *postgreses) UpdateStatus(ctx context.Context, postgres *v1alpha2.Postgres, opts v1.UpdateOptions) (result *v1alpha2.Postgres, err error) { - result = &v1alpha2.Postgres{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgreses"). - Name(postgres.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgres). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgres and deletes it. Returns an error if one occurs. -func (c *postgreses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("postgreses"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgreses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("postgreses"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgres. -func (c *postgreses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Postgres, err error) { - result = &v1alpha2.Postgres{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("postgreses"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/proxysql.go b/client/clientset/versioned/typed/kubedb/v1alpha2/proxysql.go deleted file mode 100644 index cab09d9e9b..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/proxysql.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ProxySQLsGetter has a method to return a ProxySQLInterface. -// A group's client should implement this interface. -type ProxySQLsGetter interface { - ProxySQLs(namespace string) ProxySQLInterface -} - -// ProxySQLInterface has methods to work with ProxySQL resources. -type ProxySQLInterface interface { - Create(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.CreateOptions) (*v1alpha2.ProxySQL, error) - Update(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (*v1alpha2.ProxySQL, error) - UpdateStatus(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (*v1alpha2.ProxySQL, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.ProxySQL, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ProxySQLList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ProxySQL, err error) - ProxySQLExpansion -} - -// proxySQLs implements ProxySQLInterface -type proxySQLs struct { - client rest.Interface - ns string -} - -// newProxySQLs returns a ProxySQLs -func newProxySQLs(c *KubedbV1alpha2Client, namespace string) *proxySQLs { - return &proxySQLs{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the proxySQL, and returns the corresponding proxySQL object, and an error if there is any. -func (c *proxySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ProxySQL, err error) { - result = &v1alpha2.ProxySQL{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqls"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProxySQLs that match those selectors. -func (c *proxySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ProxySQLList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.ProxySQLList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested proxySQLs. -func (c *proxySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("proxysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a proxySQL and creates it. Returns the server's representation of the proxySQL, and an error, if there is any. -func (c *proxySQLs) Create(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.CreateOptions) (result *v1alpha2.ProxySQL, err error) { - result = &v1alpha2.ProxySQL{} - err = c.client.Post(). - Namespace(c.ns). - Resource("proxysqls"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQL). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a proxySQL and updates it. Returns the server's representation of the proxySQL, and an error, if there is any. -func (c *proxySQLs) Update(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (result *v1alpha2.ProxySQL, err error) { - result = &v1alpha2.ProxySQL{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqls"). - Name(proxySQL.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQL). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *proxySQLs) UpdateStatus(ctx context.Context, proxySQL *v1alpha2.ProxySQL, opts v1.UpdateOptions) (result *v1alpha2.ProxySQL, err error) { - result = &v1alpha2.ProxySQL{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqls"). - Name(proxySQL.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQL). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the proxySQL and deletes it. Returns an error if one occurs. -func (c *proxySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqls"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *proxySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqls"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched proxySQL. -func (c *proxySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.ProxySQL, err error) { - result = &v1alpha2.ProxySQL{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("proxysqls"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/redis.go b/client/clientset/versioned/typed/kubedb/v1alpha2/redis.go deleted file mode 100644 index cc53f023a1..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/redis.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisesGetter has a method to return a RedisInterface. -// A group's client should implement this interface. -type RedisesGetter interface { - Redises(namespace string) RedisInterface -} - -// RedisInterface has methods to work with Redis resources. -type RedisInterface interface { - Create(ctx context.Context, redis *v1alpha2.Redis, opts v1.CreateOptions) (*v1alpha2.Redis, error) - Update(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (*v1alpha2.Redis, error) - UpdateStatus(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (*v1alpha2.Redis, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Redis, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.RedisList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Redis, err error) - RedisExpansion -} - -// redises implements RedisInterface -type redises struct { - client rest.Interface - ns string -} - -// newRedises returns a Redises -func newRedises(c *KubedbV1alpha2Client, namespace string) *redises { - return &redises{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redis, and returns the corresponding redis object, and an error if there is any. -func (c *redises) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Redis, err error) { - result = &v1alpha2.Redis{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redises"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Redises that match those selectors. -func (c *redises) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RedisList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.RedisList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redises"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redises. -func (c *redises) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redises"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redis and creates it. Returns the server's representation of the redis, and an error, if there is any. -func (c *redises) Create(ctx context.Context, redis *v1alpha2.Redis, opts v1.CreateOptions) (result *v1alpha2.Redis, err error) { - result = &v1alpha2.Redis{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redises"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redis). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redis and updates it. Returns the server's representation of the redis, and an error, if there is any. -func (c *redises) Update(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (result *v1alpha2.Redis, err error) { - result = &v1alpha2.Redis{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redises"). - Name(redis.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redis). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redises) UpdateStatus(ctx context.Context, redis *v1alpha2.Redis, opts v1.UpdateOptions) (result *v1alpha2.Redis, err error) { - result = &v1alpha2.Redis{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redises"). - Name(redis.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redis). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redis and deletes it. Returns an error if one occurs. -func (c *redises) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redises"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redises) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redises"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redis. -func (c *redises) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Redis, err error) { - result = &v1alpha2.Redis{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redises"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/redissentinel.go b/client/clientset/versioned/typed/kubedb/v1alpha2/redissentinel.go deleted file mode 100644 index 7c10945ea2..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/redissentinel.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisSentinelsGetter has a method to return a RedisSentinelInterface. -// A group's client should implement this interface. -type RedisSentinelsGetter interface { - RedisSentinels(namespace string) RedisSentinelInterface -} - -// RedisSentinelInterface has methods to work with RedisSentinel resources. -type RedisSentinelInterface interface { - Create(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.CreateOptions) (*v1alpha2.RedisSentinel, error) - Update(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (*v1alpha2.RedisSentinel, error) - UpdateStatus(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (*v1alpha2.RedisSentinel, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.RedisSentinel, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.RedisSentinelList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.RedisSentinel, err error) - RedisSentinelExpansion -} - -// redisSentinels implements RedisSentinelInterface -type redisSentinels struct { - client rest.Interface - ns string -} - -// newRedisSentinels returns a RedisSentinels -func newRedisSentinels(c *KubedbV1alpha2Client, namespace string) *redisSentinels { - return &redisSentinels{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redisSentinel, and returns the corresponding redisSentinel object, and an error if there is any. -func (c *redisSentinels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.RedisSentinel, err error) { - result = &v1alpha2.RedisSentinel{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinels"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisSentinels that match those selectors. -func (c *redisSentinels) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.RedisSentinelList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.RedisSentinelList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinels"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisSentinels. -func (c *redisSentinels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redissentinels"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisSentinel and creates it. Returns the server's representation of the redisSentinel, and an error, if there is any. -func (c *redisSentinels) Create(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.CreateOptions) (result *v1alpha2.RedisSentinel, err error) { - result = &v1alpha2.RedisSentinel{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redissentinels"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinel). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisSentinel and updates it. Returns the server's representation of the redisSentinel, and an error, if there is any. -func (c *redisSentinels) Update(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (result *v1alpha2.RedisSentinel, err error) { - result = &v1alpha2.RedisSentinel{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinels"). - Name(redisSentinel.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinel). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redisSentinels) UpdateStatus(ctx context.Context, redisSentinel *v1alpha2.RedisSentinel, opts v1.UpdateOptions) (result *v1alpha2.RedisSentinel, err error) { - result = &v1alpha2.RedisSentinel{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinels"). - Name(redisSentinel.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinel). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisSentinel and deletes it. Returns an error if one occurs. -func (c *redisSentinels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinels"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisSentinels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinels"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisSentinel. -func (c *redisSentinels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.RedisSentinel, err error) { - result = &v1alpha2.RedisSentinel{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redissentinels"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/kubedb/v1alpha2/singlestore.go b/client/clientset/versioned/typed/kubedb/v1alpha2/singlestore.go deleted file mode 100644 index 63dc67ff77..0000000000 --- a/client/clientset/versioned/typed/kubedb/v1alpha2/singlestore.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha2 - -import ( - "context" - "time" - - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SinglestoresGetter has a method to return a SinglestoreInterface. -// A group's client should implement this interface. -type SinglestoresGetter interface { - Singlestores(namespace string) SinglestoreInterface -} - -// SinglestoreInterface has methods to work with Singlestore resources. -type SinglestoreInterface interface { - Create(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.CreateOptions) (*v1alpha2.Singlestore, error) - Update(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (*v1alpha2.Singlestore, error) - UpdateStatus(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (*v1alpha2.Singlestore, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Singlestore, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.SinglestoreList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Singlestore, err error) - SinglestoreExpansion -} - -// singlestores implements SinglestoreInterface -type singlestores struct { - client rest.Interface - ns string -} - -// newSinglestores returns a Singlestores -func newSinglestores(c *KubedbV1alpha2Client, namespace string) *singlestores { - return &singlestores{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the singlestore, and returns the corresponding singlestore object, and an error if there is any. -func (c *singlestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Singlestore, err error) { - result = &v1alpha2.Singlestore{} - err = c.client.Get(). - Namespace(c.ns). - Resource("singlestores"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Singlestores that match those selectors. -func (c *singlestores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.SinglestoreList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha2.SinglestoreList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("singlestores"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested singlestores. -func (c *singlestores) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("singlestores"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a singlestore and creates it. Returns the server's representation of the singlestore, and an error, if there is any. -func (c *singlestores) Create(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.CreateOptions) (result *v1alpha2.Singlestore, err error) { - result = &v1alpha2.Singlestore{} - err = c.client.Post(). - Namespace(c.ns). - Resource("singlestores"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(singlestore). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a singlestore and updates it. Returns the server's representation of the singlestore, and an error, if there is any. -func (c *singlestores) Update(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (result *v1alpha2.Singlestore, err error) { - result = &v1alpha2.Singlestore{} - err = c.client.Put(). - Namespace(c.ns). - Resource("singlestores"). - Name(singlestore.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(singlestore). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *singlestores) UpdateStatus(ctx context.Context, singlestore *v1alpha2.Singlestore, opts v1.UpdateOptions) (result *v1alpha2.Singlestore, err error) { - result = &v1alpha2.Singlestore{} - err = c.client.Put(). - Namespace(c.ns). - Resource("singlestores"). - Name(singlestore.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(singlestore). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the singlestore and deletes it. Returns an error if one occurs. -func (c *singlestores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("singlestores"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *singlestores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("singlestores"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched singlestore. -func (c *singlestores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Singlestore, err error) { - result = &v1alpha2.Singlestore{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("singlestores"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/doc.go b/client/clientset/versioned/typed/ops/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/ops/v1alpha1/elasticsearchopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/elasticsearchopsrequest.go deleted file mode 100644 index 2908f20f05..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/elasticsearchopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ElasticsearchOpsRequestsGetter has a method to return a ElasticsearchOpsRequestInterface. -// A group's client should implement this interface. -type ElasticsearchOpsRequestsGetter interface { - ElasticsearchOpsRequests(namespace string) ElasticsearchOpsRequestInterface -} - -// ElasticsearchOpsRequestInterface has methods to work with ElasticsearchOpsRequest resources. -type ElasticsearchOpsRequestInterface interface { - Create(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.CreateOptions) (*v1alpha1.ElasticsearchOpsRequest, error) - Update(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchOpsRequest, error) - UpdateStatus(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ElasticsearchOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ElasticsearchOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchOpsRequest, err error) - ElasticsearchOpsRequestExpansion -} - -// elasticsearchOpsRequests implements ElasticsearchOpsRequestInterface -type elasticsearchOpsRequests struct { - client rest.Interface - ns string -} - -// newElasticsearchOpsRequests returns a ElasticsearchOpsRequests -func newElasticsearchOpsRequests(c *OpsV1alpha1Client, namespace string) *elasticsearchOpsRequests { - return &elasticsearchOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the elasticsearchOpsRequest, and returns the corresponding elasticsearchOpsRequest object, and an error if there is any. -func (c *elasticsearchOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - result = &v1alpha1.ElasticsearchOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ElasticsearchOpsRequests that match those selectors. -func (c *elasticsearchOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ElasticsearchOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested elasticsearchOpsRequests. -func (c *elasticsearchOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a elasticsearchOpsRequest and creates it. Returns the server's representation of the elasticsearchOpsRequest, and an error, if there is any. -func (c *elasticsearchOpsRequests) Create(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - result = &v1alpha1.ElasticsearchOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a elasticsearchOpsRequest and updates it. Returns the server's representation of the elasticsearchOpsRequest, and an error, if there is any. -func (c *elasticsearchOpsRequests) Update(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - result = &v1alpha1.ElasticsearchOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - Name(elasticsearchOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *elasticsearchOpsRequests) UpdateStatus(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - result = &v1alpha1.ElasticsearchOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - Name(elasticsearchOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(elasticsearchOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the elasticsearchOpsRequest and deletes it. Returns an error if one occurs. -func (c *elasticsearchOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *elasticsearchOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched elasticsearchOpsRequest. -func (c *elasticsearchOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - result = &v1alpha1.ElasticsearchOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("elasticsearchopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/etcdopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/etcdopsrequest.go deleted file mode 100644 index 6fe6be11cf..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/etcdopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// EtcdOpsRequestsGetter has a method to return a EtcdOpsRequestInterface. -// A group's client should implement this interface. -type EtcdOpsRequestsGetter interface { - EtcdOpsRequests(namespace string) EtcdOpsRequestInterface -} - -// EtcdOpsRequestInterface has methods to work with EtcdOpsRequest resources. -type EtcdOpsRequestInterface interface { - Create(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.CreateOptions) (*v1alpha1.EtcdOpsRequest, error) - Update(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (*v1alpha1.EtcdOpsRequest, error) - UpdateStatus(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (*v1alpha1.EtcdOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.EtcdOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.EtcdOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdOpsRequest, err error) - EtcdOpsRequestExpansion -} - -// etcdOpsRequests implements EtcdOpsRequestInterface -type etcdOpsRequests struct { - client rest.Interface - ns string -} - -// newEtcdOpsRequests returns a EtcdOpsRequests -func newEtcdOpsRequests(c *OpsV1alpha1Client, namespace string) *etcdOpsRequests { - return &etcdOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the etcdOpsRequest, and returns the corresponding etcdOpsRequest object, and an error if there is any. -func (c *etcdOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - result = &v1alpha1.EtcdOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcdopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of EtcdOpsRequests that match those selectors. -func (c *etcdOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.EtcdOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("etcdopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested etcdOpsRequests. -func (c *etcdOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("etcdopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a etcdOpsRequest and creates it. Returns the server's representation of the etcdOpsRequest, and an error, if there is any. -func (c *etcdOpsRequests) Create(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.CreateOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - result = &v1alpha1.EtcdOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("etcdopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a etcdOpsRequest and updates it. Returns the server's representation of the etcdOpsRequest, and an error, if there is any. -func (c *etcdOpsRequests) Update(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - result = &v1alpha1.EtcdOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcdopsrequests"). - Name(etcdOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *etcdOpsRequests) UpdateStatus(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - result = &v1alpha1.EtcdOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("etcdopsrequests"). - Name(etcdOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(etcdOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the etcdOpsRequest and deletes it. Returns an error if one occurs. -func (c *etcdOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("etcdopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *etcdOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("etcdopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched etcdOpsRequest. -func (c *etcdOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdOpsRequest, err error) { - result = &v1alpha1.EtcdOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("etcdopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_elasticsearchopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_elasticsearchopsrequest.go deleted file mode 100644 index 97b7158130..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_elasticsearchopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeElasticsearchOpsRequests implements ElasticsearchOpsRequestInterface -type FakeElasticsearchOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var elasticsearchopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("elasticsearchopsrequests") - -var elasticsearchopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("ElasticsearchOpsRequest") - -// Get takes name of the elasticsearchOpsRequest, and returns the corresponding elasticsearchOpsRequest object, and an error if there is any. -func (c *FakeElasticsearchOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(elasticsearchopsrequestsResource, c.ns, name), &v1alpha1.ElasticsearchOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchOpsRequest), err -} - -// List takes label and field selectors, and returns the list of ElasticsearchOpsRequests that match those selectors. -func (c *FakeElasticsearchOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ElasticsearchOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(elasticsearchopsrequestsResource, elasticsearchopsrequestsKind, c.ns, opts), &v1alpha1.ElasticsearchOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ElasticsearchOpsRequestList{ListMeta: obj.(*v1alpha1.ElasticsearchOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.ElasticsearchOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested elasticsearchOpsRequests. -func (c *FakeElasticsearchOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(elasticsearchopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a elasticsearchOpsRequest and creates it. Returns the server's representation of the elasticsearchOpsRequest, and an error, if there is any. -func (c *FakeElasticsearchOpsRequests) Create(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(elasticsearchopsrequestsResource, c.ns, elasticsearchOpsRequest), &v1alpha1.ElasticsearchOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchOpsRequest), err -} - -// Update takes the representation of a elasticsearchOpsRequest and updates it. Returns the server's representation of the elasticsearchOpsRequest, and an error, if there is any. -func (c *FakeElasticsearchOpsRequests) Update(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(elasticsearchopsrequestsResource, c.ns, elasticsearchOpsRequest), &v1alpha1.ElasticsearchOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeElasticsearchOpsRequests) UpdateStatus(ctx context.Context, elasticsearchOpsRequest *v1alpha1.ElasticsearchOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ElasticsearchOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(elasticsearchopsrequestsResource, "status", c.ns, elasticsearchOpsRequest), &v1alpha1.ElasticsearchOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchOpsRequest), err -} - -// Delete takes name of the elasticsearchOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeElasticsearchOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(elasticsearchopsrequestsResource, c.ns, name, opts), &v1alpha1.ElasticsearchOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeElasticsearchOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(elasticsearchopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ElasticsearchOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched elasticsearchOpsRequest. -func (c *FakeElasticsearchOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ElasticsearchOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(elasticsearchopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.ElasticsearchOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ElasticsearchOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_etcdopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_etcdopsrequest.go deleted file mode 100644 index 27e34d6dcd..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_etcdopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeEtcdOpsRequests implements EtcdOpsRequestInterface -type FakeEtcdOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var etcdopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("etcdopsrequests") - -var etcdopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("EtcdOpsRequest") - -// Get takes name of the etcdOpsRequest, and returns the corresponding etcdOpsRequest object, and an error if there is any. -func (c *FakeEtcdOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(etcdopsrequestsResource, c.ns, name), &v1alpha1.EtcdOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdOpsRequest), err -} - -// List takes label and field selectors, and returns the list of EtcdOpsRequests that match those selectors. -func (c *FakeEtcdOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EtcdOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(etcdopsrequestsResource, etcdopsrequestsKind, c.ns, opts), &v1alpha1.EtcdOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.EtcdOpsRequestList{ListMeta: obj.(*v1alpha1.EtcdOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.EtcdOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested etcdOpsRequests. -func (c *FakeEtcdOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(etcdopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a etcdOpsRequest and creates it. Returns the server's representation of the etcdOpsRequest, and an error, if there is any. -func (c *FakeEtcdOpsRequests) Create(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.CreateOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(etcdopsrequestsResource, c.ns, etcdOpsRequest), &v1alpha1.EtcdOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdOpsRequest), err -} - -// Update takes the representation of a etcdOpsRequest and updates it. Returns the server's representation of the etcdOpsRequest, and an error, if there is any. -func (c *FakeEtcdOpsRequests) Update(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.EtcdOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(etcdopsrequestsResource, c.ns, etcdOpsRequest), &v1alpha1.EtcdOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeEtcdOpsRequests) UpdateStatus(ctx context.Context, etcdOpsRequest *v1alpha1.EtcdOpsRequest, opts v1.UpdateOptions) (*v1alpha1.EtcdOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(etcdopsrequestsResource, "status", c.ns, etcdOpsRequest), &v1alpha1.EtcdOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdOpsRequest), err -} - -// Delete takes name of the etcdOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeEtcdOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(etcdopsrequestsResource, c.ns, name, opts), &v1alpha1.EtcdOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEtcdOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(etcdopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.EtcdOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched etcdOpsRequest. -func (c *FakeEtcdOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EtcdOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(etcdopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.EtcdOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.EtcdOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_kafkaopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_kafkaopsrequest.go deleted file mode 100644 index 2587d2ebc4..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_kafkaopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeKafkaOpsRequests implements KafkaOpsRequestInterface -type FakeKafkaOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var kafkaopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("kafkaopsrequests") - -var kafkaopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("KafkaOpsRequest") - -// Get takes name of the kafkaOpsRequest, and returns the corresponding kafkaOpsRequest object, and an error if there is any. -func (c *FakeKafkaOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(kafkaopsrequestsResource, c.ns, name), &v1alpha1.KafkaOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaOpsRequest), err -} - -// List takes label and field selectors, and returns the list of KafkaOpsRequests that match those selectors. -func (c *FakeKafkaOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(kafkaopsrequestsResource, kafkaopsrequestsKind, c.ns, opts), &v1alpha1.KafkaOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.KafkaOpsRequestList{ListMeta: obj.(*v1alpha1.KafkaOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.KafkaOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested kafkaOpsRequests. -func (c *FakeKafkaOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(kafkaopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a kafkaOpsRequest and creates it. Returns the server's representation of the kafkaOpsRequest, and an error, if there is any. -func (c *FakeKafkaOpsRequests) Create(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.CreateOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(kafkaopsrequestsResource, c.ns, kafkaOpsRequest), &v1alpha1.KafkaOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaOpsRequest), err -} - -// Update takes the representation of a kafkaOpsRequest and updates it. Returns the server's representation of the kafkaOpsRequest, and an error, if there is any. -func (c *FakeKafkaOpsRequests) Update(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(kafkaopsrequestsResource, c.ns, kafkaOpsRequest), &v1alpha1.KafkaOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeKafkaOpsRequests) UpdateStatus(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (*v1alpha1.KafkaOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(kafkaopsrequestsResource, "status", c.ns, kafkaOpsRequest), &v1alpha1.KafkaOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaOpsRequest), err -} - -// Delete takes name of the kafkaOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeKafkaOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(kafkaopsrequestsResource, c.ns, name, opts), &v1alpha1.KafkaOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeKafkaOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(kafkaopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.KafkaOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched kafkaOpsRequest. -func (c *FakeKafkaOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(kafkaopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.KafkaOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.KafkaOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mariadbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mariadbopsrequest.go deleted file mode 100644 index c2e8d69168..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mariadbopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMariaDBOpsRequests implements MariaDBOpsRequestInterface -type FakeMariaDBOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var mariadbopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("mariadbopsrequests") - -var mariadbopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("MariaDBOpsRequest") - -// Get takes name of the mariaDBOpsRequest, and returns the corresponding mariaDBOpsRequest object, and an error if there is any. -func (c *FakeMariaDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mariadbopsrequestsResource, c.ns, name), &v1alpha1.MariaDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBOpsRequest), err -} - -// List takes label and field selectors, and returns the list of MariaDBOpsRequests that match those selectors. -func (c *FakeMariaDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mariadbopsrequestsResource, mariadbopsrequestsKind, c.ns, opts), &v1alpha1.MariaDBOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MariaDBOpsRequestList{ListMeta: obj.(*v1alpha1.MariaDBOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.MariaDBOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mariaDBOpsRequests. -func (c *FakeMariaDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mariadbopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a mariaDBOpsRequest and creates it. Returns the server's representation of the mariaDBOpsRequest, and an error, if there is any. -func (c *FakeMariaDBOpsRequests) Create(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mariadbopsrequestsResource, c.ns, mariaDBOpsRequest), &v1alpha1.MariaDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBOpsRequest), err -} - -// Update takes the representation of a mariaDBOpsRequest and updates it. Returns the server's representation of the mariaDBOpsRequest, and an error, if there is any. -func (c *FakeMariaDBOpsRequests) Update(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mariadbopsrequestsResource, c.ns, mariaDBOpsRequest), &v1alpha1.MariaDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMariaDBOpsRequests) UpdateStatus(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MariaDBOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mariadbopsrequestsResource, "status", c.ns, mariaDBOpsRequest), &v1alpha1.MariaDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBOpsRequest), err -} - -// Delete takes name of the mariaDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeMariaDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mariadbopsrequestsResource, c.ns, name, opts), &v1alpha1.MariaDBOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMariaDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mariadbopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MariaDBOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched mariaDBOpsRequest. -func (c *FakeMariaDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mariadbopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.MariaDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_memcachedopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_memcachedopsrequest.go deleted file mode 100644 index 07dddf4431..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_memcachedopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMemcachedOpsRequests implements MemcachedOpsRequestInterface -type FakeMemcachedOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var memcachedopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("memcachedopsrequests") - -var memcachedopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("MemcachedOpsRequest") - -// Get takes name of the memcachedOpsRequest, and returns the corresponding memcachedOpsRequest object, and an error if there is any. -func (c *FakeMemcachedOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(memcachedopsrequestsResource, c.ns, name), &v1alpha1.MemcachedOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedOpsRequest), err -} - -// List takes label and field selectors, and returns the list of MemcachedOpsRequests that match those selectors. -func (c *FakeMemcachedOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(memcachedopsrequestsResource, memcachedopsrequestsKind, c.ns, opts), &v1alpha1.MemcachedOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MemcachedOpsRequestList{ListMeta: obj.(*v1alpha1.MemcachedOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.MemcachedOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested memcachedOpsRequests. -func (c *FakeMemcachedOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(memcachedopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a memcachedOpsRequest and creates it. Returns the server's representation of the memcachedOpsRequest, and an error, if there is any. -func (c *FakeMemcachedOpsRequests) Create(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(memcachedopsrequestsResource, c.ns, memcachedOpsRequest), &v1alpha1.MemcachedOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedOpsRequest), err -} - -// Update takes the representation of a memcachedOpsRequest and updates it. Returns the server's representation of the memcachedOpsRequest, and an error, if there is any. -func (c *FakeMemcachedOpsRequests) Update(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(memcachedopsrequestsResource, c.ns, memcachedOpsRequest), &v1alpha1.MemcachedOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMemcachedOpsRequests) UpdateStatus(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MemcachedOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(memcachedopsrequestsResource, "status", c.ns, memcachedOpsRequest), &v1alpha1.MemcachedOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedOpsRequest), err -} - -// Delete takes name of the memcachedOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeMemcachedOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(memcachedopsrequestsResource, c.ns, name, opts), &v1alpha1.MemcachedOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMemcachedOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(memcachedopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MemcachedOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched memcachedOpsRequest. -func (c *FakeMemcachedOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(memcachedopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.MemcachedOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MemcachedOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mongodbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mongodbopsrequest.go deleted file mode 100644 index ca5870067e..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mongodbopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBOpsRequests implements MongoDBOpsRequestInterface -type FakeMongoDBOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var mongodbopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("mongodbopsrequests") - -var mongodbopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("MongoDBOpsRequest") - -// Get takes name of the mongoDBOpsRequest, and returns the corresponding mongoDBOpsRequest object, and an error if there is any. -func (c *FakeMongoDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mongodbopsrequestsResource, c.ns, name), &v1alpha1.MongoDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBOpsRequest), err -} - -// List takes label and field selectors, and returns the list of MongoDBOpsRequests that match those selectors. -func (c *FakeMongoDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mongodbopsrequestsResource, mongodbopsrequestsKind, c.ns, opts), &v1alpha1.MongoDBOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MongoDBOpsRequestList{ListMeta: obj.(*v1alpha1.MongoDBOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.MongoDBOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBOpsRequests. -func (c *FakeMongoDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mongodbopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a mongoDBOpsRequest and creates it. Returns the server's representation of the mongoDBOpsRequest, and an error, if there is any. -func (c *FakeMongoDBOpsRequests) Create(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mongodbopsrequestsResource, c.ns, mongoDBOpsRequest), &v1alpha1.MongoDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBOpsRequest), err -} - -// Update takes the representation of a mongoDBOpsRequest and updates it. Returns the server's representation of the mongoDBOpsRequest, and an error, if there is any. -func (c *FakeMongoDBOpsRequests) Update(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mongodbopsrequestsResource, c.ns, mongoDBOpsRequest), &v1alpha1.MongoDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMongoDBOpsRequests) UpdateStatus(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MongoDBOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mongodbopsrequestsResource, "status", c.ns, mongoDBOpsRequest), &v1alpha1.MongoDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBOpsRequest), err -} - -// Delete takes name of the mongoDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mongodbopsrequestsResource, c.ns, name, opts), &v1alpha1.MongoDBOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mongodbopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MongoDBOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDBOpsRequest. -func (c *FakeMongoDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mongodbopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.MongoDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mysqlopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mysqlopsrequest.go deleted file mode 100644 index f1cf350686..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_mysqlopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLOpsRequests implements MySQLOpsRequestInterface -type FakeMySQLOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var mysqlopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("mysqlopsrequests") - -var mysqlopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("MySQLOpsRequest") - -// Get takes name of the mySQLOpsRequest, and returns the corresponding mySQLOpsRequest object, and an error if there is any. -func (c *FakeMySQLOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mysqlopsrequestsResource, c.ns, name), &v1alpha1.MySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLOpsRequest), err -} - -// List takes label and field selectors, and returns the list of MySQLOpsRequests that match those selectors. -func (c *FakeMySQLOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mysqlopsrequestsResource, mysqlopsrequestsKind, c.ns, opts), &v1alpha1.MySQLOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MySQLOpsRequestList{ListMeta: obj.(*v1alpha1.MySQLOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.MySQLOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLOpsRequests. -func (c *FakeMySQLOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mysqlopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a mySQLOpsRequest and creates it. Returns the server's representation of the mySQLOpsRequest, and an error, if there is any. -func (c *FakeMySQLOpsRequests) Create(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mysqlopsrequestsResource, c.ns, mySQLOpsRequest), &v1alpha1.MySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLOpsRequest), err -} - -// Update takes the representation of a mySQLOpsRequest and updates it. Returns the server's representation of the mySQLOpsRequest, and an error, if there is any. -func (c *FakeMySQLOpsRequests) Update(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mysqlopsrequestsResource, c.ns, mySQLOpsRequest), &v1alpha1.MySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMySQLOpsRequests) UpdateStatus(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MySQLOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mysqlopsrequestsResource, "status", c.ns, mySQLOpsRequest), &v1alpha1.MySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLOpsRequest), err -} - -// Delete takes name of the mySQLOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeMySQLOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mysqlopsrequestsResource, c.ns, name, opts), &v1alpha1.MySQLOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mysqlopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MySQLOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched mySQLOpsRequest. -func (c *FakeMySQLOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mysqlopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.MySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_ops_client.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_ops_client.go deleted file mode 100644 index ee546799f2..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_ops_client.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/ops/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeOpsV1alpha1 struct { - *testing.Fake -} - -func (c *FakeOpsV1alpha1) ElasticsearchOpsRequests(namespace string) v1alpha1.ElasticsearchOpsRequestInterface { - return &FakeElasticsearchOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) EtcdOpsRequests(namespace string) v1alpha1.EtcdOpsRequestInterface { - return &FakeEtcdOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) KafkaOpsRequests(namespace string) v1alpha1.KafkaOpsRequestInterface { - return &FakeKafkaOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) MariaDBOpsRequests(namespace string) v1alpha1.MariaDBOpsRequestInterface { - return &FakeMariaDBOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) MemcachedOpsRequests(namespace string) v1alpha1.MemcachedOpsRequestInterface { - return &FakeMemcachedOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) MongoDBOpsRequests(namespace string) v1alpha1.MongoDBOpsRequestInterface { - return &FakeMongoDBOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) MySQLOpsRequests(namespace string) v1alpha1.MySQLOpsRequestInterface { - return &FakeMySQLOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) PerconaXtraDBOpsRequests(namespace string) v1alpha1.PerconaXtraDBOpsRequestInterface { - return &FakePerconaXtraDBOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) PgBouncerOpsRequests(namespace string) v1alpha1.PgBouncerOpsRequestInterface { - return &FakePgBouncerOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) PostgresOpsRequests(namespace string) v1alpha1.PostgresOpsRequestInterface { - return &FakePostgresOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) ProxySQLOpsRequests(namespace string) v1alpha1.ProxySQLOpsRequestInterface { - return &FakeProxySQLOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) RedisOpsRequests(namespace string) v1alpha1.RedisOpsRequestInterface { - return &FakeRedisOpsRequests{c, namespace} -} - -func (c *FakeOpsV1alpha1) RedisSentinelOpsRequests(namespace string) v1alpha1.RedisSentinelOpsRequestInterface { - return &FakeRedisSentinelOpsRequests{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeOpsV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_perconaxtradbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_perconaxtradbopsrequest.go deleted file mode 100644 index 7204fbbdc4..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_perconaxtradbopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePerconaXtraDBOpsRequests implements PerconaXtraDBOpsRequestInterface -type FakePerconaXtraDBOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var perconaxtradbopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("perconaxtradbopsrequests") - -var perconaxtradbopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("PerconaXtraDBOpsRequest") - -// Get takes name of the perconaXtraDBOpsRequest, and returns the corresponding perconaXtraDBOpsRequest object, and an error if there is any. -func (c *FakePerconaXtraDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(perconaxtradbopsrequestsResource, c.ns, name), &v1alpha1.PerconaXtraDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBOpsRequest), err -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBOpsRequests that match those selectors. -func (c *FakePerconaXtraDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(perconaxtradbopsrequestsResource, perconaxtradbopsrequestsKind, c.ns, opts), &v1alpha1.PerconaXtraDBOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PerconaXtraDBOpsRequestList{ListMeta: obj.(*v1alpha1.PerconaXtraDBOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.PerconaXtraDBOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBOpsRequests. -func (c *FakePerconaXtraDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(perconaxtradbopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a perconaXtraDBOpsRequest and creates it. Returns the server's representation of the perconaXtraDBOpsRequest, and an error, if there is any. -func (c *FakePerconaXtraDBOpsRequests) Create(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(perconaxtradbopsrequestsResource, c.ns, perconaXtraDBOpsRequest), &v1alpha1.PerconaXtraDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBOpsRequest), err -} - -// Update takes the representation of a perconaXtraDBOpsRequest and updates it. Returns the server's representation of the perconaXtraDBOpsRequest, and an error, if there is any. -func (c *FakePerconaXtraDBOpsRequests) Update(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(perconaxtradbopsrequestsResource, c.ns, perconaXtraDBOpsRequest), &v1alpha1.PerconaXtraDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePerconaXtraDBOpsRequests) UpdateStatus(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(perconaxtradbopsrequestsResource, "status", c.ns, perconaXtraDBOpsRequest), &v1alpha1.PerconaXtraDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBOpsRequest), err -} - -// Delete takes name of the perconaXtraDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakePerconaXtraDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(perconaxtradbopsrequestsResource, c.ns, name, opts), &v1alpha1.PerconaXtraDBOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePerconaXtraDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(perconaxtradbopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PerconaXtraDBOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched perconaXtraDBOpsRequest. -func (c *FakePerconaXtraDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(perconaxtradbopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.PerconaXtraDBOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PerconaXtraDBOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_pgbounceropsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_pgbounceropsrequest.go deleted file mode 100644 index e0ff40add3..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_pgbounceropsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePgBouncerOpsRequests implements PgBouncerOpsRequestInterface -type FakePgBouncerOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var pgbounceropsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("pgbounceropsrequests") - -var pgbounceropsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("PgBouncerOpsRequest") - -// Get takes name of the pgBouncerOpsRequest, and returns the corresponding pgBouncerOpsRequest object, and an error if there is any. -func (c *FakePgBouncerOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(pgbounceropsrequestsResource, c.ns, name), &v1alpha1.PgBouncerOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerOpsRequest), err -} - -// List takes label and field selectors, and returns the list of PgBouncerOpsRequests that match those selectors. -func (c *FakePgBouncerOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(pgbounceropsrequestsResource, pgbounceropsrequestsKind, c.ns, opts), &v1alpha1.PgBouncerOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PgBouncerOpsRequestList{ListMeta: obj.(*v1alpha1.PgBouncerOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.PgBouncerOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested pgBouncerOpsRequests. -func (c *FakePgBouncerOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(pgbounceropsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a pgBouncerOpsRequest and creates it. Returns the server's representation of the pgBouncerOpsRequest, and an error, if there is any. -func (c *FakePgBouncerOpsRequests) Create(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(pgbounceropsrequestsResource, c.ns, pgBouncerOpsRequest), &v1alpha1.PgBouncerOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerOpsRequest), err -} - -// Update takes the representation of a pgBouncerOpsRequest and updates it. Returns the server's representation of the pgBouncerOpsRequest, and an error, if there is any. -func (c *FakePgBouncerOpsRequests) Update(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(pgbounceropsrequestsResource, c.ns, pgBouncerOpsRequest), &v1alpha1.PgBouncerOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePgBouncerOpsRequests) UpdateStatus(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PgBouncerOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(pgbounceropsrequestsResource, "status", c.ns, pgBouncerOpsRequest), &v1alpha1.PgBouncerOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerOpsRequest), err -} - -// Delete takes name of the pgBouncerOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakePgBouncerOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(pgbounceropsrequestsResource, c.ns, name, opts), &v1alpha1.PgBouncerOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePgBouncerOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(pgbounceropsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PgBouncerOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched pgBouncerOpsRequest. -func (c *FakePgBouncerOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(pgbounceropsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.PgBouncerOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PgBouncerOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_postgresopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_postgresopsrequest.go deleted file mode 100644 index 0071c79f90..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_postgresopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgresOpsRequests implements PostgresOpsRequestInterface -type FakePostgresOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var postgresopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("postgresopsrequests") - -var postgresopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("PostgresOpsRequest") - -// Get takes name of the postgresOpsRequest, and returns the corresponding postgresOpsRequest object, and an error if there is any. -func (c *FakePostgresOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(postgresopsrequestsResource, c.ns, name), &v1alpha1.PostgresOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresOpsRequest), err -} - -// List takes label and field selectors, and returns the list of PostgresOpsRequests that match those selectors. -func (c *FakePostgresOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(postgresopsrequestsResource, postgresopsrequestsKind, c.ns, opts), &v1alpha1.PostgresOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PostgresOpsRequestList{ListMeta: obj.(*v1alpha1.PostgresOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.PostgresOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgresOpsRequests. -func (c *FakePostgresOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(postgresopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a postgresOpsRequest and creates it. Returns the server's representation of the postgresOpsRequest, and an error, if there is any. -func (c *FakePostgresOpsRequests) Create(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(postgresopsrequestsResource, c.ns, postgresOpsRequest), &v1alpha1.PostgresOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresOpsRequest), err -} - -// Update takes the representation of a postgresOpsRequest and updates it. Returns the server's representation of the postgresOpsRequest, and an error, if there is any. -func (c *FakePostgresOpsRequests) Update(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(postgresopsrequestsResource, c.ns, postgresOpsRequest), &v1alpha1.PostgresOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePostgresOpsRequests) UpdateStatus(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PostgresOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(postgresopsrequestsResource, "status", c.ns, postgresOpsRequest), &v1alpha1.PostgresOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresOpsRequest), err -} - -// Delete takes name of the postgresOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakePostgresOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(postgresopsrequestsResource, c.ns, name, opts), &v1alpha1.PostgresOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgresOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(postgresopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PostgresOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched postgresOpsRequest. -func (c *FakePostgresOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(postgresopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.PostgresOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_proxysqlopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_proxysqlopsrequest.go deleted file mode 100644 index 9e0a1bce2c..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_proxysqlopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeProxySQLOpsRequests implements ProxySQLOpsRequestInterface -type FakeProxySQLOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var proxysqlopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("proxysqlopsrequests") - -var proxysqlopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("ProxySQLOpsRequest") - -// Get takes name of the proxySQLOpsRequest, and returns the corresponding proxySQLOpsRequest object, and an error if there is any. -func (c *FakeProxySQLOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(proxysqlopsrequestsResource, c.ns, name), &v1alpha1.ProxySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLOpsRequest), err -} - -// List takes label and field selectors, and returns the list of ProxySQLOpsRequests that match those selectors. -func (c *FakeProxySQLOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(proxysqlopsrequestsResource, proxysqlopsrequestsKind, c.ns, opts), &v1alpha1.ProxySQLOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.ProxySQLOpsRequestList{ListMeta: obj.(*v1alpha1.ProxySQLOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.ProxySQLOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested proxySQLOpsRequests. -func (c *FakeProxySQLOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(proxysqlopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a proxySQLOpsRequest and creates it. Returns the server's representation of the proxySQLOpsRequest, and an error, if there is any. -func (c *FakeProxySQLOpsRequests) Create(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(proxysqlopsrequestsResource, c.ns, proxySQLOpsRequest), &v1alpha1.ProxySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLOpsRequest), err -} - -// Update takes the representation of a proxySQLOpsRequest and updates it. Returns the server's representation of the proxySQLOpsRequest, and an error, if there is any. -func (c *FakeProxySQLOpsRequests) Update(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(proxysqlopsrequestsResource, c.ns, proxySQLOpsRequest), &v1alpha1.ProxySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeProxySQLOpsRequests) UpdateStatus(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ProxySQLOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(proxysqlopsrequestsResource, "status", c.ns, proxySQLOpsRequest), &v1alpha1.ProxySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLOpsRequest), err -} - -// Delete takes name of the proxySQLOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeProxySQLOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(proxysqlopsrequestsResource, c.ns, name, opts), &v1alpha1.ProxySQLOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeProxySQLOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(proxysqlopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.ProxySQLOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched proxySQLOpsRequest. -func (c *FakeProxySQLOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(proxysqlopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.ProxySQLOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.ProxySQLOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redisopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redisopsrequest.go deleted file mode 100644 index e4b09bfbe7..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redisopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisOpsRequests implements RedisOpsRequestInterface -type FakeRedisOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var redisopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("redisopsrequests") - -var redisopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("RedisOpsRequest") - -// Get takes name of the redisOpsRequest, and returns the corresponding redisOpsRequest object, and an error if there is any. -func (c *FakeRedisOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redisopsrequestsResource, c.ns, name), &v1alpha1.RedisOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisOpsRequest), err -} - -// List takes label and field selectors, and returns the list of RedisOpsRequests that match those selectors. -func (c *FakeRedisOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redisopsrequestsResource, redisopsrequestsKind, c.ns, opts), &v1alpha1.RedisOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RedisOpsRequestList{ListMeta: obj.(*v1alpha1.RedisOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.RedisOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisOpsRequests. -func (c *FakeRedisOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redisopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a redisOpsRequest and creates it. Returns the server's representation of the redisOpsRequest, and an error, if there is any. -func (c *FakeRedisOpsRequests) Create(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.CreateOptions) (result *v1alpha1.RedisOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redisopsrequestsResource, c.ns, redisOpsRequest), &v1alpha1.RedisOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisOpsRequest), err -} - -// Update takes the representation of a redisOpsRequest and updates it. Returns the server's representation of the redisOpsRequest, and an error, if there is any. -func (c *FakeRedisOpsRequests) Update(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redisopsrequestsResource, c.ns, redisOpsRequest), &v1alpha1.RedisOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedisOpsRequests) UpdateStatus(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redisopsrequestsResource, "status", c.ns, redisOpsRequest), &v1alpha1.RedisOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisOpsRequest), err -} - -// Delete takes name of the redisOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeRedisOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redisopsrequestsResource, c.ns, name, opts), &v1alpha1.RedisOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redisopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RedisOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched redisOpsRequest. -func (c *FakeRedisOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redisopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.RedisOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redissentinelopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redissentinelopsrequest.go deleted file mode 100644 index e8f6a6ba8f..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/fake/fake_redissentinelopsrequest.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeRedisSentinelOpsRequests implements RedisSentinelOpsRequestInterface -type FakeRedisSentinelOpsRequests struct { - Fake *FakeOpsV1alpha1 - ns string -} - -var redissentinelopsrequestsResource = v1alpha1.SchemeGroupVersion.WithResource("redissentinelopsrequests") - -var redissentinelopsrequestsKind = v1alpha1.SchemeGroupVersion.WithKind("RedisSentinelOpsRequest") - -// Get takes name of the redisSentinelOpsRequest, and returns the corresponding redisSentinelOpsRequest object, and an error if there is any. -func (c *FakeRedisSentinelOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(redissentinelopsrequestsResource, c.ns, name), &v1alpha1.RedisSentinelOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelOpsRequest), err -} - -// List takes label and field selectors, and returns the list of RedisSentinelOpsRequests that match those selectors. -func (c *FakeRedisSentinelOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisSentinelOpsRequestList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(redissentinelopsrequestsResource, redissentinelopsrequestsKind, c.ns, opts), &v1alpha1.RedisSentinelOpsRequestList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.RedisSentinelOpsRequestList{ListMeta: obj.(*v1alpha1.RedisSentinelOpsRequestList).ListMeta} - for _, item := range obj.(*v1alpha1.RedisSentinelOpsRequestList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested redisSentinelOpsRequests. -func (c *FakeRedisSentinelOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(redissentinelopsrequestsResource, c.ns, opts)) - -} - -// Create takes the representation of a redisSentinelOpsRequest and creates it. Returns the server's representation of the redisSentinelOpsRequest, and an error, if there is any. -func (c *FakeRedisSentinelOpsRequests) Create(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.CreateOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(redissentinelopsrequestsResource, c.ns, redisSentinelOpsRequest), &v1alpha1.RedisSentinelOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelOpsRequest), err -} - -// Update takes the representation of a redisSentinelOpsRequest and updates it. Returns the server's representation of the redisSentinelOpsRequest, and an error, if there is any. -func (c *FakeRedisSentinelOpsRequests) Update(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(redissentinelopsrequestsResource, c.ns, redisSentinelOpsRequest), &v1alpha1.RedisSentinelOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelOpsRequest), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeRedisSentinelOpsRequests) UpdateStatus(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelOpsRequest, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(redissentinelopsrequestsResource, "status", c.ns, redisSentinelOpsRequest), &v1alpha1.RedisSentinelOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelOpsRequest), err -} - -// Delete takes name of the redisSentinelOpsRequest and deletes it. Returns an error if one occurs. -func (c *FakeRedisSentinelOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(redissentinelopsrequestsResource, c.ns, name, opts), &v1alpha1.RedisSentinelOpsRequest{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeRedisSentinelOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(redissentinelopsrequestsResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.RedisSentinelOpsRequestList{}) - return err -} - -// Patch applies the patch and returns the patched redisSentinelOpsRequest. -func (c *FakeRedisSentinelOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(redissentinelopsrequestsResource, c.ns, name, pt, data, subresources...), &v1alpha1.RedisSentinelOpsRequest{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.RedisSentinelOpsRequest), err -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go deleted file mode 100644 index 26d29cd2cf..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type ElasticsearchOpsRequestExpansion interface{} - -type EtcdOpsRequestExpansion interface{} - -type KafkaOpsRequestExpansion interface{} - -type MariaDBOpsRequestExpansion interface{} - -type MemcachedOpsRequestExpansion interface{} - -type MongoDBOpsRequestExpansion interface{} - -type MySQLOpsRequestExpansion interface{} - -type PerconaXtraDBOpsRequestExpansion interface{} - -type PgBouncerOpsRequestExpansion interface{} - -type PostgresOpsRequestExpansion interface{} - -type ProxySQLOpsRequestExpansion interface{} - -type RedisOpsRequestExpansion interface{} - -type RedisSentinelOpsRequestExpansion interface{} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/kafkaopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/kafkaopsrequest.go deleted file mode 100644 index d24494a999..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/kafkaopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// KafkaOpsRequestsGetter has a method to return a KafkaOpsRequestInterface. -// A group's client should implement this interface. -type KafkaOpsRequestsGetter interface { - KafkaOpsRequests(namespace string) KafkaOpsRequestInterface -} - -// KafkaOpsRequestInterface has methods to work with KafkaOpsRequest resources. -type KafkaOpsRequestInterface interface { - Create(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.CreateOptions) (*v1alpha1.KafkaOpsRequest, error) - Update(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (*v1alpha1.KafkaOpsRequest, error) - UpdateStatus(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (*v1alpha1.KafkaOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.KafkaOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.KafkaOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaOpsRequest, err error) - KafkaOpsRequestExpansion -} - -// kafkaOpsRequests implements KafkaOpsRequestInterface -type kafkaOpsRequests struct { - client rest.Interface - ns string -} - -// newKafkaOpsRequests returns a KafkaOpsRequests -func newKafkaOpsRequests(c *OpsV1alpha1Client, namespace string) *kafkaOpsRequests { - return &kafkaOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the kafkaOpsRequest, and returns the corresponding kafkaOpsRequest object, and an error if there is any. -func (c *kafkaOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - result = &v1alpha1.KafkaOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of KafkaOpsRequests that match those selectors. -func (c *kafkaOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KafkaOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.KafkaOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested kafkaOpsRequests. -func (c *kafkaOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a kafkaOpsRequest and creates it. Returns the server's representation of the kafkaOpsRequest, and an error, if there is any. -func (c *kafkaOpsRequests) Create(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.CreateOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - result = &v1alpha1.KafkaOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a kafkaOpsRequest and updates it. Returns the server's representation of the kafkaOpsRequest, and an error, if there is any. -func (c *kafkaOpsRequests) Update(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - result = &v1alpha1.KafkaOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - Name(kafkaOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *kafkaOpsRequests) UpdateStatus(ctx context.Context, kafkaOpsRequest *v1alpha1.KafkaOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.KafkaOpsRequest, err error) { - result = &v1alpha1.KafkaOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - Name(kafkaOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(kafkaOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the kafkaOpsRequest and deletes it. Returns an error if one occurs. -func (c *kafkaOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *kafkaOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("kafkaopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched kafkaOpsRequest. -func (c *kafkaOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.KafkaOpsRequest, err error) { - result = &v1alpha1.KafkaOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("kafkaopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/mariadbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/mariadbopsrequest.go deleted file mode 100644 index e1a56e396e..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/mariadbopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MariaDBOpsRequestsGetter has a method to return a MariaDBOpsRequestInterface. -// A group's client should implement this interface. -type MariaDBOpsRequestsGetter interface { - MariaDBOpsRequests(namespace string) MariaDBOpsRequestInterface -} - -// MariaDBOpsRequestInterface has methods to work with MariaDBOpsRequest resources. -type MariaDBOpsRequestInterface interface { - Create(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.CreateOptions) (*v1alpha1.MariaDBOpsRequest, error) - Update(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MariaDBOpsRequest, error) - UpdateStatus(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MariaDBOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MariaDBOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MariaDBOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBOpsRequest, err error) - MariaDBOpsRequestExpansion -} - -// mariaDBOpsRequests implements MariaDBOpsRequestInterface -type mariaDBOpsRequests struct { - client rest.Interface - ns string -} - -// newMariaDBOpsRequests returns a MariaDBOpsRequests -func newMariaDBOpsRequests(c *OpsV1alpha1Client, namespace string) *mariaDBOpsRequests { - return &mariaDBOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mariaDBOpsRequest, and returns the corresponding mariaDBOpsRequest object, and an error if there is any. -func (c *mariaDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - result = &v1alpha1.MariaDBOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MariaDBOpsRequests that match those selectors. -func (c *mariaDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MariaDBOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mariaDBOpsRequests. -func (c *mariaDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mariaDBOpsRequest and creates it. Returns the server's representation of the mariaDBOpsRequest, and an error, if there is any. -func (c *mariaDBOpsRequests) Create(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - result = &v1alpha1.MariaDBOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mariaDBOpsRequest and updates it. Returns the server's representation of the mariaDBOpsRequest, and an error, if there is any. -func (c *mariaDBOpsRequests) Update(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - result = &v1alpha1.MariaDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - Name(mariaDBOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mariaDBOpsRequests) UpdateStatus(ctx context.Context, mariaDBOpsRequest *v1alpha1.MariaDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MariaDBOpsRequest, err error) { - result = &v1alpha1.MariaDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - Name(mariaDBOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mariaDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *mariaDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mariaDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mariaDBOpsRequest. -func (c *mariaDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBOpsRequest, err error) { - result = &v1alpha1.MariaDBOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mariadbopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/memcachedopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/memcachedopsrequest.go deleted file mode 100644 index 7750b2930d..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/memcachedopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MemcachedOpsRequestsGetter has a method to return a MemcachedOpsRequestInterface. -// A group's client should implement this interface. -type MemcachedOpsRequestsGetter interface { - MemcachedOpsRequests(namespace string) MemcachedOpsRequestInterface -} - -// MemcachedOpsRequestInterface has methods to work with MemcachedOpsRequest resources. -type MemcachedOpsRequestInterface interface { - Create(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.CreateOptions) (*v1alpha1.MemcachedOpsRequest, error) - Update(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MemcachedOpsRequest, error) - UpdateStatus(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MemcachedOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MemcachedOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MemcachedOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedOpsRequest, err error) - MemcachedOpsRequestExpansion -} - -// memcachedOpsRequests implements MemcachedOpsRequestInterface -type memcachedOpsRequests struct { - client rest.Interface - ns string -} - -// newMemcachedOpsRequests returns a MemcachedOpsRequests -func newMemcachedOpsRequests(c *OpsV1alpha1Client, namespace string) *memcachedOpsRequests { - return &memcachedOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the memcachedOpsRequest, and returns the corresponding memcachedOpsRequest object, and an error if there is any. -func (c *memcachedOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - result = &v1alpha1.MemcachedOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MemcachedOpsRequests that match those selectors. -func (c *memcachedOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MemcachedOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MemcachedOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested memcachedOpsRequests. -func (c *memcachedOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a memcachedOpsRequest and creates it. Returns the server's representation of the memcachedOpsRequest, and an error, if there is any. -func (c *memcachedOpsRequests) Create(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - result = &v1alpha1.MemcachedOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a memcachedOpsRequest and updates it. Returns the server's representation of the memcachedOpsRequest, and an error, if there is any. -func (c *memcachedOpsRequests) Update(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - result = &v1alpha1.MemcachedOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - Name(memcachedOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *memcachedOpsRequests) UpdateStatus(ctx context.Context, memcachedOpsRequest *v1alpha1.MemcachedOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MemcachedOpsRequest, err error) { - result = &v1alpha1.MemcachedOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - Name(memcachedOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(memcachedOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the memcachedOpsRequest and deletes it. Returns an error if one occurs. -func (c *memcachedOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *memcachedOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("memcachedopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched memcachedOpsRequest. -func (c *memcachedOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MemcachedOpsRequest, err error) { - result = &v1alpha1.MemcachedOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("memcachedopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/mongodbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/mongodbopsrequest.go deleted file mode 100644 index 757eed013d..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/mongodbopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBOpsRequestsGetter has a method to return a MongoDBOpsRequestInterface. -// A group's client should implement this interface. -type MongoDBOpsRequestsGetter interface { - MongoDBOpsRequests(namespace string) MongoDBOpsRequestInterface -} - -// MongoDBOpsRequestInterface has methods to work with MongoDBOpsRequest resources. -type MongoDBOpsRequestInterface interface { - Create(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.CreateOptions) (*v1alpha1.MongoDBOpsRequest, error) - Update(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MongoDBOpsRequest, error) - UpdateStatus(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MongoDBOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBOpsRequest, err error) - MongoDBOpsRequestExpansion -} - -// mongoDBOpsRequests implements MongoDBOpsRequestInterface -type mongoDBOpsRequests struct { - client rest.Interface - ns string -} - -// newMongoDBOpsRequests returns a MongoDBOpsRequests -func newMongoDBOpsRequests(c *OpsV1alpha1Client, namespace string) *mongoDBOpsRequests { - return &mongoDBOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mongoDBOpsRequest, and returns the corresponding mongoDBOpsRequest object, and an error if there is any. -func (c *mongoDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - result = &v1alpha1.MongoDBOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBOpsRequests that match those selectors. -func (c *mongoDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MongoDBOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBOpsRequests. -func (c *mongoDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDBOpsRequest and creates it. Returns the server's representation of the mongoDBOpsRequest, and an error, if there is any. -func (c *mongoDBOpsRequests) Create(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - result = &v1alpha1.MongoDBOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDBOpsRequest and updates it. Returns the server's representation of the mongoDBOpsRequest, and an error, if there is any. -func (c *mongoDBOpsRequests) Update(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - result = &v1alpha1.MongoDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - Name(mongoDBOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mongoDBOpsRequests) UpdateStatus(ctx context.Context, mongoDBOpsRequest *v1alpha1.MongoDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MongoDBOpsRequest, err error) { - result = &v1alpha1.MongoDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - Name(mongoDBOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *mongoDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDBOpsRequest. -func (c *mongoDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBOpsRequest, err error) { - result = &v1alpha1.MongoDBOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mongodbopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/mysqlopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/mysqlopsrequest.go deleted file mode 100644 index 66d0c7ba49..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/mysqlopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLOpsRequestsGetter has a method to return a MySQLOpsRequestInterface. -// A group's client should implement this interface. -type MySQLOpsRequestsGetter interface { - MySQLOpsRequests(namespace string) MySQLOpsRequestInterface -} - -// MySQLOpsRequestInterface has methods to work with MySQLOpsRequest resources. -type MySQLOpsRequestInterface interface { - Create(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.CreateOptions) (*v1alpha1.MySQLOpsRequest, error) - Update(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MySQLOpsRequest, error) - UpdateStatus(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.MySQLOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLOpsRequest, err error) - MySQLOpsRequestExpansion -} - -// mySQLOpsRequests implements MySQLOpsRequestInterface -type mySQLOpsRequests struct { - client rest.Interface - ns string -} - -// newMySQLOpsRequests returns a MySQLOpsRequests -func newMySQLOpsRequests(c *OpsV1alpha1Client, namespace string) *mySQLOpsRequests { - return &mySQLOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mySQLOpsRequest, and returns the corresponding mySQLOpsRequest object, and an error if there is any. -func (c *mySQLOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - result = &v1alpha1.MySQLOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLOpsRequests that match those selectors. -func (c *mySQLOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MySQLOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLOpsRequests. -func (c *mySQLOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQLOpsRequest and creates it. Returns the server's representation of the mySQLOpsRequest, and an error, if there is any. -func (c *mySQLOpsRequests) Create(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.CreateOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - result = &v1alpha1.MySQLOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQLOpsRequest and updates it. Returns the server's representation of the mySQLOpsRequest, and an error, if there is any. -func (c *mySQLOpsRequests) Update(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - result = &v1alpha1.MySQLOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - Name(mySQLOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mySQLOpsRequests) UpdateStatus(ctx context.Context, mySQLOpsRequest *v1alpha1.MySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.MySQLOpsRequest, err error) { - result = &v1alpha1.MySQLOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - Name(mySQLOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQLOpsRequest and deletes it. Returns an error if one occurs. -func (c *mySQLOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqlopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQLOpsRequest. -func (c *mySQLOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLOpsRequest, err error) { - result = &v1alpha1.MySQLOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mysqlopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go b/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go deleted file mode 100644 index 89ae094f67..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/ops_client.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type OpsV1alpha1Interface interface { - RESTClient() rest.Interface - ElasticsearchOpsRequestsGetter - EtcdOpsRequestsGetter - KafkaOpsRequestsGetter - MariaDBOpsRequestsGetter - MemcachedOpsRequestsGetter - MongoDBOpsRequestsGetter - MySQLOpsRequestsGetter - PerconaXtraDBOpsRequestsGetter - PgBouncerOpsRequestsGetter - PostgresOpsRequestsGetter - ProxySQLOpsRequestsGetter - RedisOpsRequestsGetter - RedisSentinelOpsRequestsGetter -} - -// OpsV1alpha1Client is used to interact with features provided by the ops.kubedb.com group. -type OpsV1alpha1Client struct { - restClient rest.Interface -} - -func (c *OpsV1alpha1Client) ElasticsearchOpsRequests(namespace string) ElasticsearchOpsRequestInterface { - return newElasticsearchOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) EtcdOpsRequests(namespace string) EtcdOpsRequestInterface { - return newEtcdOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) KafkaOpsRequests(namespace string) KafkaOpsRequestInterface { - return newKafkaOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) MariaDBOpsRequests(namespace string) MariaDBOpsRequestInterface { - return newMariaDBOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) MemcachedOpsRequests(namespace string) MemcachedOpsRequestInterface { - return newMemcachedOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) MongoDBOpsRequests(namespace string) MongoDBOpsRequestInterface { - return newMongoDBOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) MySQLOpsRequests(namespace string) MySQLOpsRequestInterface { - return newMySQLOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) PerconaXtraDBOpsRequests(namespace string) PerconaXtraDBOpsRequestInterface { - return newPerconaXtraDBOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) PgBouncerOpsRequests(namespace string) PgBouncerOpsRequestInterface { - return newPgBouncerOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) PostgresOpsRequests(namespace string) PostgresOpsRequestInterface { - return newPostgresOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) ProxySQLOpsRequests(namespace string) ProxySQLOpsRequestInterface { - return newProxySQLOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) RedisOpsRequests(namespace string) RedisOpsRequestInterface { - return newRedisOpsRequests(c, namespace) -} - -func (c *OpsV1alpha1Client) RedisSentinelOpsRequests(namespace string) RedisSentinelOpsRequestInterface { - return newRedisSentinelOpsRequests(c, namespace) -} - -// NewForConfig creates a new OpsV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*OpsV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new OpsV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*OpsV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &OpsV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new OpsV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *OpsV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new OpsV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *OpsV1alpha1Client { - return &OpsV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *OpsV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/perconaxtradbopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/perconaxtradbopsrequest.go deleted file mode 100644 index c5e9f01e15..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/perconaxtradbopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PerconaXtraDBOpsRequestsGetter has a method to return a PerconaXtraDBOpsRequestInterface. -// A group's client should implement this interface. -type PerconaXtraDBOpsRequestsGetter interface { - PerconaXtraDBOpsRequests(namespace string) PerconaXtraDBOpsRequestInterface -} - -// PerconaXtraDBOpsRequestInterface has methods to work with PerconaXtraDBOpsRequest resources. -type PerconaXtraDBOpsRequestInterface interface { - Create(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.CreateOptions) (*v1alpha1.PerconaXtraDBOpsRequest, error) - Update(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBOpsRequest, error) - UpdateStatus(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PerconaXtraDBOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PerconaXtraDBOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PerconaXtraDBOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) - PerconaXtraDBOpsRequestExpansion -} - -// perconaXtraDBOpsRequests implements PerconaXtraDBOpsRequestInterface -type perconaXtraDBOpsRequests struct { - client rest.Interface - ns string -} - -// newPerconaXtraDBOpsRequests returns a PerconaXtraDBOpsRequests -func newPerconaXtraDBOpsRequests(c *OpsV1alpha1Client, namespace string) *perconaXtraDBOpsRequests { - return &perconaXtraDBOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the perconaXtraDBOpsRequest, and returns the corresponding perconaXtraDBOpsRequest object, and an error if there is any. -func (c *perconaXtraDBOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - result = &v1alpha1.PerconaXtraDBOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PerconaXtraDBOpsRequests that match those selectors. -func (c *perconaXtraDBOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PerconaXtraDBOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PerconaXtraDBOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested perconaXtraDBOpsRequests. -func (c *perconaXtraDBOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a perconaXtraDBOpsRequest and creates it. Returns the server's representation of the perconaXtraDBOpsRequest, and an error, if there is any. -func (c *perconaXtraDBOpsRequests) Create(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - result = &v1alpha1.PerconaXtraDBOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a perconaXtraDBOpsRequest and updates it. Returns the server's representation of the perconaXtraDBOpsRequest, and an error, if there is any. -func (c *perconaXtraDBOpsRequests) Update(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - result = &v1alpha1.PerconaXtraDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - Name(perconaXtraDBOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *perconaXtraDBOpsRequests) UpdateStatus(ctx context.Context, perconaXtraDBOpsRequest *v1alpha1.PerconaXtraDBOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - result = &v1alpha1.PerconaXtraDBOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - Name(perconaXtraDBOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(perconaXtraDBOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the perconaXtraDBOpsRequest and deletes it. Returns an error if one occurs. -func (c *perconaXtraDBOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *perconaXtraDBOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched perconaXtraDBOpsRequest. -func (c *perconaXtraDBOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PerconaXtraDBOpsRequest, err error) { - result = &v1alpha1.PerconaXtraDBOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("perconaxtradbopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/pgbounceropsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/pgbounceropsrequest.go deleted file mode 100644 index 4fd8edf321..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/pgbounceropsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PgBouncerOpsRequestsGetter has a method to return a PgBouncerOpsRequestInterface. -// A group's client should implement this interface. -type PgBouncerOpsRequestsGetter interface { - PgBouncerOpsRequests(namespace string) PgBouncerOpsRequestInterface -} - -// PgBouncerOpsRequestInterface has methods to work with PgBouncerOpsRequest resources. -type PgBouncerOpsRequestInterface interface { - Create(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.CreateOptions) (*v1alpha1.PgBouncerOpsRequest, error) - Update(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PgBouncerOpsRequest, error) - UpdateStatus(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PgBouncerOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PgBouncerOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PgBouncerOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerOpsRequest, err error) - PgBouncerOpsRequestExpansion -} - -// pgBouncerOpsRequests implements PgBouncerOpsRequestInterface -type pgBouncerOpsRequests struct { - client rest.Interface - ns string -} - -// newPgBouncerOpsRequests returns a PgBouncerOpsRequests -func newPgBouncerOpsRequests(c *OpsV1alpha1Client, namespace string) *pgBouncerOpsRequests { - return &pgBouncerOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the pgBouncerOpsRequest, and returns the corresponding pgBouncerOpsRequest object, and an error if there is any. -func (c *pgBouncerOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - result = &v1alpha1.PgBouncerOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PgBouncerOpsRequests that match those selectors. -func (c *pgBouncerOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PgBouncerOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PgBouncerOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested pgBouncerOpsRequests. -func (c *pgBouncerOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a pgBouncerOpsRequest and creates it. Returns the server's representation of the pgBouncerOpsRequest, and an error, if there is any. -func (c *pgBouncerOpsRequests) Create(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - result = &v1alpha1.PgBouncerOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a pgBouncerOpsRequest and updates it. Returns the server's representation of the pgBouncerOpsRequest, and an error, if there is any. -func (c *pgBouncerOpsRequests) Update(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - result = &v1alpha1.PgBouncerOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - Name(pgBouncerOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *pgBouncerOpsRequests) UpdateStatus(ctx context.Context, pgBouncerOpsRequest *v1alpha1.PgBouncerOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PgBouncerOpsRequest, err error) { - result = &v1alpha1.PgBouncerOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - Name(pgBouncerOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(pgBouncerOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the pgBouncerOpsRequest and deletes it. Returns an error if one occurs. -func (c *pgBouncerOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *pgBouncerOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched pgBouncerOpsRequest. -func (c *pgBouncerOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PgBouncerOpsRequest, err error) { - result = &v1alpha1.PgBouncerOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("pgbounceropsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/postgresopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/postgresopsrequest.go deleted file mode 100644 index 813f0b6183..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/postgresopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresOpsRequestsGetter has a method to return a PostgresOpsRequestInterface. -// A group's client should implement this interface. -type PostgresOpsRequestsGetter interface { - PostgresOpsRequests(namespace string) PostgresOpsRequestInterface -} - -// PostgresOpsRequestInterface has methods to work with PostgresOpsRequest resources. -type PostgresOpsRequestInterface interface { - Create(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.CreateOptions) (*v1alpha1.PostgresOpsRequest, error) - Update(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PostgresOpsRequest, error) - UpdateStatus(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (*v1alpha1.PostgresOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresOpsRequest, err error) - PostgresOpsRequestExpansion -} - -// postgresOpsRequests implements PostgresOpsRequestInterface -type postgresOpsRequests struct { - client rest.Interface - ns string -} - -// newPostgresOpsRequests returns a PostgresOpsRequests -func newPostgresOpsRequests(c *OpsV1alpha1Client, namespace string) *postgresOpsRequests { - return &postgresOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the postgresOpsRequest, and returns the corresponding postgresOpsRequest object, and an error if there is any. -func (c *postgresOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - result = &v1alpha1.PostgresOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PostgresOpsRequests that match those selectors. -func (c *postgresOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PostgresOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgresOpsRequests. -func (c *postgresOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("postgresopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgresOpsRequest and creates it. Returns the server's representation of the postgresOpsRequest, and an error, if there is any. -func (c *postgresOpsRequests) Create(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.CreateOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - result = &v1alpha1.PostgresOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("postgresopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgresOpsRequest and updates it. Returns the server's representation of the postgresOpsRequest, and an error, if there is any. -func (c *postgresOpsRequests) Update(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - result = &v1alpha1.PostgresOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresopsrequests"). - Name(postgresOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *postgresOpsRequests) UpdateStatus(ctx context.Context, postgresOpsRequest *v1alpha1.PostgresOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.PostgresOpsRequest, err error) { - result = &v1alpha1.PostgresOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresopsrequests"). - Name(postgresOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgresOpsRequest and deletes it. Returns an error if one occurs. -func (c *postgresOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgresOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgresOpsRequest. -func (c *postgresOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresOpsRequest, err error) { - result = &v1alpha1.PostgresOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("postgresopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/proxysqlopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/proxysqlopsrequest.go deleted file mode 100644 index e109b4bc69..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/proxysqlopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// ProxySQLOpsRequestsGetter has a method to return a ProxySQLOpsRequestInterface. -// A group's client should implement this interface. -type ProxySQLOpsRequestsGetter interface { - ProxySQLOpsRequests(namespace string) ProxySQLOpsRequestInterface -} - -// ProxySQLOpsRequestInterface has methods to work with ProxySQLOpsRequest resources. -type ProxySQLOpsRequestInterface interface { - Create(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.CreateOptions) (*v1alpha1.ProxySQLOpsRequest, error) - Update(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ProxySQLOpsRequest, error) - UpdateStatus(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (*v1alpha1.ProxySQLOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ProxySQLOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ProxySQLOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLOpsRequest, err error) - ProxySQLOpsRequestExpansion -} - -// proxySQLOpsRequests implements ProxySQLOpsRequestInterface -type proxySQLOpsRequests struct { - client rest.Interface - ns string -} - -// newProxySQLOpsRequests returns a ProxySQLOpsRequests -func newProxySQLOpsRequests(c *OpsV1alpha1Client, namespace string) *proxySQLOpsRequests { - return &proxySQLOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the proxySQLOpsRequest, and returns the corresponding proxySQLOpsRequest object, and an error if there is any. -func (c *proxySQLOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - result = &v1alpha1.ProxySQLOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of ProxySQLOpsRequests that match those selectors. -func (c *proxySQLOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.ProxySQLOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested proxySQLOpsRequests. -func (c *proxySQLOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a proxySQLOpsRequest and creates it. Returns the server's representation of the proxySQLOpsRequest, and an error, if there is any. -func (c *proxySQLOpsRequests) Create(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.CreateOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - result = &v1alpha1.ProxySQLOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a proxySQLOpsRequest and updates it. Returns the server's representation of the proxySQLOpsRequest, and an error, if there is any. -func (c *proxySQLOpsRequests) Update(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - result = &v1alpha1.ProxySQLOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - Name(proxySQLOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *proxySQLOpsRequests) UpdateStatus(ctx context.Context, proxySQLOpsRequest *v1alpha1.ProxySQLOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.ProxySQLOpsRequest, err error) { - result = &v1alpha1.ProxySQLOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - Name(proxySQLOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(proxySQLOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the proxySQLOpsRequest and deletes it. Returns an error if one occurs. -func (c *proxySQLOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *proxySQLOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched proxySQLOpsRequest. -func (c *proxySQLOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQLOpsRequest, err error) { - result = &v1alpha1.ProxySQLOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("proxysqlopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/redisopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/redisopsrequest.go deleted file mode 100644 index 99218356fa..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/redisopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisOpsRequestsGetter has a method to return a RedisOpsRequestInterface. -// A group's client should implement this interface. -type RedisOpsRequestsGetter interface { - RedisOpsRequests(namespace string) RedisOpsRequestInterface -} - -// RedisOpsRequestInterface has methods to work with RedisOpsRequest resources. -type RedisOpsRequestInterface interface { - Create(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.CreateOptions) (*v1alpha1.RedisOpsRequest, error) - Update(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisOpsRequest, error) - UpdateStatus(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RedisOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RedisOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisOpsRequest, err error) - RedisOpsRequestExpansion -} - -// redisOpsRequests implements RedisOpsRequestInterface -type redisOpsRequests struct { - client rest.Interface - ns string -} - -// newRedisOpsRequests returns a RedisOpsRequests -func newRedisOpsRequests(c *OpsV1alpha1Client, namespace string) *redisOpsRequests { - return &redisOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redisOpsRequest, and returns the corresponding redisOpsRequest object, and an error if there is any. -func (c *redisOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisOpsRequest, err error) { - result = &v1alpha1.RedisOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redisopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisOpsRequests that match those selectors. -func (c *redisOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RedisOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redisopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisOpsRequests. -func (c *redisOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redisopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisOpsRequest and creates it. Returns the server's representation of the redisOpsRequest, and an error, if there is any. -func (c *redisOpsRequests) Create(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.CreateOptions) (result *v1alpha1.RedisOpsRequest, err error) { - result = &v1alpha1.RedisOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redisopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisOpsRequest and updates it. Returns the server's representation of the redisOpsRequest, and an error, if there is any. -func (c *redisOpsRequests) Update(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisOpsRequest, err error) { - result = &v1alpha1.RedisOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redisopsrequests"). - Name(redisOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redisOpsRequests) UpdateStatus(ctx context.Context, redisOpsRequest *v1alpha1.RedisOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisOpsRequest, err error) { - result = &v1alpha1.RedisOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redisopsrequests"). - Name(redisOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisOpsRequest and deletes it. Returns an error if one occurs. -func (c *redisOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redisopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redisopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisOpsRequest. -func (c *redisOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisOpsRequest, err error) { - result = &v1alpha1.RedisOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redisopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/ops/v1alpha1/redissentinelopsrequest.go b/client/clientset/versioned/typed/ops/v1alpha1/redissentinelopsrequest.go deleted file mode 100644 index a34aa0b69e..0000000000 --- a/client/clientset/versioned/typed/ops/v1alpha1/redissentinelopsrequest.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// RedisSentinelOpsRequestsGetter has a method to return a RedisSentinelOpsRequestInterface. -// A group's client should implement this interface. -type RedisSentinelOpsRequestsGetter interface { - RedisSentinelOpsRequests(namespace string) RedisSentinelOpsRequestInterface -} - -// RedisSentinelOpsRequestInterface has methods to work with RedisSentinelOpsRequest resources. -type RedisSentinelOpsRequestInterface interface { - Create(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.CreateOptions) (*v1alpha1.RedisSentinelOpsRequest, error) - Update(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelOpsRequest, error) - UpdateStatus(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (*v1alpha1.RedisSentinelOpsRequest, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.RedisSentinelOpsRequest, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.RedisSentinelOpsRequestList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelOpsRequest, err error) - RedisSentinelOpsRequestExpansion -} - -// redisSentinelOpsRequests implements RedisSentinelOpsRequestInterface -type redisSentinelOpsRequests struct { - client rest.Interface - ns string -} - -// newRedisSentinelOpsRequests returns a RedisSentinelOpsRequests -func newRedisSentinelOpsRequests(c *OpsV1alpha1Client, namespace string) *redisSentinelOpsRequests { - return &redisSentinelOpsRequests{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the redisSentinelOpsRequest, and returns the corresponding redisSentinelOpsRequest object, and an error if there is any. -func (c *redisSentinelOpsRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - result = &v1alpha1.RedisSentinelOpsRequest{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of RedisSentinelOpsRequests that match those selectors. -func (c *redisSentinelOpsRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisSentinelOpsRequestList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.RedisSentinelOpsRequestList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested redisSentinelOpsRequests. -func (c *redisSentinelOpsRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a redisSentinelOpsRequest and creates it. Returns the server's representation of the redisSentinelOpsRequest, and an error, if there is any. -func (c *redisSentinelOpsRequests) Create(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.CreateOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - result = &v1alpha1.RedisSentinelOpsRequest{} - err = c.client.Post(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelOpsRequest). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a redisSentinelOpsRequest and updates it. Returns the server's representation of the redisSentinelOpsRequest, and an error, if there is any. -func (c *redisSentinelOpsRequests) Update(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - result = &v1alpha1.RedisSentinelOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - Name(redisSentinelOpsRequest.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelOpsRequest). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *redisSentinelOpsRequests) UpdateStatus(ctx context.Context, redisSentinelOpsRequest *v1alpha1.RedisSentinelOpsRequest, opts v1.UpdateOptions) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - result = &v1alpha1.RedisSentinelOpsRequest{} - err = c.client.Put(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - Name(redisSentinelOpsRequest.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(redisSentinelOpsRequest). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the redisSentinelOpsRequest and deletes it. Returns an error if one occurs. -func (c *redisSentinelOpsRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *redisSentinelOpsRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched redisSentinelOpsRequest. -func (c *redisSentinelOpsRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RedisSentinelOpsRequest, err error) { - result = &v1alpha1.RedisSentinelOpsRequest{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("redissentinelopsrequests"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/doc.go b/client/clientset/versioned/typed/postgres/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/postgres/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_postgres_client.go b/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_postgres_client.go deleted file mode 100644 index 7719cf9da4..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_postgres_client.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/postgres/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakePostgresV1alpha1 struct { - *testing.Fake -} - -func (c *FakePostgresV1alpha1) Publishers(namespace string) v1alpha1.PublisherInterface { - return &FakePublishers{c, namespace} -} - -func (c *FakePostgresV1alpha1) Subscribers(namespace string) v1alpha1.SubscriberInterface { - return &FakeSubscribers{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakePostgresV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_publisher.go b/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_publisher.go deleted file mode 100644 index e16ab8c2c2..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_publisher.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePublishers implements PublisherInterface -type FakePublishers struct { - Fake *FakePostgresV1alpha1 - ns string -} - -var publishersResource = v1alpha1.SchemeGroupVersion.WithResource("publishers") - -var publishersKind = v1alpha1.SchemeGroupVersion.WithKind("Publisher") - -// Get takes name of the publisher, and returns the corresponding publisher object, and an error if there is any. -func (c *FakePublishers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Publisher, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(publishersResource, c.ns, name), &v1alpha1.Publisher{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Publisher), err -} - -// List takes label and field selectors, and returns the list of Publishers that match those selectors. -func (c *FakePublishers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PublisherList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(publishersResource, publishersKind, c.ns, opts), &v1alpha1.PublisherList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PublisherList{ListMeta: obj.(*v1alpha1.PublisherList).ListMeta} - for _, item := range obj.(*v1alpha1.PublisherList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested publishers. -func (c *FakePublishers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(publishersResource, c.ns, opts)) - -} - -// Create takes the representation of a publisher and creates it. Returns the server's representation of the publisher, and an error, if there is any. -func (c *FakePublishers) Create(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.CreateOptions) (result *v1alpha1.Publisher, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(publishersResource, c.ns, publisher), &v1alpha1.Publisher{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Publisher), err -} - -// Update takes the representation of a publisher and updates it. Returns the server's representation of the publisher, and an error, if there is any. -func (c *FakePublishers) Update(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (result *v1alpha1.Publisher, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(publishersResource, c.ns, publisher), &v1alpha1.Publisher{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Publisher), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePublishers) UpdateStatus(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (*v1alpha1.Publisher, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(publishersResource, "status", c.ns, publisher), &v1alpha1.Publisher{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Publisher), err -} - -// Delete takes name of the publisher and deletes it. Returns an error if one occurs. -func (c *FakePublishers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(publishersResource, c.ns, name, opts), &v1alpha1.Publisher{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePublishers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(publishersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PublisherList{}) - return err -} - -// Patch applies the patch and returns the patched publisher. -func (c *FakePublishers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Publisher, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(publishersResource, c.ns, name, pt, data, subresources...), &v1alpha1.Publisher{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Publisher), err -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_subscriber.go b/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_subscriber.go deleted file mode 100644 index 9b12e06ee5..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/fake/fake_subscriber.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSubscribers implements SubscriberInterface -type FakeSubscribers struct { - Fake *FakePostgresV1alpha1 - ns string -} - -var subscribersResource = v1alpha1.SchemeGroupVersion.WithResource("subscribers") - -var subscribersKind = v1alpha1.SchemeGroupVersion.WithKind("Subscriber") - -// Get takes name of the subscriber, and returns the corresponding subscriber object, and an error if there is any. -func (c *FakeSubscribers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Subscriber, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(subscribersResource, c.ns, name), &v1alpha1.Subscriber{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Subscriber), err -} - -// List takes label and field selectors, and returns the list of Subscribers that match those selectors. -func (c *FakeSubscribers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SubscriberList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(subscribersResource, subscribersKind, c.ns, opts), &v1alpha1.SubscriberList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SubscriberList{ListMeta: obj.(*v1alpha1.SubscriberList).ListMeta} - for _, item := range obj.(*v1alpha1.SubscriberList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested subscribers. -func (c *FakeSubscribers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(subscribersResource, c.ns, opts)) - -} - -// Create takes the representation of a subscriber and creates it. Returns the server's representation of the subscriber, and an error, if there is any. -func (c *FakeSubscribers) Create(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.CreateOptions) (result *v1alpha1.Subscriber, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(subscribersResource, c.ns, subscriber), &v1alpha1.Subscriber{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Subscriber), err -} - -// Update takes the representation of a subscriber and updates it. Returns the server's representation of the subscriber, and an error, if there is any. -func (c *FakeSubscribers) Update(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (result *v1alpha1.Subscriber, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(subscribersResource, c.ns, subscriber), &v1alpha1.Subscriber{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Subscriber), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSubscribers) UpdateStatus(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (*v1alpha1.Subscriber, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(subscribersResource, "status", c.ns, subscriber), &v1alpha1.Subscriber{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Subscriber), err -} - -// Delete takes name of the subscriber and deletes it. Returns an error if one occurs. -func (c *FakeSubscribers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(subscribersResource, c.ns, name, opts), &v1alpha1.Subscriber{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSubscribers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(subscribersResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.SubscriberList{}) - return err -} - -// Patch applies the patch and returns the patched subscriber. -func (c *FakeSubscribers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Subscriber, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(subscribersResource, c.ns, name, pt, data, subresources...), &v1alpha1.Subscriber{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.Subscriber), err -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/postgres/v1alpha1/generated_expansion.go deleted file mode 100644 index 26757e2076..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type PublisherExpansion interface{} - -type SubscriberExpansion interface{} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/postgres_client.go b/client/clientset/versioned/typed/postgres/v1alpha1/postgres_client.go deleted file mode 100644 index d3de22acaf..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/postgres_client.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type PostgresV1alpha1Interface interface { - RESTClient() rest.Interface - PublishersGetter - SubscribersGetter -} - -// PostgresV1alpha1Client is used to interact with features provided by the postgres.kubedb.com group. -type PostgresV1alpha1Client struct { - restClient rest.Interface -} - -func (c *PostgresV1alpha1Client) Publishers(namespace string) PublisherInterface { - return newPublishers(c, namespace) -} - -func (c *PostgresV1alpha1Client) Subscribers(namespace string) SubscriberInterface { - return newSubscribers(c, namespace) -} - -// NewForConfig creates a new PostgresV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*PostgresV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new PostgresV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*PostgresV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &PostgresV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new PostgresV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *PostgresV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new PostgresV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *PostgresV1alpha1Client { - return &PostgresV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *PostgresV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/publisher.go b/client/clientset/versioned/typed/postgres/v1alpha1/publisher.go deleted file mode 100644 index d397736fcc..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/publisher.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PublishersGetter has a method to return a PublisherInterface. -// A group's client should implement this interface. -type PublishersGetter interface { - Publishers(namespace string) PublisherInterface -} - -// PublisherInterface has methods to work with Publisher resources. -type PublisherInterface interface { - Create(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.CreateOptions) (*v1alpha1.Publisher, error) - Update(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (*v1alpha1.Publisher, error) - UpdateStatus(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (*v1alpha1.Publisher, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Publisher, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PublisherList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Publisher, err error) - PublisherExpansion -} - -// publishers implements PublisherInterface -type publishers struct { - client rest.Interface - ns string -} - -// newPublishers returns a Publishers -func newPublishers(c *PostgresV1alpha1Client, namespace string) *publishers { - return &publishers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the publisher, and returns the corresponding publisher object, and an error if there is any. -func (c *publishers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Publisher, err error) { - result = &v1alpha1.Publisher{} - err = c.client.Get(). - Namespace(c.ns). - Resource("publishers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Publishers that match those selectors. -func (c *publishers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PublisherList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PublisherList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("publishers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested publishers. -func (c *publishers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("publishers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a publisher and creates it. Returns the server's representation of the publisher, and an error, if there is any. -func (c *publishers) Create(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.CreateOptions) (result *v1alpha1.Publisher, err error) { - result = &v1alpha1.Publisher{} - err = c.client.Post(). - Namespace(c.ns). - Resource("publishers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(publisher). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a publisher and updates it. Returns the server's representation of the publisher, and an error, if there is any. -func (c *publishers) Update(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (result *v1alpha1.Publisher, err error) { - result = &v1alpha1.Publisher{} - err = c.client.Put(). - Namespace(c.ns). - Resource("publishers"). - Name(publisher.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(publisher). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *publishers) UpdateStatus(ctx context.Context, publisher *v1alpha1.Publisher, opts v1.UpdateOptions) (result *v1alpha1.Publisher, err error) { - result = &v1alpha1.Publisher{} - err = c.client.Put(). - Namespace(c.ns). - Resource("publishers"). - Name(publisher.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(publisher). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the publisher and deletes it. Returns an error if one occurs. -func (c *publishers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("publishers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *publishers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("publishers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched publisher. -func (c *publishers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Publisher, err error) { - result = &v1alpha1.Publisher{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("publishers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/postgres/v1alpha1/subscriber.go b/client/clientset/versioned/typed/postgres/v1alpha1/subscriber.go deleted file mode 100644 index 071f1ac387..0000000000 --- a/client/clientset/versioned/typed/postgres/v1alpha1/subscriber.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SubscribersGetter has a method to return a SubscriberInterface. -// A group's client should implement this interface. -type SubscribersGetter interface { - Subscribers(namespace string) SubscriberInterface -} - -// SubscriberInterface has methods to work with Subscriber resources. -type SubscriberInterface interface { - Create(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.CreateOptions) (*v1alpha1.Subscriber, error) - Update(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (*v1alpha1.Subscriber, error) - UpdateStatus(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (*v1alpha1.Subscriber, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.Subscriber, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SubscriberList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Subscriber, err error) - SubscriberExpansion -} - -// subscribers implements SubscriberInterface -type subscribers struct { - client rest.Interface - ns string -} - -// newSubscribers returns a Subscribers -func newSubscribers(c *PostgresV1alpha1Client, namespace string) *subscribers { - return &subscribers{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the subscriber, and returns the corresponding subscriber object, and an error if there is any. -func (c *subscribers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Subscriber, err error) { - result = &v1alpha1.Subscriber{} - err = c.client.Get(). - Namespace(c.ns). - Resource("subscribers"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of Subscribers that match those selectors. -func (c *subscribers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SubscriberList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.SubscriberList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("subscribers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested subscribers. -func (c *subscribers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("subscribers"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a subscriber and creates it. Returns the server's representation of the subscriber, and an error, if there is any. -func (c *subscribers) Create(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.CreateOptions) (result *v1alpha1.Subscriber, err error) { - result = &v1alpha1.Subscriber{} - err = c.client.Post(). - Namespace(c.ns). - Resource("subscribers"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(subscriber). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a subscriber and updates it. Returns the server's representation of the subscriber, and an error, if there is any. -func (c *subscribers) Update(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (result *v1alpha1.Subscriber, err error) { - result = &v1alpha1.Subscriber{} - err = c.client.Put(). - Namespace(c.ns). - Resource("subscribers"). - Name(subscriber.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(subscriber). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *subscribers) UpdateStatus(ctx context.Context, subscriber *v1alpha1.Subscriber, opts v1.UpdateOptions) (result *v1alpha1.Subscriber, err error) { - result = &v1alpha1.Subscriber{} - err = c.client.Put(). - Namespace(c.ns). - Resource("subscribers"). - Name(subscriber.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(subscriber). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the subscriber and deletes it. Returns an error if one occurs. -func (c *subscribers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("subscribers"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *subscribers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("subscribers"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched subscriber. -func (c *subscribers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Subscriber, err error) { - result = &v1alpha1.Subscriber{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("subscribers"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/doc.go b/client/clientset/versioned/typed/schema/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mariadbdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mariadbdatabase.go deleted file mode 100644 index 0fe4bf0269..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mariadbdatabase.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMariaDBDatabases implements MariaDBDatabaseInterface -type FakeMariaDBDatabases struct { - Fake *FakeSchemaV1alpha1 - ns string -} - -var mariadbdatabasesResource = v1alpha1.SchemeGroupVersion.WithResource("mariadbdatabases") - -var mariadbdatabasesKind = v1alpha1.SchemeGroupVersion.WithKind("MariaDBDatabase") - -// Get takes name of the mariaDBDatabase, and returns the corresponding mariaDBDatabase object, and an error if there is any. -func (c *FakeMariaDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mariadbdatabasesResource, c.ns, name), &v1alpha1.MariaDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBDatabase), err -} - -// List takes label and field selectors, and returns the list of MariaDBDatabases that match those selectors. -func (c *FakeMariaDBDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBDatabaseList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mariadbdatabasesResource, mariadbdatabasesKind, c.ns, opts), &v1alpha1.MariaDBDatabaseList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MariaDBDatabaseList{ListMeta: obj.(*v1alpha1.MariaDBDatabaseList).ListMeta} - for _, item := range obj.(*v1alpha1.MariaDBDatabaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mariaDBDatabases. -func (c *FakeMariaDBDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mariadbdatabasesResource, c.ns, opts)) - -} - -// Create takes the representation of a mariaDBDatabase and creates it. Returns the server's representation of the mariaDBDatabase, and an error, if there is any. -func (c *FakeMariaDBDatabases) Create(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MariaDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mariadbdatabasesResource, c.ns, mariaDBDatabase), &v1alpha1.MariaDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBDatabase), err -} - -// Update takes the representation of a mariaDBDatabase and updates it. Returns the server's representation of the mariaDBDatabase, and an error, if there is any. -func (c *FakeMariaDBDatabases) Update(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MariaDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mariadbdatabasesResource, c.ns, mariaDBDatabase), &v1alpha1.MariaDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBDatabase), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMariaDBDatabases) UpdateStatus(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MariaDBDatabase, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mariadbdatabasesResource, "status", c.ns, mariaDBDatabase), &v1alpha1.MariaDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBDatabase), err -} - -// Delete takes name of the mariaDBDatabase and deletes it. Returns an error if one occurs. -func (c *FakeMariaDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mariadbdatabasesResource, c.ns, name, opts), &v1alpha1.MariaDBDatabase{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMariaDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mariadbdatabasesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MariaDBDatabaseList{}) - return err -} - -// Patch applies the patch and returns the patched mariaDBDatabase. -func (c *FakeMariaDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mariadbdatabasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.MariaDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MariaDBDatabase), err -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mongodbdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mongodbdatabase.go deleted file mode 100644 index b9d1fae8fc..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mongodbdatabase.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMongoDBDatabases implements MongoDBDatabaseInterface -type FakeMongoDBDatabases struct { - Fake *FakeSchemaV1alpha1 - ns string -} - -var mongodbdatabasesResource = v1alpha1.SchemeGroupVersion.WithResource("mongodbdatabases") - -var mongodbdatabasesKind = v1alpha1.SchemeGroupVersion.WithKind("MongoDBDatabase") - -// Get takes name of the mongoDBDatabase, and returns the corresponding mongoDBDatabase object, and an error if there is any. -func (c *FakeMongoDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mongodbdatabasesResource, c.ns, name), &v1alpha1.MongoDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBDatabase), err -} - -// List takes label and field selectors, and returns the list of MongoDBDatabases that match those selectors. -func (c *FakeMongoDBDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBDatabaseList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mongodbdatabasesResource, mongodbdatabasesKind, c.ns, opts), &v1alpha1.MongoDBDatabaseList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MongoDBDatabaseList{ListMeta: obj.(*v1alpha1.MongoDBDatabaseList).ListMeta} - for _, item := range obj.(*v1alpha1.MongoDBDatabaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mongoDBDatabases. -func (c *FakeMongoDBDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mongodbdatabasesResource, c.ns, opts)) - -} - -// Create takes the representation of a mongoDBDatabase and creates it. Returns the server's representation of the mongoDBDatabase, and an error, if there is any. -func (c *FakeMongoDBDatabases) Create(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MongoDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mongodbdatabasesResource, c.ns, mongoDBDatabase), &v1alpha1.MongoDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBDatabase), err -} - -// Update takes the representation of a mongoDBDatabase and updates it. Returns the server's representation of the mongoDBDatabase, and an error, if there is any. -func (c *FakeMongoDBDatabases) Update(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MongoDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mongodbdatabasesResource, c.ns, mongoDBDatabase), &v1alpha1.MongoDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBDatabase), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMongoDBDatabases) UpdateStatus(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MongoDBDatabase, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mongodbdatabasesResource, "status", c.ns, mongoDBDatabase), &v1alpha1.MongoDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBDatabase), err -} - -// Delete takes name of the mongoDBDatabase and deletes it. Returns an error if one occurs. -func (c *FakeMongoDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mongodbdatabasesResource, c.ns, name, opts), &v1alpha1.MongoDBDatabase{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMongoDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mongodbdatabasesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MongoDBDatabaseList{}) - return err -} - -// Patch applies the patch and returns the patched mongoDBDatabase. -func (c *FakeMongoDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mongodbdatabasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.MongoDBDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MongoDBDatabase), err -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mysqldatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mysqldatabase.go deleted file mode 100644 index 76374a1917..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_mysqldatabase.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeMySQLDatabases implements MySQLDatabaseInterface -type FakeMySQLDatabases struct { - Fake *FakeSchemaV1alpha1 - ns string -} - -var mysqldatabasesResource = v1alpha1.SchemeGroupVersion.WithResource("mysqldatabases") - -var mysqldatabasesKind = v1alpha1.SchemeGroupVersion.WithKind("MySQLDatabase") - -// Get takes name of the mySQLDatabase, and returns the corresponding mySQLDatabase object, and an error if there is any. -func (c *FakeMySQLDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(mysqldatabasesResource, c.ns, name), &v1alpha1.MySQLDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLDatabase), err -} - -// List takes label and field selectors, and returns the list of MySQLDatabases that match those selectors. -func (c *FakeMySQLDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLDatabaseList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(mysqldatabasesResource, mysqldatabasesKind, c.ns, opts), &v1alpha1.MySQLDatabaseList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.MySQLDatabaseList{ListMeta: obj.(*v1alpha1.MySQLDatabaseList).ListMeta} - for _, item := range obj.(*v1alpha1.MySQLDatabaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested mySQLDatabases. -func (c *FakeMySQLDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(mysqldatabasesResource, c.ns, opts)) - -} - -// Create takes the representation of a mySQLDatabase and creates it. Returns the server's representation of the mySQLDatabase, and an error, if there is any. -func (c *FakeMySQLDatabases) Create(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.CreateOptions) (result *v1alpha1.MySQLDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(mysqldatabasesResource, c.ns, mySQLDatabase), &v1alpha1.MySQLDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLDatabase), err -} - -// Update takes the representation of a mySQLDatabase and updates it. Returns the server's representation of the mySQLDatabase, and an error, if there is any. -func (c *FakeMySQLDatabases) Update(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (result *v1alpha1.MySQLDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(mysqldatabasesResource, c.ns, mySQLDatabase), &v1alpha1.MySQLDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLDatabase), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeMySQLDatabases) UpdateStatus(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (*v1alpha1.MySQLDatabase, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(mysqldatabasesResource, "status", c.ns, mySQLDatabase), &v1alpha1.MySQLDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLDatabase), err -} - -// Delete takes name of the mySQLDatabase and deletes it. Returns an error if one occurs. -func (c *FakeMySQLDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(mysqldatabasesResource, c.ns, name, opts), &v1alpha1.MySQLDatabase{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeMySQLDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(mysqldatabasesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.MySQLDatabaseList{}) - return err -} - -// Patch applies the patch and returns the patched mySQLDatabase. -func (c *FakeMySQLDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(mysqldatabasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.MySQLDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.MySQLDatabase), err -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_postgresdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_postgresdatabase.go deleted file mode 100644 index 7ea37037cc..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_postgresdatabase.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakePostgresDatabases implements PostgresDatabaseInterface -type FakePostgresDatabases struct { - Fake *FakeSchemaV1alpha1 - ns string -} - -var postgresdatabasesResource = v1alpha1.SchemeGroupVersion.WithResource("postgresdatabases") - -var postgresdatabasesKind = v1alpha1.SchemeGroupVersion.WithKind("PostgresDatabase") - -// Get takes name of the postgresDatabase, and returns the corresponding postgresDatabase object, and an error if there is any. -func (c *FakePostgresDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(postgresdatabasesResource, c.ns, name), &v1alpha1.PostgresDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresDatabase), err -} - -// List takes label and field selectors, and returns the list of PostgresDatabases that match those selectors. -func (c *FakePostgresDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresDatabaseList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(postgresdatabasesResource, postgresdatabasesKind, c.ns, opts), &v1alpha1.PostgresDatabaseList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.PostgresDatabaseList{ListMeta: obj.(*v1alpha1.PostgresDatabaseList).ListMeta} - for _, item := range obj.(*v1alpha1.PostgresDatabaseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested postgresDatabases. -func (c *FakePostgresDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(postgresdatabasesResource, c.ns, opts)) - -} - -// Create takes the representation of a postgresDatabase and creates it. Returns the server's representation of the postgresDatabase, and an error, if there is any. -func (c *FakePostgresDatabases) Create(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.CreateOptions) (result *v1alpha1.PostgresDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(postgresdatabasesResource, c.ns, postgresDatabase), &v1alpha1.PostgresDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresDatabase), err -} - -// Update takes the representation of a postgresDatabase and updates it. Returns the server's representation of the postgresDatabase, and an error, if there is any. -func (c *FakePostgresDatabases) Update(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (result *v1alpha1.PostgresDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(postgresdatabasesResource, c.ns, postgresDatabase), &v1alpha1.PostgresDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresDatabase), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePostgresDatabases) UpdateStatus(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (*v1alpha1.PostgresDatabase, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(postgresdatabasesResource, "status", c.ns, postgresDatabase), &v1alpha1.PostgresDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresDatabase), err -} - -// Delete takes name of the postgresDatabase and deletes it. Returns an error if one occurs. -func (c *FakePostgresDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(postgresdatabasesResource, c.ns, name, opts), &v1alpha1.PostgresDatabase{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakePostgresDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(postgresdatabasesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.PostgresDatabaseList{}) - return err -} - -// Patch applies the patch and returns the patched postgresDatabase. -func (c *FakePostgresDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresDatabase, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(postgresdatabasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.PostgresDatabase{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.PostgresDatabase), err -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_schema_client.go b/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_schema_client.go deleted file mode 100644 index 0f0a3f7fde..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/fake/fake_schema_client.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "kubedb.dev/apimachinery/client/clientset/versioned/typed/schema/v1alpha1" - - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeSchemaV1alpha1 struct { - *testing.Fake -} - -func (c *FakeSchemaV1alpha1) MariaDBDatabases(namespace string) v1alpha1.MariaDBDatabaseInterface { - return &FakeMariaDBDatabases{c, namespace} -} - -func (c *FakeSchemaV1alpha1) MongoDBDatabases(namespace string) v1alpha1.MongoDBDatabaseInterface { - return &FakeMongoDBDatabases{c, namespace} -} - -func (c *FakeSchemaV1alpha1) MySQLDatabases(namespace string) v1alpha1.MySQLDatabaseInterface { - return &FakeMySQLDatabases{c, namespace} -} - -func (c *FakeSchemaV1alpha1) PostgresDatabases(namespace string) v1alpha1.PostgresDatabaseInterface { - return &FakePostgresDatabases{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeSchemaV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/schema/v1alpha1/generated_expansion.go deleted file mode 100644 index 45582ec111..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,27 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type MariaDBDatabaseExpansion interface{} - -type MongoDBDatabaseExpansion interface{} - -type MySQLDatabaseExpansion interface{} - -type PostgresDatabaseExpansion interface{} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/mariadbdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/mariadbdatabase.go deleted file mode 100644 index df1643ba35..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/mariadbdatabase.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MariaDBDatabasesGetter has a method to return a MariaDBDatabaseInterface. -// A group's client should implement this interface. -type MariaDBDatabasesGetter interface { - MariaDBDatabases(namespace string) MariaDBDatabaseInterface -} - -// MariaDBDatabaseInterface has methods to work with MariaDBDatabase resources. -type MariaDBDatabaseInterface interface { - Create(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.CreateOptions) (*v1alpha1.MariaDBDatabase, error) - Update(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MariaDBDatabase, error) - UpdateStatus(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MariaDBDatabase, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MariaDBDatabase, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MariaDBDatabaseList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBDatabase, err error) - MariaDBDatabaseExpansion -} - -// mariaDBDatabases implements MariaDBDatabaseInterface -type mariaDBDatabases struct { - client rest.Interface - ns string -} - -// newMariaDBDatabases returns a MariaDBDatabases -func newMariaDBDatabases(c *SchemaV1alpha1Client, namespace string) *mariaDBDatabases { - return &mariaDBDatabases{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mariaDBDatabase, and returns the corresponding mariaDBDatabase object, and an error if there is any. -func (c *mariaDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBDatabase, err error) { - result = &v1alpha1.MariaDBDatabase{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbdatabases"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MariaDBDatabases that match those selectors. -func (c *mariaDBDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MariaDBDatabaseList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MariaDBDatabaseList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mariadbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mariaDBDatabases. -func (c *mariaDBDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mariadbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mariaDBDatabase and creates it. Returns the server's representation of the mariaDBDatabase, and an error, if there is any. -func (c *mariaDBDatabases) Create(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MariaDBDatabase, err error) { - result = &v1alpha1.MariaDBDatabase{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mariadbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBDatabase). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mariaDBDatabase and updates it. Returns the server's representation of the mariaDBDatabase, and an error, if there is any. -func (c *mariaDBDatabases) Update(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MariaDBDatabase, err error) { - result = &v1alpha1.MariaDBDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbdatabases"). - Name(mariaDBDatabase.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBDatabase). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mariaDBDatabases) UpdateStatus(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MariaDBDatabase, err error) { - result = &v1alpha1.MariaDBDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mariadbdatabases"). - Name(mariaDBDatabase.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mariaDBDatabase). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mariaDBDatabase and deletes it. Returns an error if one occurs. -func (c *mariaDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbdatabases"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mariaDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mariadbdatabases"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mariaDBDatabase. -func (c *mariaDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBDatabase, err error) { - result = &v1alpha1.MariaDBDatabase{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mariadbdatabases"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/mongodbdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/mongodbdatabase.go deleted file mode 100644 index b73a0d4a6a..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/mongodbdatabase.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MongoDBDatabasesGetter has a method to return a MongoDBDatabaseInterface. -// A group's client should implement this interface. -type MongoDBDatabasesGetter interface { - MongoDBDatabases(namespace string) MongoDBDatabaseInterface -} - -// MongoDBDatabaseInterface has methods to work with MongoDBDatabase resources. -type MongoDBDatabaseInterface interface { - Create(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.CreateOptions) (*v1alpha1.MongoDBDatabase, error) - Update(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MongoDBDatabase, error) - UpdateStatus(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MongoDBDatabase, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MongoDBDatabase, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MongoDBDatabaseList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBDatabase, err error) - MongoDBDatabaseExpansion -} - -// mongoDBDatabases implements MongoDBDatabaseInterface -type mongoDBDatabases struct { - client rest.Interface - ns string -} - -// newMongoDBDatabases returns a MongoDBDatabases -func newMongoDBDatabases(c *SchemaV1alpha1Client, namespace string) *mongoDBDatabases { - return &mongoDBDatabases{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mongoDBDatabase, and returns the corresponding mongoDBDatabase object, and an error if there is any. -func (c *mongoDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBDatabase, err error) { - result = &v1alpha1.MongoDBDatabase{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbdatabases"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MongoDBDatabases that match those selectors. -func (c *mongoDBDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MongoDBDatabaseList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MongoDBDatabaseList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mongodbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mongoDBDatabases. -func (c *mongoDBDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mongodbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mongoDBDatabase and creates it. Returns the server's representation of the mongoDBDatabase, and an error, if there is any. -func (c *mongoDBDatabases) Create(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MongoDBDatabase, err error) { - result = &v1alpha1.MongoDBDatabase{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mongodbdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBDatabase). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mongoDBDatabase and updates it. Returns the server's representation of the mongoDBDatabase, and an error, if there is any. -func (c *mongoDBDatabases) Update(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MongoDBDatabase, err error) { - result = &v1alpha1.MongoDBDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbdatabases"). - Name(mongoDBDatabase.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBDatabase). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mongoDBDatabases) UpdateStatus(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MongoDBDatabase, err error) { - result = &v1alpha1.MongoDBDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mongodbdatabases"). - Name(mongoDBDatabase.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mongoDBDatabase). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mongoDBDatabase and deletes it. Returns an error if one occurs. -func (c *mongoDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbdatabases"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mongoDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mongodbdatabases"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mongoDBDatabase. -func (c *mongoDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBDatabase, err error) { - result = &v1alpha1.MongoDBDatabase{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mongodbdatabases"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/mysqldatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/mysqldatabase.go deleted file mode 100644 index 9a5e9e8798..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/mysqldatabase.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// MySQLDatabasesGetter has a method to return a MySQLDatabaseInterface. -// A group's client should implement this interface. -type MySQLDatabasesGetter interface { - MySQLDatabases(namespace string) MySQLDatabaseInterface -} - -// MySQLDatabaseInterface has methods to work with MySQLDatabase resources. -type MySQLDatabaseInterface interface { - Create(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.CreateOptions) (*v1alpha1.MySQLDatabase, error) - Update(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (*v1alpha1.MySQLDatabase, error) - UpdateStatus(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (*v1alpha1.MySQLDatabase, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.MySQLDatabase, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.MySQLDatabaseList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLDatabase, err error) - MySQLDatabaseExpansion -} - -// mySQLDatabases implements MySQLDatabaseInterface -type mySQLDatabases struct { - client rest.Interface - ns string -} - -// newMySQLDatabases returns a MySQLDatabases -func newMySQLDatabases(c *SchemaV1alpha1Client, namespace string) *mySQLDatabases { - return &mySQLDatabases{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the mySQLDatabase, and returns the corresponding mySQLDatabase object, and an error if there is any. -func (c *mySQLDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLDatabase, err error) { - result = &v1alpha1.MySQLDatabase{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqldatabases"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of MySQLDatabases that match those selectors. -func (c *mySQLDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLDatabaseList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.MySQLDatabaseList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("mysqldatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested mySQLDatabases. -func (c *mySQLDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("mysqldatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a mySQLDatabase and creates it. Returns the server's representation of the mySQLDatabase, and an error, if there is any. -func (c *mySQLDatabases) Create(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.CreateOptions) (result *v1alpha1.MySQLDatabase, err error) { - result = &v1alpha1.MySQLDatabase{} - err = c.client.Post(). - Namespace(c.ns). - Resource("mysqldatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLDatabase). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a mySQLDatabase and updates it. Returns the server's representation of the mySQLDatabase, and an error, if there is any. -func (c *mySQLDatabases) Update(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (result *v1alpha1.MySQLDatabase, err error) { - result = &v1alpha1.MySQLDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqldatabases"). - Name(mySQLDatabase.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLDatabase). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *mySQLDatabases) UpdateStatus(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (result *v1alpha1.MySQLDatabase, err error) { - result = &v1alpha1.MySQLDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("mysqldatabases"). - Name(mySQLDatabase.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(mySQLDatabase). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the mySQLDatabase and deletes it. Returns an error if one occurs. -func (c *mySQLDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqldatabases"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *mySQLDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("mysqldatabases"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched mySQLDatabase. -func (c *mySQLDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLDatabase, err error) { - result = &v1alpha1.MySQLDatabase{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("mysqldatabases"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/postgresdatabase.go b/client/clientset/versioned/typed/schema/v1alpha1/postgresdatabase.go deleted file mode 100644 index 20c4f1c5b5..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/postgresdatabase.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - scheme "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// PostgresDatabasesGetter has a method to return a PostgresDatabaseInterface. -// A group's client should implement this interface. -type PostgresDatabasesGetter interface { - PostgresDatabases(namespace string) PostgresDatabaseInterface -} - -// PostgresDatabaseInterface has methods to work with PostgresDatabase resources. -type PostgresDatabaseInterface interface { - Create(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.CreateOptions) (*v1alpha1.PostgresDatabase, error) - Update(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (*v1alpha1.PostgresDatabase, error) - UpdateStatus(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (*v1alpha1.PostgresDatabase, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.PostgresDatabase, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.PostgresDatabaseList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresDatabase, err error) - PostgresDatabaseExpansion -} - -// postgresDatabases implements PostgresDatabaseInterface -type postgresDatabases struct { - client rest.Interface - ns string -} - -// newPostgresDatabases returns a PostgresDatabases -func newPostgresDatabases(c *SchemaV1alpha1Client, namespace string) *postgresDatabases { - return &postgresDatabases{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the postgresDatabase, and returns the corresponding postgresDatabase object, and an error if there is any. -func (c *postgresDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresDatabase, err error) { - result = &v1alpha1.PostgresDatabase{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresdatabases"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of PostgresDatabases that match those selectors. -func (c *postgresDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PostgresDatabaseList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.PostgresDatabaseList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("postgresdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested postgresDatabases. -func (c *postgresDatabases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("postgresdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a postgresDatabase and creates it. Returns the server's representation of the postgresDatabase, and an error, if there is any. -func (c *postgresDatabases) Create(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.CreateOptions) (result *v1alpha1.PostgresDatabase, err error) { - result = &v1alpha1.PostgresDatabase{} - err = c.client.Post(). - Namespace(c.ns). - Resource("postgresdatabases"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresDatabase). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a postgresDatabase and updates it. Returns the server's representation of the postgresDatabase, and an error, if there is any. -func (c *postgresDatabases) Update(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (result *v1alpha1.PostgresDatabase, err error) { - result = &v1alpha1.PostgresDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresdatabases"). - Name(postgresDatabase.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresDatabase). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *postgresDatabases) UpdateStatus(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (result *v1alpha1.PostgresDatabase, err error) { - result = &v1alpha1.PostgresDatabase{} - err = c.client.Put(). - Namespace(c.ns). - Resource("postgresdatabases"). - Name(postgresDatabase.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(postgresDatabase). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the postgresDatabase and deletes it. Returns an error if one occurs. -func (c *postgresDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresdatabases"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *postgresDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("postgresdatabases"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched postgresDatabase. -func (c *postgresDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresDatabase, err error) { - result = &v1alpha1.PostgresDatabase{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("postgresdatabases"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/client/clientset/versioned/typed/schema/v1alpha1/schema_client.go b/client/clientset/versioned/typed/schema/v1alpha1/schema_client.go deleted file mode 100644 index 275d94608e..0000000000 --- a/client/clientset/versioned/typed/schema/v1alpha1/schema_client.go +++ /dev/null @@ -1,123 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type SchemaV1alpha1Interface interface { - RESTClient() rest.Interface - MariaDBDatabasesGetter - MongoDBDatabasesGetter - MySQLDatabasesGetter - PostgresDatabasesGetter -} - -// SchemaV1alpha1Client is used to interact with features provided by the schema.kubedb.com group. -type SchemaV1alpha1Client struct { - restClient rest.Interface -} - -func (c *SchemaV1alpha1Client) MariaDBDatabases(namespace string) MariaDBDatabaseInterface { - return newMariaDBDatabases(c, namespace) -} - -func (c *SchemaV1alpha1Client) MongoDBDatabases(namespace string) MongoDBDatabaseInterface { - return newMongoDBDatabases(c, namespace) -} - -func (c *SchemaV1alpha1Client) MySQLDatabases(namespace string) MySQLDatabaseInterface { - return newMySQLDatabases(c, namespace) -} - -func (c *SchemaV1alpha1Client) PostgresDatabases(namespace string) PostgresDatabaseInterface { - return newPostgresDatabases(c, namespace) -} - -// NewForConfig creates a new SchemaV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*SchemaV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new SchemaV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*SchemaV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &SchemaV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new SchemaV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *SchemaV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new SchemaV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *SchemaV1alpha1Client { - return &SchemaV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *SchemaV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/doc.go b/client/clientset/versioned/typed/ui/v1alpha1/doc.go deleted file mode 100644 index 50f5242205..0000000000 --- a/client/clientset/versioned/typed/ui/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/client/clientset/versioned/typed/ui/v1alpha1/fake/doc.go b/client/clientset/versioned/typed/ui/v1alpha1/fake/doc.go deleted file mode 100644 index 722be18ace..0000000000 --- a/client/clientset/versioned/typed/ui/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go b/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go deleted file mode 100644 index a4b52170b2..0000000000 --- a/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeUiV1alpha1 struct { - *testing.Fake -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeUiV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go deleted file mode 100644 index 3a3a7f61f1..0000000000 --- a/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 diff --git a/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go b/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go deleted file mode 100644 index 50923582b6..0000000000 --- a/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright AppsCode Inc. and Contributors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "kubedb.dev/apimachinery/apis/ui/v1alpha1" - "kubedb.dev/apimachinery/client/clientset/versioned/scheme" - - rest "k8s.io/client-go/rest" -) - -type UiV1alpha1Interface interface { - RESTClient() rest.Interface -} - -// UiV1alpha1Client is used to interact with features provided by the ui.kubedb.com group. -type UiV1alpha1Client struct { - restClient rest.Interface -} - -// NewForConfig creates a new UiV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*UiV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new UiV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*UiV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &UiV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new UiV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *UiV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new UiV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *UiV1alpha1Client { - return &UiV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *UiV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/client/informers/externalversions/archiver/v1alpha1/mongodbarchiver.go b/client/informers/externalversions/archiver/v1alpha1/mongodbarchiver.go index 9b21dda348..7fe92f999c 100644 --- a/client/informers/externalversions/archiver/v1alpha1/mongodbarchiver.go +++ b/client/informers/externalversions/archiver/v1alpha1/mongodbarchiver.go @@ -22,15 +22,14 @@ import ( "context" time "time" - archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" ) // MongoDBArchiverInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/archiver/v1alpha1/mysqlarchiver.go b/client/informers/externalversions/archiver/v1alpha1/mysqlarchiver.go index 8631f71182..d67e329e9e 100644 --- a/client/informers/externalversions/archiver/v1alpha1/mysqlarchiver.go +++ b/client/informers/externalversions/archiver/v1alpha1/mysqlarchiver.go @@ -22,15 +22,14 @@ import ( "context" time "time" - archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" ) // MySQLArchiverInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/archiver/v1alpha1/postgresarchiver.go b/client/informers/externalversions/archiver/v1alpha1/postgresarchiver.go index e6e7fe9a8f..4b055cc293 100644 --- a/client/informers/externalversions/archiver/v1alpha1/postgresarchiver.go +++ b/client/informers/externalversions/archiver/v1alpha1/postgresarchiver.go @@ -22,15 +22,14 @@ import ( "context" time "time" - archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + archiverv1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/archiver/v1alpha1" ) // PostgresArchiverInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/elasticsearchautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/elasticsearchautoscaler.go index adc4766e50..053aac5ddd 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/elasticsearchautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/elasticsearchautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // ElasticsearchAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/etcdautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/etcdautoscaler.go index d44e521255..b73302ce5c 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/etcdautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/etcdautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // EtcdAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/mariadbautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/mariadbautoscaler.go index 75f1803ba3..2de703278f 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/mariadbautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/mariadbautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // MariaDBAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/memcachedautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/memcachedautoscaler.go index 8c2a792d05..91ba1bf04f 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/memcachedautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/memcachedautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // MemcachedAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/mongodbautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/mongodbautoscaler.go index 552d6a8389..d31d4490df 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/mongodbautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/mongodbautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // MongoDBAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/mysqlautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/mysqlautoscaler.go index a930b0dde7..65253deb13 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/mysqlautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/mysqlautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // MySQLAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/perconaxtradbautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/perconaxtradbautoscaler.go index 976140524f..2d20d793a5 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/perconaxtradbautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/perconaxtradbautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // PerconaXtraDBAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/pgbouncerautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/pgbouncerautoscaler.go index 304c5c1dde..6776d36144 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/pgbouncerautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/pgbouncerautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // PgBouncerAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/postgresautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/postgresautoscaler.go index fcef2cdfbf..8716001a67 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/postgresautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/postgresautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // PostgresAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/proxysqlautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/proxysqlautoscaler.go index c6ffa7c0a1..d452b9b9ed 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/proxysqlautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/proxysqlautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // ProxySQLAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/redisautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/redisautoscaler.go index 2a27aae59c..a317852954 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/redisautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/redisautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // RedisAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/autoscaling/v1alpha1/redissentinelautoscaler.go b/client/informers/externalversions/autoscaling/v1alpha1/redissentinelautoscaler.go index 4627832d5c..d7443524b3 100644 --- a/client/informers/externalversions/autoscaling/v1alpha1/redissentinelautoscaler.go +++ b/client/informers/externalversions/autoscaling/v1alpha1/redissentinelautoscaler.go @@ -22,15 +22,14 @@ import ( "context" time "time" - autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/autoscaling/v1alpha1" ) // RedisSentinelAutoscalerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/druidversion.go b/client/informers/externalversions/catalog/v1alpha1/druidversion.go index e7856f218e..45a7be7ecb 100644 --- a/client/informers/externalversions/catalog/v1alpha1/druidversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/druidversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // DruidVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/elasticsearchversion.go b/client/informers/externalversions/catalog/v1alpha1/elasticsearchversion.go index 67bd5104a2..e40d93d016 100644 --- a/client/informers/externalversions/catalog/v1alpha1/elasticsearchversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/elasticsearchversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // ElasticsearchVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/etcdversion.go b/client/informers/externalversions/catalog/v1alpha1/etcdversion.go index 5db07e9009..fe7cc4e66e 100644 --- a/client/informers/externalversions/catalog/v1alpha1/etcdversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/etcdversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // EtcdVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/kafkaconnectorversion.go b/client/informers/externalversions/catalog/v1alpha1/kafkaconnectorversion.go index 6e76d9e6fd..5b6745b805 100644 --- a/client/informers/externalversions/catalog/v1alpha1/kafkaconnectorversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/kafkaconnectorversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // KafkaConnectorVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/kafkaversion.go b/client/informers/externalversions/catalog/v1alpha1/kafkaversion.go index abbb4c3dfe..d168dd8d33 100644 --- a/client/informers/externalversions/catalog/v1alpha1/kafkaversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/kafkaversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // KafkaVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/mariadbversion.go b/client/informers/externalversions/catalog/v1alpha1/mariadbversion.go index 1023bd499e..22e881ad88 100644 --- a/client/informers/externalversions/catalog/v1alpha1/mariadbversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/mariadbversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // MariaDBVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/memcachedversion.go b/client/informers/externalversions/catalog/v1alpha1/memcachedversion.go index 6f81b88ee0..c06eace33c 100644 --- a/client/informers/externalversions/catalog/v1alpha1/memcachedversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/memcachedversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // MemcachedVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/mongodbversion.go b/client/informers/externalversions/catalog/v1alpha1/mongodbversion.go index a890055129..41b00c611c 100644 --- a/client/informers/externalversions/catalog/v1alpha1/mongodbversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/mongodbversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // MongoDBVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/mysqlversion.go b/client/informers/externalversions/catalog/v1alpha1/mysqlversion.go index 6e1c5673bd..4eb22ae9ef 100644 --- a/client/informers/externalversions/catalog/v1alpha1/mysqlversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/mysqlversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // MySQLVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/perconaxtradbversion.go b/client/informers/externalversions/catalog/v1alpha1/perconaxtradbversion.go index 544403aa41..a9f23734a9 100644 --- a/client/informers/externalversions/catalog/v1alpha1/perconaxtradbversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/perconaxtradbversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // PerconaXtraDBVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/pgbouncerversion.go b/client/informers/externalversions/catalog/v1alpha1/pgbouncerversion.go index 65f8a7ba05..0ba0cbfd9a 100644 --- a/client/informers/externalversions/catalog/v1alpha1/pgbouncerversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/pgbouncerversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // PgBouncerVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/postgresversion.go b/client/informers/externalversions/catalog/v1alpha1/postgresversion.go index be65628c5f..365cac5aad 100644 --- a/client/informers/externalversions/catalog/v1alpha1/postgresversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/postgresversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // PostgresVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/proxysqlversion.go b/client/informers/externalversions/catalog/v1alpha1/proxysqlversion.go index 1237a8df89..2dbdbcb7fe 100644 --- a/client/informers/externalversions/catalog/v1alpha1/proxysqlversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/proxysqlversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // ProxySQLVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/redisversion.go b/client/informers/externalversions/catalog/v1alpha1/redisversion.go index cc880a3d35..710710ac00 100644 --- a/client/informers/externalversions/catalog/v1alpha1/redisversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/redisversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // RedisVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/catalog/v1alpha1/singlestoreversion.go b/client/informers/externalversions/catalog/v1alpha1/singlestoreversion.go index 0f1264692b..433cc4614d 100644 --- a/client/informers/externalversions/catalog/v1alpha1/singlestoreversion.go +++ b/client/informers/externalversions/catalog/v1alpha1/singlestoreversion.go @@ -22,15 +22,14 @@ import ( "context" time "time" - catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/catalog/v1alpha1" ) // SinglestoreVersionInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/dashboard/v1alpha1/elasticsearchdashboard.go b/client/informers/externalversions/dashboard/v1alpha1/elasticsearchdashboard.go index 7e005a70a2..b438dfa7ed 100644 --- a/client/informers/externalversions/dashboard/v1alpha1/elasticsearchdashboard.go +++ b/client/informers/externalversions/dashboard/v1alpha1/elasticsearchdashboard.go @@ -22,15 +22,14 @@ import ( "context" time "time" - dashboardv1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/dashboard/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + dashboardv1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/dashboard/v1alpha1" ) // ElasticsearchDashboardInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/factory.go b/client/informers/externalversions/factory.go index e5c52f857e..0117ac5743 100644 --- a/client/informers/externalversions/factory.go +++ b/client/informers/externalversions/factory.go @@ -23,6 +23,10 @@ import ( sync "sync" time "time" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" + cache "k8s.io/client-go/tools/cache" versioned "kubedb.dev/apimachinery/client/clientset/versioned" archiver "kubedb.dev/apimachinery/client/informers/externalversions/archiver" autoscaling "kubedb.dev/apimachinery/client/informers/externalversions/autoscaling" @@ -34,11 +38,6 @@ import ( ops "kubedb.dev/apimachinery/client/informers/externalversions/ops" postgres "kubedb.dev/apimachinery/client/informers/externalversions/postgres" externalversionsschema "kubedb.dev/apimachinery/client/informers/externalversions/schema" - - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - schema "k8s.io/apimachinery/pkg/runtime/schema" - cache "k8s.io/client-go/tools/cache" ) // SharedInformerOption defines the functional option type for SharedInformerFactory. diff --git a/client/informers/externalversions/generic.go b/client/informers/externalversions/generic.go index 54acede96c..cec6fc523e 100644 --- a/client/informers/externalversions/generic.go +++ b/client/informers/externalversions/generic.go @@ -21,6 +21,8 @@ package externalversions import ( "fmt" + schema "k8s.io/apimachinery/pkg/runtime/schema" + cache "k8s.io/client-go/tools/cache" v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" autoscalingv1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" catalogv1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" @@ -30,9 +32,6 @@ import ( opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - - schema "k8s.io/apimachinery/pkg/runtime/schema" - cache "k8s.io/client-go/tools/cache" ) // GenericInformer is type of SharedIndexInformer which will locate and delegate to other diff --git a/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/client/informers/externalversions/internalinterfaces/factory_interfaces.go index 2b02452953..0ed5066a98 100644 --- a/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -21,11 +21,10 @@ package internalinterfaces import ( time "time" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" ) // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. diff --git a/client/informers/externalversions/kafka/v1alpha1/connectcluster.go b/client/informers/externalversions/kafka/v1alpha1/connectcluster.go index 4acbf9c0ba..8cb7710c26 100644 --- a/client/informers/externalversions/kafka/v1alpha1/connectcluster.go +++ b/client/informers/externalversions/kafka/v1alpha1/connectcluster.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/kafka/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/kafka/v1alpha1" ) // ConnectClusterInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kafka/v1alpha1/connector.go b/client/informers/externalversions/kafka/v1alpha1/connector.go index 03cc865c93..f866bff6f5 100644 --- a/client/informers/externalversions/kafka/v1alpha1/connector.go +++ b/client/informers/externalversions/kafka/v1alpha1/connector.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/kafka/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kafkav1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/kafka/v1alpha1" ) // ConnectorInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/druid.go b/client/informers/externalversions/kubedb/v1alpha2/druid.go index 677ad68bf0..09f3d6a7bd 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/druid.go +++ b/client/informers/externalversions/kubedb/v1alpha2/druid.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // DruidInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/elasticsearch.go b/client/informers/externalversions/kubedb/v1alpha2/elasticsearch.go index 27ccbc1f97..0efe775ecc 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/elasticsearch.go +++ b/client/informers/externalversions/kubedb/v1alpha2/elasticsearch.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // ElasticsearchInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/etcd.go b/client/informers/externalversions/kubedb/v1alpha2/etcd.go index bb8e79cc6c..202c9ce40e 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/etcd.go +++ b/client/informers/externalversions/kubedb/v1alpha2/etcd.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // EtcdInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/kafka.go b/client/informers/externalversions/kubedb/v1alpha2/kafka.go index be59d909e7..2ec56cd0e0 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/kafka.go +++ b/client/informers/externalversions/kubedb/v1alpha2/kafka.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // KafkaInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/mariadb.go b/client/informers/externalversions/kubedb/v1alpha2/mariadb.go index 415daca85d..0acbd3c8ea 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/mariadb.go +++ b/client/informers/externalversions/kubedb/v1alpha2/mariadb.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // MariaDBInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/memcached.go b/client/informers/externalversions/kubedb/v1alpha2/memcached.go index 9136bb4a91..79ba85234d 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/memcached.go +++ b/client/informers/externalversions/kubedb/v1alpha2/memcached.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // MemcachedInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/mongodb.go b/client/informers/externalversions/kubedb/v1alpha2/mongodb.go index 87c943e4be..81d52f9d7b 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/mongodb.go +++ b/client/informers/externalversions/kubedb/v1alpha2/mongodb.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // MongoDBInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/mysql.go b/client/informers/externalversions/kubedb/v1alpha2/mysql.go index 4cbdcf5f9a..3020093a70 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/mysql.go +++ b/client/informers/externalversions/kubedb/v1alpha2/mysql.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // MySQLInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/perconaxtradb.go b/client/informers/externalversions/kubedb/v1alpha2/perconaxtradb.go index d4ca683920..8fe49d1e22 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/perconaxtradb.go +++ b/client/informers/externalversions/kubedb/v1alpha2/perconaxtradb.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // PerconaXtraDBInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/pgbouncer.go b/client/informers/externalversions/kubedb/v1alpha2/pgbouncer.go index 5e006ba3d5..9787803986 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/pgbouncer.go +++ b/client/informers/externalversions/kubedb/v1alpha2/pgbouncer.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // PgBouncerInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/postgres.go b/client/informers/externalversions/kubedb/v1alpha2/postgres.go index 0d1091571a..94c18e5534 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/postgres.go +++ b/client/informers/externalversions/kubedb/v1alpha2/postgres.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // PostgresInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/proxysql.go b/client/informers/externalversions/kubedb/v1alpha2/proxysql.go index c64aaf2a19..7dbe8b3e91 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/proxysql.go +++ b/client/informers/externalversions/kubedb/v1alpha2/proxysql.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // ProxySQLInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/redis.go b/client/informers/externalversions/kubedb/v1alpha2/redis.go index 1cba0d9a8a..71afa6252a 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/redis.go +++ b/client/informers/externalversions/kubedb/v1alpha2/redis.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // RedisInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/redissentinel.go b/client/informers/externalversions/kubedb/v1alpha2/redissentinel.go index b1cc8a5244..9e21161b7d 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/redissentinel.go +++ b/client/informers/externalversions/kubedb/v1alpha2/redissentinel.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // RedisSentinelInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/kubedb/v1alpha2/singlestore.go b/client/informers/externalversions/kubedb/v1alpha2/singlestore.go index c322f34763..ec3479e965 100644 --- a/client/informers/externalversions/kubedb/v1alpha2/singlestore.go +++ b/client/informers/externalversions/kubedb/v1alpha2/singlestore.go @@ -22,15 +22,14 @@ import ( "context" time "time" - kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + kubedbv1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha2 "kubedb.dev/apimachinery/client/listers/kubedb/v1alpha2" ) // SinglestoreInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/elasticsearchopsrequest.go b/client/informers/externalversions/ops/v1alpha1/elasticsearchopsrequest.go index 4a7d62461e..e9008f3587 100644 --- a/client/informers/externalversions/ops/v1alpha1/elasticsearchopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/elasticsearchopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // ElasticsearchOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/etcdopsrequest.go b/client/informers/externalversions/ops/v1alpha1/etcdopsrequest.go index 4cc7473cb5..de58b27efc 100644 --- a/client/informers/externalversions/ops/v1alpha1/etcdopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/etcdopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // EtcdOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/kafkaopsrequest.go b/client/informers/externalversions/ops/v1alpha1/kafkaopsrequest.go index b173c12ffc..01fa4a55c9 100644 --- a/client/informers/externalversions/ops/v1alpha1/kafkaopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/kafkaopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // KafkaOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/mariadbopsrequest.go b/client/informers/externalversions/ops/v1alpha1/mariadbopsrequest.go index 7a3e49028e..a9f5be2687 100644 --- a/client/informers/externalversions/ops/v1alpha1/mariadbopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/mariadbopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // MariaDBOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/memcachedopsrequest.go b/client/informers/externalversions/ops/v1alpha1/memcachedopsrequest.go index 139cd9d2f7..c6d061c1a8 100644 --- a/client/informers/externalversions/ops/v1alpha1/memcachedopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/memcachedopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // MemcachedOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/mongodbopsrequest.go b/client/informers/externalversions/ops/v1alpha1/mongodbopsrequest.go index 1cc509af45..0bfe1c10f7 100644 --- a/client/informers/externalversions/ops/v1alpha1/mongodbopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/mongodbopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // MongoDBOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/mysqlopsrequest.go b/client/informers/externalversions/ops/v1alpha1/mysqlopsrequest.go index 69f0b06925..c3c12690f0 100644 --- a/client/informers/externalversions/ops/v1alpha1/mysqlopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/mysqlopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // MySQLOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/perconaxtradbopsrequest.go b/client/informers/externalversions/ops/v1alpha1/perconaxtradbopsrequest.go index 5019276421..bc2587d666 100644 --- a/client/informers/externalversions/ops/v1alpha1/perconaxtradbopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/perconaxtradbopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // PerconaXtraDBOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/pgbounceropsrequest.go b/client/informers/externalversions/ops/v1alpha1/pgbounceropsrequest.go index 81c256c77a..ec94bdcfd9 100644 --- a/client/informers/externalversions/ops/v1alpha1/pgbounceropsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/pgbounceropsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // PgBouncerOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/postgresopsrequest.go b/client/informers/externalversions/ops/v1alpha1/postgresopsrequest.go index 3f49d1fefd..b9a5e952fc 100644 --- a/client/informers/externalversions/ops/v1alpha1/postgresopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/postgresopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // PostgresOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/proxysqlopsrequest.go b/client/informers/externalversions/ops/v1alpha1/proxysqlopsrequest.go index f584f34c2b..bddf00acdb 100644 --- a/client/informers/externalversions/ops/v1alpha1/proxysqlopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/proxysqlopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // ProxySQLOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/redisopsrequest.go b/client/informers/externalversions/ops/v1alpha1/redisopsrequest.go index 330ab785a1..df2b7e69f1 100644 --- a/client/informers/externalversions/ops/v1alpha1/redisopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/redisopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // RedisOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/ops/v1alpha1/redissentinelopsrequest.go b/client/informers/externalversions/ops/v1alpha1/redissentinelopsrequest.go index de5d7f6eb0..e562516de2 100644 --- a/client/informers/externalversions/ops/v1alpha1/redissentinelopsrequest.go +++ b/client/informers/externalversions/ops/v1alpha1/redissentinelopsrequest.go @@ -22,15 +22,14 @@ import ( "context" time "time" - opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + opsv1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/ops/v1alpha1" ) // RedisSentinelOpsRequestInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/postgres/v1alpha1/publisher.go b/client/informers/externalversions/postgres/v1alpha1/publisher.go index 30ed7fda3f..870736c962 100644 --- a/client/informers/externalversions/postgres/v1alpha1/publisher.go +++ b/client/informers/externalversions/postgres/v1alpha1/publisher.go @@ -22,15 +22,14 @@ import ( "context" time "time" - postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/postgres/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/postgres/v1alpha1" ) // PublisherInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/postgres/v1alpha1/subscriber.go b/client/informers/externalversions/postgres/v1alpha1/subscriber.go index d89b62a86d..feba2bf1c7 100644 --- a/client/informers/externalversions/postgres/v1alpha1/subscriber.go +++ b/client/informers/externalversions/postgres/v1alpha1/subscriber.go @@ -22,15 +22,14 @@ import ( "context" time "time" - postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/postgres/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + postgresv1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/postgres/v1alpha1" ) // SubscriberInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/schema/v1alpha1/mariadbdatabase.go b/client/informers/externalversions/schema/v1alpha1/mariadbdatabase.go index b8eebdd391..b12a0b2190 100644 --- a/client/informers/externalversions/schema/v1alpha1/mariadbdatabase.go +++ b/client/informers/externalversions/schema/v1alpha1/mariadbdatabase.go @@ -22,15 +22,14 @@ import ( "context" time "time" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" ) // MariaDBDatabaseInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/schema/v1alpha1/mongodbdatabase.go b/client/informers/externalversions/schema/v1alpha1/mongodbdatabase.go index c7e8558f84..d0a690106f 100644 --- a/client/informers/externalversions/schema/v1alpha1/mongodbdatabase.go +++ b/client/informers/externalversions/schema/v1alpha1/mongodbdatabase.go @@ -22,15 +22,14 @@ import ( "context" time "time" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" ) // MongoDBDatabaseInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/schema/v1alpha1/mysqldatabase.go b/client/informers/externalversions/schema/v1alpha1/mysqldatabase.go index 04dadf51d0..e34a97f540 100644 --- a/client/informers/externalversions/schema/v1alpha1/mysqldatabase.go +++ b/client/informers/externalversions/schema/v1alpha1/mysqldatabase.go @@ -22,15 +22,14 @@ import ( "context" time "time" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" ) // MySQLDatabaseInformer provides access to a shared informer and lister for diff --git a/client/informers/externalversions/schema/v1alpha1/postgresdatabase.go b/client/informers/externalversions/schema/v1alpha1/postgresdatabase.go index 5e8afb9329..0d3769b8dc 100644 --- a/client/informers/externalversions/schema/v1alpha1/postgresdatabase.go +++ b/client/informers/externalversions/schema/v1alpha1/postgresdatabase.go @@ -22,15 +22,14 @@ import ( "context" time "time" - schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - versioned "kubedb.dev/apimachinery/client/clientset/versioned" - internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" - v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" + schemav1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" + versioned "kubedb.dev/apimachinery/client/clientset/versioned" + internalinterfaces "kubedb.dev/apimachinery/client/informers/externalversions/internalinterfaces" + v1alpha1 "kubedb.dev/apimachinery/client/listers/schema/v1alpha1" ) // PostgresDatabaseInformer provides access to a shared informer and lister for diff --git a/client/listers/archiver/v1alpha1/mongodbarchiver.go b/client/listers/archiver/v1alpha1/mongodbarchiver.go index ae16592f26..348d308291 100644 --- a/client/listers/archiver/v1alpha1/mongodbarchiver.go +++ b/client/listers/archiver/v1alpha1/mongodbarchiver.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" ) // MongoDBArchiverLister helps list MongoDBArchivers. diff --git a/client/listers/archiver/v1alpha1/mysqlarchiver.go b/client/listers/archiver/v1alpha1/mysqlarchiver.go index d36ff690f3..3a239b7bd9 100644 --- a/client/listers/archiver/v1alpha1/mysqlarchiver.go +++ b/client/listers/archiver/v1alpha1/mysqlarchiver.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" ) // MySQLArchiverLister helps list MySQLArchivers. diff --git a/client/listers/archiver/v1alpha1/postgresarchiver.go b/client/listers/archiver/v1alpha1/postgresarchiver.go index 794bd21025..1b3c90f0fe 100644 --- a/client/listers/archiver/v1alpha1/postgresarchiver.go +++ b/client/listers/archiver/v1alpha1/postgresarchiver.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/archiver/v1alpha1" ) // PostgresArchiverLister helps list PostgresArchivers. diff --git a/client/listers/autoscaling/v1alpha1/elasticsearchautoscaler.go b/client/listers/autoscaling/v1alpha1/elasticsearchautoscaler.go index 0e720a75ab..7a1c4ab4e8 100644 --- a/client/listers/autoscaling/v1alpha1/elasticsearchautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/elasticsearchautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // ElasticsearchAutoscalerLister helps list ElasticsearchAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/etcdautoscaler.go b/client/listers/autoscaling/v1alpha1/etcdautoscaler.go index c9e0f6f234..d636ee4b3c 100644 --- a/client/listers/autoscaling/v1alpha1/etcdautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/etcdautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // EtcdAutoscalerLister helps list EtcdAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/mariadbautoscaler.go b/client/listers/autoscaling/v1alpha1/mariadbautoscaler.go index f965f3a6d0..af367cb542 100644 --- a/client/listers/autoscaling/v1alpha1/mariadbautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/mariadbautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // MariaDBAutoscalerLister helps list MariaDBAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/memcachedautoscaler.go b/client/listers/autoscaling/v1alpha1/memcachedautoscaler.go index 01fcababab..026e80c45f 100644 --- a/client/listers/autoscaling/v1alpha1/memcachedautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/memcachedautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // MemcachedAutoscalerLister helps list MemcachedAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/mongodbautoscaler.go b/client/listers/autoscaling/v1alpha1/mongodbautoscaler.go index ea4cd11039..eddb34d90c 100644 --- a/client/listers/autoscaling/v1alpha1/mongodbautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/mongodbautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // MongoDBAutoscalerLister helps list MongoDBAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/mysqlautoscaler.go b/client/listers/autoscaling/v1alpha1/mysqlautoscaler.go index a79e9b0b92..977b1ec939 100644 --- a/client/listers/autoscaling/v1alpha1/mysqlautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/mysqlautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // MySQLAutoscalerLister helps list MySQLAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/perconaxtradbautoscaler.go b/client/listers/autoscaling/v1alpha1/perconaxtradbautoscaler.go index 8734e8c2f4..8bab20a90b 100644 --- a/client/listers/autoscaling/v1alpha1/perconaxtradbautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/perconaxtradbautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // PerconaXtraDBAutoscalerLister helps list PerconaXtraDBAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/pgbouncerautoscaler.go b/client/listers/autoscaling/v1alpha1/pgbouncerautoscaler.go index 2b0f04f898..349b0d3eb8 100644 --- a/client/listers/autoscaling/v1alpha1/pgbouncerautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/pgbouncerautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // PgBouncerAutoscalerLister helps list PgBouncerAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/postgresautoscaler.go b/client/listers/autoscaling/v1alpha1/postgresautoscaler.go index e8ebab8d61..39bdb982ab 100644 --- a/client/listers/autoscaling/v1alpha1/postgresautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/postgresautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // PostgresAutoscalerLister helps list PostgresAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/proxysqlautoscaler.go b/client/listers/autoscaling/v1alpha1/proxysqlautoscaler.go index 45853c826d..b69cedb174 100644 --- a/client/listers/autoscaling/v1alpha1/proxysqlautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/proxysqlautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // ProxySQLAutoscalerLister helps list ProxySQLAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/redisautoscaler.go b/client/listers/autoscaling/v1alpha1/redisautoscaler.go index 93c8d77d14..4a938b5a61 100644 --- a/client/listers/autoscaling/v1alpha1/redisautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/redisautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // RedisAutoscalerLister helps list RedisAutoscalers. diff --git a/client/listers/autoscaling/v1alpha1/redissentinelautoscaler.go b/client/listers/autoscaling/v1alpha1/redissentinelautoscaler.go index 5064fa9bc1..14488caa5f 100644 --- a/client/listers/autoscaling/v1alpha1/redissentinelautoscaler.go +++ b/client/listers/autoscaling/v1alpha1/redissentinelautoscaler.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/autoscaling/v1alpha1" ) // RedisSentinelAutoscalerLister helps list RedisSentinelAutoscalers. diff --git a/client/listers/catalog/v1alpha1/druidversion.go b/client/listers/catalog/v1alpha1/druidversion.go index 7087192e09..e4b0b74ddd 100644 --- a/client/listers/catalog/v1alpha1/druidversion.go +++ b/client/listers/catalog/v1alpha1/druidversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // DruidVersionLister helps list DruidVersions. diff --git a/client/listers/catalog/v1alpha1/elasticsearchversion.go b/client/listers/catalog/v1alpha1/elasticsearchversion.go index b82219e9ab..87ce903777 100644 --- a/client/listers/catalog/v1alpha1/elasticsearchversion.go +++ b/client/listers/catalog/v1alpha1/elasticsearchversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // ElasticsearchVersionLister helps list ElasticsearchVersions. diff --git a/client/listers/catalog/v1alpha1/etcdversion.go b/client/listers/catalog/v1alpha1/etcdversion.go index 6a6b2dadf4..51bc240cd6 100644 --- a/client/listers/catalog/v1alpha1/etcdversion.go +++ b/client/listers/catalog/v1alpha1/etcdversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // EtcdVersionLister helps list EtcdVersions. diff --git a/client/listers/catalog/v1alpha1/kafkaconnectorversion.go b/client/listers/catalog/v1alpha1/kafkaconnectorversion.go index 71971be420..661c477063 100644 --- a/client/listers/catalog/v1alpha1/kafkaconnectorversion.go +++ b/client/listers/catalog/v1alpha1/kafkaconnectorversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // KafkaConnectorVersionLister helps list KafkaConnectorVersions. diff --git a/client/listers/catalog/v1alpha1/kafkaversion.go b/client/listers/catalog/v1alpha1/kafkaversion.go index 3a2c274f11..2ff4bc4959 100644 --- a/client/listers/catalog/v1alpha1/kafkaversion.go +++ b/client/listers/catalog/v1alpha1/kafkaversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // KafkaVersionLister helps list KafkaVersions. diff --git a/client/listers/catalog/v1alpha1/mariadbversion.go b/client/listers/catalog/v1alpha1/mariadbversion.go index 1d5945ddc2..ccb4c21395 100644 --- a/client/listers/catalog/v1alpha1/mariadbversion.go +++ b/client/listers/catalog/v1alpha1/mariadbversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // MariaDBVersionLister helps list MariaDBVersions. diff --git a/client/listers/catalog/v1alpha1/memcachedversion.go b/client/listers/catalog/v1alpha1/memcachedversion.go index e3d98f9148..3fec3ffeda 100644 --- a/client/listers/catalog/v1alpha1/memcachedversion.go +++ b/client/listers/catalog/v1alpha1/memcachedversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // MemcachedVersionLister helps list MemcachedVersions. diff --git a/client/listers/catalog/v1alpha1/mongodbversion.go b/client/listers/catalog/v1alpha1/mongodbversion.go index 7a5525eac6..c99ea64f8d 100644 --- a/client/listers/catalog/v1alpha1/mongodbversion.go +++ b/client/listers/catalog/v1alpha1/mongodbversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // MongoDBVersionLister helps list MongoDBVersions. diff --git a/client/listers/catalog/v1alpha1/mysqlversion.go b/client/listers/catalog/v1alpha1/mysqlversion.go index cf906fb53c..2764572cbd 100644 --- a/client/listers/catalog/v1alpha1/mysqlversion.go +++ b/client/listers/catalog/v1alpha1/mysqlversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // MySQLVersionLister helps list MySQLVersions. diff --git a/client/listers/catalog/v1alpha1/perconaxtradbversion.go b/client/listers/catalog/v1alpha1/perconaxtradbversion.go index 18a070fe58..5a40e5eeba 100644 --- a/client/listers/catalog/v1alpha1/perconaxtradbversion.go +++ b/client/listers/catalog/v1alpha1/perconaxtradbversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // PerconaXtraDBVersionLister helps list PerconaXtraDBVersions. diff --git a/client/listers/catalog/v1alpha1/pgbouncerversion.go b/client/listers/catalog/v1alpha1/pgbouncerversion.go index 1401cb7d7d..de146938c1 100644 --- a/client/listers/catalog/v1alpha1/pgbouncerversion.go +++ b/client/listers/catalog/v1alpha1/pgbouncerversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // PgBouncerVersionLister helps list PgBouncerVersions. diff --git a/client/listers/catalog/v1alpha1/postgresversion.go b/client/listers/catalog/v1alpha1/postgresversion.go index d7deb05dd6..b272df139f 100644 --- a/client/listers/catalog/v1alpha1/postgresversion.go +++ b/client/listers/catalog/v1alpha1/postgresversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // PostgresVersionLister helps list PostgresVersions. diff --git a/client/listers/catalog/v1alpha1/proxysqlversion.go b/client/listers/catalog/v1alpha1/proxysqlversion.go index 1e281dd1b2..40c2b3ea5d 100644 --- a/client/listers/catalog/v1alpha1/proxysqlversion.go +++ b/client/listers/catalog/v1alpha1/proxysqlversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // ProxySQLVersionLister helps list ProxySQLVersions. diff --git a/client/listers/catalog/v1alpha1/redisversion.go b/client/listers/catalog/v1alpha1/redisversion.go index 9d1abb15cc..4acea156e5 100644 --- a/client/listers/catalog/v1alpha1/redisversion.go +++ b/client/listers/catalog/v1alpha1/redisversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // RedisVersionLister helps list RedisVersions. diff --git a/client/listers/catalog/v1alpha1/singlestoreversion.go b/client/listers/catalog/v1alpha1/singlestoreversion.go index d56803b2f0..fe9ac580d4 100644 --- a/client/listers/catalog/v1alpha1/singlestoreversion.go +++ b/client/listers/catalog/v1alpha1/singlestoreversion.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/catalog/v1alpha1" ) // SinglestoreVersionLister helps list SinglestoreVersions. diff --git a/client/listers/dashboard/v1alpha1/elasticsearchdashboard.go b/client/listers/dashboard/v1alpha1/elasticsearchdashboard.go index 89c58b7324..370426c2f8 100644 --- a/client/listers/dashboard/v1alpha1/elasticsearchdashboard.go +++ b/client/listers/dashboard/v1alpha1/elasticsearchdashboard.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/dashboard/v1alpha1" ) // ElasticsearchDashboardLister helps list ElasticsearchDashboards. diff --git a/client/listers/kafka/v1alpha1/connectcluster.go b/client/listers/kafka/v1alpha1/connectcluster.go index 5f39a256f7..f20e81f96d 100644 --- a/client/listers/kafka/v1alpha1/connectcluster.go +++ b/client/listers/kafka/v1alpha1/connectcluster.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" ) // ConnectClusterLister helps list ConnectClusters. diff --git a/client/listers/kafka/v1alpha1/connector.go b/client/listers/kafka/v1alpha1/connector.go index 7546d0a699..a70c3b5f16 100644 --- a/client/listers/kafka/v1alpha1/connector.go +++ b/client/listers/kafka/v1alpha1/connector.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/kafka/v1alpha1" ) // ConnectorLister helps list Connectors. diff --git a/client/listers/kubedb/v1alpha2/druid.go b/client/listers/kubedb/v1alpha2/druid.go index da2c7ac437..bd98b06560 100644 --- a/client/listers/kubedb/v1alpha2/druid.go +++ b/client/listers/kubedb/v1alpha2/druid.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // DruidLister helps list Druids. diff --git a/client/listers/kubedb/v1alpha2/elasticsearch.go b/client/listers/kubedb/v1alpha2/elasticsearch.go index ffe0f46c39..49c5686803 100644 --- a/client/listers/kubedb/v1alpha2/elasticsearch.go +++ b/client/listers/kubedb/v1alpha2/elasticsearch.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // ElasticsearchLister helps list Elasticsearches. diff --git a/client/listers/kubedb/v1alpha2/etcd.go b/client/listers/kubedb/v1alpha2/etcd.go index 3c59151d33..bad96bbc76 100644 --- a/client/listers/kubedb/v1alpha2/etcd.go +++ b/client/listers/kubedb/v1alpha2/etcd.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // EtcdLister helps list Etcds. diff --git a/client/listers/kubedb/v1alpha2/kafka.go b/client/listers/kubedb/v1alpha2/kafka.go index 69dff9abd4..3315530ee9 100644 --- a/client/listers/kubedb/v1alpha2/kafka.go +++ b/client/listers/kubedb/v1alpha2/kafka.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // KafkaLister helps list Kafkas. diff --git a/client/listers/kubedb/v1alpha2/mariadb.go b/client/listers/kubedb/v1alpha2/mariadb.go index 880a94db4d..b1bd906b79 100644 --- a/client/listers/kubedb/v1alpha2/mariadb.go +++ b/client/listers/kubedb/v1alpha2/mariadb.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // MariaDBLister helps list MariaDBs. diff --git a/client/listers/kubedb/v1alpha2/memcached.go b/client/listers/kubedb/v1alpha2/memcached.go index 14720c0f0c..73edf6fe8a 100644 --- a/client/listers/kubedb/v1alpha2/memcached.go +++ b/client/listers/kubedb/v1alpha2/memcached.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // MemcachedLister helps list Memcacheds. diff --git a/client/listers/kubedb/v1alpha2/mongodb.go b/client/listers/kubedb/v1alpha2/mongodb.go index b5bd328d88..a881970e7c 100644 --- a/client/listers/kubedb/v1alpha2/mongodb.go +++ b/client/listers/kubedb/v1alpha2/mongodb.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // MongoDBLister helps list MongoDBs. diff --git a/client/listers/kubedb/v1alpha2/mysql.go b/client/listers/kubedb/v1alpha2/mysql.go index 48fb8cdd12..8fdc75c167 100644 --- a/client/listers/kubedb/v1alpha2/mysql.go +++ b/client/listers/kubedb/v1alpha2/mysql.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // MySQLLister helps list MySQLs. diff --git a/client/listers/kubedb/v1alpha2/perconaxtradb.go b/client/listers/kubedb/v1alpha2/perconaxtradb.go index 3ed75289d3..f346060237 100644 --- a/client/listers/kubedb/v1alpha2/perconaxtradb.go +++ b/client/listers/kubedb/v1alpha2/perconaxtradb.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // PerconaXtraDBLister helps list PerconaXtraDBs. diff --git a/client/listers/kubedb/v1alpha2/pgbouncer.go b/client/listers/kubedb/v1alpha2/pgbouncer.go index c62beb239a..3c8aa3780a 100644 --- a/client/listers/kubedb/v1alpha2/pgbouncer.go +++ b/client/listers/kubedb/v1alpha2/pgbouncer.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // PgBouncerLister helps list PgBouncers. diff --git a/client/listers/kubedb/v1alpha2/postgres.go b/client/listers/kubedb/v1alpha2/postgres.go index e0f2cbc089..5b4052a482 100644 --- a/client/listers/kubedb/v1alpha2/postgres.go +++ b/client/listers/kubedb/v1alpha2/postgres.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // PostgresLister helps list Postgreses. diff --git a/client/listers/kubedb/v1alpha2/proxysql.go b/client/listers/kubedb/v1alpha2/proxysql.go index 52b3237feb..14135b27a9 100644 --- a/client/listers/kubedb/v1alpha2/proxysql.go +++ b/client/listers/kubedb/v1alpha2/proxysql.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // ProxySQLLister helps list ProxySQLs. diff --git a/client/listers/kubedb/v1alpha2/redis.go b/client/listers/kubedb/v1alpha2/redis.go index 5c52347678..219ff6d626 100644 --- a/client/listers/kubedb/v1alpha2/redis.go +++ b/client/listers/kubedb/v1alpha2/redis.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // RedisLister helps list Redises. diff --git a/client/listers/kubedb/v1alpha2/redissentinel.go b/client/listers/kubedb/v1alpha2/redissentinel.go index 7071d75a9a..734862e0d9 100644 --- a/client/listers/kubedb/v1alpha2/redissentinel.go +++ b/client/listers/kubedb/v1alpha2/redissentinel.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // RedisSentinelLister helps list RedisSentinels. diff --git a/client/listers/kubedb/v1alpha2/singlestore.go b/client/listers/kubedb/v1alpha2/singlestore.go index ae390f44d5..817bc02958 100644 --- a/client/listers/kubedb/v1alpha2/singlestore.go +++ b/client/listers/kubedb/v1alpha2/singlestore.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha2 import ( - v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha2 "kubedb.dev/apimachinery/apis/kubedb/v1alpha2" ) // SinglestoreLister helps list Singlestores. diff --git a/client/listers/ops/v1alpha1/elasticsearchopsrequest.go b/client/listers/ops/v1alpha1/elasticsearchopsrequest.go index ddbe6c6afb..5b681c7dbd 100644 --- a/client/listers/ops/v1alpha1/elasticsearchopsrequest.go +++ b/client/listers/ops/v1alpha1/elasticsearchopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // ElasticsearchOpsRequestLister helps list ElasticsearchOpsRequests. diff --git a/client/listers/ops/v1alpha1/etcdopsrequest.go b/client/listers/ops/v1alpha1/etcdopsrequest.go index f6c9d385c8..82156ca18f 100644 --- a/client/listers/ops/v1alpha1/etcdopsrequest.go +++ b/client/listers/ops/v1alpha1/etcdopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // EtcdOpsRequestLister helps list EtcdOpsRequests. diff --git a/client/listers/ops/v1alpha1/kafkaopsrequest.go b/client/listers/ops/v1alpha1/kafkaopsrequest.go index d54229fd05..5efbea2be1 100644 --- a/client/listers/ops/v1alpha1/kafkaopsrequest.go +++ b/client/listers/ops/v1alpha1/kafkaopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // KafkaOpsRequestLister helps list KafkaOpsRequests. diff --git a/client/listers/ops/v1alpha1/mariadbopsrequest.go b/client/listers/ops/v1alpha1/mariadbopsrequest.go index d3f99c76f8..a4a0d83a7d 100644 --- a/client/listers/ops/v1alpha1/mariadbopsrequest.go +++ b/client/listers/ops/v1alpha1/mariadbopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // MariaDBOpsRequestLister helps list MariaDBOpsRequests. diff --git a/client/listers/ops/v1alpha1/memcachedopsrequest.go b/client/listers/ops/v1alpha1/memcachedopsrequest.go index c8e196febb..64eb40351b 100644 --- a/client/listers/ops/v1alpha1/memcachedopsrequest.go +++ b/client/listers/ops/v1alpha1/memcachedopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // MemcachedOpsRequestLister helps list MemcachedOpsRequests. diff --git a/client/listers/ops/v1alpha1/mongodbopsrequest.go b/client/listers/ops/v1alpha1/mongodbopsrequest.go index 4746ce67bc..12bf2e7bac 100644 --- a/client/listers/ops/v1alpha1/mongodbopsrequest.go +++ b/client/listers/ops/v1alpha1/mongodbopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // MongoDBOpsRequestLister helps list MongoDBOpsRequests. diff --git a/client/listers/ops/v1alpha1/mysqlopsrequest.go b/client/listers/ops/v1alpha1/mysqlopsrequest.go index d0c0e3cf03..d3cc4eb8b1 100644 --- a/client/listers/ops/v1alpha1/mysqlopsrequest.go +++ b/client/listers/ops/v1alpha1/mysqlopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // MySQLOpsRequestLister helps list MySQLOpsRequests. diff --git a/client/listers/ops/v1alpha1/perconaxtradbopsrequest.go b/client/listers/ops/v1alpha1/perconaxtradbopsrequest.go index 894c84721c..d78f2a166c 100644 --- a/client/listers/ops/v1alpha1/perconaxtradbopsrequest.go +++ b/client/listers/ops/v1alpha1/perconaxtradbopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // PerconaXtraDBOpsRequestLister helps list PerconaXtraDBOpsRequests. diff --git a/client/listers/ops/v1alpha1/pgbounceropsrequest.go b/client/listers/ops/v1alpha1/pgbounceropsrequest.go index c551f8a32a..2b7eb4110d 100644 --- a/client/listers/ops/v1alpha1/pgbounceropsrequest.go +++ b/client/listers/ops/v1alpha1/pgbounceropsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // PgBouncerOpsRequestLister helps list PgBouncerOpsRequests. diff --git a/client/listers/ops/v1alpha1/postgresopsrequest.go b/client/listers/ops/v1alpha1/postgresopsrequest.go index 095c23ef64..109771b2b4 100644 --- a/client/listers/ops/v1alpha1/postgresopsrequest.go +++ b/client/listers/ops/v1alpha1/postgresopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // PostgresOpsRequestLister helps list PostgresOpsRequests. diff --git a/client/listers/ops/v1alpha1/proxysqlopsrequest.go b/client/listers/ops/v1alpha1/proxysqlopsrequest.go index acaa813be0..95619423c4 100644 --- a/client/listers/ops/v1alpha1/proxysqlopsrequest.go +++ b/client/listers/ops/v1alpha1/proxysqlopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // ProxySQLOpsRequestLister helps list ProxySQLOpsRequests. diff --git a/client/listers/ops/v1alpha1/redisopsrequest.go b/client/listers/ops/v1alpha1/redisopsrequest.go index 1b890841c6..578b6eb9f3 100644 --- a/client/listers/ops/v1alpha1/redisopsrequest.go +++ b/client/listers/ops/v1alpha1/redisopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // RedisOpsRequestLister helps list RedisOpsRequests. diff --git a/client/listers/ops/v1alpha1/redissentinelopsrequest.go b/client/listers/ops/v1alpha1/redissentinelopsrequest.go index 05244c7226..af9fc0c507 100644 --- a/client/listers/ops/v1alpha1/redissentinelopsrequest.go +++ b/client/listers/ops/v1alpha1/redissentinelopsrequest.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/ops/v1alpha1" ) // RedisSentinelOpsRequestLister helps list RedisSentinelOpsRequests. diff --git a/client/listers/postgres/v1alpha1/publisher.go b/client/listers/postgres/v1alpha1/publisher.go index d5ed388ace..d930694577 100644 --- a/client/listers/postgres/v1alpha1/publisher.go +++ b/client/listers/postgres/v1alpha1/publisher.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" ) // PublisherLister helps list Publishers. diff --git a/client/listers/postgres/v1alpha1/subscriber.go b/client/listers/postgres/v1alpha1/subscriber.go index 02730a578b..3822bfd255 100644 --- a/client/listers/postgres/v1alpha1/subscriber.go +++ b/client/listers/postgres/v1alpha1/subscriber.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/postgres/v1alpha1" ) // SubscriberLister helps list Subscribers. diff --git a/client/listers/schema/v1alpha1/mariadbdatabase.go b/client/listers/schema/v1alpha1/mariadbdatabase.go index b4a30c74ef..87613e90d0 100644 --- a/client/listers/schema/v1alpha1/mariadbdatabase.go +++ b/client/listers/schema/v1alpha1/mariadbdatabase.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" ) // MariaDBDatabaseLister helps list MariaDBDatabases. diff --git a/client/listers/schema/v1alpha1/mongodbdatabase.go b/client/listers/schema/v1alpha1/mongodbdatabase.go index a96e3ba219..30d732117e 100644 --- a/client/listers/schema/v1alpha1/mongodbdatabase.go +++ b/client/listers/schema/v1alpha1/mongodbdatabase.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" ) // MongoDBDatabaseLister helps list MongoDBDatabases. diff --git a/client/listers/schema/v1alpha1/mysqldatabase.go b/client/listers/schema/v1alpha1/mysqldatabase.go index 226db04809..dd6a18c2f4 100644 --- a/client/listers/schema/v1alpha1/mysqldatabase.go +++ b/client/listers/schema/v1alpha1/mysqldatabase.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" ) // MySQLDatabaseLister helps list MySQLDatabases. diff --git a/client/listers/schema/v1alpha1/postgresdatabase.go b/client/listers/schema/v1alpha1/postgresdatabase.go index fc7e91219c..a3245ac58a 100644 --- a/client/listers/schema/v1alpha1/postgresdatabase.go +++ b/client/listers/schema/v1alpha1/postgresdatabase.go @@ -19,11 +19,10 @@ limitations under the License. package v1alpha1 import ( - v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" + v1alpha1 "kubedb.dev/apimachinery/apis/schema/v1alpha1" ) // PostgresDatabaseLister helps list PostgresDatabases. diff --git a/go.mod b/go.mod index 9cb7876f4a..5f44c01b8b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module kubedb.dev/apimachinery -go 1.21 +go 1.21.5 require ( github.com/Masterminds/semver/v3 v3.2.1 @@ -14,7 +14,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.70.0 github.com/prometheus-operator/prometheus-operator/pkg/client v0.70.0 - go.bytebuilders.dev/audit v0.0.29-0.20231225201242-3ff33160c6f0 + go.bytebuilders.dev/audit v0.0.32-0.20240105184043-9cf3195203b7 gomodules.xyz/encoding v0.0.7 gomodules.xyz/pointer v0.1.0 gomodules.xyz/runtime v0.3.0 @@ -103,6 +103,7 @@ require ( github.com/imdario/mergo v0.3.13 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/jonboulle/clockwork v0.4.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/klauspost/compress v1.17.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect @@ -160,6 +161,7 @@ require ( golang.org/x/term v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect + gomodules.xyz/counter v0.0.1 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect gomodules.xyz/mergo v0.3.13 // indirect gomodules.xyz/sets v0.2.1 // indirect diff --git a/go.sum b/go.sum index ec97fd36fa..d040f00ee8 100644 --- a/go.sum +++ b/go.sum @@ -460,8 +460,8 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= +github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= @@ -731,8 +731,8 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.bytebuilders.dev/audit v0.0.29-0.20231225201242-3ff33160c6f0 h1:NOA3xOja8zVlnWcd+ap4PSHjH3IrCgXcQ8R1U6+ulr4= -go.bytebuilders.dev/audit v0.0.29-0.20231225201242-3ff33160c6f0/go.mod h1:VPU6L3GCSPEIEOOyH+gmwi6f8WpCkXsOCtqHggzJZzA= +go.bytebuilders.dev/audit v0.0.32-0.20240105184043-9cf3195203b7 h1:LaxhSR/p5uH9a7gPTGeAXJ58df9TxT4Hq9LjZAzmn0w= +go.bytebuilders.dev/audit v0.0.32-0.20240105184043-9cf3195203b7/go.mod h1:7B7cjCAoqAW+DghpBi6MzajKYxn4d+8dqx7iIAjMvu0= go.bytebuilders.dev/license-proxyserver v0.0.6 h1:9gstbQ/Ug8s6V1PzELbqLMIktXLn8NsnV7ZBtJg1f+w= go.bytebuilders.dev/license-proxyserver v0.0.6/go.mod h1:QmaFuBWQKFCgHp8UJVYGjWrJdoGB9Natw6qAFmElLp0= go.bytebuilders.dev/license-verifier v0.13.4 h1:K4qSsTWTZc7lyRvRHfI23XRrbVrQVJ8Ew5afvSiMdBE= @@ -1113,6 +1113,8 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gomodules.xyz/counter v0.0.1 h1:ceHyWSJFgaMmUMmw5KLJSprxeqqEirAmltkZBhi/UOE= +gomodules.xyz/counter v0.0.1/go.mod h1:WlB0utIJzIaZgUs6sulne7DLzbEkAxvNGsMHkhjPaUY= gomodules.xyz/encoding v0.0.7 h1:Y4PaflVS+vkYgkw6FwyF1S0ab4Y1BAdOqB3Uwjcx8qI= gomodules.xyz/encoding v0.0.7/go.mod h1:blYJWy456Bzxj3L2G7G5WV1l5rFXl6uYXrmeFqxxqk8= gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY= diff --git a/vendor/github.com/jonboulle/clockwork/.editorconfig b/vendor/github.com/jonboulle/clockwork/.editorconfig new file mode 100644 index 0000000000..4492e9f9fe --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.go] +indent_style = tab diff --git a/vendor/github.com/jonboulle/clockwork/.gitignore b/vendor/github.com/jonboulle/clockwork/.gitignore new file mode 100644 index 0000000000..00852bd942 --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/.gitignore @@ -0,0 +1,27 @@ +/.idea/ + +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test + +*.swp diff --git a/vendor/github.com/jonboulle/clockwork/LICENSE b/vendor/github.com/jonboulle/clockwork/LICENSE new file mode 100644 index 0000000000..5c304d1a4a --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/LICENSE @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/github.com/jonboulle/clockwork/README.md b/vendor/github.com/jonboulle/clockwork/README.md new file mode 100644 index 0000000000..42970da802 --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/README.md @@ -0,0 +1,80 @@ +# clockwork + +[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go#utilities) + +[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/jonboulle/clockwork/ci.yaml?style=flat-square)](https://github.com/jonboulle/clockwork/actions?query=workflow%3ACI) +[![Go Report Card](https://goreportcard.com/badge/github.com/jonboulle/clockwork?style=flat-square)](https://goreportcard.com/report/github.com/jonboulle/clockwork) +![Go Version](https://img.shields.io/badge/go%20version-%3E=1.15-61CFDD.svg?style=flat-square) +[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/mod/github.com/jonboulle/clockwork) + +**A simple fake clock for Go.** + + +## Usage + +Replace uses of the `time` package with the `clockwork.Clock` interface instead. + +For example, instead of using `time.Sleep` directly: + +```go +func myFunc() { + time.Sleep(3 * time.Second) + doSomething() +} +``` + +Inject a clock and use its `Sleep` method instead: + +```go +func myFunc(clock clockwork.Clock) { + clock.Sleep(3 * time.Second) + doSomething() +} +``` + +Now you can easily test `myFunc` with a `FakeClock`: + +```go +func TestMyFunc(t *testing.T) { + c := clockwork.NewFakeClock() + + // Start our sleepy function + var wg sync.WaitGroup + wg.Add(1) + go func() { + myFunc(c) + wg.Done() + }() + + // Ensure we wait until myFunc is sleeping + c.BlockUntil(1) + + assertState() + + // Advance the FakeClock forward in time + c.Advance(3 * time.Second) + + // Wait until the function completes + wg.Wait() + + assertState() +} +``` + +and in production builds, simply inject the real clock instead: + +```go +myFunc(clockwork.NewRealClock()) +``` + +See [example_test.go](example_test.go) for a full example. + + +# Credits + +clockwork is inspired by @wickman's [threaded fake clock](https://gist.github.com/wickman/3840816), and the [Golang playground](https://blog.golang.org/playground#TOC_3.1.) + + +## License + +Apache License, Version 2.0. Please see [License File](LICENSE) for more information. diff --git a/vendor/github.com/jonboulle/clockwork/clockwork.go b/vendor/github.com/jonboulle/clockwork/clockwork.go new file mode 100644 index 0000000000..3206b36e4e --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/clockwork.go @@ -0,0 +1,349 @@ +package clockwork + +import ( + "context" + "sort" + "sync" + "time" +) + +// Clock provides an interface that packages can use instead of directly using +// the [time] module, so that chronology-related behavior can be tested. +type Clock interface { + After(d time.Duration) <-chan time.Time + Sleep(d time.Duration) + Now() time.Time + Since(t time.Time) time.Duration + NewTicker(d time.Duration) Ticker + NewTimer(d time.Duration) Timer + AfterFunc(d time.Duration, f func()) Timer +} + +// FakeClock provides an interface for a clock which can be manually advanced +// through time. +// +// FakeClock maintains a list of "waiters," which consists of all callers +// waiting on the underlying clock (i.e. Tickers and Timers including callers of +// Sleep or After). Users can call BlockUntil to block until the clock has an +// expected number of waiters. +type FakeClock interface { + Clock + // Advance advances the FakeClock to a new point in time, ensuring any existing + // waiters are notified appropriately before returning. + Advance(d time.Duration) + // BlockUntil blocks until the FakeClock has the given number of waiters. + BlockUntil(waiters int) +} + +// NewRealClock returns a Clock which simply delegates calls to the actual time +// package; it should be used by packages in production. +func NewRealClock() Clock { + return &realClock{} +} + +// NewFakeClock returns a FakeClock implementation which can be +// manually advanced through time for testing. The initial time of the +// FakeClock will be the current system time. +// +// Tests that require a deterministic time must use NewFakeClockAt. +func NewFakeClock() FakeClock { + return NewFakeClockAt(time.Now()) +} + +// NewFakeClockAt returns a FakeClock initialised at the given time.Time. +func NewFakeClockAt(t time.Time) FakeClock { + return &fakeClock{ + time: t, + } +} + +type realClock struct{} + +func (rc *realClock) After(d time.Duration) <-chan time.Time { + return time.After(d) +} + +func (rc *realClock) Sleep(d time.Duration) { + time.Sleep(d) +} + +func (rc *realClock) Now() time.Time { + return time.Now() +} + +func (rc *realClock) Since(t time.Time) time.Duration { + return rc.Now().Sub(t) +} + +func (rc *realClock) NewTicker(d time.Duration) Ticker { + return realTicker{time.NewTicker(d)} +} + +func (rc *realClock) NewTimer(d time.Duration) Timer { + return realTimer{time.NewTimer(d)} +} + +func (rc *realClock) AfterFunc(d time.Duration, f func()) Timer { + return realTimer{time.AfterFunc(d, f)} +} + +type fakeClock struct { + // l protects all attributes of the clock, including all attributes of all + // waiters and blockers. + l sync.RWMutex + waiters []expirer + blockers []*blocker + time time.Time +} + +// blocker is a caller of BlockUntil. +type blocker struct { + count int + + // ch is closed when the underlying clock has the specificed number of blockers. + ch chan struct{} +} + +// expirer is a timer or ticker that expires at some point in the future. +type expirer interface { + // expire the expirer at the given time, returning the desired duration until + // the next expiration, if any. + expire(now time.Time) (next *time.Duration) + + // Get and set the expiration time. + expiry() time.Time + setExpiry(time.Time) +} + +// After mimics [time.After]; it waits for the given duration to elapse on the +// fakeClock, then sends the current time on the returned channel. +func (fc *fakeClock) After(d time.Duration) <-chan time.Time { + return fc.NewTimer(d).Chan() +} + +// Sleep blocks until the given duration has passed on the fakeClock. +func (fc *fakeClock) Sleep(d time.Duration) { + <-fc.After(d) +} + +// Now returns the current time of the fakeClock +func (fc *fakeClock) Now() time.Time { + fc.l.RLock() + defer fc.l.RUnlock() + return fc.time +} + +// Since returns the duration that has passed since the given time on the +// fakeClock. +func (fc *fakeClock) Since(t time.Time) time.Duration { + return fc.Now().Sub(t) +} + +// NewTicker returns a Ticker that will expire only after calls to +// fakeClock.Advance() have moved the clock past the given duration. +func (fc *fakeClock) NewTicker(d time.Duration) Ticker { + var ft *fakeTicker + ft = &fakeTicker{ + firer: newFirer(), + d: d, + reset: func(d time.Duration) { fc.set(ft, d) }, + stop: func() { fc.stop(ft) }, + } + fc.set(ft, d) + return ft +} + +// NewTimer returns a Timer that will fire only after calls to +// fakeClock.Advance() have moved the clock past the given duration. +func (fc *fakeClock) NewTimer(d time.Duration) Timer { + return fc.newTimer(d, nil) +} + +// AfterFunc mimics [time.AfterFunc]; it returns a Timer that will invoke the +// given function only after calls to fakeClock.Advance() have moved the clock +// past the given duration. +func (fc *fakeClock) AfterFunc(d time.Duration, f func()) Timer { + return fc.newTimer(d, f) +} + +// newTimer returns a new timer, using an optional afterFunc. +func (fc *fakeClock) newTimer(d time.Duration, afterfunc func()) *fakeTimer { + var ft *fakeTimer + ft = &fakeTimer{ + firer: newFirer(), + reset: func(d time.Duration) bool { + fc.l.Lock() + defer fc.l.Unlock() + // fc.l must be held across the calls to stopExpirer & setExpirer. + stopped := fc.stopExpirer(ft) + fc.setExpirer(ft, d) + return stopped + }, + stop: func() bool { return fc.stop(ft) }, + + afterFunc: afterfunc, + } + fc.set(ft, d) + return ft +} + +// Advance advances fakeClock to a new point in time, ensuring waiters and +// blockers are notified appropriately before returning. +func (fc *fakeClock) Advance(d time.Duration) { + fc.l.Lock() + defer fc.l.Unlock() + end := fc.time.Add(d) + // Expire the earliest waiter until the earliest waiter's expiration is after + // end. + // + // We don't iterate because the callback of the waiter might register a new + // waiter, so the list of waiters might change as we execute this. + for len(fc.waiters) > 0 && !end.Before(fc.waiters[0].expiry()) { + w := fc.waiters[0] + fc.waiters = fc.waiters[1:] + + // Use the waiter's expriation as the current time for this expiration. + now := w.expiry() + fc.time = now + if d := w.expire(now); d != nil { + // Set the new exipration if needed. + fc.setExpirer(w, *d) + } + } + fc.time = end +} + +// BlockUntil blocks until the fakeClock has the given number of waiters. +// +// Prefer BlockUntilContext, which offers context cancellation to prevent +// deadlock. +// +// Deprecation warning: This function might be deprecated in later versions. +func (fc *fakeClock) BlockUntil(n int) { + b := fc.newBlocker(n) + if b == nil { + return + } + <-b.ch +} + +// BlockUntilContext blocks until the fakeClock has the given number of waiters +// or the context is cancelled. +func (fc *fakeClock) BlockUntilContext(ctx context.Context, n int) error { + b := fc.newBlocker(n) + if b == nil { + return nil + } + + select { + case <-b.ch: + return nil + case <-ctx.Done(): + return ctx.Err() + } +} + +func (fc *fakeClock) newBlocker(n int) *blocker { + fc.l.Lock() + defer fc.l.Unlock() + // Fast path: we already have >= n waiters. + if len(fc.waiters) >= n { + return nil + } + // Set up a new blocker to wait for more waiters. + b := &blocker{ + count: n, + ch: make(chan struct{}), + } + fc.blockers = append(fc.blockers, b) + return b +} + +// stop stops an expirer, returning true if the expirer was stopped. +func (fc *fakeClock) stop(e expirer) bool { + fc.l.Lock() + defer fc.l.Unlock() + return fc.stopExpirer(e) +} + +// stopExpirer stops an expirer, returning true if the expirer was stopped. +// +// The caller must hold fc.l. +func (fc *fakeClock) stopExpirer(e expirer) bool { + for i, t := range fc.waiters { + if t == e { + // Remove element, maintaining order. + copy(fc.waiters[i:], fc.waiters[i+1:]) + fc.waiters[len(fc.waiters)-1] = nil + fc.waiters = fc.waiters[:len(fc.waiters)-1] + return true + } + } + return false +} + +// set sets an expirer to expire at a future point in time. +func (fc *fakeClock) set(e expirer, d time.Duration) { + fc.l.Lock() + defer fc.l.Unlock() + fc.setExpirer(e, d) +} + +// setExpirer sets an expirer to expire at a future point in time. +// +// The caller must hold fc.l. +func (fc *fakeClock) setExpirer(e expirer, d time.Duration) { + if d.Nanoseconds() <= 0 { + // special case - trigger immediately, never reset. + // + // TODO: Explain what cases this covers. + e.expire(fc.time) + return + } + // Add the expirer to the set of waiters and notify any blockers. + e.setExpiry(fc.time.Add(d)) + fc.waiters = append(fc.waiters, e) + sort.Slice(fc.waiters, func(i int, j int) bool { + return fc.waiters[i].expiry().Before(fc.waiters[j].expiry()) + }) + + // Notify blockers of our new waiter. + var blocked []*blocker + count := len(fc.waiters) + for _, b := range fc.blockers { + if b.count <= count { + close(b.ch) + continue + } + blocked = append(blocked, b) + } + fc.blockers = blocked +} + +// firer is used by fakeTimer and fakeTicker used to help implement expirer. +type firer struct { + // The channel associated with the firer, used to send expriation times. + c chan time.Time + + // The time when the firer expires. Only meaningful if the firer is currently + // one of a fakeClock's waiters. + exp time.Time +} + +func newFirer() firer { + return firer{c: make(chan time.Time, 1)} +} + +func (f *firer) Chan() <-chan time.Time { + return f.c +} + +// expiry implements expirer. +func (f *firer) expiry() time.Time { + return f.exp +} + +// setExpiry implements expirer. +func (f *firer) setExpiry(t time.Time) { + f.exp = t +} diff --git a/vendor/github.com/jonboulle/clockwork/context.go b/vendor/github.com/jonboulle/clockwork/context.go new file mode 100644 index 0000000000..edbb368f09 --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/context.go @@ -0,0 +1,25 @@ +package clockwork + +import ( + "context" +) + +// contextKey is private to this package so we can ensure uniqueness here. This +// type identifies context values provided by this package. +type contextKey string + +// keyClock provides a clock for injecting during tests. If absent, a real clock should be used. +var keyClock = contextKey("clock") // clockwork.Clock + +// AddToContext creates a derived context that references the specified clock. +func AddToContext(ctx context.Context, clock Clock) context.Context { + return context.WithValue(ctx, keyClock, clock) +} + +// FromContext extracts a clock from the context. If not present, a real clock is returned. +func FromContext(ctx context.Context) Clock { + if clock, ok := ctx.Value(keyClock).(Clock); ok { + return clock + } + return NewRealClock() +} diff --git a/vendor/github.com/jonboulle/clockwork/ticker.go b/vendor/github.com/jonboulle/clockwork/ticker.go new file mode 100644 index 0000000000..b68e4d7773 --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/ticker.go @@ -0,0 +1,48 @@ +package clockwork + +import "time" + +// Ticker provides an interface which can be used instead of directly using +// [time.Ticker]. The real-time ticker t provides ticks through t.C which +// becomes t.Chan() to make this channel requirement definable in this +// interface. +type Ticker interface { + Chan() <-chan time.Time + Reset(d time.Duration) + Stop() +} + +type realTicker struct{ *time.Ticker } + +func (r realTicker) Chan() <-chan time.Time { + return r.C +} + +type fakeTicker struct { + firer + + // reset and stop provide the implementation of the respective exported + // functions. + reset func(d time.Duration) + stop func() + + // The duration of the ticker. + d time.Duration +} + +func (f *fakeTicker) Reset(d time.Duration) { + f.reset(d) +} + +func (f *fakeTicker) Stop() { + f.stop() +} + +func (f *fakeTicker) expire(now time.Time) *time.Duration { + // Never block on expiration. + select { + case f.c <- now: + default: + } + return &f.d +} diff --git a/vendor/github.com/jonboulle/clockwork/timer.go b/vendor/github.com/jonboulle/clockwork/timer.go new file mode 100644 index 0000000000..6f928b3dde --- /dev/null +++ b/vendor/github.com/jonboulle/clockwork/timer.go @@ -0,0 +1,53 @@ +package clockwork + +import "time" + +// Timer provides an interface which can be used instead of directly using +// [time.Timer]. The real-time timer t provides events through t.C which becomes +// t.Chan() to make this channel requirement definable in this interface. +type Timer interface { + Chan() <-chan time.Time + Reset(d time.Duration) bool + Stop() bool +} + +type realTimer struct{ *time.Timer } + +func (r realTimer) Chan() <-chan time.Time { + return r.C +} + +type fakeTimer struct { + firer + + // reset and stop provide the implmenetation of the respective exported + // functions. + reset func(d time.Duration) bool + stop func() bool + + // If present when the timer fires, the timer calls afterFunc in its own + // goroutine rather than sending the time on Chan(). + afterFunc func() +} + +func (f *fakeTimer) Reset(d time.Duration) bool { + return f.reset(d) +} + +func (f *fakeTimer) Stop() bool { + return f.stop() +} + +func (f *fakeTimer) expire(now time.Time) *time.Duration { + if f.afterFunc != nil { + go f.afterFunc() + return nil + } + + // Never block on expiration. + select { + case f.c <- now: + default: + } + return nil +} diff --git a/vendor/go.bytebuilders.dev/audit/lib/node.go b/vendor/go.bytebuilders.dev/audit/lib/node.go new file mode 100644 index 0000000000..3870d32d17 --- /dev/null +++ b/vendor/go.bytebuilders.dev/audit/lib/node.go @@ -0,0 +1,127 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package lib + +import ( + "fmt" + + api "go.bytebuilders.dev/audit/api/v1" + + "gomodules.xyz/counter/hourly" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + utilruntime "k8s.io/apimachinery/pkg/util/runtime" + "k8s.io/client-go/tools/cache" + "k8s.io/klog/v2" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +var siteEventCounter hourly.Int32 + +type SiteInfoPublisher struct { + p *EventPublisher + createEvent EventCreator +} + +var _ cache.ResourceEventHandler = &SiteInfoPublisher{} + +func (p *SiteInfoPublisher) OnAdd(o interface{}, isInInitialList bool) { + obj, ok := o.(client.Object) + if !ok { + return + } + + ev, err := p.createEvent(obj) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err = p.p.Publish(ev, api.EventCreated); err != nil { + klog.V(5).InfoS("error while publishing event", "error", err) + return + } + + siteEventCounter.Inc() +} + +func (p *SiteInfoPublisher) OnUpdate(oldObj, newObj interface{}) { + uOld, ok := oldObj.(client.Object) + if !ok { + return + } + uNew, ok := newObj.(client.Object) + if !ok { + return + } + + alreadySentHourly := siteEventCounter.Get() > 0 + if alreadySentHourly && + uOld.GetUID() == uNew.GetUID() && uOld.GetGeneration() == uNew.GetGeneration() { + if klog.V(8).Enabled() { + klog.V(8).InfoS("skipping update event", + "gvk", uNew.GetObjectKind().GroupVersionKind(), + "namespace", uNew.GetNamespace(), + "name", uNew.GetName(), + ) + } + return + } + + ev, err := p.createEvent(uNew) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err = p.p.Publish(ev, api.EventUpdated); err != nil { + klog.V(5).InfoS("failed to publish event", "error", err) + return + } + + siteEventCounter.Inc() +} + +func (p *SiteInfoPublisher) OnDelete(obj interface{}) { + var object client.Object + var ok bool + if object, ok = obj.(client.Object); !ok { + tombstone, ok := obj.(cache.DeletedFinalStateUnknown) + if !ok { + klog.V(5).Info("error decoding object, invalid type") + return + } + object, ok = tombstone.Obj.(client.Object) + if !ok { + utilruntime.HandleError(fmt.Errorf("error decoding object tombstone, invalid type")) + return + } + klog.V(5).Infof("Recovered deleted object '%v' from tombstone", tombstone.Obj.(metav1.Object).GetName()) + } + + ev, err := p.createEvent(object) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err := p.p.Publish(ev, api.EventDeleted); err != nil { + klog.V(5).InfoS("failed to publish event", "error", err) + return + } + + siteEventCounter.Inc() +} diff --git a/vendor/go.bytebuilders.dev/audit/lib/publisher.go b/vendor/go.bytebuilders.dev/audit/lib/publisher.go index 440a790c0a..c5c3fce65a 100644 --- a/vendor/go.bytebuilders.dev/audit/lib/publisher.go +++ b/vendor/go.bytebuilders.dev/audit/lib/publisher.go @@ -31,10 +31,8 @@ import ( "go.bytebuilders.dev/license-verifier/info" "gomodules.xyz/sync" core "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime/schema" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" @@ -51,6 +49,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/manager" ) +const eventInterval = 1 * time.Hour + // Informer - informer allows you interact with the underlying informer. type Informer interface { // AddEventHandlerWithResyncPeriod adds an event handler to the shared informer using the @@ -171,7 +171,8 @@ func (p *EventPublisher) ForGVK(informer Informer, gvk schema.GroupVersionKind) } h := &ResourceEventPublisher{ - p: p, + p: p, + counters: map[kmapi.OID]int32{}, createEvent: func(obj client.Object) (*api.Event, error) { r := obj.DeepCopyObject().(client.Object) r.GetObjectKind().SetGroupVersionKind(gvk) @@ -191,7 +192,7 @@ func (p *EventPublisher) ForGVK(informer Informer, gvk schema.GroupVersionKind) return ev, nil }, } - _, _ = informer.AddEventHandlerWithResyncPeriod(h, 1*time.Hour) + _, _ = informer.AddEventHandlerWithResyncPeriod(h, eventInterval) } type funcNodeLister func() ([]*core.Node, error) @@ -238,7 +239,7 @@ func (p *EventPublisher) setupSiteInfoPublisher(cfg *rest.Config, kc kubernetes. p.si.Product = new(auditorapi.ProductInfo) } - _, err = nodeInformer.AddEventHandler(&ResourceEventPublisher{ + _, err = nodeInformer.AddEventHandlerWithResyncPeriod(&SiteInfoPublisher{ p: p, createEvent: func(_ client.Object) (*api.Event, error) { cmeta, err := clusterid.ClusterMetadata(kc.CoreV1().Namespaces()) @@ -275,7 +276,7 @@ func (p *EventPublisher) setupSiteInfoPublisher(cfg *rest.Config, kc kubernetes. } return ev, nil }, - }) + }, eventInterval) return err } @@ -298,72 +299,3 @@ func (p *EventPublisher) SetupWithManager(ctx context.Context, mgr manager.Manag } return p.SetupWithManagerForKind(ctx, mgr, gvk) } - -type ResourceEventPublisher struct { - p *EventPublisher - createEvent EventCreator -} - -var _ cache.ResourceEventHandler = &ResourceEventPublisher{} - -func (p *ResourceEventPublisher) OnAdd(o interface{}, isInInitialList bool) { - obj, ok := o.(client.Object) - if !ok { - return - } - - ev, err := p.createEvent(obj) - if err != nil { - klog.V(5).InfoS("failed to create event data", "error", err) - return - } - - if err = p.p.Publish(ev, api.EventCreated); err != nil { - klog.V(5).InfoS("error while publishing event", "error", err) - } -} - -func (p *ResourceEventPublisher) OnUpdate(_, newObj interface{}) { - uNew, ok := newObj.(client.Object) - if !ok { - return - } - - ev, err := p.createEvent(uNew) - if err != nil { - klog.V(5).InfoS("failed to create event data", "error", err) - return - } - - if err = p.p.Publish(ev, api.EventUpdated); err != nil { - klog.V(5).InfoS("failed to publish event", "error", err) - } -} - -func (p *ResourceEventPublisher) OnDelete(obj interface{}) { - var object client.Object - var ok bool - if object, ok = obj.(client.Object); !ok { - tombstone, ok := obj.(cache.DeletedFinalStateUnknown) - if !ok { - klog.V(5).Info("error decoding object, invalid type") - return - } - object, ok = tombstone.Obj.(client.Object) - if !ok { - utilruntime.HandleError(fmt.Errorf("error decoding object tombstone, invalid type")) - return - } - klog.V(5).Infof("Recovered deleted object '%v' from tombstone", tombstone.Obj.(metav1.Object).GetName()) - } - - ev, err := p.createEvent(object) - if err != nil { - klog.V(5).InfoS("failed to create event data", "error", err) - return - } - - if err := p.p.Publish(ev, api.EventDeleted); err != nil { - klog.V(5).InfoS("failed to publish event", "error", err) - } -} diff --git a/vendor/go.bytebuilders.dev/audit/lib/resource.go b/vendor/go.bytebuilders.dev/audit/lib/resource.go new file mode 100644 index 0000000000..7579369163 --- /dev/null +++ b/vendor/go.bytebuilders.dev/audit/lib/resource.go @@ -0,0 +1,150 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package lib + +import ( + "fmt" + gosync "sync" + + api "go.bytebuilders.dev/audit/api/v1" + + "gomodules.xyz/counter/hourly" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + utilruntime "k8s.io/apimachinery/pkg/util/runtime" + "k8s.io/client-go/tools/cache" + "k8s.io/klog/v2" + kmapi "kmodules.xyz/client-go/api/v1" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +type ResourceEventPublisher struct { + p *EventPublisher + createEvent EventCreator + + counters map[kmapi.OID]int32 + mu gosync.Mutex +} + +var _ cache.ResourceEventHandler = &ResourceEventPublisher{} + +func (p *ResourceEventPublisher) OnAdd(o interface{}, isInInitialList bool) { + obj, ok := o.(client.Object) + if !ok { + return + } + + ev, err := p.createEvent(obj) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err = p.p.Publish(ev, api.EventCreated); err != nil { + klog.V(5).InfoS("error while publishing event", "error", err) + return + } + + p.mu.Lock() + oid := kmapi.NewObjectID(obj).OID() + c := p.counters[oid] + hourly.Inc32(&c) + p.counters[oid] = c + p.mu.Unlock() +} + +func (p *ResourceEventPublisher) OnUpdate(oldObj, newObj interface{}) { + uOld, ok := oldObj.(client.Object) + if !ok { + return + } + uNew, ok := newObj.(client.Object) + if !ok { + return + } + + alreadySentHourly := false + oid := kmapi.NewObjectID(uNew).OID() + p.mu.Lock() + c := p.counters[oid] + alreadySentHourly = hourly.Get32(&c) > 0 + p.mu.Unlock() + + if alreadySentHourly && + uOld.GetUID() == uNew.GetUID() && uOld.GetGeneration() == uNew.GetGeneration() { + if klog.V(8).Enabled() { + klog.V(8).InfoS("skipping update event", + "gvk", uNew.GetObjectKind().GroupVersionKind(), + "namespace", uNew.GetNamespace(), + "name", uNew.GetName(), + ) + } + return + } + + ev, err := p.createEvent(uNew) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err = p.p.Publish(ev, api.EventUpdated); err != nil { + klog.V(5).InfoS("failed to publish event", "error", err) + return + } + + p.mu.Lock() + c = p.counters[oid] + hourly.Inc32(&c) + p.counters[oid] = c + p.mu.Unlock() +} + +func (p *ResourceEventPublisher) OnDelete(obj interface{}) { + var object client.Object + var ok bool + if object, ok = obj.(client.Object); !ok { + tombstone, ok := obj.(cache.DeletedFinalStateUnknown) + if !ok { + klog.V(5).Info("error decoding object, invalid type") + return + } + object, ok = tombstone.Obj.(client.Object) + if !ok { + utilruntime.HandleError(fmt.Errorf("error decoding object tombstone, invalid type")) + return + } + klog.V(5).Infof("Recovered deleted object '%v' from tombstone", tombstone.Obj.(metav1.Object).GetName()) + } + + ev, err := p.createEvent(object) + if err != nil { + klog.V(5).InfoS("failed to create event data", "error", err) + return + } + + if err := p.p.Publish(ev, api.EventDeleted); err != nil { + klog.V(5).InfoS("failed to publish event", "error", err) + return + } + + p.mu.Lock() + oid := kmapi.NewObjectID(object).OID() + c := p.counters[oid] + hourly.Inc32(&c) + p.counters[oid] = c + p.mu.Unlock() +} diff --git a/vendor/gomodules.xyz/counter/LICENSE b/vendor/gomodules.xyz/counter/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/vendor/gomodules.xyz/counter/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/gomodules.xyz/counter/hourly/int.go b/vendor/gomodules.xyz/counter/hourly/int.go new file mode 100644 index 0000000000..f786afeedc --- /dev/null +++ b/vendor/gomodules.xyz/counter/hourly/int.go @@ -0,0 +1,20 @@ +package hourly + +import "sync" + +type Int struct { + c int + m sync.RWMutex +} + +func (i *Int) Inc() int { + i.m.Lock() + defer i.m.Unlock() + return Inc(&i.c) +} + +func (i *Int) Get() int { + i.m.RLock() + defer i.m.RUnlock() + return Get(&i.c) +} diff --git a/vendor/gomodules.xyz/counter/hourly/int32.go b/vendor/gomodules.xyz/counter/hourly/int32.go new file mode 100644 index 0000000000..225fd1b3dc --- /dev/null +++ b/vendor/gomodules.xyz/counter/hourly/int32.go @@ -0,0 +1,20 @@ +package hourly + +import "sync" + +type Int32 struct { + c int32 + m sync.RWMutex +} + +func (i *Int32) Inc() int32 { + i.m.Lock() + defer i.m.Unlock() + return Inc32(&i.c) +} + +func (i *Int32) Get() int32 { + i.m.RLock() + defer i.m.RUnlock() + return Get32(&i.c) +} diff --git a/vendor/gomodules.xyz/counter/hourly/int64.go b/vendor/gomodules.xyz/counter/hourly/int64.go new file mode 100644 index 0000000000..ee59dfa52d --- /dev/null +++ b/vendor/gomodules.xyz/counter/hourly/int64.go @@ -0,0 +1,20 @@ +package hourly + +import "sync" + +type Int64 struct { + c int64 + m sync.RWMutex +} + +func (i *Int64) Inc() int64 { + i.m.Lock() + defer i.m.Unlock() + return Inc64(&i.c) +} + +func (i *Int64) Get() int64 { + i.m.RLock() + defer i.m.RUnlock() + return Get64(&i.c) +} diff --git a/vendor/gomodules.xyz/counter/hourly/lib.go b/vendor/gomodules.xyz/counter/hourly/lib.go new file mode 100644 index 0000000000..a16d3f4c17 --- /dev/null +++ b/vendor/gomodules.xyz/counter/hourly/lib.go @@ -0,0 +1,78 @@ +package hourly + +import ( + "github.com/jonboulle/clockwork" +) + +var Clock = clockwork.NewRealClock() + +const ( + SuffixLen = 6 // bits.Len(23) + 1 + Suffix = 0b0111111 +) + +func Inc(addr *int) int { + stored := *addr + storedTime := int(stored & Suffix) + curTime := Clock.Now().Hour() + if storedTime == curTime { + *addr = ((stored>>SuffixLen)+1)<> SuffixLen + } + return 0 +} + +func Inc64(addr *int64) int64 { + stored := *addr + storedTime := int(stored & Suffix) + curTime := Clock.Now().Hour() + if storedTime == curTime { + *addr = ((stored>>SuffixLen)+1)<> SuffixLen + } + return 0 +} + +func Inc32(addr *int32) int32 { + stored := *addr + storedTime := int(stored & Suffix) + curTime := Clock.Now().Hour() + if storedTime == curTime { + *addr = ((stored>>SuffixLen)+1)<> SuffixLen + } + return 0 +} diff --git a/vendor/modules.txt b/vendor/modules.txt index d4c715b9ac..1bafe55e95 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -372,6 +372,9 @@ github.com/inconshreveable/mousetrap # github.com/jmespath/go-jmespath v0.4.0 ## explicit; go 1.14 github.com/jmespath/go-jmespath +# github.com/jonboulle/clockwork v0.4.0 +## explicit; go 1.15 +github.com/jonboulle/clockwork # github.com/josharian/intern v1.0.0 ## explicit; go 1.5 github.com/josharian/intern @@ -515,7 +518,7 @@ github.com/yudai/gojsondiff/formatter # github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 ## explicit github.com/yudai/golcs -# go.bytebuilders.dev/audit v0.0.29-0.20231225201242-3ff33160c6f0 +# go.bytebuilders.dev/audit v0.0.32-0.20240105184043-9cf3195203b7 ## explicit; go 1.21.5 go.bytebuilders.dev/audit/api/v1 go.bytebuilders.dev/audit/lib @@ -742,6 +745,9 @@ golang.org/x/text/width # golang.org/x/time v0.5.0 ## explicit; go 1.18 golang.org/x/time/rate +# gomodules.xyz/counter v0.0.1 +## explicit; go 1.21.5 +gomodules.xyz/counter/hourly # gomodules.xyz/encoding v0.0.7 ## explicit; go 1.17 gomodules.xyz/encoding/json