Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2018 Changes in this version + func AddInt(a, b int) int + func Append(list []interface{}, value interface{}) []interface + func ConnectDB(dbType string, connection string, maxOpenConn int) (db.DB, error) + func Contains(list []interface{}, value interface{}) bool + func Copy(list []interface{}) []interface + func CounterAdd(counter *util.Counter, value int) + func CounterValue(counter *util.Counter) int + func DBBegin(connection db.DB) (transaction.Transaction, error) + func DBClose(tx transaction.Transaction) error + func DBColumn(schemaID string, join bool) (string, error) + func DBCommit(tx transaction.Transaction) error + func DBCreate(tx transaction.Transaction, schemaID string, data map[string]interface{}) error + func DBDelete(tx transaction.Transaction, schemaID string, id string) error + func DBExec(tx transaction.Transaction, sql string, arguments []interface{}) error + func DBGet(tx transaction.Transaction, schemaID string, id string, tenantID string) (map[string]interface{}, error) + func DBList(tx transaction.Transaction, schemaID string, filter map[string]interface{}) ([]interface{}, error) + func DBQuery(tx transaction.Transaction, schemaID string, sql string, ...) ([]interface{}, error) + func DBUpdate(tx transaction.Transaction, schemaID string, data map[string]interface{}) error + func Delete(list []interface{}, index int) []interface + func DivInt(a, b int) int + func Env() map[string]interface + func Error(code int, name, message string) error + func FetchContent(path string) (interface{}, error) + func First(list []interface{}) interface + func FloatToInt(value float64) int + func ForceStop(queue *job.Queue) + func FormatUUID(uuid string) (string, error) + func GetConfig(key string, defaultValue interface{}) interface + func GetOpenstackClient(authURL, userName, password, domainName, tenantName, tenantID, version string) (*gophercloud.ServiceClient, error) + func GetTestServerURL(server *httptest.Server) string + func GohanLoadSchema(src string) (interface{}, error) + func GohanPolicies() []*schema.Policy + func GohanSchema(schemaID string) (*schema.Schema, error) + func GohanSchemas() schema.Map + func GohanServer(configFile string, test bool) (interface{}, error) + func HTTPDelete(url string, headers map[string]interface{}) (interface{}, error) + func HTTPGet(url string, headers map[string]interface{}) (map[string]interface{}, error) + func HTTPPatch(url string, headers map[string]interface{}, postData map[string]interface{}) (map[string]interface{}, error) + func HTTPPost(url string, headers map[string]interface{}, postData map[string]interface{}) (map[string]interface{}, error) + func HTTPPut(url string, headers map[string]interface{}, postData map[string]interface{}) (map[string]interface{}, error) + func HTTPRequest(url string, method string, headers map[string]interface{}, ...) (map[string]interface{}, error) + func IPAdd(ip string, value int) string + func IPToInt(ip string) int + func InitDB(dbType string, connection string, dropOnCreate bool, cascade bool) error + func IntToIP(value int) string + func Join(value []interface{}, sep string) (interface{}, error) + func Last(list []interface{}) interface + func MakeCounter(value int) *util.Counter + func MakeMap() cmap.ConcurrentMap + func MakeQueue(workers int) *job.Queue + func MapGet(m cmap.ConcurrentMap, key string) interface + func MapHas(m cmap.ConcurrentMap, key string) bool + func MapRemove(m cmap.ConcurrentMap, key string) + func MapSet(m cmap.ConcurrentMap, key string, value interface{}) + func MulInt(a, b int) int + func NormalizeMap(data map[string]interface{}) map[string]interface + func OpenstackDelete(client *gophercloud.ServiceClient, url string) (interface{}, error) + func OpenstackEndpoint(client *gophercloud.ServiceClient, ...) (interface{}, error) + func OpenstackEnsure(client *gophercloud.ServiceClient, url string, postURL string, ...) (interface{}, error) + func OpenstackGet(client *gophercloud.ServiceClient, url string) (interface{}, error) + func OpenstackPost(client *gophercloud.ServiceClient, url string, data interface{}) (interface{}, error) + func OpenstackPut(client *gophercloud.ServiceClient, url string, data interface{}) (interface{}, error) + func OpenstackToken(client *gophercloud.ServiceClient) string + func ParseCidr(cidr string) (string, int, int) + func ReadConfig(path string) error + func SaveContent(path string, data interface{}) error + func Shift(list []interface{}) (interface{}, []interface{}) + func Size(list []interface{}) int + func Split(value, sep string) (interface{}, error) + func Stop(queue *job.Queue) + func StopTestServer(server *httptest.Server) + func SubInt(a, b int) int + func UUID() string + func Unshift(list []interface{}, value interface{}) []interface + func WaitQueue(queue *job.Queue)