utils

package
v0.0.0-...-3388463 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildErrorResponseStatus

func BuildErrorResponseStatus(errCode errorcode.ErrorCode, msg string) *v1alpha1.Status

func BuildHTTPClient

func BuildHTTPClient(tlsConfig *tls.Config) *http.Client

func BuildSuccessResponseStatus

func BuildSuccessResponseStatus() *v1alpha1.Status

func IsSuccessCode

func IsSuccessCode(code int32) bool

func StructToMap

func StructToMap(s interface{}, sensitiveFields ...string) map[string]interface{}

StructToMap is a function that converts a struct to a map with sensitive data obfuscated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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