k8s

package
v0.0.0-...-5b6649e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitInCluster

func InitInCluster() (*rest.Config, error)

func InitOffCluster

func InitOffCluster() (*rest.Config, error)

Types

type BasePathConfig

type BasePathConfig map[string]string

type BasePathSupplier

type BasePathSupplier interface {
	BuildPath(config BasePathConfig) string
}

type PodClient

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

func NewPodClient

func NewPodClient(ctx context.Context, config *rest.Config, namespace string, label string, container string, portname string) (*PodClient, error)

func (*PodClient) BuildPath

func (pc *PodClient) BuildPath(conf BasePathConfig) string

func (*PodClient) GetMetrics

func (pc *PodClient) GetMetrics() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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