1 Star 0 Fork 0

powerpaas/machine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
store.go 952 Bytes
一键复制 编辑 原始数据 按行查看 历史
Evan Hazlett 提交于 2015-03-11 03:16 . initial pass at internal api
package libmachine
type Store interface {
// Exists returns whether a machine exists or not
Exists(name string) (bool, error)
// GetActive returns the active host
GetActive() (*Host, error)
// GetPath returns the path to the store
GetPath() string
// GetCACertPath returns the CA certificate
GetCACertificatePath() (string, error)
// GetPrivateKeyPath returns the private key
GetPrivateKeyPath() (string, error)
// IsActive returns whether the host is active or not
IsActive(host *Host) (bool, error)
// List returns a list of hosts
List() ([]*Host, error)
// Load loads a host by name
Get(name string) (*Host, error)
// Remove removes a machine from the store
Remove(name string, force bool) error
// RemoveActive removes the active machine from the store
RemoveActive() error
// Save persists a machine in the store
Save(host *Host) error
// SetActive sets the specified host as the active host
SetActive(host *Host) error
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/powerpaas/machine.git
git@gitee.com:powerpaas/machine.git
powerpaas
machine
machine
v0.2.0-rc2

搜索帮助