schedules

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create_pkg_refresh_job

func Create_pkg_refresh_job(sessionkey *auth.SumaSessionKey, serverid int, servername string) error

func Write_Tracking_file

func Write_Tracking_file(sessionKey *auth.SumaSessionKey, filename string, jobstatus Jobstatus) error

Types

type Full_Update_Jobs

type Full_Update_Jobs struct {
	Full_Update_Job_ID []int
	List_Systems       []string
}

type Job

type Job struct {
	Hostname   string `json:"hostname,omitempty"`
	ServerID   int    `json:"serverid,omitempty"`
	JobID      int    `json:"jobid,omitempty"`
	Masterplan string `json:"masterplan,omitempty"`
}

type Jobs_Patching

type Jobs_Patching struct {
	Patching             []interface{} `json:"Patching"`
	Reboot               []interface{} `json:"reboot_jobs"`
	JobcheckerEmails     []string      `json:"jobchecker_emails,omitempty"`
	JobcheckerTimeout    int           `json:"jobchecker_timeout,omitempty"`
	JobstartDelay        int           `json:"jobstart_delay,omitempty"`
	Offline_minions      []string      `json:"offline_minions,omitempty"`
	Disqualified_minions []string      `json:"btrfs_disqualified,omitempty"`
	T7user               string        `json:"t7user,omitempty"`
	Post_patching_file   string        `json:"post_patching_file,omitempty"`
	No_patch_execptions  []string      `json:"no_patch_execptions,omitempty"`
	Patch_level          string        `json:"patch_level,omitempty"`
	Post_patching        string        `json:"post_patching,omitempty"`
	Prep_patching        string        `json:"prep_patching,omitempty"`
	Full_Update_Job_ID   []interface{} `json:"Full_Update_Job_ID,omitempty"`
}

type Jobstatus

type Jobstatus struct {
	Pending              []Job    `json:"pending,omitempty"`
	Completed            []Job    `json:"completed,omitempty"`
	Failed               []Job    `json:"failee,omitempty"`
	Cancelled            []Job    `json:"cancelled,omitempty"`
	JobcheckerEmails     []string `json:"jobcheckeremails,omitempty"`
	JobcheckerTimeout    int      `json:"jobcheckerr timeout,omitempty"`
	JobstartDelay        int      `json:"job start delay,omitempty"`
	Offline_minions      []string `json:"offline minions,omitempty"`
	Disqualified_minions []string `json:"btrfs disqualified,omitempty"`
	No_patch_execptions  []string `json:"no_patch exceptions,omitempty"`
	T7user               string   `json:"t7user,omitempty"`
	JobStartTime         string   `json:"job start time,omitempty"`
	YamlFileName         string   `json:"completed yaml file,omitempty"`
	YamlFileName_Pending string   `json:"pending yaml file,omitempty"`
	YamlFileName_Failed  string   `json:"failed yaml file,omitempty"`
	YamlFileName_Full    string   `json:"full list yaml file,omitempty"`
	Reboot_List          string   `json:"reboot list,omitempty"`
	Reboot_SLS           string   `json:"reboot sls,omitempty"`
	Reboot_Command       string   `json:"reboot command,omitempty"`
	Post_patching_file   string   `json:"post patching file,omitempty"`
	Patch_level          string   `json:"patch level,omitempty"`
	Post_patching        string   `json:"post patch sls,omitempty"`
	Prep_patching        string   `json:"prep patch sls,omitempty"`
	JobType              string   `json:"job type,omitempty"`
}

func (*Jobstatus) Check_Package_Updates_Jobs

func (t *Jobstatus) Check_Package_Updates_Jobs(sessionkey *auth.SumaSessionKey, scheduled_jobs_by_minions []Job, jobid_pkg_update int, deadline time.Time)

func (*Jobstatus) Compare

func (j *Jobstatus) Compare(Sessionkey *auth.SumaSessionKey, scheduled_jobs []Job)

type ListCompletedJobs

type ListCompletedJobs struct {
	Result []struct {
		Scheduler         string
		Name              string
		CompletedSystems  int
		FailedSystems     int
		InProgressSystems int
		Id                int
		Type              string
		Earliest          time.Time
	}
}

type ListFailedJobs

type ListFailedJobs struct {
	Result []struct {
		Scheduler         string
		Name              string
		CompletedSystems  int
		FailedSystems     int
		InProgressSystems int
		Id                int
		Type              string
		Earliest          time.Time
	}
}

type ListJobs

type ListJobs struct {
	Completed          ListCompletedJobs
	Failed             ListFailedJobs
	Pending            ListPendingJobs
	Found_Pending_Jobs bool
}

func (*ListJobs) GetCompletedJobs

func (l *ListJobs) GetCompletedJobs(Sessionkey *auth.SumaSessionKey) error

func (*ListJobs) GetFailedJobs

func (l *ListJobs) GetFailedJobs(Sessionkey *auth.SumaSessionKey) error

func (*ListJobs) GetPendingjobs

func (l *ListJobs) GetPendingjobs(Sessionkey *auth.SumaSessionKey) error

type ListPendingJobs

type ListPendingJobs struct {
	Result []struct {
		Scheduler         string
		Name              string
		CompletedSystems  int
		FailedSystems     int
		InProgressSystems int
		Id                int
		Type              string
		Earliest          time.Time
	}
}

type ListSystemInJobs

type ListSystemInJobs struct {
	ListInProgressSystems ListSystemInJobs_Response
	ListFailedSystems     ListSystemInJobs_Response
	ListCompletedSystems  ListSystemInJobs_Response
}

func (*ListSystemInJobs) List_Completed_Systems

func (c *ListSystemInJobs) List_Completed_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)

func (*ListSystemInJobs) List_Failed_Systems

func (c *ListSystemInJobs) List_Failed_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)

func (*ListSystemInJobs) List_InProgress_Systems

func (c *ListSystemInJobs) List_InProgress_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)

type ListSystemInJobs_Request

type ListSystemInJobs_Request struct {
	Sessionkey string `xmlrpc:"sessionKey"`
	ActionId   int    `xmlrpc:"actionId"`
}

type ListSystemInJobs_Response

type ListSystemInJobs_Response struct {
	Result []struct {
		Server_name  string
		Base_channel string
		Server_id    int
		Timestamp    time.Time
		Message      string
	}
}

type Schedule_Pkg_Refresh_Request

type Schedule_Pkg_Refresh_Request struct {
	Sessionkey         string    `xmlrpc:"sessionKey"`
	Sid                int       `xmlrpc:"sid"`
	EarliestOccurrence time.Time `xmlrpc:"earliestOccurrence"`
}

type Schedule_Pkg_Refresh_Response

type Schedule_Pkg_Refresh_Response struct {
	JobID int `xmlrpc:"id"`
}

type ScheduledJobs

type ScheduledJobs struct {
	AllJobs          []Job
	JobType          string
	Full_Update_Jobs Full_Update_Jobs
}

Jump to

Keyboard shortcuts

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