Documentation ¶
Index ¶
- func Add_Note(sessionkey *auth.SumaSessionKey, sid int, subject string, note string) error
- func Assign_Channels(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB, ...)
- func CPU_Load() int
- func Check_Jobs(ctx context.Context, groupsdata *Update_Groups, ...)
- func Check_System_In_Jobs(sessionkey *auth.SumaSessionKey, jobid_pkg_update int, minion Minion_Data, ...) (string, error)
- func Contains(elems []string, v string) bool
- func Convert_String_IntSlices(mystring string) []int
- func Convert_String_to_maps(mystring string) map[string]string
- func Convert_to_ISO8601_DateTime(date time.Time) string
- func Delete_Notes(sessionkey *auth.SumaSessionKey, sid int) error
- func Find_MigrationTarget_New(sessionkey *auth.SumaSessionKey, minionid int, UserData *Update_Groups) (ident string, migrate_base_channel string)
- func Find_Next_Stage(wf []Workflow_Step, minion Minion_Data) string
- func Get_Clm_Data(sessionkey *auth.SumaSessionKey, UserData *Update_Groups, db *gorm.DB)
- func Get_Minions(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB) error
- func Get_SID(sessionkey *auth.SumaSessionKey, system_name string) int
- func Get_salt_online_Minions_in_Group_New(sessionkey *auth.SumaSessionKey, minion_list []string, ...) []string
- func ListMigrationTarget(sessionkey *auth.SumaSessionKey, UserData *Update_Groups, db *gorm.DB, ...)
- func List_Project_Environments(sessionkey *auth.SumaSessionKey, db *gorm.DB, proj_label string)
- func Match_Job(sessionkey *auth.SumaSessionKey, minion Minion_Data, groupsdata *Update_Groups) (string, error)
- func Match_Project_Environment_Label(all_projects []ContentLifecycleManagement, channel_label string) (project_label, longest_env_label, original_channel_label string)
- func Parse_Product_info(inputString string)
- func Post_Migration(db *gorm.DB, groupsdata *Update_Groups, wf []Workflow_Step, ...)
- func Post_Migration_Debug(db *gorm.DB, groupsdata *Update_Groups, minion_list []Minion_Data, ...)
- func Reboot(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, ...)
- func Reboot_Triage(sessionkey *auth.SumaSessionKey, jobid int, minion_id int, minion_name string, ...)
- func Refresh_Packages(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, ...)
- func SPMigration(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, ...)
- func Salt_CSV_Report(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups)
- func Salt_Disk_Space_Check_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
- func Salt_Disk_Space_Check_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, ...)
- func Salt_No_Upgrade_Exception_Check_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
- func Salt_No_Upgrade_Exception_Check_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, ...)
- func Salt_Refresh_Grains_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
- func Salt_Refresh_Grains_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, ...)
- func Salt_Run_Post_State(groupsdata *Update_Groups, post_minion_list []string)
- func Salt_Run_state_apply(groupsdata *Update_Groups, stage string, db *gorm.DB)
- func Salt_Run_state_apply_by_List(groupsdata *Update_Groups, minion_list []Minion_Data, stage string, ...)
- func Salt_Set_Patch_Level(groupsdata *Update_Groups, minion_list []string, stage string, db *gorm.DB)
- func SchedulePackageUpdates(sessionkey *auth.SumaSessionKey, minion_id_list []int) int
- func Send_Email(ctx context.Context, groupsdata *Update_Groups, ...)
- func SetLogger(l *logrus.Logger)
- func Start_Workflow(ctx context.Context, sessionkey *auth.SumaSessionKey, ...)
- func Update_packages(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, ...)
- func Waiting_Stage(db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
- type Add_Note_Request
- type All_Minions_In_Group
- type Array
- type Array_ActiveSystems_in_Group
- type Assigne_Channel
- type Assigne_Channels_Job
- type Change_Channels_Request
- type ContentLifecycleManagement
- type ContentSource
- type CustomTime
- type Data
- type Data_ActiveSystems_in_Group
- type Delete_Notes_Request
- type Generic_Job_Response
- type GetId_Request
- type GetId_Response
- type Get_Channels_Request
- type Get_Channels_Response
- type Get_System_by_Group_Request
- type Get_Upgradable_Packages_Request
- type Get_Upgradable_Packages_Response
- type Group
- type Host_Job_Info
- type InnerValue
- type Job_Chain
- type Job_Data
- type Jobchecker_Email
- type ListAllChannels_Request
- type ListAllChannels_Response
- type ListMigrationTarget_Request
- type ListMigrationTarget_Response
- type ListSystemEvents_Request
- type ListSystemEvents_Response
- type ListSystemInJobs
- func (c *ListSystemInJobs) List_Completed_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)
- func (c *ListSystemInJobs) List_Failed_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)
- func (c *ListSystemInJobs) List_InProgress_Systems(sessionkey *auth.SumaSessionKey, jobid_pkg_update int)
- type ListSystemInJobs_Request
- type ListSystemInJobs_Response
- type List_Project_Environments_Request
- type List_Project_Environments_Response
- type List_Projects_Request
- type List_Projects_Response
- type Member
- type MethodResponse
- type MethodResponse_ActiveSystems_in_Group
- type Minion_Data
- type OptionalChannel
- type OptionalChannels
- type Param
- type Param_ActiveSystems_in_Group
- type Params
- type Params_ActiveSystems_in_Group
- type Pkg_Refresh_Job
- type Reboot_Post_MigrationJob
- type Reboot_Pre_MigrationJob
- type SP_Migration_DryRun_Job
- type SP_Migration_Job
- type SchedulePackageUpdates_Request
- type SchedulePackageUpdates_Response
- type ScheduleSPMigrationDryRun_Request
- type ScheduleSPMigrationDryRun_Response
- type Schedule_Pkg_Refresh_Request
- type Schedule_Pkg_Refresh_Response
- type Schedule_Reboot_Request
- type Schedule_Reboot_Response
- type Struct
- type Target_Product
- type Update_Groups
- type Update_Pkg_Job
- type Value
- type Value_ActiveSystems_in_Group
- type Workflow_Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign_Channels ¶
func Assign_Channels(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func Check_Jobs ¶
func Check_Jobs(ctx context.Context, groupsdata *Update_Groups, sessionkey *auth.SumaSessionKey, health *bool, db *gorm.DB, deadline *time.Time)
func Check_System_In_Jobs ¶
func Check_System_In_Jobs(sessionkey *auth.SumaSessionKey, jobid_pkg_update int, minion Minion_Data, groupsdata *Update_Groups) (string, error)
func Convert_String_to_maps ¶
func Delete_Notes ¶
func Delete_Notes(sessionkey *auth.SumaSessionKey, sid int) error
func Find_MigrationTarget_New ¶
func Find_MigrationTarget_New(sessionkey *auth.SumaSessionKey, minionid int, UserData *Update_Groups) (ident string, migrate_base_channel string)
This func is for finding the migration target for each minion at the beginning of the migration process. If no proper migration target is found the minion will be excluded from further processing.
func Find_Next_Stage ¶
func Find_Next_Stage(wf []Workflow_Step, minion Minion_Data) string
func Get_Clm_Data ¶
func Get_Clm_Data(sessionkey *auth.SumaSessionKey, UserData *Update_Groups, db *gorm.DB)
func Get_Minions ¶
func Get_Minions(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB) error
func Get_salt_online_Minions_in_Group_New ¶
func Get_salt_online_Minions_in_Group_New(sessionkey *auth.SumaSessionKey, minion_list []string, groupsdata *Update_Groups) []string
func ListMigrationTarget ¶
func ListMigrationTarget(sessionkey *auth.SumaSessionKey, UserData *Update_Groups, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func List_Project_Environments ¶
func List_Project_Environments(sessionkey *auth.SumaSessionKey, db *gorm.DB, proj_label string)
func Match_Job ¶
func Match_Job(sessionkey *auth.SumaSessionKey, minion Minion_Data, groupsdata *Update_Groups) (string, error)
func Match_Project_Environment_Label ¶
func Match_Project_Environment_Label(all_projects []ContentLifecycleManagement, channel_label string) (project_label, longest_env_label, original_channel_label string)
func Parse_Product_info ¶
func Parse_Product_info(inputString string)
func Post_Migration ¶
func Post_Migration(db *gorm.DB, groupsdata *Update_Groups, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func Post_Migration_Debug ¶
func Post_Migration_Debug(db *gorm.DB, groupsdata *Update_Groups, minion_list []Minion_Data, stage string)
func Reboot ¶
func Reboot(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func Reboot_Triage ¶ added in v0.1.54
func Reboot_Triage(sessionkey *auth.SumaSessionKey, jobid int, minion_id int, minion_name string, groupsdata *Update_Groups)
func Refresh_Packages ¶
func Refresh_Packages(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func SPMigration ¶
func SPMigration(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string, dryrun bool)
func Salt_CSV_Report ¶
func Salt_CSV_Report(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups)
func Salt_Disk_Space_Check_New ¶
func Salt_Disk_Space_Check_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
func Salt_Disk_Space_Check_New_by_List ¶
func Salt_Disk_Space_Check_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, minion_list []Minion_Data, db *gorm.DB)
func Salt_No_Upgrade_Exception_Check_New ¶
func Salt_No_Upgrade_Exception_Check_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
func Salt_No_Upgrade_Exception_Check_New_by_List ¶
func Salt_No_Upgrade_Exception_Check_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, minion_list []Minion_Data, db *gorm.DB)
func Salt_Refresh_Grains_New ¶
func Salt_Refresh_Grains_New(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB)
func Salt_Refresh_Grains_New_by_List ¶
func Salt_Refresh_Grains_New_by_List(sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, minion_list []Minion_Data, db *gorm.DB)
func Salt_Run_Post_State ¶
func Salt_Run_Post_State(groupsdata *Update_Groups, post_minion_list []string)
func Salt_Run_state_apply ¶
func Salt_Run_state_apply(groupsdata *Update_Groups, stage string, db *gorm.DB)
func Salt_Run_state_apply_by_List ¶
func Salt_Run_state_apply_by_List(groupsdata *Update_Groups, minion_list []Minion_Data, stage string, db *gorm.DB)
func Salt_Set_Patch_Level ¶
func Salt_Set_Patch_Level(groupsdata *Update_Groups, minion_list []string, stage string, db *gorm.DB)
func SchedulePackageUpdates ¶
func SchedulePackageUpdates(sessionkey *auth.SumaSessionKey, minion_id_list []int) int
func Send_Email ¶
func Send_Email(ctx context.Context, groupsdata *Update_Groups, email_template_dir *email.Templates_Dir, db *gorm.DB, health *bool, deadline *time.Time)
func Start_Workflow ¶
func Start_Workflow(ctx context.Context, sessionkey *auth.SumaSessionKey, groupsdata *Update_Groups, db *gorm.DB, health *bool, deadline *time.Time)
func Update_packages ¶
func Update_packages(sessionkey *auth.SumaSessionKey, db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
func Waiting_Stage ¶
func Waiting_Stage(db *gorm.DB, wf []Workflow_Step, minion_list []Minion_Data, stage string)
Types ¶
type Add_Note_Request ¶
type All_Minions_In_Group ¶
type Array_ActiveSystems_in_Group ¶
type Array_ActiveSystems_in_Group struct {
Data Data_ActiveSystems_in_Group `xml:"data"`
}
type Assigne_Channel ¶
type Assigne_Channels_Job ¶
type Change_Channels_Request ¶
type ContentSource ¶
type CustomTime ¶
func (*CustomTime) UnmarshalXML ¶
func (c *CustomTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
type Data_ActiveSystems_in_Group ¶
type Data_ActiveSystems_in_Group struct {
Values []int `xml:"value>i4"`
}
type Delete_Notes_Request ¶
type Generic_Job_Response ¶
type Generic_Job_Response struct {
JobID int `xmlrpc:"id"`
}
type GetId_Request ¶
type GetId_Response ¶
type GetId_Response struct { Result []struct { Id int `xmlrpc:"id"` Name string `xmlrpc:"name"` Last_checkin time.Time `xmlrpc:"last_checkin"` Created time.Time `xmlrpc:"created"` Last_boot time.Time `xmlrpc:"last_boot"` Extra_pkg_count int `xmlrpc:"extra_pkg_count"` Outdated_pkg_count int `xmlrpc:"outdated_pkg_count"` } `xmlrpc:"result"` }
type Get_Channels_Request ¶
type Get_Channels_Response ¶
type Get_Channels_Response struct { Result []struct { Id int `xmlrpc:"id,omitempty"` Name string `xmlrpc:"name,omitempty"` Label string `xmlrpc:"label,omitempty"` Arch_name string `xmlrpc:"arch_name,omitempty"` Arch_label string `xmlrpc:"arch_label,omitempty"` Summary string `xmlrpc:"summary,omitempty"` Description string `xmlrpc:"description,omitempty"` Checksum_label string `xmlrpc:"checksum_label,omitempty"` Last_modified time.Time `xmlrpc:"last_modified,omitempty"` Maintainer_name string `xmlrpc:"maintainer_name,omitempty"` Maintainer_email string `xmlrpc:"maintainer_email,omitempty"` Maintainer_phone string `xmlrpc:"maintainer_phone,omitempty"` Support_policy string `xmlrpc:"support_policy,omitempty"` Gpg_key_url string `xmlrpc:"gpg_key_url,omitempty"` Gpg_key_id string `xmlrpc:"gpg_key_id,omitempty"` Gpg_key_fp string `xmlrpc:"gpg_key_fp,omitempty"` Yumrepo_last_sync time.Time `xmlrpc:"yumrepo_last_sync,omitempty"` End_of_life string `xmlrpc:"end_of_life,omitempty"` Parent_channel_label string `xmlrpc:"parent_channel_label,omitempty"` Clone_original string `xmlrpc:"clone_original,omitempty"` ContentSources []ContentSource `xmlrpc:"contentSources,omitempty"` } }
type Get_Upgradable_Packages_Response ¶
type Get_Upgradable_Packages_Response struct { Result []struct { Name string `xmlrpc:"name,omitempty"` From_release string `xmlrpc:"from_release,omitempty"` To_epoch string `xmlrpc:"to_epoch,omitempty"` Arch string `xmlrpc:"arch,omitempty"` To_package_id int `xmlrpc:"to_package_id,omitempty"` From_version string `xmlrpc:"from_version,omitempty"` To_version string `xmlrpc:"to_version,omitempty"` From_arch string `xmlrpc:"from_arch,omitempty"` To_arch string `xmlrpc:"to_arch,omitempty"` From_epoch string `xmlrpc:"from_epoch,omitempty"` To_release string `xmlrpc:"to_release,omitempty"` } }
type Group ¶
type Group struct { gorm.Model Group_Name string `json:"group_name" gorm:"primaryKey"` T7User string `json:"t7user"` Ctx_ID string `json:"context_id"` Email []Jobchecker_Email `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL"` }
DB columns: ID, Group_Name, T7User, Email
type Host_Job_Info ¶
type Host_Job_Info struct { Assigne_Channels_Job Assigne_Channels_Job `json:"Assigne_Channels_Job"` Pkg_Refresh_Job Pkg_Refresh_Job `json:"Pkg_Refresh_Job"` Update_Pkg_Job Update_Pkg_Job `json:"Update_Pkg_Job"` Reboot_Pre_MigrationJob Reboot_Pre_MigrationJob `json:"Reboot_Pre_MigrationJob"` SP_Migration_DryRun_Job SP_Migration_DryRun_Job `json:"SP_Migration_DryRun_Job"` SP_Migration_Job SP_Migration_Job `json:"SP_Migration_Job"` Reboot_Post_MigrationJob Reboot_Post_MigrationJob `json:"Reboot_Post_MigrationJob"` Channel_Environment string `json:"Channel_Environment"` }
type InnerValue ¶
type InnerValue struct { StringValue *string `xml:"string,omitempty"` IntegerValue *int `xml:"i4,omitempty"` Int *int `xml:"int,omitempty"` DateTimeValue *CustomTime `xml:"dateTime.iso8601,omitempty"` BooleanValue *bool `xml:"bool,omitempty"` }
func (InnerValue) GetFieldValue ¶
func (v InnerValue) GetFieldValue() interface{}
type Job_Chain ¶
type Job_Chain struct {
SP_Migration_Hosts []Host_Job_Info
}
type Jobchecker_Email ¶
type Jobchecker_Email struct { gorm.Model Email string `json:"email"` GroupID uint `json:"group_id"` }
DB columns: ID, Email, GroupID
type ListAllChannels_Request ¶
type ListAllChannels_Request struct {
Sessionkey string `xmlrpc:"sessionKey"`
}
type ListAllChannels_Response ¶
type ListAllChannels_Response struct { Result []struct { Id int `xmlrpc:"id,omitempty"` Name string `xmlrpc:"name,omitempty"` Label string `xmlrpc:"label,omitempty"` Arch_name string `xmlrpc:"arch_name,omitempty"` Provider_name string `xmlrpc:"provider_name,omitempty"` Packages int `xmlrpc:"packages,omitempty"` Systems int `xmlrpc:"systems,omitempty"` } }
func List_All_Channels ¶
func List_All_Channels(sessionkey *auth.SumaSessionKey) *ListAllChannels_Response
type ListSystemEvents_Request ¶ added in v0.1.54
type ListSystemEvents_Response ¶ added in v0.1.54
type ListSystemEvents_Response struct { Result []struct { Failed_count int `xmlrpc:"failed_count,omitempty"` Modified_date time.Time `xmlrpc:"modified_date,omitempty"` Action_type string `xmlrpc:"action_type,omitempty"` Created_date time.Time `xmlrpc:"created_date,omitempty"` Successful_count int `xmlrpc:"successful_count,omitempty"` Earliest_action string `xmlrpc:"earliest_action,omitempty"` Archived int `xmlrpc:"archived,omitempty"` Scheduler_user string `xmlrpc:"scheduler_user,omitempty"` Name string `xmlrpc:"name,omitempty"` Id int `xmlrpc:"id,omitempty"` Version string `xmlrpc:"version,omitempty"` Completed_date time.Time `xmlrpc:"completed_date,omitempty"` Pickup_date time.Time `xmlrpc:"pickup_date,omitempty"` Result_msg string `xmlrpc:"result_msg,omitempty"` } }
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_Response ¶
type ListSystemInJobs_Response struct { Result []struct { Server_name string Base_channel string Server_id int Timestamp time.Time Message string } }
func (*ListSystemInJobs_Response) Get_Systems_In_Jobs ¶ added in v0.1.55
func (s *ListSystemInJobs_Response) Get_Systems_In_Jobs() (Systems []string)
type List_Project_Environments_Response ¶
type List_Project_Environments_Response struct { Result []struct { Id int `xmlrpc:"id"` Label string `xmlrpc:"label"` Name string `xmlrpc:"name"` Description string `xmlrpc:"description"` Status string `xmlrpc:"status"` LastBuildDate time.Time `xmlrpc:"lastBuildDate"` ContentProjectLabel string `xmlrpc:"contentProjectLabel"` PreviousEnvironmentLabel string `xmlrpc:"previousEnvironmentLabel"` NextEnvironmentLabel string `xmlrpc:"nextEnvironmentLabel"` } }
type List_Projects_Request ¶
type List_Projects_Request struct {
Sessionkey string `xmlrpc:"sessionKey"`
}
type List_Projects_Response ¶
type List_Projects_Response struct { Result []struct { Id int `xmlrpc:"id"` Label string `xmlrpc:"label"` Name string `xmlrpc:"name"` Description string `xmlrpc:"description"` LastBuildDate time.Time `xmlrpc:"lastBuildDate"` OrgId int `xmlrpc:"orgId"` FirstEnvironment string `xmlrpc:"firstEnvironment"` } }
type Member ¶
type Member struct { Name string `xml:"name"` Value InnerValue `xml:"value"` }
type MethodResponse ¶
type MethodResponse struct {
Params Params `xml:"params"`
}
type MethodResponse_ActiveSystems_in_Group ¶
type MethodResponse_ActiveSystems_in_Group struct {
Params Params_ActiveSystems_in_Group `xml:"params"`
}
type Minion_Data ¶
type Minion_Data struct { gorm.Model Minion_ID int `json:"Minion_ID"` Minion_Name string `json:"Minion_Name"` Minion_Status string `json:"Minion_Status"` Minion_Remarks string `json:"Minion_Remarks"` Clm_Stage string `json:"Clm_Stage"` Workflow_Step string `json:"Workflow_Step"` JobID int `json:"JobID"` JobStatus string `json:"JobStatus"` Migration_Stage string `json:"Migration_Stage"` Migration_Stage_Status string `json:"Migration_Stage_Status"` Target_base_channel string `json:"Target_base_channel"` Target_Ident string `json:"Target_Ident"` Target_Optional_Channels []OptionalChannels `json:"Target_Optional_Channels" gorm:"many2many:Minion_Data_OptionalChannels;"` Minion_Groups []Group `json:"Minion_Groups" gorm:"many2many:Minion_Data_Groups;"` }
DB columns: ID, Minion_ID, Minion_Name, Minion_Status, Workflow_Step, JobID, JobStatus, Migration_Stage, Migration_Stage_Status, Target_base_channel, Target_Ident, Target_Optional_Channels, Minion_Groups
func Detect_Online_Minions ¶
func Detect_Online_Minions(sessionkey *auth.SumaSessionKey, list []Minion_Data, groupsdata *Update_Groups) []Minion_Data
func GetAll_Minions_From_DB ¶
func GetAll_Minions_From_DB(db *gorm.DB) ([]Minion_Data, error)
type OptionalChannel ¶
type OptionalChannels ¶
type OptionalChannels struct { gorm.Model Channel_Label string `json:"channel_label" gorm:"primaryKey"` Minion_DataRefer uint `json:"minion_data_refer"` }
DB columns: ID, Channel_Label
type Param_ActiveSystems_in_Group ¶
type Param_ActiveSystems_in_Group struct {
Value Value_ActiveSystems_in_Group `xml:"value"`
}
type Params_ActiveSystems_in_Group ¶
type Params_ActiveSystems_in_Group struct {
Param Param_ActiveSystems_in_Group `xml:"param"`
}
type Pkg_Refresh_Job ¶
type Reboot_Pre_MigrationJob ¶
type SP_Migration_DryRun_Job ¶
type SP_Migration_Job ¶
type SchedulePackageUpdates_Response ¶
type SchedulePackageUpdates_Response struct {
ActionId int
}
type ScheduleSPMigrationDryRun_Request ¶
type ScheduleSPMigrationDryRun_Request struct { Sessionkey string `xmlrpc:"sessionKey"` Sid int `xmlrpc:"sid"` TargetIdent string `xmlrpc:"targetIdent"` BaseChannelLabel string `xmlrpc:"baseChannelLabel"` OptionalChildChannels []string `xmlrpc:"optionalChildChannels"` DryRun bool `xmlrpc:"dryRun"` AllowVendorChange bool `xmlrpc:"allowVendorChange"` RemoveProductsWithNoSuccessorAfterMigration bool `xmlrpc:"removeProductsWithNoSuccessorAfterMigration"` EarliestOccurrence time.Time `xmlrpc:"earliestOccurrence"` }
type ScheduleSPMigrationDryRun_Response ¶
type ScheduleSPMigrationDryRun_Response struct {
JobID int `xmlrpc:"id"`
}
type Schedule_Pkg_Refresh_Response ¶
type Schedule_Pkg_Refresh_Response struct {
JobID int `xmlrpc:"id"`
}
type Schedule_Reboot_Request ¶
type Schedule_Reboot_Response ¶
type Schedule_Reboot_Response struct {
JobID int `xmlrpc:"id"`
}
type Target_Product ¶
type Target_Product struct { Name string `json:"name"` Ident string `json:"ident"` Base_Channel string `json:"base_channel_label"` Clm_Project_Label string `json:"clm_project_label"` OptionalChildChannels []OptionalChannel `json:"optionalChildChannels"` }
type Update_Groups ¶
type Update_Groups struct { gorm.Model Groups []string `json:"groups"` Minions_to_add []string `json:"minions_to_add"` Sqlite_db string `json:"sqlite_db"` Qualifying_only bool `json:"qualifying_only"` //Delay int `json:"delay"` Timeout int `json:"timeout"` GatherJobTimeout int `json:"gather_job_timeout"` Email_Interval int `json:"email_interval"` Logfile string `json:"logfile"` Log_Level string `json:"log_level"` SaltMaster_Address string `json:"salt_master_address"` SaltApi_Port int `json:"salt_api_port"` SaltUser string `json:"salt_user"` SaltPassword string `json:"salt_password"` Salt_diskspace_grains_key string `json:"salt_diskspace_grains_key"` Salt_diskspace_grains_value string `json:"salt_diskspace_grains_value"` Salt_no_upgrade_exception_key string `json:"salt_no_upgrade_exception_key"` Salt_no_upgrade_exception_value string `json:"salt_no_upgrade_exception_value"` Salt_Prep_State string `json:"salt_prep_state"` Salt_Post_State string `json:"salt_post_state"` JobcheckerTimeout int `json:"jobchecker_timeout"` Reboot_Triage_Timer int `json:"reboot_triage_timer"` //Reboot_timeout int `json:"reboot_timeout"` JobcheckerEmails []string `json:"jobchecker_emails"` Patch_Level string `json:"patch_level"` //Include_Spmigration bool `json:"include_spmigration"` T7User string `json:"t7user"` Token string `json:"authentication_token"` Tracking_file_directory string `json:"tracking_file_directory"` Ctx_ID string `json:"context_id"` Workflow []map[string]int `json:"workflow"` Assigne_channels []struct { Assigne_Channel Assigne_Channel `json:"assign_channel"` } `json:"assign_channels"` Target_Products []struct { Product Target_Product `json:"product"` } `json:"products"` }
type Update_Pkg_Job ¶
type Value_ActiveSystems_in_Group ¶
type Value_ActiveSystems_in_Group struct {
Array Array_ActiveSystems_in_Group `xml:"array"`
}
type Workflow_Step ¶
func Get_Workflow_From_DB ¶
func Get_Workflow_From_DB(db *gorm.DB) ([]Workflow_Step, error)
Source Files ¶
- check_jobs.go
- check_system_in_jobs.go
- db.go
- emails_notifications.go
- find_migration_targets.go
- find_next_stage.go
- get_clm.go
- get_goroutine_id.go
- get_members.go
- get_online_minions.go
- list_minions.go
- logger.go
- make_notes.go
- reboot_triage.go
- salt_csv_report.go
- salt_disk_space_check.go
- salt_online_minions.go
- salt_post_state .go
- salt_prep_state.go
- salt_refresh_grains.go
- salt_set_pl.go
- salt_upgrade_exception_check.go
- schedule_assign_channels.go
- schedule_list_migration_targets.go
- schedule_pkg_refresh.go
- schedule_pkg_upgrades.go
- schedule_post_migration.go
- schedule_reboot.go
- schedule_spmigration.go
- schedule_waiting_stage.go
- start.go
- structs.go
- suma_get_sid.go
- write_minion_list.go
Click to show internal directories.
Click to hide internal directories.