client

package
v0.0.0-...-71a4898 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 11 Imported by: 2

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

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 NewClient

func NewClient(host string, useSSL bool) *Client

NewClient generate a client to communicate with a specific instance

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) GetDNByID

func (c *Client) GetDNByID(id string) (*object.CfgDN, error)

GetDNByID retrieve a specific DN by id

func (*Client) GetDNByName

func (c *Client) GetDNByName(name string) (*object.CfgDN, error)

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

func (c *Client) GetFolderByID(id string) (*object.CfgFolder, error)

GetFolderByID retrieve a specific Folder by id

func (*Client) GetFolderByName

func (c *Client) GetFolderByName(name string) (*object.CfgFolder, error)

GetFolderByName retrieve a specific Folder by name

func (*Client) GetHostByID

func (c *Client) GetHostByID(id string) (*object.CfgHost, error)

GetHostByID retrieve a specific Host by id

func (*Client) GetHostByName

func (c *Client) GetHostByName(name string) (*object.CfgHost, error)

GetHostByName retrieve a specific Host by name

func (*Client) GetObjectByID

func (c *Client) GetObjectByID(objType, objID string, v interface{}) (*http.Response, error)

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

func (c *Client) GetPersonByID(id string) (*object.CfgPerson, error)

GetPersonByID retrieve a specific Person by id

func (*Client) GetPersonByName

func (c *Client) GetPersonByName(name string) (*object.CfgPerson, error)

GetPersonByName retrieve a specific Person by name

func (*Client) GetPlaceByID

func (c *Client) GetPlaceByID(id string) (*object.CfgPlace, error)

GetPlaceByID retrieve a specific Place by id

func (*Client) GetPlaceByName

func (c *Client) GetPlaceByName(name string) (*object.CfgPlace, error)

GetPlaceByName retrieve a specific Place by name

func (*Client) GetSwitchByID

func (c *Client) GetSwitchByID(id string) (*object.CfgSwitch, error)

GetSwitchByID retrieve a specific Switch by id

func (*Client) GetSwitchByName

func (c *Client) GetSwitchByName(name string) (*object.CfgSwitch, error)

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) ListDN

func (c *Client) ListDN() ([]object.CfgDN, error)

ListDN list all DN

func (*Client) ListDNGroup

func (c *Client) ListDNGroup() ([]object.CfgDNGroup, error)

ListDNGroup list all DN Group

func (*Client) ListFolder

func (c *Client) ListFolder() ([]object.CfgFolder, error)

ListFolder list all Folder

func (*Client) ListHost

func (c *Client) ListHost() ([]object.CfgHost, error)

ListHost list all Host

func (*Client) ListObject

func (c *Client) ListObject(objType string, v interface{}) (*http.Response, error)

ListObject Return all the object of a specific type

func (*Client) ListPerson

func (c *Client) ListPerson() ([]object.CfgPerson, error)

ListPerson list all Person

func (*Client) ListPlace

func (c *Client) ListPlace() ([]object.CfgPlace, error)

ListPlace list all Place

func (*Client) ListSwitch

func (c *Client) ListSwitch() ([]object.CfgSwitch, error)

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

func (c *Client) PostObject(v interface{}) (*http.Response, error)

PostObject Create a object. The object could be a json string or a go object

func (*Client) UpdateObject

func (c *Client) UpdateObject(objType, objID string, v interface{}) (*http.Response, error)

UpdateObject Update a object. The object could be a json string or a go object

Jump to

Keyboard shortcuts

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