package gophercloud

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/rackspace/gophercloud"

Package gophercloud provides a multi-vendor interface to OpenStack-compatible clouds. The library has a three-level hierarchy: providers, services, and resources.

Provider structs represent the service providers that offer and manage a collection of services. Examples of providers include: OpenStack, Rackspace, HP. These are defined like so:

opts := gophercloud.AuthOptions{
  IdentityEndpoint: "https://my-openstack.com:5000/v2.0",
  Username: "{username}",
  Password: "{password}",
  TenantID: "{tenant_id}",
}

provider, err := openstack.AuthenticatedClient(opts)

Service structs are specific to a provider and handle all of the logic and operations for a particular OpenStack service. Examples of services include: Compute, Object Storage, Block Storage. In order to define one, you need to pass in the parent provider, like so:

opts := gophercloud.EndpointOpts{Region: "RegionOne"}

client := openstack.NewComputeV2(provider, opts)

Resource structs are the domain models that services make use of in order to work with and represent the state of API resources:

server, err := servers.Get(client, "{serverId}").Extract()

Intermediate Result structs are returned for API operations, which allow generic access to the HTTP headers, response body, and any errors associated with the network transaction. To turn a result into a usable resource struct, you must call the Extract method which is chained to the response, or an Extract function from an applicable extension:

result := servers.Get(client, "{serverId}")

// Attempt to extract the disk configuration from the OS-DCF disk config
// extension:
config, err := diskconfig.ExtractGet(result)

All requests that enumerate a collection return a Pager struct that is used to iterate through the results one page at a time. Use the EachPage method on that Pager to handle each successive Page in a closure, then use the appropriate extraction method from that request's package to interpret that Page as a slice of results:

err := servers.List(client, nil).EachPage(func (page pagination.Page) (bool, error) {
  s, err := servers.ExtractServers(page)
  if err != nil {
    return false, err
  }

  // Handle the []servers.Server slice.

  // Return "false" or an error to prematurely stop fetching new pages.
  return true, nil
})

This top-level package contains utility functions and data types that are used throughout the provider and service packages. Of particular note for end users are the AuthOptions and EndpointOpts structs.

Index

Constants

const DefaultUserAgent = "gophercloud/1.0.0"

DefaultUserAgent is the default User-Agent string set in the request header.

const RFC3339Milli = "2006-01-02T15:04:05.999999Z"

RFC3339Milli describes a common time format used by some API responses.

Variables

var (
	// ErrServiceNotFound is returned when no service in a service catalog matches
	// the provided EndpointOpts. This is generally returned by provider service
	// factory methods like "NewComputeV2()" and can mean that a service is not
	// enabled for your account.
	ErrServiceNotFound = errors.New("No suitable service could be found in the service catalog.")

	// ErrEndpointNotFound is returned when no available endpoints match the
	// provided EndpointOpts. This is also generally returned by provider service
	// factory methods, and usually indicates that a region was specified
	// incorrectly.
	ErrEndpointNotFound = errors.New("No suitable endpoint could be found in the service catalog.")
)

Functions

func BuildHeaders

func BuildHeaders(opts interface{}) (map[string]string, error)

BuildHeaders is an internal function to be used by request methods in individual resource packages.

It accepts an arbitrary tagged structure and produces a string map that's suitable for use as the HTTP headers of an outgoing request. Field names are mapped to header names based in "h" tags.

type struct Something {
  Bar string `h:"x_bar"`
  Baz int    `h:"lorem_ipsum"`
}

instance := Something{
  Bar: "AAA",
  Baz: "BBB",
}

will be converted into:

map[string]string{
  "x_bar": "AAA",
  "lorem_ipsum": "BBB",
}

Untagged fields and fields left at their zero values are skipped. Integers, booleans and string values are supported.

func BuildQueryString

func BuildQueryString(opts interface{}) (*url.URL, error)

BuildQueryString is an internal function to be used by request methods in individual resource packages.

It accepts a tagged structure and expands it into a URL struct. Field names are converted into query parameters based on a "q" tag. For example:

