Documentation
¶
Index ¶
- Constants
- Variables
- func AddFin(m *metav1.ObjectMeta, GroupName string)
- func AllCombs(levels [][]string) []string
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func BoolPtr(v bool) *bool
- func CheckEmail(name string) error
- func CheckEndTime(time int64) error
- func CheckId(id string) error
- func CheckIntRange(v int32, min int32, max int32, field string) error
- func CheckInteger(v string, field string) error
- func CheckIp(ip string) error
- func CheckMaxFloat(v float64, field string, max float64) error
- func CheckMaxLen(s string, field string, max int) error
- func CheckMaxSum(x float64, y float64, a string, b string, max float64) error
- func CheckMaxValue(v int32, field string, max int32) error
- func CheckMinFloat(v float64, field string, min float64) error
- func CheckMinLen(s string, field string, min int) error
- func CheckMinValue(v int32, field string, min int32) error
- func CheckMinValue64(v int64, field string, min int64) error
- func CheckName(name string) error
- func CheckNotEmpty(s string, field string) error
- func CheckNotNull(field interface{}, fieldname string) error
- func CheckPathExist(path string, field string) error
- func CheckStartTime(time int64) error
- func ConvertBoolPtrToYN(v *bool) string
- func EmptyOrVal(s *string) string
- func Float64Ptr(v float64) *float64
- func FloatPtr(v float64) *float64
- func FloatToA(v float64) string
- func FtoA(v *float64) string
- func HasFin(m *metav1.ObjectMeta, GroupName string) bool
- func IgnoreNotFound(err error) error
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func IsNotEmpty(s *string) bool
- func IsNotFound(err error) bool
- func ItoA(v *int32) string
- func MinInt(a, b int) int
- func OK(tb testing.TB, err error)
- func RemoveFin(m *metav1.ObjectMeta, GroupName string)
- func StrPtr(s string) *string
- func TenantUri(tenantName, uri string) string
Constants ¶
View Source
const MAX_NAME = 256
Variables ¶
View Source
var EPSILON float64 = 0.00000001
Functions ¶
func AddFin ¶
func AddFin(m *metav1.ObjectMeta, GroupName string)
func CheckEmail ¶
func CheckEndTime ¶
func CheckInteger ¶
func CheckMaxLen ¶
Enabled the filed has maz length
func CheckMaxValue ¶
Enabled the filed has maz length
func CheckMinLen ¶
check that a field has max len
func CheckNotNull ¶
CheckNotNull checks that a field is not null
func CheckPathExist ¶
func CheckStartTime ¶
func ConvertBoolPtrToYN ¶
func EmptyOrVal ¶
func Float64Ptr ¶
func IgnoreNotFound ¶
func IsNotEmpty ¶
func IsNotFound ¶
func RemoveFin ¶
func RemoveFin(m *metav1.ObjectMeta, GroupName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.