util

package
v0.0.0-...-d10261a Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatchEtcd

func CreateOrPatchEtcd(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd) (*api.Etcd, kutil.VerbType, error)

func CreateOrPatchMemcached

func CreateOrPatchMemcached(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Memcached) *api.Memcached) (*api.Memcached, kutil.VerbType, error)

func CreateOrPatchMongoDB

func CreateOrPatchMongoDB(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MongoDB) *api.MongoDB) (*api.MongoDB, kutil.VerbType, error)

func CreateOrPatchMySQL

func CreateOrPatchMySQL(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MySQL) *api.MySQL) (*api.MySQL, kutil.VerbType, error)

func CreateOrPatchPgBouncer

func CreateOrPatchPgBouncer(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.PgBouncer) *api.PgBouncer) (*api.PgBouncer, kutil.VerbType, error)

func CreateOrPatchPostgres

func CreateOrPatchPostgres(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Postgres) *api.Postgres) (*api.Postgres, kutil.VerbType, error)

func CreateOrPatchRedis

func CreateOrPatchRedis(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis) (*api.Redis, kutil.VerbType, error)

func CreateOrPatchSnapshot

func CreateOrPatchSnapshot(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Snapshot) *api.Snapshot) (*api.Snapshot, kutil.VerbType, error)

func DeleteDormantDatabase

func DeleteDormantDatabase(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta) (err error)

func MarkAsFailedSnapshot

func MarkAsFailedSnapshot(
	c cs.KubedbV1alpha1Interface,
	cur *api.Snapshot,
	reason string,
	useSubresource ...bool,
) (*api.Snapshot, error)

func PatchEtcd

func PatchEtcd(c cs.KubedbV1alpha1Interface, cur *api.Etcd, transform func(*api.Etcd) *api.Etcd) (*api.Etcd, kutil.VerbType, error)

func PatchEtcdObject

func PatchEtcdObject(c cs.KubedbV1alpha1Interface, cur, mod *api.Etcd) (*api.Etcd, kutil.VerbType, error)

func PatchMemcached

func PatchMemcached(c cs.KubedbV1alpha1Interface, cur *api.Memcached, transform func(*api.Memcached) *api.Memcached) (*api.Memcached, kutil.VerbType, error)

func PatchMemcachedObject

func PatchMemcachedObject(c cs.KubedbV1alpha1Interface, cur, mod *api.Memcached) (*api.Memcached, kutil.VerbType, error)

func PatchMongoDB

func PatchMongoDB(c cs.KubedbV1alpha1Interface, cur *api.MongoDB, transform func(*api.MongoDB) *api.MongoDB) (*api.MongoDB, kutil.VerbType, error)

func PatchMongoDBObject

func PatchMongoDBObject(c cs.KubedbV1alpha1Interface, cur, mod *api.MongoDB) (*api.MongoDB, kutil.VerbType, error)

func PatchMySQL

func PatchMySQL(c cs.KubedbV1alpha1Interface, cur *api.MySQL, transform func(*api.MySQL) *api.MySQL) (*api.MySQL, kutil.VerbType, error)

func PatchMySQLObject

func PatchMySQLObject(c cs.KubedbV1alpha1Interface, cur, mod *api.MySQL) (*api.MySQL, kutil.VerbType, error)

func PatchPgBouncer

func PatchPgBouncer(c cs.KubedbV1alpha1Interface, cur *api.PgBouncer, transform func(*api.PgBouncer) *api.PgBouncer) (*api.PgBouncer, kutil.VerbType, error)

func PatchPgBouncerObject

func PatchPgBouncerObject(c cs.KubedbV1alpha1Interface, cur, mod *api.PgBouncer) (*api.PgBouncer, kutil.VerbType, error)

func PatchPostgres

func PatchPostgres(c cs.KubedbV1alpha1Interface, cur *api.Postgres, transform func(*api.Postgres) *api.Postgres) (*api.Postgres, kutil.VerbType, error)

func PatchPostgresObject

func PatchPostgresObject(c cs.KubedbV1alpha1Interface, cur, mod *api.Postgres) (*api.Postgres, kutil.VerbType, error)

func PatchRedis

func PatchRedis(c cs.KubedbV1alpha1Interface, cur *api.Redis, transform func(*api.Redis) *api.Redis) (*api.Redis, kutil.VerbType, error)

func PatchRedisObject

