util

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatchAWSRole

func CreateOrPatchAWSRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.AWSRole) *api.AWSRole,
	opts metav1.PatchOptions,
) (*api.AWSRole, kutil.VerbType, error)

func CreateOrPatchAzureRole

func CreateOrPatchAzureRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.AzureRole) *api.AzureRole,
	opts metav1.PatchOptions,
) (*api.AzureRole, kutil.VerbType, error)

func CreateOrPatchGCPRole

func CreateOrPatchGCPRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.GCPRole) *api.GCPRole,
	opts metav1.PatchOptions,
) (*api.GCPRole, kutil.VerbType, error)

func CreateOrPatchMariaDBRole added in v0.8.0

func CreateOrPatchMariaDBRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.MariaDBRole) *api.MariaDBRole,
	opts metav1.PatchOptions,
) (*api.MariaDBRole, kutil.VerbType, error)

func CreateOrPatchMongoDBRole

func CreateOrPatchMongoDBRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.MongoDBRole) *api.MongoDBRole,
	opts metav1.PatchOptions,
) (*api.MongoDBRole, kutil.VerbType, error)

func CreateOrPatchMySQLRole

func CreateOrPatchMySQLRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.MySQLRole) *api.MySQLRole,
	opts metav1.PatchOptions,
) (*api.MySQLRole, kutil.VerbType, error)

func CreateOrPatchPKIRole added in v0.18.0

func CreateOrPatchPKIRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.PKIRole) *api.PKIRole,
	opts metav1.PatchOptions,
) (*api.PKIRole, kutil.VerbType, error)

func CreateOrPatchPostgresRole

func CreateOrPatchPostgresRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.PostgresRole) *api.PostgresRole,
	opts metav1.PatchOptions,
) (*api.PostgresRole, kutil.VerbType, error)

func CreateOrPatchRedisRole added in v0.13.0

func CreateOrPatchRedisRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.RedisRole) *api.RedisRole,
	opts metav1.PatchOptions,
) (*api.RedisRole, kutil.VerbType, error)

func CreateOrPatchSecretAccessRequest added in v0.5.0

func CreateOrPatchSecretAccessRequest(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.SecretAccessRequest) *api.SecretAccessRequest,
	opts metav1.PatchOptions,
) (*api.SecretAccessRequest, kutil.VerbType, error)

func CreateOrPatchSecretEngine

func CreateOrPatchSecretEngine(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.SecretEngine) *api.SecretEngine,
	opts metav1.PatchOptions,
) (*api.SecretEngine, kutil.VerbType, error)

func CreateOrPatchSecretRoleBinding added in v0.5.0

func CreateOrPatchSecretRoleBinding(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(alert *api.SecretRoleBinding) *api.SecretRoleBinding,
	opts metav1.PatchOptions,
) (*api.SecretRoleBinding, kutil.VerbType, error)

func PatchAWSRole

func PatchAWSRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur *api.AWSRole,
	transform func(*api.AWSRole) *api.AWSRole,
	opts metav1.PatchOptions,
) (*api.AWSRole, kutil.VerbType, error)

func PatchAWSRoleObject

func PatchAWSRoleObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.AWSRole,
	opts metav1.PatchOptions,
) (*api.AWSRole, kutil.VerbType, error)

func PatchGCPRole

func PatchGCPRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur *api.GCPRole,
	transform func(*api.GCPRole) *api.GCPRole,
	opts metav1.PatchOptions,
) (*api.GCPRole, kutil.VerbType, error)

func PatchGCPRoleObject

func PatchGCPRoleObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.GCPRole,
	opts metav1.PatchOptions,
) (*api.GCPRole, kutil.VerbType, error)

func PatchMariaDBRole added in v0.8.0

func PatchMariaDBRoleObject added in v0.8.0

func PatchMariaDBRoleObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.MariaDBRole,
	opts metav1.PatchOptions,
) (*api.MariaDBRole, kutil.VerbType, error)

func PatchPKIRole added in v0.18.0

func PatchPKIRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur *api.PKIRole,
	transform func(*api.PKIRole) *api.PKIRole,
	opts metav1.PatchOptions,
) (*api.PKIRole, kutil.VerbType, error)

func PatchPKIRoleObject added in v0.18.0

func PatchPKIRoleObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.PKIRole,
	opts metav1.PatchOptions,
) (*api.PKIRole, kutil.VerbType, error)

func PatchRedisRole added in v0.13.0

func PatchRedisRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur *api.RedisRole,
	transform func(*api.RedisRole) *api.RedisRole,
	opts metav1.PatchOptions,
) (*api.RedisRole, kutil.VerbType, error)

func PatchRedisRoleObject added in v0.13.0

func PatchRedisRoleObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.RedisRole,
	opts metav1.PatchOptions,
) (*api.RedisRole, kutil.VerbType, error)

func PatchSecretAccessRequestObject added in v0.5.0

func PatchSecretAccessRequestObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.SecretAccessRequest,
	opts metav1.PatchOptions,
) (*api.SecretAccessRequest, kutil.VerbType, error)

