framework

package
v0.0.0-...-5e56fc2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client client.Client
)

Functions

func CreateNamespace

func CreateNamespace(name string) error

func DeleteAllBackupsBlocking

func DeleteAllBackupsBlocking(namespace string, retryInterval, timeout time.Duration) error

func DeleteNamespace

func DeleteNamespace(name string) error

func DeleteStatefulSet

func DeleteStatefulSet(namespace, name string) error

func Init

func Init()

func KustomizeAndApply

func KustomizeAndApply(namespace, testDir string)

func NewMedusaClient

func NewMedusaClient() (*medusa.Client, error)

func NewUserServiceClient

func NewUserServiceClient() (*user.ServiceClient, error)

func WaitForAllBackupsToBeDeleted

func WaitForAllBackupsToBeDeleted(namespace string, retryInterval, timeout time.Duration) error

func WaitForBackupToFinish

func WaitForBackupToFinish(nsName types.NamespacedName, predicate BackupPredicate, retryInterval, timeout time.Duration) error

func WaitForStatefulSetReady

func WaitForStatefulSetReady(nsName types.NamespacedName, retryInterval, timeout time.Duration) error

func WithDateSuffix

func WithDateSuffix(s string) string

Returns s with a date suffix of -yyMMddHHmmss

Types

type BackupPredicate

type BackupPredicate func(backup *api.CassandraBackup) (bool, error)

func NumberOfNodesFinished

func NumberOfNodesFinished(num int) BackupPredicate

Jump to

Keyboard shortcuts

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