Documentation ¶
Index ¶
- Constants
- func DetectDistribution(ctx context.Context, client client.Client, node *corev1.Node) (string, error)
- func DetectProvider(ctx context.Context, client client.Client, node *corev1.Node) (string, error)
- func GetClusterMetadata(ctx context.Context, client client.Client) (v1alpha1.ClusterMetadata, error)
- func IsAKS(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsAmazon(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- func IsAzure(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- func IsCisco(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- func IsEKS(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsGKE(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsGoogle(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- func IsIKS(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsKIND(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsKind(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- func IsOpenShift(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsPKE(ctx context.Context, client client.Client, node *corev1.Node) (match bool, distribution string, err error)
- func IsUnknownDistributionError(err error) bool
- func IsUnknownProviderError(err error) bool
- func IsVsphere(ctx context.Context, client client.Client, node *corev1.Node) (bool, string, error)
- type IsDistribution
- type IsProvider
- type UnknownDistributionError
- type UnknownProviderError
Constants ¶
View Source
const ( PKE = "PKE" EKS = "EKS" GKE = "GKE" AKS = "AKS" KINDD = "KIND" IKS = "IKS" OPENSHIFT = "OPENSHIFT" )
View Source
const ( AMAZON = "amazon" AZURE = "azure" GOOGLE = "google" VSPHERE = "vsphere" KINDP = "kind" CISCO = "cisco" )
Variables ¶
This section is empty.
Functions ¶
func DetectDistribution ¶
func DetectProvider ¶
func GetClusterMetadata ¶
func IsOpenShift ¶ added in v0.2.9
func IsUnknownProviderError ¶
Types ¶
type IsDistribution ¶
type IsProvider ¶
type UnknownDistributionError ¶
type UnknownDistributionError struct{}
func (UnknownDistributionError) Error ¶
func (UnknownDistributionError) Error() string
type UnknownProviderError ¶
type UnknownProviderError struct{}
func (UnknownProviderError) Error ¶
func (UnknownProviderError) Error() string
Click to show internal directories.
Click to hide internal directories.