providers

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package providers provides methods to detect different Kubernetes distros.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider int
const (
	Unknown Provider = iota
	K3S
	RKE2
	RKE
)

func Detect

func Detect(ctx context.Context, c client.Client) (Provider, error)

func (Provider) ContainerRuntime added in v0.2.0

func (p Provider) ContainerRuntime() v1beta1.ContainerRuntime

func (Provider) String added in v0.2.0

func (p Provider) String() string

Jump to

Keyboard shortcuts

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