validation

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAllReplicationsNodeNameEqualTo

func ValidateAllReplicationsNodeNameEqualTo(ctx context.Context, k8sClient client.Client, torrent *api.Torrent, nodeName string)

func ValidateNodeTrackerChunkNumberEqualTo

func ValidateNodeTrackerChunkNumberEqualTo(ctx context.Context, k8sClient client.Client, number int, nodeTrackerNames ...string)

func ValidateReplicationsNumberEqualTo

func ValidateReplicationsNumberEqualTo(ctx context.Context, k8sClient client.Client, torrent *api.Torrent, number int)

func ValidateTorrentNotExist

func ValidateTorrentNotExist(ctx context.Context, k8sClient client.Client, torrentName string, option *ValidateOptions)

func ValidateTorrentStatusEqualTo

func ValidateTorrentStatusEqualTo(ctx context.Context, k8sClient client.Client, torrent *api.Torrent, conditionType string, reason string, status metav1.ConditionStatus, option *ValidateOptions)

Types

type ValidateOptions

type ValidateOptions struct {
	Timeout  time.Duration
	Interval time.Duration
}

Jump to

Keyboard shortcuts

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