cloud

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cloud provides the interfaces and manager for cloud providers

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKeyAuthToken is used by authorization providers to mark the token in a context
	ContextKeyAuthToken = ContextKey("auth-token")
)

Functions

func Open

func Open(name string, params provider.Params) (provider.Provider, error)

Open opens a new cloud provider instance with the specified parameters

func Register

func Register(name string, provider provider.NewFunc)

Register makes a database provider available by the provided name. If Register is called twice with the same name or if provider is nil, it panics.

Types

type ContextKey

type ContextKey string

ContextKey defines a static context key

func (ContextKey) String

func (c ContextKey) String() string

Directories

Path Synopsis
providers should use the cloud package
providers should use the cloud package

Jump to

Keyboard shortcuts

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