metama

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2015 License: MIT Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

metama

Metadata Manager, backended with Consul, EC2, OpenStack Nova and so on

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

func CloudServerID

func CloudServerID() string

Types

type Backend

type Backend interface {
	// Saves current configuration to a specific file
	Save() error

	// APIs to control backend metadata
	// Gets value from key
	Get(serverID string, key string) (string, error)

	// Put value on the key
	Put(serverID string, key string, value string) error

	// Delete value on the key
	Delete(serverID string, key string) error
}

func FindBackend

func FindBackend(uri string) Backend

type ConsulBackend

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

func NewConsulBackend

func NewConsulBackend() *ConsulBackend

func (*ConsulBackend) Delete

func (b *ConsulBackend) Delete(serverID string, key string) error

func (*ConsulBackend) Get

func (b *ConsulBackend) Get(serverID string, key string) (string, error)

func (*ConsulBackend) Put

func (b *ConsulBackend) Put(serverID string, key string, value string) error

func (*ConsulBackend) Save

func (b *ConsulBackend) Save() error

type Runner

type Runner struct {
	ServerID string
	// contains filtered or unexported fields
}

func (*Runner) Delete

func (r *Runner) Delete(key string)

func (*Runner) Get

func (r *Runner) Get(key string)

func (*Runner) Put

func (r *Runner) Put(key string, value string)

func (*Runner) Run

func (r *Runner) Run(subcommand string, args []string)

Directories

Path Synopsis
cmd
metama command

Jump to

Keyboard shortcuts

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