utils

package
v0.0.0-...-bac4b8f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KubeLegoUserAgentPrefix = "jetstack-kube-lego/"

KubeLegoUserAgentPrefix is the user agent prefix that http clients in this codebase should use

Functions

func HashStringSlice

func HashStringSlice(in []string) string

func RandomToken

func RandomToken(n int) string

func StringSliceDistinct

func StringSliceDistinct(in []string) []string

func StringSliceLowerCase

func StringSliceLowerCase(in []string) []string

func UserAgentRoundTripper

func UserAgentRoundTripper(inner http.RoundTripper, version string) http.RoundTripper

UserAgentRoundTripper returns a RoundTripper that functions identically to the provided 'inner' round tripper, other than also setting a user agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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