Documentation ¶
Index ¶
- func AddConf(db *bolt.DB, rootBucketConf string, key string, value string) error
- func AddHosts(db *bolt.DB, rootBucket string, bucket string, hostname string, ip string, ...) error
- func DeleteHost(db *bolt.DB, rootBucket string, bucket string, host string) error
- func FindConf(db *bolt.DB, rootBucket string, key string) string
- func GetKey() string
- func KeyGen() error
- func ListBucket(db *bolt.DB, rootBucket string, bucket string, arg string)
- func ListBucketHOSTS(db *bolt.DB, rootBucket string, bucket string)
- func SetupDB(dbFile string, rootBucket string, bucket string) (*bolt.DB, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHosts ¶
func AddHosts(db *bolt.DB, rootBucket string, bucket string, hostname string, ip string, user string, port string, pass string, key []byte) error
AddHosts for updating database with hosts informations
func DeleteHost ¶
DeleteHost for deleting host from db
func ListBucket ¶
ListBucket for listings all hosts and value
func ListBucketHOSTS ¶
ListBucketHOSTS for listings all hosts
Types ¶
Click to show internal directories.
Click to hide internal directories.