utils

package
v1.9.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 18 Imported by: 3 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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