utils

package
v0.0.0-...-52d730d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package utils implements utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretFromCert

func GetSecretFromCert(ctx context.Context, client kubernetes.Interface, cert *certmanagerv1.Certificate) (*corev1.Secret, error)

GetSecretFromCert extracts the secret for the certificate.

func IsIP

func IsIP(host string) bool

IsIP checks if a string contains a valid IP address.

func RandomHex

func RandomHex(n int) (string, error)

RandomHex returns a random hexadecimal number of n length.

func RemoveDefaultTLSPort

func RemoveDefaultTLSPort(fullURL string) (string, error)

RemoveDefaultTLSPort removes the port value from fullURL if it is the default 443.

Types

This section is empty.

Jump to

Keyboard shortcuts

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