adapter

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateBulkPorts = func(c *gophercloud.ServiceClient, opts ports.CreateOptsBuilder) ([]*ports.Port, error) {
		return ports.CreateBulk(c, opts).ExtractBulk()
	}
	DoHttpPost = func(url string, body map[string]interface{}, headers map[string]string) (int, []byte, error) {
		return http.GetHTTPClientObj().Post(url, body, headers)
	}
	DoHttpGet = func(url string, headers map[string]string) (int, []byte, error) {
		return http.GetHTTPClientObj().Get(url, headers)
	}
	DoHttpDelete = func(url string, headers map[string]string) (int, error) {
		return http.GetHTTPClientObj().Delete(url, headers)
	}
)
View Source
var (
	NewObjectFromBytes = jason.NewObjectFromBytes
	Unmarshal          = json.Unmarshal
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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