type struct Something {
   Bar string `q:"x_bar"`
   Baz int    `q:"lorem_ipsum"`
}

instance := Something{
   Bar: "AAA",
   Baz: "BBB",
}

will be converted into "?x_bar=AAA&lorem_ipsum=BBB".

The struct's fields may be strings, integers, or boolean values. Fields left at their type's zero value will be omitted from the query.

func DecodeHeader

func DecodeHeader(from, to interface{}) error

DecodeHeader is a function that decodes a header (usually of type map[string]interface{}) to another type (usually a struct). This function is used by the objectstorage package to give users access to response headers without having to query a map. A DecodeHookFunction is used, because OpenStack-based clients return header values as arrays (Go slices).

func ExtractNextURL

func ExtractNextURL(links []Link) (string, error)

ExtractNextURL is an internal function useful for packages of collection resources that are paginated in a certain way.

It attempts attempts to extract the "next" URL from slice of Link structs, or "" if no such URL is present.

func IDSliceToQueryString

func IDSliceToQueryString(name string, ids []int) string

IDSliceToQueryString takes a slice of elements and converts them into a query string. For example, if name=foo and slice=[]int{20, 40, 60}, then the result would be `?name=20&name=40&name=60'

func IntToPointer

func IntToPointer(i int) *int

IntToPointer is a function for converting integers into integer pointers. This is useful when passing in options to operations.

func IntWithinRange

func IntWithinRange(val, min, max int) bool

IntWithinRange returns TRUE if an integer falls within a defined range, and FALSE if not.

func MaybeInt

func MaybeInt(original int) *int

MaybeInt is an internal function to be used by request methods in individual resource packages.

Like MaybeString, it accepts an int that may or may not be a zero value, and returns either a pointer to its address or nil. It's intended to hint that the JSON serializer should omit its field.

func MaybeString

func MaybeString(original string) *string

MaybeString is an internal function to be used by request methods in individual resource packages.

It takes a string that might be a zero value and returns either a pointer to its address or nil. This is useful for allowing users to conveniently omit values from an options struct by leaving them zeroed, but still pass nil to the JSON serializer so they'll be omitted from the request body.

func NormalizeURL

func NormalizeURL(url string) string

NormalizeURL is an internal function to be used by provider clients.

It ensures that each endpoint URL has a closing `/`, as expected by ServiceClient's methods.

func WaitFor

func WaitFor(timeout int, predicate func() (bool, error)) error

WaitFor polls a predicate function, once per second, up to a timeout limit. It usually does this to wait for a resource to transition to a certain state. Resource packages will wrap this in a more convenient function that's specific to a certain resource, but it can also be useful on its own.

Types

type AuthOptions

type AuthOptions struct {
	// IdentityEndpoint specifies the HTTP endpoint that is required to work with
	// the Identity API of the appropriate version. While it's ultimately needed by
	// all of the identity services, it will often be populated by a provider-level
	// function.
	IdentityEndpoint string

	// Username is required if using Identity V2 API. Consult with your provider's
	// control panel to discover your account's username. In Identity V3, either
	// UserID or a combination of Username and DomainID or DomainName are needed.
	Username, UserID string

	// Exactly one of Password or APIKey is required for the Identity V2 and V3
	// APIs. Consult with your provider's control panel to discover your account's
	// preferred method of authentication.
	Password, APIKey string

	// At most one of DomainID and DomainName must be provided if using Username
	// with Identity V3. Otherwise, either are optional.
	DomainID, DomainName string

	// The TenantID and TenantName fields are optional for the Identity V2 API.
	// Some providers allow you to specify a TenantName instead of the TenantId.
	// Some require both. Your provider's authentication policies will determine
	// how these fields influence authentication.
	TenantID, TenantName string

	// AllowReauth should be set to true if you grant permission for Gophercloud to
	// cache your credentials in memory, and to allow Gophercloud to attempt to
	// re-authenticate automatically if/when your token expires.  If you set it to
	// false, it will not cache these settings, but re-authentication will not be
	// possible.  This setting defaults to false.
	AllowReauth bool
}

AuthOptions stores information needed to authenticate to an OpenStack cluster. You can populate one manually, or use a provider's AuthOptionsFromEnv() function to read relevant information from the standard environment variables. Pass one to a provider's AuthenticatedClient function to authenticate and obtain a ProviderClient representing an active session on that provider.

Its fields are the union of those recognized by each identity implementation and provider.

type AuthResults

type AuthResults interface {
	// TokenID returns the token's ID value from the authentication response.
	TokenID() (string, error)

	// ExpiresAt retrieves the token's expiration time.
	ExpiresAt() (time.Time, error)
}

AuthResults [deprecated] is a leftover type from the v0.x days. It was intended to describe common functionality among identity service results, but is not actually used anywhere.

type Availability

type Availability string

Availability indicates to whom a specific service endpoint is accessible: the internet at large, internal networks only, or only to administrators. Different identity services use different terminology for these. Identity v2 lists them as different kinds of URLs within the service catalog ("adminURL", "internalURL", and "publicURL"), while v3 lists them as "Interfaces" in an endpoint's response.

const (
	// AvailabilityAdmin indicates that an endpoint is only available to
	// administrators.
	AvailabilityAdmin Availability = "admin"

	// AvailabilityPublic indicates that an endpoint is available to everyone on
	// the internet.
	AvailabilityPublic Availability = "public"

	// AvailabilityInternal indicates that an endpoint is only available within
	// the cluster's internal network.
	AvailabilityInternal Availability = "internal"
)

type EnabledState

type EnabledState *bool

EnabledState is a convenience type, mostly used in Create and Update operations. Because the zero value of a bool is FALSE, we need to use a pointer instead to indicate zero-ness.

var (
	Enabled  EnabledState = &iTrue
	Disabled EnabledState = &iFalse
)

Convenience vars for EnabledState values.

type EndpointLocator

type EndpointLocator func(EndpointOpts) (string, error)

EndpointLocator is an internal function to be used by provider implementations.

It provides an implementation that locates a single endpoint from a service catalog for a specific ProviderClient based on user-provided EndpointOpts. The provider then uses it to discover related ServiceClients.

type EndpointOpts

type EndpointOpts struct {
	// Type [required] is the service type for the client (e.g., "compute",
	// "object-store"). Generally, this will be supplied by the service client
	// function, but a user-given value will be honored if provided.
	Type string

	// Name [optional] is the service name for the client (e.g., "nova") as it
	// appears in the service catalog. Services can have the same Type but a
	// different Name, which is why both Type and Name are sometimes needed.
	Name string

	// Region [required] is the geographic region in which the endpoint resides,
	// generally specifying which datacenter should house your resources.
	// Required only for services that span multiple regions.
	Region string

	// Availability [optional] is the visibility of the endpoint to be returned.
	// Valid types include the constants AvailabilityPublic, AvailabilityInternal,
	// or AvailabilityAdmin from this package.
	//
	// Availability is not required, and defaults to AvailabilityPublic. Not all
	// providers or services offer all Availability options.
	Availability Availability
}

EndpointOpts specifies search criteria used by queries against an OpenStack service catalog. The options must contain enough information to unambiguously identify one, and only one, endpoint within the catalog.

Usually, these are passed to service client factory functions in a provider package, like "rackspace.NewComputeV2()".

func (*EndpointOpts) ApplyDefaults

func (eo *EndpointOpts) ApplyDefaults(t string)

ApplyDefaults is an internal method to be used by provider implementations.

It sets EndpointOpts fields if not already set, including a default type. Currently, EndpointOpts.Availability defaults to the public endpoint.

type ErrResult

type ErrResult struct {
	Result
}

ErrResult is an internal type to be used by individual resource packages, but its methods will be available on a wide variety of user-facing embedding types.

It represents results that only contain a potential error and nothing else. Usually, if the operation executed successfully, the Err field will be nil; otherwise it will be stocked with a relevant error. Use the ExtractErr method to cleanly pull it out.

func (ErrResult) ExtractErr

func (r ErrResult) ExtractErr() error

ExtractErr is a function that extracts error information, or nil, from a result.

type HeaderResult

type HeaderResult struct {
	Result
}

HeaderResult is an internal type to be used by individual resource packages, but its methods will be available on a wide variety of user-facing embedding types.

It represents a result that only contains an error (possibly nil) and an http.Header. This is used, for example, by the objectstorage packages in openstack, because most of the operations don't return response bodies, but do have relevant information in headers.

func (HeaderResult) ExtractHeader

func (hr HeaderResult) ExtractHeader() (http.Header, error)

ExtractHeader will return the http.Header and error from the HeaderResult.

header, err := objects.Create(client, "my_container", objects.CreateOpts{}).ExtractHeader()
type Link struct {
	Href string `mapstructure:"href"`
	Rel  string `mapstructure:"rel"`
}

Link is an internal type to be used in packages of collection resources that are paginated in a certain way.

It's a response substructure common to many paginated collection results that is used to point to related pages. Usually, the one we care about is the one with Rel field set to "next".

type ProviderClient

type ProviderClient struct {
	// IdentityBase is the base URL used for a particular provider's identity
	// service - it will be used when issuing authenticatation requests. It
	// should point to the root resource of the identity service, not a specific
	// identity version.
	IdentityBase string

	// IdentityEndpoint is the identity endpoint. This may be a specific version
	// of the identity service. If this is the case, this endpoint is used rather
	// than querying versions first.
	IdentityEndpoint string

	// TokenID is the ID of the most recently issued valid token.
	TokenID string

	// EndpointLocator describes how this provider discovers the endpoints for
	// its constituent services.
	EndpointLocator EndpointLocator

	// HTTPClient allows users to interject arbitrary http, https, or other transit behaviors.
	HTTPClient http.Client

	// UserAgent represents the User-Agent header in the HTTP request.
	UserAgent UserAgent

	// ReauthFunc is the function used to re-authenticate the user if the request
	// fails with a 401 HTTP response code. This a needed because there may be multiple
	// authentication functions for different Identity service versions.
	ReauthFunc func() error
}

ProviderClient stores details that are required to interact with any services within a specific provider's API.

Generally, you acquire a ProviderClient by calling the NewClient method in the appropriate provider's child package, providing whatever authentication credentials are required.

func (*ProviderClient) AuthenticatedHeaders

func (client *ProviderClient) AuthenticatedHeaders() map[string]string

AuthenticatedHeaders returns a map of HTTP headers that are common for all authenticated service requests.

func (*ProviderClient) Delete

func (client *ProviderClient) Delete(url string, opts *RequestOpts) (*http.Response, error)

func (*ProviderClient) Get

func (client *ProviderClient) Get(url string, JSONResponse *interface{}, opts *RequestOpts) (*http.Response, error)

func (*ProviderClient) Post

func (client *ProviderClient) Post(url string, JSONBody interface{}, JSONResponse *interface{}, opts *RequestOpts) (*http.Response, error)

func (*ProviderClient) Put

func (client *ProviderClient) Put(url string, JSONBody interface{}, JSONResponse *interface{}, opts *RequestOpts) (*http.Response, error)

func (*ProviderClient) Request

func (client *ProviderClient) Request(method, url string, options RequestOpts) (*http.Response, error)

Request performs an HTTP request using the ProviderClient's current HTTPClient. An authentication header will automatically be provided.

type RequestOpts

type RequestOpts struct {
	// JSONBody, if provided, will be encoded as JSON and used as the body of the HTTP request. The
	// content type of the request will default to "application/json" unless overridden by MoreHeaders.
	// It's an error to specify both a JSONBody and a RawBody.
	JSONBody interface{}
	// RawBody contains an io.Reader that will be consumed by the request directly. No content-type
	// will be set unless one is provided explicitly by MoreHeaders.
	RawBody io.Reader

	// JSONResponse, if provided, will be populated with the contents of the response body parsed as
	// JSON.
	JSONResponse interface{}
	// OkCodes contains a list of numeric HTTP status codes that should be interpreted as success. If
	// the response has a different code, an error will be returned.
	OkCodes []int

	// MoreHeaders specifies additional HTTP headers to be provide on the request. If a header is
	// provided with a blank value (""), that header will be *omitted* instead: use this to suppress
	// the default Accept header or an inferred Content-Type, for example.
	MoreHeaders map[string]string
}

RequestOpts customizes the behavior of the provider.Request() method.

type Result

type Result struct {
	// Body is the payload of the HTTP response from the server. In most cases,
	// this will be the deserialized JSON structure.
	Body interface{}

	// Header contains the HTTP header structure from the original response.
	Header http.Header

	// Err is an error that occurred during the operation. It's deferred until
	// extraction to make it easier to chain the Extract call.
	Err error
}

Result is an internal type to be used by individual resource packages, but its methods will be available on a wide variety of user-facing embedding types.

It acts as a base struct that other Result types, returned from request functions, can embed for convenience. All Results capture basic information from the HTTP transaction that was performed, including the response body, HTTP headers, and any errors that happened.

Generally, each Result type will have an Extract method that can be used to further interpret the result's payload in a specific context. Extensions or providers can then provide additional extraction functions to pull out provider- or extension-specific information as well.

func (Result) PrettyPrintJSON

func (r Result) PrettyPrintJSON() string

PrettyPrintJSON creates a string containing the full response body as pretty-printed JSON. It's useful for capturing test fixtures and for debugging extraction bugs. If you include its output in an issue related to a buggy extraction function, we will all love you forever.

type ServiceClient

type ServiceClient struct {
	// ProviderClient is a reference to the provider that implements this service.
	*ProviderClient

	// Endpoint is the base URL of the service's API, acquired from a service catalog.
	// It MUST end with a /.
	Endpoint string

	// ResourceBase is the base URL shared by the resources within a service's API. It should include
	// the API version and, like Endpoint, MUST end with a / if set. If not set, the Endpoint is used
	// as-is, instead.
	ResourceBase string
}

ServiceClient stores details required to interact with a specific service API implemented by a provider. Generally, you'll acquire these by calling the appropriate `New` method on a ProviderClient.

func (*ServiceClient) ResourceBaseURL

func (client *ServiceClient) ResourceBaseURL() string

ResourceBaseURL returns the base URL of any resources used by this service. It MUST end with a /.

func (*ServiceClient) ServiceURL

func (client *ServiceClient) ServiceURL(parts ...string) string

ServiceURL constructs a URL for a resource belonging to this provider.

type UnexpectedResponseCodeError

type UnexpectedResponseCodeError struct {
	URL      string
	Method   string
	Expected []int
	Actual   int
	Body     []byte
}

UnexpectedResponseCodeError is returned by the Request method when a response code other than those listed in OkCodes is encountered.

func (*UnexpectedResponseCodeError) Error

func (err *UnexpectedResponseCodeError) Error() string

type UserAgent

type UserAgent struct {
	// contains filtered or unexported fields
}

UserAgent represents a User-Agent header.

func (*UserAgent) Join

func (ua *UserAgent) Join() string

Join concatenates all the user-defined User-Agend strings with the default Gophercloud User-Agent string.

func (*UserAgent) Prepend

func (ua *UserAgent) Prepend(s ...string)

Prepend prepends a user-defined string to the default User-Agent string. Users may pass in one or more strings to prepend.

Source Files

auth_options.go auth_results.go doc.go endpoint_search.go params.go provider_client.go results.go service_client.go util.go

Directories

PathSynopsis
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/compute
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/compute/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/identity
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/identity/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/identity/v3
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/networking
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/networking/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/networking/v2/extensions
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/networking/v2/extensions/fwaas
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/openstack/networking/v2/extensions/lbaas
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/compute
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/compute/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/identity
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/identity/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/networking
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/rackspace/networking/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/acceptance/tools
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage/v1/apiversionsPackage apiversions provides information and interaction with the different API versions for the OpenStack Block Storage service, code-named Cinder.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage/v1/snapshotsPackage snapshots provides information and interaction with snapshots in the OpenStack Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage/v1/volumesPackage volumes provides information and interaction with volumes in the OpenStack Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/blockstorage/v1/volumetypesPackage volumetypes provides information and interaction with volume types in the OpenStack Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/basePackage base provides information and interaction with the base API resource in the OpenStack CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/flavorsPackage flavors provides information and interaction with the flavors API resource in the OpenStack CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/serviceassetsPackage serviceassets provides information and interaction with the serviceassets API resource in the OpenStack CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/cdn/v1/servicesPackage services provides information and interaction with the services API resource in the OpenStack CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/common
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/common/extensionsPackage extensions provides information and interaction with the different extensions available for an OpenStack service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensionsPackage extensions provides information and interaction with the different extensions available for the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/bootfromvolume
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/defsecrules
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/diskconfigPackage diskconfig provides information and interaction with the Disk Config extension that works with the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/floatingipPackage floatingip provides the ability to manage floating ips through nova-network
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/keypairsPackage keypairs provides information and interaction with the Keypairs extension for the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/secgroups
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/servergroupsPackage servergroups provides the ability to manage server groups
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/startstopPackage startstop provides functionality to start and stop servers that have been provisioned by the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/tenantnetworksPackage tenantnetworks provides the ability for tenants to see information about the networks they have access to
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/volumeattachPackage volumeattach provides the ability to attach and detach volumes to instances
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/flavorsPackage flavors provides information and interaction with the flavor API resource in the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/imagesPackage images provides information and interaction with the image API resource in the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/compute/v2/serversPackage servers provides information and interaction with the server API resource in the OpenStack Compute service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/extensionsPackage extensions provides information and interaction with the different extensions available for the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/extensions/admin
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/extensions/admin/rolesPackage roles provides functionality to interact with and control roles on the API.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/tenantsPackage tenants provides information and interaction with the tenants API resource for the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/tokensPackage tokens provides information and interaction with the token API resource for the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v2/users
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v3
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v3/endpointsPackage endpoints provides information and interaction with the service endpoints API resource in the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v3/servicesPackage services provides information and interaction with the services API resource for the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/identity/v3/tokensPackage tokens provides information and interaction with the token API resource for the OpenStack Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/apiversionsPackage apiversions provides information and interaction with the different API versions for the OpenStack Neutron service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/common
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/externalPackage external provides information and interaction with the external extension for the OpenStack Networking service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaasPackage fwaas provides information and interaction with the Firewall as a Service extension for the OpenStack Networking service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaas/firewalls
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaas/policies
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaas/rules
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3Package layer3 provides access to the Layer-3 networking extension for the OpenStack Neutron service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3/floatingips
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/layer3/routers
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaasPackage lbaas provides information and interaction with the Load Balancer as a Service extension for the OpenStack Networking service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaas/members
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaas/monitors
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaas/pools
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaas/vips
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/providerPackage provider gives access to the provider Neutron plugin, allowing network extended attributes.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/securityPackage security contains functionality to work with security group and security group rules Neutron resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/security/groups
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/security/rules
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/networksPackage networks contains functionality for working with Neutron network resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/portsPackage ports contains functionality for working with Neutron port resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/networking/v2/subnetsPackage subnets contains functionality for working with Neutron subnet resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/objectstorage
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/objectstorage/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/objectstorage/v1/accountsPackage accounts contains functionality for working with Object Storage account resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/objectstorage/v1/containersPackage containers contains functionality for working with Object Storage container resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/objectstorage/v1/objectsPackage objects contains functionality for working with Object Storage object resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/apiversionsPackage apiversions provides information and interaction with the different API versions for the OpenStack Heat service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/buildinfoPackage buildinfo provides build information about heat deployments.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/stackeventsPackage stackevents provides operations for finding, listing, and retrieving stack events.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/stackresourcesPackage stackresources provides operations for working with stack resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/stacksPackage stacks provides operation for working with Heat stacks.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/orchestration/v1/stacktemplatesPackage stacktemplates provides operations for working with Heat templates.
Godeps/_workspace/src/github.com/rackspace/gophercloud/openstack/utils
Godeps/_workspace/src/github.com/rackspace/gophercloud/paginationPackage pagination contains utilities and convenience structs that implement common pagination idioms within OpenStack APIs.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/blockstorage
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/blockstorage/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/blockstorage/v1/snapshotsPackage snapshots provides information and interaction with the snapshot API resource for the Rackspace Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/blockstorage/v1/volumesPackage volumes provides information and interaction with the volume API resource for the Rackspace Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/blockstorage/v1/volumetypesPackage volumetypes provides information and interaction with the volume type API resource for the Rackspace Block Storage service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn/v1/basePackage base provides information and interaction with the base API resource in the Rackspace CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn/v1/flavorsPackage flavors provides information and interaction with the flavors API resource in the Rackspace CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn/v1/serviceassetsPackage serviceassets provides information and interaction with the serviceassets API resource in the Rackspace CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/cdn/v1/servicesPackage services provides information and interaction with the services API resource in the Rackspace CDN service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/bootfromvolume
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/flavorsPackage flavors provides information and interaction with the flavor API resource for the Rackspace Cloud Servers service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/imagesPackage images provides information and interaction with the image API resource for the Rackspace Cloud Servers service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/keypairsPackage keypairs provides information and interaction with the keypair API resource for the Rackspace Cloud Servers service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/networksPackage networks provides information and interaction with the network API resource for the Rackspace Cloud Servers service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/serversPackage servers provides information and interaction with the server API resource for the Rackspace Cloud Servers service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/virtualinterfaces
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/volumeattachPackage volumeattach provides the ability to attach and detach volume to instances to Rackspace servers
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/extensionsPackage extensions provides information and interaction with the all the extensions available for the Rackspace Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/roles
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/tenantsPackage tenants provides information and interaction with the tenant API resource for the Rackspace Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/tokensPackage tokens provides information and interaction with the token API resource for the Rackspace Identity service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/identity/v2/users
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/aclPackage acl provides information and interaction with the access lists feature of the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/lbsPackage lbs provides information and interaction with the Load Balancer API resource for the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/monitorsPackage monitors provides information and interaction with the Health Monitor API resource for the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/nodesPackage nodes provides information and interaction with the Node API resource for the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/sessionsPackage sessions provides information and interaction with the Session Persistence feature of the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/sslPackage ssl provides information and interaction with the SSL Termination feature of the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/throttlePackage throttle provides information and interaction with the Connection Throttling feature of the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/lb/v1/vipsPackage vips provides information and interaction with the Virtual IP API resource for the Rackspace Cloud Load Balancer service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/common
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/networks
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/ports
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/securityPackage security contains functionality to work with security group and security group rules Neutron resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/security/groups
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/security/rules
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/networking/v2/subnets
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/accountsPackage accounts provides information and interaction with the account API resource for the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulkPackage bulk provides functionality for working with bulk operations in the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/cdncontainersPackage cdncontainers provides information and interaction with the CDN Container API resource for the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/cdnobjectsPackage cdnobjects provides information and interaction with the CDN Object API resource for the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/containersPackage containers provides information and interaction with the Container API resource for the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/objectstorage/v1/objectsPackage objects provides information and interaction with the Object API resource for the Rackspace Cloud Files service.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1/buildinfoPackage buildinfo provides build information about heat deployments.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1/stackeventsPackage stackevents provides operations for finding, listing, and retrieving stack events.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1/stackresourcesPackage stackresources provides operations for working with stack resources.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1/stacksPackage stacks provides operation for working with Heat stacks.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/orchestration/v1/stacktemplatesPackage stacktemplates provides operations for working with Heat templates.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/rackconnect
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/rackconnect/v3Package rackconnect allows Rackspace cloud accounts to leverage version 3 of RackConnect, Rackspace's hybrid connectivity solution connecting dedicated and cloud servers.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/rackconnect/v3/cloudnetworks
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/rackconnect/v3/lbpoolsPackage lbpools provides access to load balancer pools associated with a RackConnect configuration.
Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/rackconnect/v3/publicips
Godeps/_workspace/src/github.com/rackspace/gophercloud/testhelperPackage testhelper container methods that are useful for writing unit tests.
Godeps/_workspace/src/github.com/rackspace/gophercloud/testhelper/client
Version
v0.18.2
Published
Jun 8, 2015
Platform
js/wasm
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.