host

package
v0.0.0-...-8f2995f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReloadStorage

func ReloadStorage(storageType int) error

Types

type Credential

type Credential struct {
	IP       string
	SSH      SSH
	Disabled bool
}

type DummyError

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

func (*DummyError) Error

func (dummyError *DummyError) Error() string

type SSH

type SSH struct {
	Port     int
	User     string
	Password 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

Jump to

Keyboard shortcuts

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