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 ¶
type ConsulBackend ¶
type ConsulBackend struct {
// contains filtered or unexported fields
}
func NewConsulBackend ¶
func NewConsulBackend() *ConsulBackend
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
Click to show internal directories.
Click to hide internal directories.