platform

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 16

Documentation

Index

Constants

View Source
const (
	Unknown    = Platform("Unknown")
	Kubernetes = Platform("Kubernetes")
	OpenShift  = Platform("OpenShift")
	HyperShift = Platform("HyperShift")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterOperatorsGetter added in v0.22.0

type ClusterOperatorsGetter interface {
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*ocpconfigv1.ClusterOperator, error)
}

type ClusterVersionsLister added in v0.22.0

type ClusterVersionsLister interface {
	List(ctx context.Context, opts metav1.ListOptions) (*ocpconfigv1.ClusterVersionList, error)
}

type Environment added in v0.22.0

func (*Environment) EnsureClient added in v0.22.0

func (env *Environment) EnsureClient() error

type InfrastructuresGetter added in v0.22.0

type InfrastructuresGetter interface {
	Get(ctx context.Context, name string, options metav1.GetOptions) (*ocpconfigv1.Infrastructure, error)
}

type Platform

type Platform string

func ParsePlatform added in v0.7.0

func ParsePlatform(plat string) (Platform, bool)

func (Platform) String

func (p Platform) String() string

type Version added in v0.7.0

type Version string
const MissingVersion Version = ""

func ParseVersion added in v0.7.0

func ParseVersion(v string) (Version, error)

func (Version) AtLeast added in v0.7.0

func (v Version) AtLeast(other Version) (bool, error)

func (Version) AtLeastString added in v0.7.0

func (v Version) AtLeastString(other string) (bool, error)

func (Version) String added in v0.7.0

func (v Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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