func PatchSecretRoleBindingObject added in v0.5.0

func PatchSecretRoleBindingObject(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	cur, mod *api.SecretRoleBinding,
	opts metav1.PatchOptions,
) (*api.SecretRoleBinding, kutil.VerbType, error)

func TryUpdateAWSRole

func TryUpdateAWSRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.AWSRole) *api.AWSRole,
	opts metav1.UpdateOptions,
) (result *api.AWSRole, err error)

func TryUpdateAzureRole

func TryUpdateAzureRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.AzureRole) *api.AzureRole,
	opts metav1.UpdateOptions,
) (result *api.AzureRole, err error)

func TryUpdateElasticsearchRole

func TryUpdateElasticsearchRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.ElasticsearchRole) *api.ElasticsearchRole,
	opts metav1.UpdateOptions,
) (result *api.ElasticsearchRole, err error)

func TryUpdateGCPRole

func TryUpdateGCPRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.GCPRole) *api.GCPRole,
	opts metav1.UpdateOptions,
) (result *api.GCPRole, err error)

func TryUpdateMariaDBRole added in v0.8.0

func TryUpdateMariaDBRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MariaDBRole) *api.MariaDBRole,
	opts metav1.UpdateOptions,
) (result *api.MariaDBRole, err error)

func TryUpdateMongoDBRole

func TryUpdateMongoDBRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MongoDBRole) *api.MongoDBRole,
	opts metav1.UpdateOptions,
) (result *api.MongoDBRole, err error)

func TryUpdateMySQLRole

func TryUpdateMySQLRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.MySQLRole) *api.MySQLRole,
	opts metav1.UpdateOptions,
) (result *api.MySQLRole, err error)

func TryUpdatePKIRole added in v0.18.0

func TryUpdatePKIRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.PKIRole) *api.PKIRole,
	opts metav1.UpdateOptions,
) (result *api.PKIRole, err error)

func TryUpdatePostgresRole

func TryUpdatePostgresRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.PostgresRole) *api.PostgresRole,
	opts metav1.UpdateOptions,
) (result *api.PostgresRole, err error)

func TryUpdateRedisRole added in v0.13.0

func TryUpdateRedisRole(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RedisRole) *api.RedisRole,
	opts metav1.UpdateOptions,
) (result *api.RedisRole, err error)

func TryUpdateSecretAccessRequest added in v0.5.0

func TryUpdateSecretAccessRequest(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretAccessRequest) *api.SecretAccessRequest,
	opts metav1.UpdateOptions,
) (result *api.SecretAccessRequest, err error)

func TryUpdateSecretEngine

func TryUpdateSecretEngine(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretEngine) *api.SecretEngine,
	opts metav1.UpdateOptions,
) (result *api.SecretEngine, err error)

func TryUpdateSecretRoleBinding added in v0.5.0

func TryUpdateSecretRoleBinding(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretRoleBinding) *api.SecretRoleBinding,
	opts metav1.UpdateOptions,
) (result *api.SecretRoleBinding, err error)

func UpdateAWSRoleStatus

func UpdateAWSRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(status *api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.AWSRole, err error)

func UpdateAzureRoleStatus

func UpdateAzureRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.AzureRole, err error)

func UpdateElasticsearchRoleStatus

func UpdateElasticsearchRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.ElasticsearchRole, err error)

func UpdateGCPRoleStatus

func UpdateGCPRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.GCPRole, err error)

func UpdateMariaDBRoleStatus added in v0.8.0

func UpdateMariaDBRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.MariaDBRole, err error)

func UpdateMongoDBRoleStatus

func UpdateMongoDBRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.MongoDBRole, err error)

func UpdateMySQLRoleStatus

func UpdateMySQLRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.MySQLRole, err error)

func UpdatePKIRoleStatus added in v0.18.0

func UpdatePKIRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(status *api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.PKIRole, err error)

func UpdatePostgresRoleStatus

func UpdatePostgresRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.PostgresRole, err error)

func UpdateRedisRoleStatus added in v0.13.0

func UpdateRedisRoleStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.RoleStatus) *api.RoleStatus,
	opts metav1.UpdateOptions,
) (result *api.RedisRole, err error)

func UpdateSecretAccessRequestStatus added in v0.5.0

func UpdateSecretAccessRequestStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretAccessRequestStatus) *api.SecretAccessRequestStatus,
	opts metav1.UpdateOptions,
) (result *api.SecretAccessRequest, err error)

func UpdateSecretEngineStatus

func UpdateSecretEngineStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretEngineStatus) *api.SecretEngineStatus,
	opts metav1.UpdateOptions,
) (result *api.SecretEngine, err error)

func UpdateSecretRoleBindingStatus added in v0.5.0

func UpdateSecretRoleBindingStatus(
	ctx context.Context,
	c cs.EngineV1alpha1Interface,
	meta metav1.ObjectMeta,
	transform func(*api.SecretRoleBindingStatus) *api.SecretRoleBindingStatus,
	opts metav1.UpdateOptions,
) (result *api.SecretRoleBinding, 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