Documentation ¶
Index ¶
- Variables
- func DNS1035Name(input string) string
- func DNS1035WithPrefix(input string, prefix string) string
- func DomainHash(domain string) string
- func DoneOrSleep(ctx context.Context, duration time.Duration) bool
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) (string, error)
- func Htpasswd(user, pass string) (string, error)
- func IsEmailValid(e string) bool
- func K8SLabel(input string) string
- func MakeHTTPS(url string) string
- func MergeMap(m1, m2 map[string]string) map[string]string
- func ParseMemoryQuantityToGB(s string) (amount float32, err error)
- func ReverseSlice(s interface{})
- func URLJoin(base string, paths ...string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoggingHttpTransport = &loghttp.Transport{ LogRequest: func(req *http.Request) { log.Trace().Msgf("[%p] %s %s %v", req, req.Method, req.URL, req.Header) }, LogResponse: func(resp *http.Response) { log.Trace().Msgf("[%p] %d %s", resp.Request, resp.StatusCode, resp.Request.URL) }, } )
Functions ¶
func DNS1035Name ¶
func DNS1035WithPrefix ¶
func DomainHash ¶
func GenerateRandomBytes ¶
func GenerateRandomString ¶
func IsEmailValid ¶
IsEmailValid checks if the email provided passes the required structure and length. https://golangcode.com/validate-an-email-address/
func ParseMemoryQuantityToGB ¶
func ReverseSlice ¶
func ReverseSlice(s interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.