Documentation
¶
Index ¶
- func ReloadStorage(storageType int) error
- type Credential
- type DummyError
- type SSH
- type Storage
- type StorageDummy
- func (storageDummy *StorageDummy) DeleteCredential(name string) error
- func (storageDummy *StorageDummy) LoadAllCredential() ([]Credential, error)
- func (storageDummy *StorageDummy) LoadCredential(name string) (*Credential, error)
- func (storageDummy *StorageDummy) SaveCredential(Credential *Credential) error
- func (storageDummy *StorageDummy) ShouldCheck() bool
- type StorageEtcd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReloadStorage ¶
Types ¶
type Credential ¶
type DummyError ¶
type DummyError struct {
// contains filtered or unexported fields
}
func (*DummyError) Error ¶
func (dummyError *DummyError) Error() string
type Storage ¶
type Storage interface { DeleteCredential(name string) error SaveCredential(credential *Credential) error LoadCredential(name string) (*Credential, error) LoadAllCredential() ([]Credential, error) // contains filtered or unexported methods }
func GetStorage ¶
func GetStorage() Storage
type StorageDummy ¶
type StorageDummy struct {
// contains filtered or unexported fields
}
func (*StorageDummy) DeleteCredential ¶
func (storageDummy *StorageDummy) DeleteCredential(name string) error
func (*StorageDummy) LoadAllCredential ¶
func (storageDummy *StorageDummy) LoadAllCredential() ([]Credential, error)
func (*StorageDummy) LoadCredential ¶
func (storageDummy *StorageDummy) LoadCredential(name string) (*Credential, error)
func (*StorageDummy) SaveCredential ¶
func (storageDummy *StorageDummy) SaveCredential(Credential *Credential) error
func (*StorageDummy) ShouldCheck ¶
func (storageDummy *StorageDummy) ShouldCheck() bool
type StorageEtcd ¶
type StorageEtcd struct { }
func (*StorageEtcd) DeleteCredential ¶
func (storageEtcd *StorageEtcd) DeleteCredential(name string) error
func (*StorageEtcd) LoadAllCredential ¶
func (storageEtcd *StorageEtcd) LoadAllCredential() ([]Credential, error)
func (*StorageEtcd) LoadCredential ¶
func (storageEtcd *StorageEtcd) LoadCredential(ip string) (*Credential, error)
func (*StorageEtcd) SaveCredential ¶
func (storageEtcd *StorageEtcd) SaveCredential(credential *Credential) error
Click to show internal directories.
Click to hide internal directories.