api

package
v0.0.0-...-d7b82ac Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EndpointFormat provides the base template for all API url
	EndpointFormat = "https://iaas.%s.oraclecloud.com/%s/"
	// CoreAPIVersion is the API version for core services
	CoreAPIVersion = "20160918"
	// LoadBalancerAPIVersion is the API version for load balancing services
	LoadBalancerAPIVersion = "20170115"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	APIRegion string
	// contains filtered or unexported fields
}

Client represents the struct for basic api calls

func NewClient

func NewClient(bmcConf *bmc.Config) (*Client, error)

NewClient creates a new, unauthenticated compute Client.

func (*Client) Request

func (c *Client) Request(method string, reqURL string, body interface{}) (*http.Response, error)

Request request a resource from Oracle

type Clienter

type Clienter interface {
	Request(string, string, interface{}) (*http.Response, error)
}

Clienter is the client interface for all requests

Jump to

Keyboard shortcuts

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