Documentation
¶
Index ¶
- Constants
- func BoolToFloat64(a bool) float64
- func BoolToString(a bool) string
- func ConvertBytes(bytes float64) string
- func CopyFileByLine(dest, src string) (lineCount int64, err error)
- func DayStartTime(t time.Time) time.Time
- func EnsurePathExists(dirname string) error
- func FormatMysqlDumpTime(t *time.Time) string
- func GeneratePassword() string
- func JoinFlagName(prefix, key string) string
- func MakePassword(input string) (string, error)
- func NextDayStartTime(t time.Time) time.Time
- func RandomRune(n int, kind string) []rune
- func RoundTo(n float64, decimals uint32) float64
- func StrOrDef(s string, def string) string
- func TimeZeroToNull(t *time.Time) *time.Time
- func ToUint(id string) uint
- func UintToStr(i *uint) string
- func ValidPassword(input string) error
- func ValidatePassword(password string, hashedPassword string) error
- type DesEncryptor
Constants ¶
View Source
const (
RuneKindNum = "num"
RuneKindLower = "lower"
RuneKindUpper = "upper"
RuneKindChar = "char"
)
View Source
const (
BYTE = 1 << (10 * iota)
KILOBYTE
MEGABYTE
GIGABYTE
TERABYTE
PETABYTE
EXABYTE
)
Variables ¶
This section is empty.
Functions ¶
func BoolToFloat64 ¶
func BoolToFloat64(a bool) float64
func BoolToString ¶
func BoolToString(a bool) string
func CopyFileByLine ¶
func CopyFileByLine(dest, src string) (lineCount int64, err error)
func EnsurePathExists ¶
func EnsurePathExists(dirname string) error
func FormatMysqlDumpTime ¶
func FormatMysqlDumpTime(t *time.Time) string
func GeneratePassword ¶
func GeneratePassword() string
func JoinFlagName ¶
func JoinFlagName(prefix, key string) string
func MakePassword ¶
func MakePassword(input string) (string, error)
func NextDayStartTime ¶
func NextDayStartTime(t time.Time) time.Time
func RandomRune ¶
func RandomRune(n int, kind string) []rune
func TimeZeroToNull ¶
func TimeZeroToNull(t *time.Time) *time.Time
func ValidPassword ¶
func ValidPassword(input string) error
func ValidatePassword ¶
func ValidatePassword(password string, hashedPassword string) error
Types ¶
type DesEncryptor ¶
type DesEncryptor struct {
Key []byte
}
func (*DesEncryptor) DecryptBase64 ¶
func (e *DesEncryptor) DecryptBase64(input string) (string, error)
func (*DesEncryptor) EncryptBase64 ¶
func (e *DesEncryptor) EncryptBase64(input string) (string, error)
Directories
¶
Path | Synopsis |
---|---|
* OCI Distribution Specification Client * * For more information visit below URL * https://github.com/opencontainers/distribution-spec/blob/main/spec.md#endpoints *
|
* OCI Distribution Specification Client * * For more information visit below URL * https://github.com/opencontainers/distribution-spec/blob/main/spec.md#endpoints * |
Click to show internal directories.
Click to hide internal directories.