model

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddGroupRequest

type AddGroupRequest struct {
	Name   string `json:"name"`
	Remark string `json:"remark"`
}

type ClientDetails

type ClientDetails struct {
	Ip    string `json:"ip"`
	Path  string `json:"path"`
	Group string `json:"group"`
}

type ClientsRequest

type ClientsRequest struct {
	Group string `json:"group"`
}

type ExecuteHistorySnapshotDeleteRequest

type ExecuteHistorySnapshotDeleteRequest struct {
	Id int64 `json:"id"`
}

type ExecuteHistorySnapshotsRequest

type ExecuteHistorySnapshotsRequest struct {
	JobId             string `json:"job_id"`
	SnapshotId        string `json:"snapshot_id"`
	JobName           string `json:"job_name"`
	Group             string `json:"group"`
	Ip                string `json:"ip"`
	State             int32  `json:"state"`
	ScheduleStartTime string `json:"schedule_start_time"`
	ScheduleEndTime   string `json:"schedule_end_time"`
	PageNo            int32  `json:"page_no"`
	PageSize          int32  `json:"page_size"`
}

type ExecuteSnapshotDetails

type ExecuteSnapshotDetails struct {
	Id           string `json:"id"`
	JobId        string `json:"job_id"`
	Name         string `json:"name"`
	Group        string `json:"group"`
	Cron         string `json:"cron"`
	Target       string `json:"target"`
	Ip           string `json:"ip"`
	Param        string `json:"param"`
	State        int32  `json:"state"`
	BeforeTime   string `json:"before_time"`
	ScheduleTime string `json:"schedule_time"`
	StartTime    string `json:"start_time"`
	EndTime      string `json:"end_time"`
	Times        int64  `json:"times"`
	Mobile       string `json:"mobile"`
	Version      int32  `json:"version"`
	Remark       string `json:"remark"`
}

func (*ExecuteSnapshotDetails) Decode

type ExecuteSnapshotHisDetails

type ExecuteSnapshotHisDetails struct {
	Id           int64  `json:"id"`
	SnapshotId   string `json:"snapshot_id"`
	JobId        string `json:"job_id"`
	JobName      string `json:"job_name"`
	Group        string `json:"group"`
	Cron         string `json:"cron"`
	Target       string `json:"target"`
	Ip           string `json:"ip"`
	Param        string `json:"param"`
	State        int32  `json:"state"`
	BeforeTime   string `json:"before_time"`
	ScheduleTime string `json:"schedule_time"`
	StartTime    string `json:"start_time"`
	EndTime      string `json:"end_time"`
	Times        int64  `json:"times"`
	Mobile       string `json:"mobile"`
	Remark       string `json:"remark"`
}

type ExecuteSnapshotsRequest

type ExecuteSnapshotsRequest struct {
	Id        string `json:"id"`
	JobId     string `json:"job_id"`
	Group     string `json:"group"`
	Ip        string `json:"ip"`
	State     string `json:"state"`
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
}

type GroupDetails

type GroupDetails struct {
	Name    string   `json:"name"`
	Remark  string   `json:"remark"`
	Clients []string `json:"clients"`
}

func (*GroupDetails) Decode

func (g *GroupDetails) Decode(content string) *GroupDetails

func (*GroupDetails) Encode

func (g *GroupDetails) Encode() string

type JobConfAddRequest

type JobConfAddRequest struct {
	Name   string `json:"name"`
	Group  string `json:"group"`
	Cron   string `json:"cron"`
	Target string `json:"target"`
	Param  string `json:"param"`
	State  int32  `json:"state"`
	Mobile string `json:"mobile"`
	Remark string `json:"remark"`
}

type JobConfDeleteRequest

type JobConfDeleteRequest struct {
	Id    string `json:"id"`
	Group string `json:"group"`
}

type JobConfDetails

type JobConfDetails struct {
	Id         string `json:"id"`
	Name       string `json:"name"`
	Group      string `json:"group"`
	Cron       string `json:"cron"`
	Target     string `json:"target"`
	Param      string `json:"param"`
	State      int32  `json:"state"`
	Mobile     string `json:"mobile"`
	Remark     string `json:"remark"`
	CreateTime string `json:"create_time"`
	UpdateTime string `json:"update_time"`
	Version    int64  `json:"version"`
}

func (*JobConfDetails) Decode

func (d *JobConfDetails) Decode(content string) *JobConfDetails

func (*JobConfDetails) Encode

func (d *JobConfDetails) Encode() string

type JobConfListRequest

type JobConfListRequest struct {
	Group string `json:"group"`
}

type JobConfUpdateRequest

type JobConfUpdateRequest struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Group  string `json:"group"`
	Cron   string `json:"cron"`
	Target string `json:"target"`
	Param  string `json:"param"`
	State  int32  `json:"state"`
	Mobile string `json:"mobile"`
	Remark string `json:"remark"`
}

type JobExecuteRequest

type JobExecuteRequest struct {
	Group string `json:"group"`
	Id    string `json:"id"`
}

type NodeDetails

type NodeDetails struct {
	Id    string `json:"id"`
	State int32  `json:"state"`
}

type Result

type Result struct {
	Code    int32       `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type SchedulePlanDetails

type SchedulePlanDetails struct {
	Id         string `json:"id"`
	Name       string `json:"name"`
	Group      string `json:"group"`
	Cron       string `json:"cron"`
	Target     string `json:"target"`
	Param      string `json:"param"`
	BeforeTime string `json:"before_time"`
	NextTime   string `json:"next_time"`
	Mobile     string `json:"mobile"`
	Remark     string `json:"remark"`
}

调度计划详情

type ScheduleSnapshotDeleteRequest

type ScheduleSnapshotDeleteRequest struct {
	Id string `json:"id"`
}

type ScheduleSnapshotDetails

type ScheduleSnapshotDetails struct {
	Id           string `json:"id"`
	JobId        string `json:"job_id"`
	Name         string `json:"name"`
	Group        string `json:"group"`
	Cron         string `json:"cron"`
	Target       string `json:"target"`
	Param        string `json:"param"`
	BeforeTime   string `json:"before_time"`
	ScheduleTime string `json:"schedule_time"`
	Mobile       string `json:"mobile"`
	Version      int32  `json:"version"`
	Remark       string `json:"remark"`
}

func (*ScheduleSnapshotDetails) Decode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL