Documentation ¶
Index ¶
- Variables
- func BytetoH(b []byte) string
- func ComputeDates(startDate, endDate string) []string
- func ComputeDatesWithTemplate(startDate, endDate string, timeTemplate string) []string
- func DateStringToInt64(dateString string) int64
- func DingdingLinkAlert(url string, title string, content string) ([]byte, error)
- func DingdingMarkdownAlert(url string, title string, content string, phones string) ([]byte, error)
- func DingdingTextAlert(url string, title string, content string) ([]byte, error)
- func ExecShellCommon(commandString string) (string, error)
- func ExecShellProcessed(commandString string) error
- func ExecShellProcessedWithPath(commandString string, path string) error
- func FormatStandardTime(t1 time.Time) string
- func GetDatePlus(originalDate string, days int) (bool, string)
- func GetDatePlusWithHyphen(originalDate string, days int) (bool, string)
- func GetDatePlusWithHyphenOriginalHyphen(originalDate string, days int) (bool, string)
- func GetDeploymentVersion(namespace string, projectName string) ([]string, error)
- func GetIpDest(ip string) (string, error)
- func GetIpFromCipCc(ip string) string
- func GetIpSlice(ipSection string) ([]string, error)
- func GetPrivateIp() string
- func Hextob(str string) []byte
- func HyphenVersion(version string) string
- func Ip2Hex(ip string) int
- func IpPort2Hex(ipAddr string) int
- func IsIp(ip string) (b bool)
- func K8sApply(namespace string, yamlFile string) (string, error)
- func K8sDeleteDeployment(namespace string, deploymentName string) (string, error)
- func MinuteStringToInt64(dateString string) int64
- func RandString(n int) string
- func RandomPhoneNumber() int64
- func ReadLine(fileName string) ([]string, error)
- func ReadYamlConfig(file string) []byte
- func SimpleTimeSectionStringFor91160(input int64) string
- func SliceMax(s ...int) int
- func SliceMin(s ...int) int
- func SplitFileName(filename string) (string, string, error)
- func SplitFilePath(filepath string) (string, string, string, error)
- func SplitLogGzName(filename string) (string, string, error)
- func SplitLogGzPath(filepath string) (string, string, string, error)
- func StringSliceHas(s []string, a string) bool
- func StringWithMillisToInt64(dateString string) int64
- func SubDays(date1, date2 string) (bool, int)
- func SubDaysWithHyphen(date1, date2 string) (bool, int)
- func SubDaysWithTemplate(date1, date2 string, template string) (bool, int)
- func TimeIn64ToString(input int64) string
- func TimeIn64ToStringCsvCompatible(input int64) string
- func TimeIn64ToStringFor91160(input int64) string
- func TimePath(t time.Time) (string, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var LOC, _ = time.LoadLocation("Asia/Shanghai")
View Source
var StantardTimeFormat = "2006-01-02 15:04:05"
Functions ¶
func ComputeDates ¶
func ComputeDatesWithTemplate ¶
timeTemplate可以自己指定//timeTemplate := "2006-01-02"
func DateStringToInt64 ¶
func DingdingLinkAlert ¶
func DingdingMarkdownAlert ¶
func DingdingTextAlert ¶
func ExecShellCommon ¶
func ExecShellProcessed ¶
func FormatStandardTime ¶
func GetDatePlusWithHyphen ¶
根据传入的日期,选择+3天
func GetDeploymentVersion ¶
func GetIpFromCipCc ¶
func GetIpSlice ¶
func GetPrivateIp ¶
func GetPrivateIp() string
func HyphenVersion ¶
func IpPort2Hex ¶
IP端口192.168.1.192:5044转化为10进制数字211827816469428,方便做排序
func K8sDeleteDeployment ¶
func MinuteStringToInt64 ¶
func RandString ¶
func RandomPhoneNumber ¶
func RandomPhoneNumber() int64
func ReadYamlConfig ¶
func StringSliceHas ¶
func SubDaysWithHyphen ¶
func SubDaysWithTemplate ¶
func TimeIn64ToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.