tileregistry

package
v0.1.158 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Repo -- repo holds the registered sku interfaces
	Repo = make(map[string]TileGenerator)
)

Functions

func GetRegistry

func GetRegistry() map[string]TileGenerator

GetRegistry -- gets the map of all registered Sku interface objects

func Register

func Register(name string, tile TileGenerator)

Register -- add a Sku interface object to the Repo

Types

type Closer added in v0.1.114

type Closer interface {
	Close()
}

Closer - define how to close the tile

type DoNothingCloser added in v0.1.114

type DoNothingCloser struct {
}

DoNothingCloser - This Closer do nothing

func (*DoNothingCloser) Close added in v0.1.114

func (closer *DoNothingCloser) Close()

Close - This is an empty closer that do nothing

type Tile

type Tile interface {
	Backup() error
	Restore() error
}

Tile - definition for what a tile looks like

type TileCloser added in v0.1.114

type TileCloser interface {
	Tile
	Closer
}

TileCloser - defines how to close a tile

type TileGenerator

type TileGenerator interface {
	New(tileSpec TileSpec) (TileCloser, error)
}

TileGenerator - interface for a tile creating object

type TileSpec

type TileSpec struct {
	OpsManagerHost       string
	AdminUser            string
	AdminPass            string
	AdminToken           string
	OpsManagerUser       string
	OpsManagerPass       string
	OpsManagerPassphrase string
	ClientID             string
	ClientSecret         string
	ArchiveDirectory     string
	CryptKey             string
	ClearBoshManifest    bool
	PluginArgs           string
	NFS                  string
}

TileSpec -- defines what a tile would need to be initialized

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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