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.
type AutoscalingVersion ¶
type AutoscalingVersion int
const ( AutoscalingVersionV2 AutoscalingVersion = iota AutoscalingVersionV2Beta2 AutoscalingVersionUnknown )
func ToAutoScalingVersion ¶
func ToAutoScalingVersion(version string) AutoscalingVersion
func (AutoscalingVersion) String ¶
func (v AutoscalingVersion) String() string
type OpenShiftRoutesAvailability ¶
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 ¶
func (p OpenShiftRoutesAvailability) String() string
Click to show internal directories.
Click to hide internal directories.