func PatchRedisObject(c cs.KubedbV1alpha1Interface, cur, mod *api.Redis) (*api.Redis, kutil.VerbType, error)

func PatchSnapshot

func PatchSnapshot(c cs.KubedbV1alpha1Interface, cur *api.Snapshot, transform func(*api.Snapshot) *api.Snapshot) (*api.Snapshot, kutil.VerbType, error)

func PatchSnapshotObject

func PatchSnapshotObject(c cs.KubedbV1alpha1Interface, cur, mod *api.Snapshot) (*api.Snapshot, kutil.VerbType, error)

func TryUpdateDormantDatabase

func TryUpdateDormantDatabase(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.DormantDatabase) *api.DormantDatabase) (result *api.DormantDatabase, err error)

func TryUpdateElasticsearch

func TryUpdateElasticsearch(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Elasticsearch) *api.Elasticsearch) (result *api.Elasticsearch, err error)

func TryUpdateEtcd

func TryUpdateEtcd(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd) (result *api.Etcd, err error)

func TryUpdateMemcached

func TryUpdateMemcached(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Memcached) *api.Memcached) (result *api.Memcached, err error)

func TryUpdateMongoDB

func TryUpdateMongoDB(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MongoDB) *api.MongoDB) (result *api.MongoDB, err error)

func TryUpdateMySQL

func TryUpdateMySQL(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MySQL) *api.MySQL) (result *api.MySQL, err error)

func TryUpdatePgBouncer

func TryUpdatePgBouncer(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.PgBouncer) *api.PgBouncer) (result *api.PgBouncer, err error)

func TryUpdatePostgres

func TryUpdatePostgres(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Postgres) *api.Postgres) (result *api.Postgres, err error)

func TryUpdateRedis

func TryUpdateRedis(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis) (result *api.Redis, err error)

func TryUpdateSnapshot

func TryUpdateSnapshot(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Snapshot) *api.Snapshot) (result *api.Snapshot, err error)

func UpdateDormantDatabaseStatus

func UpdateDormantDatabaseStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.DormantDatabase,
	transform func(*api.DormantDatabaseStatus) *api.DormantDatabaseStatus,
	useSubresource ...bool,
) (result *api.DormantDatabase, err error)

func UpdateElasticsearchStatus

func UpdateElasticsearchStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Elasticsearch,
	transform func(*api.ElasticsearchStatus) *api.ElasticsearchStatus,
	useSubresource ...bool,
) (result *api.Elasticsearch, err error)

func UpdateEtcdStatus

func UpdateEtcdStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Etcd,
	transform func(*api.EtcdStatus) *api.EtcdStatus,
	useSubresource ...bool,
) (result *api.Etcd, err error)

func UpdateMemcachedStatus

func UpdateMemcachedStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Memcached,
	transform func(*api.MemcachedStatus) *api.MemcachedStatus,
	useSubresource ...bool,
) (result *api.Memcached, err error)

func UpdateMongoDBStatus

func UpdateMongoDBStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.MongoDB,
	transform func(*api.MongoDBStatus) *api.MongoDBStatus,
	useSubresource ...bool,
) (result *api.MongoDB, err error)

func UpdateMySQLStatus

func UpdateMySQLStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.MySQL,
	transform func(*api.MySQLStatus) *api.MySQLStatus,
	useSubresource ...bool,
) (result *api.MySQL, err error)

func UpdatePgBouncerStatus

func UpdatePgBouncerStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.PgBouncer,
	transform func(*api.PgBouncerStatus) *api.PgBouncerStatus,
	useSubresource ...bool,
) (result *api.PgBouncer, err error)

func UpdatePostgresStatus

func UpdatePostgresStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Postgres,
	transform func(*api.PostgresStatus) *api.PostgresStatus,
	useSubresource ...bool,
) (result *api.Postgres, err error)

func UpdateRedisStatus

func UpdateRedisStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Redis,
	transform func(*api.RedisStatus) *api.RedisStatus,
	useSubresource ...bool,
) (result *api.Redis, err error)

func UpdateSnapshotStatus

func UpdateSnapshotStatus(
	c cs.KubedbV1alpha1Interface,
	in *api.Snapshot,
	transform func(*api.SnapshotStatus) *api.SnapshotStatus,
	useSubresource ...bool,
) (result *api.Snapshot, err error)

func WaitUntilSnapshotCompletion

func WaitUntilSnapshotCompletion(c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta) (result *api.Snapshot, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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