godisco

package module
v0.0.0-...-974fb9e Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: GPL-2.0 Imports: 4 Imported by: 0

README

GoDisco

A simple Golang wrapper to get Amazon EC2s instance IPs by tag.

This is useful for service discovery on small, simple deployments.

You probably shouldn't use this unless your needs are specific to Go, AWS and very little complexity! Check out etcd or Consul for a proper service discovery solution.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Godisco

type Godisco struct{}

func (*Godisco) GetFirstIp

func (gd *Godisco) GetFirstIp(service string) (ip string, err error)

func (*Godisco) GetIPs

func (gd *Godisco) GetIPs(service string) (ips []string, err error)

func (*Godisco) SetRegion

func (gd *Godisco) SetRegion(newRegion string)

func (*Godisco) SetTagKey

func (gd *Godisco) SetTagKey(newTagKey string)

Jump to

Keyboard shortcuts

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