Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func CloudServerID ¶
func CloudServerID() string
Types ¶
type AWSBackend ¶ added in v0.1.0
type AWSBackend struct { SectionConfig // contains filtered or unexported fields }
func NewAWSBackend ¶ added in v0.1.0
func NewAWSBackend(config SectionConfig) (*AWSBackend, error)
func (*AWSBackend) Delete ¶ added in v0.1.0
func (b *AWSBackend) Delete(serverID string, key string) error
func (*AWSBackend) Get ¶ added in v0.1.0
func (b *AWSBackend) Get(serverID string, key string) (string, error)
func (*AWSBackend) Put ¶ added in v0.1.0
func (b *AWSBackend) Put(serverID string, key string, value string) error
func (*AWSBackend) Save ¶ added in v0.1.0
func (b *AWSBackend) Save() error
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 Config ¶ added in v0.0.2
type Config struct { Backend string SectionConfig }
func DefaultConfig ¶ added in v0.0.2
func (*Config) SetConfigByBackend ¶ added in v0.1.0
type ConsulBackend ¶
type ConsulBackend struct {
// contains filtered or unexported fields
}
func NewConsulBackend ¶
func NewConsulBackend(hostWithPort string, ssl bool) (*ConsulBackend, 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 OpenStackBackend ¶ added in v0.1.0
type OpenStackBackend struct { SectionConfig // contains filtered or unexported fields }
func NewOpenStackBackend ¶ added in v0.1.0
func NewOpenStackBackend(config SectionConfig) (*OpenStackBackend, error)
func (*OpenStackBackend) Delete ¶ added in v0.1.0
func (b *OpenStackBackend) Delete(serverID string, key string) error
func (*OpenStackBackend) Get ¶ added in v0.1.0
func (b *OpenStackBackend) Get(serverID string, key string) (string, error)
func (*OpenStackBackend) Put ¶ added in v0.1.0
func (b *OpenStackBackend) Put(serverID string, key string, value string) error
func (*OpenStackBackend) Save ¶ added in v0.1.0
func (b *OpenStackBackend) Save() error
type SectionConfig ¶ added in v0.1.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.