providers

package
v0.0.0-...-f36bca6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSProvider

type AWSProvider struct {
	Service *ec2.EC2
	Tags    []string
	Debug   bool
}

AWSProvider struct

func (*AWSProvider) Auth

func (a *AWSProvider) Auth() error

Auth takes config values and configures this service

func (*AWSProvider) GetPrivateIPs

func (a *AWSProvider) GetPrivateIPs() []string

GetPrivateIPs returns the IPs of instances matching specific tags

type GCEProvider

type GCEProvider struct {
	Service     *compute.Service
	Credentials string
	Debug       bool
	NamePrefix  string
	Project     string
	Region      string
}

GCEProvider struct

func (*GCEProvider) Auth

func (g *GCEProvider) Auth() error

Auth takes config values and configures this service

func (*GCEProvider) GetPrivateIPs

func (g *GCEProvider) GetPrivateIPs() []string

GetPrivateIPs returns the IPs of instances matching specific tags

type Service

type Service interface {
	Auth() error
	GetPrivateIPs() []string
}

Service defines an interface to a cloud service

Jump to

Keyboard shortcuts

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