producers

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleProducer

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

GoogleProducer reads data from compute engine

func NewGoogleProducer

func NewGoogleProducer() (*GoogleProducer, error)

NewGoogleProducer creates new GoogleProducer

func (*GoogleProducer) ComputeZones

func (gp *GoogleProducer) ComputeZones() []string

ComputeZones provides all compute zones managed by the producer

func (*GoogleProducer) Endpoints

func (gp *GoogleProducer) Endpoints() ([]*pkg.Endpoint, error)

Endpoints provides endpoints read from compute engine.

type Producer

type Producer interface {

	// compute zones which are managed
	ComputeZones() []string

	// all endpoints in the from managed compute zones
	Endpoints() ([]*pkg.Endpoint, error)
}

Producer provides endpoints which should be synchronized

func New

func New(name string) (Producer, error)

New creates a new producer

Jump to

Keyboard shortcuts

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