cloudresolver

package module
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resolvers map[string]CloudResolver

Functions

func GetAllVMSSs added in v1.0.9

GetAllVMScaleSets gets all VM Scale Sets info

func GetAllVMs added in v1.0.9

GetAllVMs gets all VMs info

Types

type AwsResolver

type AwsResolver struct{}

func (AwsResolver) Resolve

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

type AzureResolver added in v1.0.9

type AzureResolver struct{}

func (AzureResolver) Resolve added in v1.0.9

func (r AzureResolver) 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
	MachineType  string
	LaunchTime   string
	Tags         map[string]string
}

type IpInfos added in v1.0.9

type IpInfos struct {
	PrivateIpv4 string
	PrivateIpv6 string
	PrivateName string
	PublicIpv4  string
	PublicIpv6  string
	PublicName  string
}

func GetNetworkInterfaceInfos added in v1.0.9

func GetNetworkInterfaceInfos(ctx context.Context, reference compute.NetworkInterfaceReference) (*IpInfos, error)

GetNetworkInterfaceInfos gets infos on specific network interface

func GetVMSSInstanceNetworkInterfaceInfos added in v1.0.9

func GetVMSSInstanceNetworkInterfaceInfos(ctx context.Context, reference compute.NetworkInterfaceReference) (*IpInfos, error)

GetNetworkInterfaceInfos gets infos on specific network interface

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