k8s

package
v0.0.0-...-8a704fa Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthType

type AuthType string
const (
	InClusterConfig      AuthType = "inClusterConfig"
	BuildConfigFromFlags AuthType = "buildConfigFromFlags"
)

func (*AuthType) Set

func (a *AuthType) Set(value string) error

func (*AuthType) String

func (a *AuthType) String() string

func (*AuthType) Type

func (a *AuthType) Type() string

func (AuthType) Values

func (AuthType) Values() []string

type Client

type Client interface {
	CountPodsNumber() (int, error)
	CountNodesNumber() (int, error)
}

func NewClient

func NewClient(conf Config) (Client, error)

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func (*ClientImpl) CountNodesNumber

func (c *ClientImpl) CountNodesNumber() (int, error)

func (*ClientImpl) CountPodsNumber

func (c *ClientImpl) CountPodsNumber() (int, error)

type Config

type Config struct {
	AuthType   AuthType
	Kubeconfig string
}

Jump to

Keyboard shortcuts

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