Documentation
¶
Overview ¶
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Copyright © 2018 Antoine GIRARD <antoine.girard@sapk.fr>
Index ¶
- type Client
- func (c *Client) GetAccessGroupByID(id string) (*object.CfgAccessGroup, error)
- func (c *Client) GetAccessGroupByName(name string) (*object.CfgAccessGroup, error)
- func (c *Client) GetAgentGroupByID(id string) (*object.CfgAgentGroup, error)
- func (c *Client) GetAgentGroupByName(name string) (*object.CfgAgentGroup, error)
- func (c *Client) GetAgentLoginByID(id string) (*object.CfgAgentLogin, error)
- func (c *Client) GetAgentLoginByName(name string) (*object.CfgAgentLogin, error)
- func (c *Client) GetAppPrototypeByID(id string) (*object.CfgAppPrototype, error)
- func (c *Client) GetAppPrototypeByName(name string) (*object.CfgAppPrototype, error)
- func (c *Client) GetApplicationByID(id string) (*object.CfgApplication, error)
- func (c *Client) GetApplicationByName(name string) (*object.CfgApplication, error)
- func (c *Client) GetDNByID(id string) (*object.CfgDN, error)
- func (c *Client) GetDNByName(name string) (*object.CfgDN, error)
- func (c *Client) GetDNGroupByID(id string) (*object.CfgDNGroup, error)
- func (c *Client) GetDNGroupByName(name string) (*object.CfgDNGroup, error)
- func (c *Client) GetFolderByID(id string) (*object.CfgFolder, error)
- func (c *Client) GetFolderByName(name string) (*object.CfgFolder, error)
- func (c *Client) GetHostByID(id string) (*object.CfgHost, error)
- func (c *Client) GetHostByName(name string) (*object.CfgHost, error)
- func (c *Client) GetObjectByID(objType, objID string, v interface{}) (*http.Response, error)
- func (c *Client) GetObjectByName(objType, objName string) (map[string]interface{}, *http.Response, error)
- func (c *Client) GetObjectByProp(objType, objProp, objPropName string) (map[string]interface{}, *http.Response, error)
- func (c *Client) GetPersonByID(id string) (*object.CfgPerson, error)
- func (c *Client) GetPersonByName(name string) (*object.CfgPerson, error)
- func (c *Client) GetPlaceByID(id string) (*object.CfgPlace, error)
- func (c *Client) GetPlaceByName(name string) (*object.CfgPlace, error)
- func (c *Client) GetSwitchByID(id string) (*object.CfgSwitch, error)
- func (c *Client) GetSwitchByName(name string) (*object.CfgSwitch, error)
- func (c *Client) ListAccessGroup() ([]object.CfgAccessGroup, error)
- func (c *Client) ListAgentGroup() ([]object.CfgAgentGroup, error)
- func (c *Client) ListAgentLogin() ([]object.CfgAgentLogin, error)
- func (c *Client) ListAppPrototype() ([]object.CfgAppPrototype, error)
- func (c *Client) ListApplication() ([]object.CfgApplication, error)
- func (c *Client) ListDN() ([]object.CfgDN, error)
- func (c *Client) ListDNGroup() ([]object.CfgDNGroup, error)
- func (c *Client) ListFolder() ([]object.CfgFolder, error)
- func (c *Client) ListHost() ([]object.CfgHost, error)
- func (c *Client) ListObject(objType string, v interface{}) (*http.Response, error)
- func (c *Client) ListPerson() ([]object.CfgPerson, error)
- func (c *Client) ListPlace() ([]object.CfgPlace, error)
- func (c *Client) ListSwitch() ([]object.CfgSwitch, error)
- func (c *Client) Login(user, pass string) (*object.LoginResponse, error)
- func (c *Client) PostObject(v interface{}) (*http.Response, error)
- func (c *Client) UpdateObject(objType, objID string, v interface{}) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL UserAgent string //Decoder *encoding.Decoder //Needed if for some reason the string is encode from Windows1252 to UTF-8 //Encoder *encoding.Encoder //Needed if for some reason the string is encode from Windows1252 to UTF-8 HTTPClient *http.Client }
Client Genesys GAX Api client TODO add cache TODO store current user to known if logged
func (*Client) GetAccessGroupByID ¶
func (c *Client) GetAccessGroupByID(id string) (*object.CfgAccessGroup, error)
GetAccessGroupByID retrieve a specific Access Group by id
func (*Client) GetAccessGroupByName ¶
func (c *Client) GetAccessGroupByName(name string) (*object.CfgAccessGroup, error)
GetAccessGroupByName retrieve a specific Access Group by name
func (*Client) GetAgentGroupByID ¶
func (c *Client) GetAgentGroupByID(id string) (*object.CfgAgentGroup, error)
GetAgentGroupByID retrieve a specific Agent Group by id
func (*Client) GetAgentGroupByName ¶
func (c *Client) GetAgentGroupByName(name string) (*object.CfgAgentGroup, error)
GetAgentGroupByName retrieve a specific Agent Group by name
func (*Client) GetAgentLoginByID ¶
func (c *Client) GetAgentLoginByID(id string) (*object.CfgAgentLogin, error)
GetAgentLoginByID retrieve a specific Agent Login by id
func (*Client) GetAgentLoginByName ¶
func (c *Client) GetAgentLoginByName(name string) (*object.CfgAgentLogin, error)
GetAgentLoginByName retrieve a specific Agent Login by name
func (*Client) GetAppPrototypeByID ¶
func (c *Client) GetAppPrototypeByID(id string) (*object.CfgAppPrototype, error)
GetAppPrototypeByID retrieve a specific Application Template by id
func (*Client) GetAppPrototypeByName ¶
func (c *Client) GetAppPrototypeByName(name string) (*object.CfgAppPrototype, error)
GetAppPrototypeByName retrieve a specific Application Template by name
func (*Client) GetApplicationByID ¶
func (c *Client) GetApplicationByID(id string) (*object.CfgApplication, error)
GetApplicationByID retrieve a specific Application by id
func (*Client) GetApplicationByName ¶
func (c *Client) GetApplicationByName(name string) (*object.CfgApplication, error)
GetApplicationByName retrieve a specific Application by name
func (*Client) GetDNByName ¶
GetDNByName retrieve a specific DN by name
func (*Client) GetDNGroupByID ¶
func (c *Client) GetDNGroupByID(id string) (*object.CfgDNGroup, error)
GetDNGroupByID retrieve a specific DN Group by id
func (*Client) GetDNGroupByName ¶
func (c *Client) GetDNGroupByName(name string) (*object.CfgDNGroup, error)
GetDNGroupByName retrieve a specific DN Group by name
func (*Client) GetFolderByID ¶
GetFolderByID retrieve a specific Folder by id
func (*Client) GetFolderByName ¶
GetFolderByName retrieve a specific Folder by name
func (*Client) GetHostByID ¶
GetHostByID retrieve a specific Host by id
func (*Client) GetHostByName ¶
GetHostByName retrieve a specific Host by name
func (*Client) GetObjectByID ¶
GetObjectByID retrieve object with an ID and a type
func (*Client) GetObjectByName ¶
func (c *Client) GetObjectByName(objType, objName string) (map[string]interface{}, *http.Response, error)
GetObjectByName retrieve object with an name and a type
func (*Client) GetObjectByProp ¶
func (c *Client) GetObjectByProp(objType, objProp, objPropName string) (map[string]interface{}, *http.Response, error)
GetObjectByProp retrieve object with an name and a type
func (*Client) GetPersonByID ¶
GetPersonByID retrieve a specific Person by id
func (*Client) GetPersonByName ¶
GetPersonByName retrieve a specific Person by name
func (*Client) GetPlaceByID ¶
GetPlaceByID retrieve a specific Place by id
func (*Client) GetPlaceByName ¶
GetPlaceByName retrieve a specific Place by name
func (*Client) GetSwitchByID ¶
GetSwitchByID retrieve a specific Switch by id
func (*Client) GetSwitchByName ¶
GetSwitchByName retrieve a specific Switch by name
func (*Client) ListAccessGroup ¶
func (c *Client) ListAccessGroup() ([]object.CfgAccessGroup, error)
ListAccessGroup list all Access Group
func (*Client) ListAgentGroup ¶
func (c *Client) ListAgentGroup() ([]object.CfgAgentGroup, error)
ListAgentGroup list all Agent Group
func (*Client) ListAgentLogin ¶
func (c *Client) ListAgentLogin() ([]object.CfgAgentLogin, error)
ListAgentLogin list all Agent Login
func (*Client) ListAppPrototype ¶
func (c *Client) ListAppPrototype() ([]object.CfgAppPrototype, error)
ListAppPrototype list all Application Template
func (*Client) ListApplication ¶
func (c *Client) ListApplication() ([]object.CfgApplication, error)
ListApplication list all Application
func (*Client) ListDNGroup ¶
func (c *Client) ListDNGroup() ([]object.CfgDNGroup, error)
ListDNGroup list all DN Group
func (*Client) ListFolder ¶
ListFolder list all Folder
func (*Client) ListObject ¶
ListObject Return all the object of a specific type
func (*Client) ListPerson ¶
ListPerson list all Person
func (*Client) ListSwitch ¶
ListSwitch list all Switch
func (*Client) Login ¶
func (c *Client) Login(user, pass string) (*object.LoginResponse, error)
Login log the client on the GAX instance linked
func (*Client) PostObject ¶
PostObject Create a object. The object could be a json string or a go object