Documentation ¶
Index ¶
- Constants
- Variables
- func BackdateSnapshotsForPods(pods []*v1.Pod, backdatePeriod time.Duration)
- func CassandraPodExistsWithLabels(labelsAndValues ...string) *v1.Pod
- func DeleteCassandraResourcesInNamespace(namespace string)
- func Kubectl(namespace, podName string, command ...string) (*exec.Cmd, []byte, error)
- func PodIsReady(podToCheck *v1.Pod) func() (bool, error)
- func PodIsTerminatedSuccessfully(podToCheck *v1.Pod) func() (bool, error)
- func PodIsTerminatedUnsuccessfully(podToCheck *v1.Pod) func() (bool, error)
- func RenameSnapshotsForPod(pod *v1.Pod, snapshotName string)
- func RunCommandInCassandraSnapshotPod(clusterName, command string, arg ...string) *v1.Pod
- type Snapshot
- type SnapshotMatcher
- func (m *SnapshotMatcher) AndWithinTimeRange(earliestTime time.Time, latestTime time.Time) types.GomegaMatcher
- func (m *SnapshotMatcher) FailureMessage(actual interface{}) (message string)
- func (m *SnapshotMatcher) Match(actual interface{}) (success bool, err error)
- func (m *SnapshotMatcher) NegatedFailureMessage(actual interface{}) (message string)
Constants ¶
View Source
const ( Namespace = "test-cassandra-operator" OperatorLabel = "cassandra-snapshot-test" )
View Source
const ( NodeStartDuration = 120 * time.Second NodeTerminationDuration = 60 * time.Second )
Variables ¶
View Source
var ( KubeClientset *kubernetes.Clientset UseMockedImage bool CassandraImageName string CassandraReadinessProbe *v1.Probe RenameSnapshotCmd string ImageUnderTest string ResourceRequirements *v1.ResourceRequirements )
View Source
var (
TerminateImmediately = int64(0)
)
Functions ¶
func DeleteCassandraResourcesInNamespace ¶
func DeleteCassandraResourcesInNamespace(namespace string)
func RenameSnapshotsForPod ¶
Types ¶
type SnapshotMatcher ¶
type SnapshotMatcher struct {
// contains filtered or unexported fields
}
func BeForKeyspace ¶
func BeForKeyspace(keyspace string) *SnapshotMatcher
func (*SnapshotMatcher) AndWithinTimeRange ¶
func (m *SnapshotMatcher) AndWithinTimeRange(earliestTime time.Time, latestTime time.Time) types.GomegaMatcher
func (*SnapshotMatcher) FailureMessage ¶
func (m *SnapshotMatcher) FailureMessage(actual interface{}) (message string)
func (*SnapshotMatcher) Match ¶
func (m *SnapshotMatcher) Match(actual interface{}) (success bool, err error)
func (*SnapshotMatcher) NegatedFailureMessage ¶
func (m *SnapshotMatcher) NegatedFailureMessage(actual interface{}) (message string)
Click to show internal directories.
Click to hide internal directories.