Documentation
¶
Index ¶
- func Compress(rawStr string) ([]byte, error)
- func CurrentLeftDuration(startTime meta.Time, timeoutSec *int64) time.Duration
- func Decompress(compressedBytes []byte) (string, error)
- func DeepCopyInt64(o *int64) *int64
- func EqualsPtrInt64(x, y *int64) bool
- func FromJson(jsonStr string, objAddr interface{})
- func FromYaml(yamlStr string, objAddr interface{})
- func GetErrorCause(err error) error
- func InitAll()
- func InitLogger()
- func InitRandSeed()
- func IsTimeout(leftDuration time.Duration) bool
- func MaxInt32(x, y int32) int32
- func MinInt32(x, y int32) int32
- func NewStopChannel() <-chan struct{}
- func NilBool() *bool
- func NilInt32() *int32
- func PtrBool(o bool) *bool
- func PtrDeletionPropagation(o meta.DeletionPropagation) *meta.DeletionPropagation
- func PtrFloat32(o float32) *float32
- func PtrFloat64(o float64) *float64
- func PtrInt32(o int32) *int32
- func PtrInt64(o int64) *int64
- func PtrNow() *meta.Time
- func PtrString(o string) *string
- func PtrTime(o meta.Time) *meta.Time
- func PtrUID(o types.UID) *types.UID
- func PtrUIDStr(s string) *types.UID
- func Quote(s string) string
- func RandInt64(min int64, max int64) int64
- func ReferEnvVar(name string) string
- func ReferPlaceholder(name string) string
- func SecToDuration(sec *int64) time.Duration
- func SprintPtrInt32(obj *int32) string
- func ToJson(obj interface{}) string
- func ToYaml(obj interface{}) string
- type Empty
- type ImmutableSet
- type KlogWriter
- type Set
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentLeftDuration ¶
func Decompress ¶ added in v0.5.0
func DeepCopyInt64 ¶ added in v0.7.0
func EqualsPtrInt64 ¶ added in v0.7.0
func GetErrorCause ¶ added in v0.8.0
func InitLogger ¶
func InitLogger()
func InitRandSeed ¶
func InitRandSeed()
func NewStopChannel ¶ added in v0.4.0
func NewStopChannel() <-chan struct{}
func PtrDeletionPropagation ¶ added in v0.4.0
func PtrDeletionPropagation(o meta.DeletionPropagation) *meta.DeletionPropagation
func PtrFloat32 ¶ added in v0.8.0
func PtrFloat64 ¶
func ReferEnvVar ¶
func ReferPlaceholder ¶ added in v0.4.0
func SecToDuration ¶
func SprintPtrInt32 ¶ added in v0.7.0
Types ¶
type ImmutableSet ¶
type ImmutableSet struct {
// contains filtered or unexported fields
}
func NewImmutableSet ¶
func NewImmutableSet(items ...T) ImmutableSet
func (ImmutableSet) Contains ¶
func (s ImmutableSet) Contains(item T) bool
type KlogWriter ¶ added in v0.4.0
type KlogWriter struct{}
Click to show internal directories.
Click to hide internal directories.