Documentation ¶
Index ¶
- type Manager
- func (m *Manager) CleanUpDaemonResource(d *daemon.Daemon)
- func (m *Manager) DeleteBySnapshotID(id string) (*daemon.Daemon, error)
- func (m *Manager) DeleteDaemon(daemon *daemon.Daemon)
- func (m *Manager) DestroyBySnapshotID(id string) error
- func (m *Manager) DestroyDaemon(d *daemon.Daemon) error
- func (m *Manager) GetByID(id string) (*daemon.Daemon, error)
- func (m *Manager) GetBySnapshotID(id string) (*daemon.Daemon, error)
- func (m *Manager) IsPrefetchDaemon() bool
- func (m *Manager) IsSharedDaemon() bool
- func (m *Manager) ListDaemons() []*daemon.Daemon
- func (m *Manager) NewDaemon(daemon *daemon.Daemon) error
- func (m *Manager) Reconnect(ctx context.Context) error
- func (m *Manager) StartDaemon(d *daemon.Daemon) error
- type Opt
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { DaemonMode string // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) CleanUpDaemonResource ¶
func (*Manager) DeleteBySnapshotID ¶
func (*Manager) DeleteDaemon ¶
func (*Manager) DestroyBySnapshotID ¶
func (*Manager) DestroyDaemon ¶
FIXME: should handle the inconsistent status caused by any step in the function that returns an error.
func (*Manager) GetBySnapshotID ¶
func (*Manager) IsPrefetchDaemon ¶
func (*Manager) IsSharedDaemon ¶
func (*Manager) ListDaemons ¶
type Store ¶
type Store interface { Get(id string) (*daemon.Daemon, error) GetBySnapshot(snapshotID string) (*daemon.Daemon, error) Add(*daemon.Daemon) error Update(d *daemon.Daemon) error Delete(*daemon.Daemon) error List() []*daemon.Daemon Size() int WalkDaemons(ctx context.Context, cb func(*daemon.Daemon) error) error CleanupDaemons(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.