Documentation ¶
Index ¶
- func AddJob(spec string, job *Job) bool
- func ConnectByRsa(user string, host string, port int) (*ssh.Session, *ssh.Client, error)
- func ConnectByUser(user, password, host string, port int) (*ssh.Session, *ssh.Client, error)
- func ConvertToString(src string, srcCode string, tagCode string) string
- func GetEntries(size int) []*cron.Entry
- func GetEntryById(id int) *cron.Entry
- func Init()
- func IsWin() bool
- func RemoveJob(id int)
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectByRsa ¶
func ConnectByUser ¶
func GetEntries ¶
func GetEntryById ¶
Types ¶
type Job ¶
type Job struct { Concurrent bool // 同一个任务是否允许并行执行 // contains filtered or unexported fields }
func NewCommandJob ¶
Click to show internal directories.
Click to hide internal directories.