Documentation ¶
Index ¶
- Constants
- Variables
- func OnSupportedVersionIt(constraints *semver.Constraints, helper ClusterVersionProvider, ...)
- func OpenshiftVersionToSemver(openshiftVersion string) (*semver.Version, error)
- func RandomStr(length int) (str string)
- func SemverToOpenshiftVersion(version *semver.Version) string
- type ClusterVersionProvider
Constants ¶
View Source
const (
// VersionPrefix is the string that every OSD version begins with.
VersionPrefix = "openshift-v"
)
Variables ¶
View Source
var NoVersionFound = "NoVersionFound"
NoVersionFound when no version can be found.
Functions ¶
func OnSupportedVersionIt ¶
func OnSupportedVersionIt(constraints *semver.Constraints, helper ClusterVersionProvider, description string, f func(context.Context))
OnSupportedVersionIt runs a ginkgo It() if and only if the cluster version meets the provided constraint. The cluster version is looked up using the provided helper.H.
func OpenshiftVersionToSemver ¶
OpenshiftVersionToSemver converts an OpenShift version to a semver string which can then be used for comparisons.
func SemverToOpenshiftVersion ¶
func SemverToOpenshiftVersion(version *semver.Version) string
SemverToOpenshiftVersion converts an OpenShift version to a semver string which can then be used for comparisons.
Types ¶
type ClusterVersionProvider ¶
type ClusterVersionProvider interface {
GetClusterVersion(context.Context) (*v1.ClusterVersion, error)
}
ClusterVersionProvider is a type that can return cluster version information. The *helper.H type implements this interface.
Click to show internal directories.
Click to hide internal directories.