autodetect

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package autodetect is for auto-detecting traits from the environment (platform, APIs, ...).

Package autodetect is for auto-detecting traits from the environment (APIs, ...).

Index

Constants

View Source
const DefaultAutoscalingVersion = AutoscalingVersionV2

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoDetect

type AutoDetect interface {
	OpenShiftRoutesAvailability() (OpenShiftRoutesAvailability, error)
	HPAVersion() (AutoscalingVersion, error)
}

AutoDetect provides an assortment of routines that auto-detect traits based on the runtime.

func New

func New(restConfig *rest.Config) (AutoDetect, error)

New creates a new auto-detection worker, using the given client when talking to the current cluster.

type AutoscalingVersion added in v0.57.2

type AutoscalingVersion int
const (
	AutoscalingVersionV2 AutoscalingVersion = iota
	AutoscalingVersionV2Beta2
	AutoscalingVersionUnknown
)

func ToAutoScalingVersion added in v0.60.0

func ToAutoScalingVersion(version string) AutoscalingVersion

func (AutoscalingVersion) String added in v0.57.2

func (v AutoscalingVersion) String() string

type OpenShiftRoutesAvailability added in v0.70.0

type OpenShiftRoutesAvailability int

OpenShiftRoutesAvailability holds the auto-detected OpenShift Routes availability API.

const (
	// OpenShiftRoutesAvailable represents the route.openshift.io API is available.
	OpenShiftRoutesAvailable OpenShiftRoutesAvailability = iota

	// OpenShiftRoutesNotAvailable represents the route.openshift.io API is not available.
	OpenShiftRoutesNotAvailable
)

func (OpenShiftRoutesAvailability) String added in v0.70.0

Jump to

Keyboard shortcuts

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