helpers

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PlatformAWS           = "aws"           // deprecated: use PlatformAWSClassic
	PlatformGCP           = "gcp"           // deprecated: use PlatformGCPClassic
	PlatformHostedCluster = "hostedcluster" // deprecated: use PlatformAWSHCP
	PlatformAWSClassic    = "aws-classic"
	PlatformGCPClassic    = "gcp-classic"
	PlatformAWSHCP        = "aws-hcp"
)

Enumerated type representing the platform underlying the cluster-under-test

Variables

View Source
var UserdataTemplate string

Functions

func GetPlatformType added in v0.4.8

func GetPlatformType(platformType string) (string, error)

func IPPermissionsEquivalent added in v0.4.5

func IPPermissionsEquivalent(a ec2Types.IpPermission, b ec2Types.IpPermission) bool

IPPermissionsEquivalent compares two AWS IpPermissions (used in security group rules) similarly to reflect.DeepEqual, except it only compares IP(v6) ports and CIDR ranges and ignores UserIdGroupPairs, PrefixListIds, and any Description fields

func PollImmediate

func PollImmediate(interval time.Duration, timeout time.Duration, condition func() (bool, error)) error

PollImmediate calls the condition function at the specified interval up to the specified timeout until the condition function returns true or an error

func RandSeq

func RandSeq(n int) string

RandSeq generates random string with n characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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