Documentation ¶
Index ¶
- Constants
- func KubernetesVersion(ctx context.Context) (platform.Version, error)
- func KubernetesVersionFromDiscovery(_ context.Context, cli discovery.ServerVersionInterface) (platform.Version, error)
- func OpenshiftVersion(ctx context.Context) (platform.Version, error)
- func OpenshiftVersionFromGetter(ctx context.Context, coGetter ClusterOperatorsGetter) (platform.Version, error)
- func Platform(ctx context.Context) (platform.Platform, error)
- func PlatformFromLister(ctx context.Context, cvLister ClusterVersionsLister) (platform.Platform, error)
- func Version(ctx context.Context, plat platform.Platform) (platform.Version, error)
- type ClusterInfo
- type ClusterOperatorsGetter
- type ClusterVersionsLister
- type PlatformInfo
- type VersionInfo
Constants ¶
View Source
const ( DetectedFromUser string = "user-supplied" DetectedFromCluster string = "autodetected from cluster" DetectedFailure string = "autodetection failed" )
Variables ¶
This section is empty.
Functions ¶
func KubernetesVersion ¶ added in v0.7.0
TODO: we need to wait for the client-go to be fixed to accept a context
func KubernetesVersionFromDiscovery ¶ added in v0.15.0
func OpenshiftVersion ¶ added in v0.7.0
func OpenshiftVersionFromGetter ¶ added in v0.15.0
func PlatformFromLister ¶ added in v0.15.0
Types ¶
type ClusterInfo ¶ added in v0.7.0
type ClusterInfo struct { Platform PlatformInfo `json:"platform"` Version VersionInfo `json:"version"` }
func (ClusterInfo) String ¶ added in v0.10.0
func (ci ClusterInfo) String() string
func (ClusterInfo) ToJSON ¶ added in v0.10.0
func (ci ClusterInfo) ToJSON() string
type ClusterOperatorsGetter ¶ added in v0.15.0
type ClusterOperatorsGetter interface {
Get(ctx context.Context, name string, opts metav1.GetOptions) (*ocpconfigv1.ClusterOperator, error)
}
type ClusterVersionsLister ¶ added in v0.15.0
type ClusterVersionsLister interface {
List(ctx context.Context, opts metav1.ListOptions) (*ocpconfigv1.ClusterVersionList, error)
}
type PlatformInfo ¶ added in v0.7.0
type PlatformInfo struct { AutoDetected platform.Platform `json:"autoDetected"` UserSupplied platform.Platform `json:"userSupplied"` Discovered platform.Platform `json:"discovered"` }
func FindPlatform ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.