delete_systems

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete_System

func Delete_System(Sessionkey *auth.SumaSessionKey, deletesystemdata *DeleteSystemRequest, emails_to []string) error

func Handle_Xmlrpc_Error

func Handle_Xmlrpc_Error(message []byte)

Types

type Array

type Array struct {
	Data Data `xml:"data"`
}

type CustomTime

type CustomTime struct {
	time.Time
}

func (*CustomTime) UnmarshalXML

func (c *CustomTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Data

type Data struct {
	Values []Struct `xml:"value>struct"`
}

type DeleteSystemRequest

type DeleteSystemRequest struct {
	MinionName string `json:"minion_name"`
	Token      string `json:"authentication_token"`
}

type Delete_System_Request

type Delete_System_Request struct {
	Sessionkey string `xmlrpc:"sessionKey"`
	System_ID  int    `xmlrpc:"sid"`
	Type       string `xmlrpc:"cleanupType"`
}

type Delete_System_Return

type Delete_System_Return struct {
	Result_ID *int `xml:"params>param>value>i4,omitempty"`
}

type ErrorData

type ErrorData struct {
	Error_Struct Struct `xml:"struct"`
}

type Error_Fault

type Error_Fault struct {
	Error_Data ErrorData `xml:"value,omitempty"`
}

type Error_xmlrpc

type Error_xmlrpc struct {
	Fault Error_Fault `xml:"fault"`
}

type Get_System_Request

type Get_System_Request struct {
	Sessionkey  string `xmlrpc:"sessionKey"`
	System_Name string `xmlrpc:"name"`
}

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 ListSystemInfo

type ListSystemInfo struct {
	Result []struct {
		Name               string
		Id                 int
		Last_Checkin       time.Time
		Outdated_Pkg_Count int
	}
}

type Member

type Member struct {
	Name  string     `xml:"name"`
	Value InnerValue `xml:"value"`
}

type MethodResponse

type MethodResponse struct {
	Params Params `xml:"params"`
}

type Param

type Param struct {
	Value Value `xml:"value"`
}

type Params

type Params struct {
	Param Param `xml:"param"`
}

type Struct

type Struct struct {
	Members []Member `xml:"member"`
}

func (Struct) GetMemberValue

func (s Struct) GetMemberValue(name string) interface{}

type Value

type Value struct {
	Array Array `xml:"array"`
}

Jump to

Keyboard shortcuts

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