util

package
v0.14.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 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(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd, opts metav1.PatchOptions) (*api.Etcd, kutil.VerbType, error)

func CreateOrPatchMySQL

func CreateOrPatchMySQL(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MySQL) *api.MySQL, opts metav1.PatchOptions) (*api.MySQL, kutil.VerbType, error)

func CreateOrPatchRedis

func CreateOrPatchRedis(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis, opts metav1.PatchOptions) (*api.Redis, kutil.VerbType, error)

func PatchEtcd

func PatchEtcd(ctx context.Context, c cs.KubedbV1alpha1Interface, cur *api.Etcd, transform func(*api.Etcd) *api.Etcd, opts metav1.PatchOptions) (*api.Etcd, kutil.VerbType, error)

func PatchEtcdObject

func PatchEtcdObject(ctx context.Context, c cs.KubedbV1alpha1Interface, cur, mod *api.Etcd, opts metav1.PatchOptions) (*api.Etcd, kutil.VerbType, error)

func PatchMongoDB

func PatchMongoDB(ctx context.Context, c cs.KubedbV1alpha1Interface, cur *api.MongoDB, transform func(*api.MongoDB) *api.MongoDB, opts metav1.PatchOptions) (*api.MongoDB, kutil.VerbType, error)

func PatchMySQL

func PatchMySQL(ctx context.Context, c cs.KubedbV1alpha1Interface, cur *api.MySQL, transform func(*api.MySQL) *api.MySQL, opts metav1.PatchOptions) (*api.MySQL, kutil.VerbType, error)

func PatchMySQLObject

func PatchMySQLObject(ctx context.Context, c cs.KubedbV1alpha1Interface, cur, mod *api.MySQL, opts metav1.PatchOptions) (*api.MySQL, kutil.VerbType, error)

func PatchRedis

func PatchRedis(ctx context.Context, c cs.KubedbV1alpha1Interface, cur *api.Redis, transform func(*api.Redis) *api.Redis, opts metav1.PatchOptions) (*api.Redis, kutil.VerbType, error)

func PatchRedisObject

func PatchRedisObject(ctx context.Context, c cs.KubedbV1alpha1Interface, cur, mod *api.Redis, opts metav1.PatchOptions) (*api.Redis, kutil.VerbType, error)

func TryUpdateElasticsearch

func TryUpdateElasticsearch(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Elasticsearch) *api.Elasticsearch, opts metav1.UpdateOptions) (result *api.Elasticsearch, err error)

func TryUpdateEtcd

func TryUpdateEtcd(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd, opts metav1.UpdateOptions) (result *api.Etcd, err error)

func TryUpdateMemcached

func TryUpdateMemcached(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Memcached) *api.Memcached, opts metav1.UpdateOptions) (result *api.Memcached, err error)

func TryUpdateMongoDB

func TryUpdateMongoDB(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MongoDB) *api.MongoDB, opts metav1.UpdateOptions) (result *api.MongoDB, err error)

func TryUpdateMySQL

func TryUpdateMySQL(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.MySQL) *api.MySQL, opts metav1.UpdateOptions) (result *api.MySQL, err error)

func TryUpdatePerconaXtraDB

func TryUpdatePerconaXtraDB(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.PerconaXtraDB) *api.PerconaXtraDB, opts metav1.UpdateOptions) (result *api.PerconaXtraDB, err error)

func TryUpdatePgBouncer

func TryUpdatePgBouncer(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.PgBouncer) *api.PgBouncer, opts metav1.UpdateOptions) (result *api.PgBouncer, err error)

func TryUpdatePostgres

func TryUpdatePostgres(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Postgres) *api.Postgres, opts metav1.UpdateOptions) (result *api.Postgres, err error)

func TryUpdateProxySQL

func TryUpdateProxySQL(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.ProxySQL) *api.ProxySQL, opts metav1.UpdateOptions) (result *api.ProxySQL, err error)

func TryUpdateRedis

func TryUpdateRedis(ctx context.Context, c cs.KubedbV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis, opts metav1.UpdateOptions) (result *api.Redis, err error)

func UpdateElasticsearchStatus

func UpdateElasticsearchStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.ElasticsearchStatus) *api.ElasticsearchStatus,
	opts metav1.UpdateOptions,
) (result *api.Elasticsearch, err error)

func UpdateEtcdStatus

func UpdateEtcdStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.EtcdStatus) *api.EtcdStatus,
	opts metav1.UpdateOptions,
) (result *api.Etcd, err error)

func UpdateMemcachedStatus

func UpdateMemcachedStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MemcachedStatus) *api.MemcachedStatus,
	opts metav1.UpdateOptions,
) (result *api.Memcached, err error)

func UpdateMongoDBStatus

func UpdateMongoDBStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MongoDBStatus) *api.MongoDBStatus,
	opts metav1.UpdateOptions,
) (result *api.MongoDB, err error)

func UpdateMySQLStatus

func UpdateMySQLStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MySQLStatus) *api.MySQLStatus,
	opts metav1.UpdateOptions,
) (result *api.MySQL, err error)

func UpdatePerconaXtraDBStatus

func UpdatePerconaXtraDBStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.PerconaXtraDBStatus) *api.PerconaXtraDBStatus,
	opts metav1.UpdateOptions,
) (result *api.PerconaXtraDB, err error)

func UpdatePgBouncerStatus

func UpdatePgBouncerStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.PgBouncerStatus) *api.PgBouncerStatus,
	opts metav1.UpdateOptions,
) (result *api.PgBouncer, err error)

func UpdatePostgresStatus

func UpdatePostgresStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.PostgresStatus) *api.PostgresStatus,
	opts metav1.UpdateOptions,
) (result *api.Postgres, err error)

func UpdateProxySQLStatus

func UpdateProxySQLStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.ProxySQLStatus) *api.ProxySQLStatus,
	opts metav1.UpdateOptions,
) (result *api.ProxySQL, err error)

func UpdateRedisStatus

func UpdateRedisStatus(
	ctx context.Context,
	c cs.KubedbV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RedisStatus) *api.RedisStatus,
	opts metav1.UpdateOptions,
) (result *api.Redis, 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