util

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatchEtcd

func CreateOrPatchEtcd(ctx context.Context, c cs.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd, opts metav1.PatchOptions) (*api.Etcd, kutil.VerbType, error)

func CreateOrPatchMariaDB added in v0.15.1

func CreateOrPatchMariaDB(ctx context.Context, c cs.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(*api.MariaDB) *api.MariaDB, opts metav1.PatchOptions) (*api.MariaDB, kutil.VerbType, error)

func CreateOrPatchMySQL

func CreateOrPatchMySQL(ctx context.Context, c cs.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis, opts metav1.PatchOptions) (*api.Redis, kutil.VerbType, error)

func CreateOrPatchRedisSentinel added in v0.22.0

func CreateOrPatchRedisSentinel(ctx context.Context, c cs.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(sentinel *api.RedisSentinel) *api.RedisSentinel, opts metav1.PatchOptions) (*api.RedisSentinel, kutil.VerbType, error)

func PatchEtcd

func PatchEtcd(ctx context.Context, c cs.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, cur, mod *api.Etcd, opts metav1.PatchOptions) (*api.Etcd, kutil.VerbType, error)

func PatchMariaDB added in v0.15.1

func PatchMariaDB(ctx context.Context, c cs.KubedbV1alpha2Interface, cur *api.MariaDB, transform func(*api.MariaDB) *api.MariaDB, opts metav1.PatchOptions) (*api.MariaDB, kutil.VerbType, error)

func PatchMariaDBObject added in v0.15.1

func PatchMariaDBObject(ctx context.Context, c cs.KubedbV1alpha2Interface, cur, mod *api.MariaDB, opts metav1.PatchOptions) (*api.MariaDB, kutil.VerbType, error)

func PatchMongoDB

func PatchMongoDB(ctx context.Context, c cs.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, cur, mod *api.MySQL, opts metav1.PatchOptions) (*api.MySQL, kutil.VerbType, error)

func PatchRedis

func PatchRedis(ctx context.Context, c cs.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, cur, mod *api.Redis, opts metav1.PatchOptions) (*api.Redis, kutil.VerbType, error)

func PatchRedisSentinel added in v0.22.0

func PatchRedisSentinel(ctx context.Context, c cs.KubedbV1alpha2Interface, cur *api.RedisSentinel, transform func(sentinel *api.RedisSentinel) *api.RedisSentinel, opts metav1.PatchOptions) (*api.RedisSentinel, kutil.VerbType, error)

func PatchRedisSentinelObject added in v0.22.0

func PatchRedisSentinelObject(ctx context.Context, c cs.KubedbV1alpha2Interface, cur, mod *api.RedisSentinel, opts metav1.PatchOptions) (*api.RedisSentinel, kutil.VerbType, error)

func TryUpdateElasticsearch

func TryUpdateElasticsearch(ctx context.Context, c cs.KubedbV1alpha2Interface, 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.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(*api.Etcd) *api.Etcd, opts metav1.UpdateOptions) (result *api.Etcd, err error)

func TryUpdateMariaDB added in v0.15.1

func TryUpdateMariaDB(ctx context.Context, c cs.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(*api.MariaDB) *api.MariaDB, opts metav1.UpdateOptions) (result *api.MariaDB, err error)

func TryUpdateMemcached

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

func TryUpdateRedisSentinel added in v0.22.0

func TryUpdateRedisSentinel(ctx context.Context, c cs.KubedbV1alpha2Interface, meta metav1.ObjectMeta, transform func(sentinel *api.RedisSentinel) *api.RedisSentinel, opts metav1.UpdateOptions) (result *api.RedisSentinel, err error)

func UpdateElasticsearchStatus

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

func UpdateEtcdStatus

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

func UpdateMariaDBStatus added in v0.15.1

func UpdateMariaDBStatus(
	ctx context.Context,
	c cs.KubedbV1alpha2Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MariaDBStatus) (types.UID, *api.MariaDBStatus),
	opts metav1.UpdateOptions,
) (result *api.MariaDB, err error)

func UpdateMemcachedStatus

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

func UpdateMongoDBStatus

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

func UpdateMySQLStatus

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

func UpdatePerconaXtraDBStatus

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

func UpdatePgBouncerStatus

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

func UpdatePostgresStatus

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

func UpdateProxySQLStatus

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

func UpdateRedisSentinelStatus added in v0.22.0

func UpdateRedisSentinelStatus(
	ctx context.Context,
	c cs.KubedbV1alpha2Interface,
	meta metav1.ObjectMeta,
	transform func(status *api.RedisSentinelStatus) (types.UID, *api.RedisSentinelStatus),
	opts metav1.UpdateOptions,
) (result *api.RedisSentinel, err error)

func UpdateRedisStatus

func UpdateRedisStatus(
	ctx context.Context,
	c cs.KubedbV1alpha2Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RedisStatus) (types.UID, *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