k8s

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeKubIn  = iota // kubernetes cluster in
	TypeKubOut        // kubernetes cluster out
)

clusterType

Variables

This section is empty.

Functions

func TryInClientset added in v0.1.0

func TryInClientset() *kubernetes.Clientset

TryInClientset used to create clientset in cluster

func TryServerNameFromPBAny added in v0.1.0

func TryServerNameFromPBAny(msg *anypb.Any) string

TryServerNameFromPBAny 从protobuf Any 消息获取服务名

func TryServiceURL added in v0.1.0

func TryServiceURL(ctx context.Context, clusterType int, serviceName string, portName string) string

TryServiceURL get service url

Types

This section is empty.

Jump to

Keyboard shortcuts

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