cloudresolver

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: GPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resolvers map[string]CloudResolver

Functions

This section is empty.

Types

type AwsResolver

type AwsResolver struct{}

func (AwsResolver) Resolve

func (r AwsResolver) Resolve(name string, config map[string]interface{}) ([]Host, error)

type CloudResolver

type CloudResolver interface {
	Resolve(string, map[string]interface{}) ([]Host, error)
}

type DigitalOceanResolver

type DigitalOceanResolver struct{}

func (DigitalOceanResolver) Resolve

func (r DigitalOceanResolver) Resolve(name string, config map[string]interface{}) ([]Host, error)

type GceResolver

type GceResolver struct {
}

func (GceResolver) Resolve

func (r GceResolver) Resolve(name string, config map[string]interface{}) ([]Host, error)

type Host

type Host struct {
	InstanceName string
	Provider     string
	Region       string
	Zone         string
	Id           string
	PrivateIpv4  string
	PrivateIpv6  string
	PrivateName  string
	PublicIpv4   string
	PublicIpv6   string
	PublicName   string
	Private      string // Either ip or name, the one accessible on current cloud
	Public       string
	Tags         map[string]string
}

type LocalResolver

type LocalResolver struct{}

func (LocalResolver) Resolve

func (r LocalResolver) Resolve(name string, config map[string]interface{}) ([]Host, error)

type TokenSource

type TokenSource struct {
	AccessToken string
}

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

type YamlToken

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

Directories

Path Synopsis
cmd
cr

Jump to

Keyboard shortcuts

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