cloud

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Region string = "region"
	//infra
	Vpc              string = "vpc"
	Subnet           string = "subnet"
	Image            string = "image"
	SecurityGroup    string = "securitygroup"
	AvailabilityZone string = "availabilityzone"
	Keypair          string = "keypair"
	Volume           string = "volume"
	Instance         string = "instance"
	InternetGateway  string = "internetgateway"
	RouteTable       string = "routetable"

	//loadbalancer
	LoadBalancer string = "loadbalancer"
	TargetGroup  string = "targetgroup"
	Listener     string = "listener"

	//database
	Database      string = "database"
	DbSubnetGroup string = "dbsubnetgroup"

	//access
	User      string = "user"
	Role      string = "role"
	Group     string = "group"
	Policy    string = "policy"
	AccessKey string = "accesskey"

	//storage
	Bucket string = "bucket"
	Object string = "storageobject"
	Acl    string = "storageacl"

	//notification
	Subscription string = "subscription"
	Topic        string = "topic"

	//queue
	Queue string = "queue"

	//dns
	Zone   string = "zone"
	Record string = "record"
)

Variables

View Source
var ErrFetchAccessDenied = errors.New("access denied to cloud resource")
View Source
var ServiceRegistry = make(map[string]Service)

Functions

func PluralizeResource

func PluralizeResource(singular string) string

Types

type Service

type Service interface {
	Name() string
	Drivers() []driver.Driver
	ResourceTypes() []string
	FetchResources() (*graph.Graph, error)
	IsSyncDisabled() bool
	FetchByType(t string) (*graph.Graph, error)
}

func GetServiceForType

func GetServiceForType(t string) (Service, error)

type Services added in v0.0.21

type Services []Service

func (Services) Names added in v0.0.21

func (srvs Services) Names() (names []string)

Jump to

Keyboard shortcuts

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