util

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpClient = http.Client{Timeout: time.Duration(1) * time.Second}

TODO: Remove global variable

Functions

func IncludePaths

func IncludePaths() []string

IncludePaths will return the search path for non-absolute import file

func LoadExternalResource added in v2.3.0

func LoadExternalResource(url string) (b []byte, err error)

func SetIncludePaths

func SetIncludePaths(paths []string)

SetIncludePaths will update the search path for non-absolute import file

func UnmarshalObject

func UnmarshalObject[U any](parameterName string, data []byte, value *U) error

func UnmarshalObjectOrFile

func UnmarshalObjectOrFile[U any](parameterName string, data []byte, valObject *U) error

+k8s:deepcopy-gen=false

func UnmarshalPrimitiveOrObject

func UnmarshalPrimitiveOrObject[T string | bool, U any](parameterName string, data []byte, valPrimitive *T, valStruct *U) error

func WebAssembly

func WebAssembly() bool

Types

type Kind

type Kind interface {
	KindValues() []string
	String() string
}

Kind ... +k8s:deepcopy-gen=false

type UnmarshalError

type UnmarshalError struct {
	// contains filtered or unexported fields
}

UnmarshalError ... +k8s:deepcopy-gen=false

func (*UnmarshalError) Error

func (e *UnmarshalError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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