utils

package
v1.6.5-beta2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, item string) bool

func EncodePrivateKey

func EncodePrivateKey(key interface{}) ([]byte, error)

func EncodeX509Certificate

func EncodeX509Certificate(crt *x509.Certificate) []byte

func GetClientKubeWithConf

func GetClientKubeWithConf(config *rest.Config) (*kubernetes.Clientset, error)

func GetFreeNodeports

func GetFreeNodeports(host string, n int) ([]int, error)

func GetPublicIPKubernetes

func GetPublicIPKubernetes(clientSet *kubernetes.Clientset) (string, error)

func GetPublicIPsKubernetes added in v1.2.1

func GetPublicIPsKubernetes(clientSet *kubernetes.Clientset) ([]string, error)

func ParseECDSAPrivateKey

func ParseECDSAPrivateKey(contents []byte) (*ecdsa.PrivateKey, error)

func ParseK8sYaml

func ParseK8sYaml(fileR []byte) []runtime.Object

func ParseX509Certificate

func ParseX509Certificate(contents []byte) (*x509.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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