Documentation
¶
Index ¶
- type Certificate
- type Certificates
- type Computer
- type Computers
- type CriteriaSearch
- type GLPI
- func (glpi GLPI) GetAllCertificates() (*Certificates, error)
- func (glpi GLPI) GetAllComputers() (*Computers, error)
- func (glpi GLPI) GetCertificate(id int) (*Certificate, error)
- func (glpi GLPI) GetComputer(id int) (*Computer, error)
- func (glpi GLPI) ListSearchOptions(item Item) (map[int]SearchOption, error)
- func (glpi GLPI) Search(item Item, criterias []CriteriaSearch, forcedisplays []interface{}, ...) (interface{}, int, error)
- func (glpi GLPI) SearchComputers(criterias []CriteriaSearch, rangeLimit Range) ([]Computer, int, error)
- func (glpi GLPI) SearchWithName(itemName string, item Item, criterias []CriteriaSearch, ...) (interface{}, int, error)
- type Item
- type Items
- type Link
- type Links
- type Range
- type SearchOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶ added in v0.0.2
type Certificate struct {
Id int `json:"ID"`
Name string
Otherserial string
Entities_id int
Is_recursive int
Comment string
Is_deleted int
Is_demplate int
Template_name string
Certificatetypes_Id int
DnsName string
Dns_suffix string
Users_id_tech int
Groups_id_tech int
Locations_id int
Manufacturers_id int
Contact string
Contact_num string
Users_id int
Is_autosign int
Date_expiration string // not format standard json
States_id int
Command string
Certificate_request string
Certificate_item string
Date_creation string
Date_mod string
}
type Computer ¶
type Computer struct {
Id int `json:"2"`
Entities_id int
Entities string `json:"80"`
Name string `json:"1"`
Serial string
Otherserial string
Contact string
Contact_num string //
Users_id_tech int
Groups_id_tech int
Comment string
Date_mod string // Beware full date had not a good format
Autoupdatesystems_id int
Locations_id int
Networks_id int
Computermodels_id int
Computertypes_id int
Is_template int
Template_name string //
Manufacturers_id int
Is_deleted int
Is_dynamic int
Users_id int
Groups_id int
States_id int
Ticket_tco string
Uuid string
Date_creation string // Beware full date had not a good format
Links Links
}
type CriteriaSearch ¶
CriteriaSearch:
type GLPI ¶
type GLPI struct {
Session_token string
// contains filtered or unexported fields
}
GLPI struct
func (GLPI) GetAllCertificates ¶ added in v0.0.2
func (glpi GLPI) GetAllCertificates() (*Certificates, error)
GetCertificate: Get all Certificate
func (GLPI) GetAllComputers ¶
GetAllComputers: Get all computers Beacare full Entities membre is not complete ( use search )
func (GLPI) GetCertificate ¶ added in v0.0.2
func (glpi GLPI) GetCertificate(id int) (*Certificate, error)
GetCertificate: Get info of Certificate
func (GLPI) GetComputer ¶
GetComputer: Get info of computer
func (GLPI) ListSearchOptions ¶
func (glpi GLPI) ListSearchOptions(item Item) (map[int]SearchOption, error)
ListSearchOptions: Get all fields for requesting tiem
func (GLPI) Search ¶
func (glpi GLPI) Search(item Item, criterias []CriteriaSearch, forcedisplays []interface{}, rangeLimit Range) (interface{}, int, error)
Search: Search information for item ( Computer, ...)
func (GLPI) SearchComputers ¶
func (glpi GLPI) SearchComputers(criterias []CriteriaSearch, rangeLimit Range) ([]Computer, int, error)
Search computer by criterias, return Computer with IdComputer,Name and Entity
func (GLPI) SearchWithName ¶
func (glpi GLPI) SearchWithName(itemName string, item Item, criterias []CriteriaSearch, forcedisplays []interface{}, rangeLimit Range) (interface{}, int, error)
Search: Search information for customer item ( Computer with Entity, ...)
Click to show internal directories.
Click to hide internal directories.