Documentation ¶
Index ¶
- Constants
- func GetBootstrapFile(dir, id string) (string, error)
- type Daemon
- func (d *Daemon) APISock() string
- func (d *Daemon) BootstrapFile() (string, error)
- func (d *Daemon) CheckStatus() (model.DaemonInfo, error)
- func (d *Daemon) ConfigFile() string
- func (d *Daemon) IsMultipleDaemon() bool
- func (d *Daemon) IsPrefetchDaemon() bool
- func (d *Daemon) IsSharedDaemon() bool
- func (d *Daemon) LogFile() string
- func (d *Daemon) MountPoint() string
- func (d *Daemon) OldMountPoint() string
- func (d *Daemon) SharedMount() error
- func (d *Daemon) SharedMountPoint() string
- func (d *Daemon) SharedUmount() error
- type NewDaemonOpt
- func WithAPISock(apiSock string) NewDaemonOpt
- func WithConfigDir(dir string) NewDaemonOpt
- func WithCustomMountPoint(customMountPoint string) NewDaemonOpt
- func WithID(id string) NewDaemonOpt
- func WithImageID(imageID string) NewDaemonOpt
- func WithLogDir(dir string) NewDaemonOpt
- func WithLogLevel(logLevel string) NewDaemonOpt
- func WithLogToStdout(logToStdout bool) NewDaemonOpt
- func WithPrefetchDaemon() NewDaemonOpt
- func WithRootMountPoint(rootMountPoint string) NewDaemonOpt
- func WithSharedDaemon() NewDaemonOpt
- func WithSnapshotDir(dir string) NewDaemonOpt
- func WithSnapshotID(id string) NewDaemonOpt
- func WithSocketDir(dir string) NewDaemonOpt
Constants ¶
View Source
const ( APISocketFileName = "api.sock" )
Variables ¶
This section is empty.
Functions ¶
func GetBootstrapFile ¶
Types ¶
type Daemon ¶
type Daemon struct { ID string SnapshotID string ConfigDir string SocketDir string LogDir string LogLevel string LogToStdout bool SnapshotDir string Pid int ImageID string DaemonMode string RootMountPoint *string CustomMountPoint *string // contains filtered or unexported fields }
func NewDaemon ¶
func NewDaemon(opt ...NewDaemonOpt) (*Daemon, error)
func (*Daemon) BootstrapFile ¶
func (*Daemon) CheckStatus ¶
func (d *Daemon) CheckStatus() (model.DaemonInfo, error)
func (*Daemon) ConfigFile ¶
func (*Daemon) IsMultipleDaemon ¶
func (*Daemon) IsPrefetchDaemon ¶
func (*Daemon) IsSharedDaemon ¶
func (*Daemon) MountPoint ¶
func (*Daemon) OldMountPoint ¶
func (*Daemon) SharedMount ¶
func (*Daemon) SharedMountPoint ¶
func (*Daemon) SharedUmount ¶
type NewDaemonOpt ¶
func WithAPISock ¶
func WithAPISock(apiSock string) NewDaemonOpt
func WithConfigDir ¶
func WithConfigDir(dir string) NewDaemonOpt
func WithCustomMountPoint ¶
func WithCustomMountPoint(customMountPoint string) NewDaemonOpt
func WithID ¶
func WithID(id string) NewDaemonOpt
func WithImageID ¶
func WithImageID(imageID string) NewDaemonOpt
func WithLogDir ¶
func WithLogDir(dir string) NewDaemonOpt
func WithLogLevel ¶
func WithLogLevel(logLevel string) NewDaemonOpt
func WithLogToStdout ¶
func WithLogToStdout(logToStdout bool) NewDaemonOpt
func WithPrefetchDaemon ¶
func WithPrefetchDaemon() NewDaemonOpt
func WithRootMountPoint ¶
func WithRootMountPoint(rootMountPoint string) NewDaemonOpt
func WithSharedDaemon ¶
func WithSharedDaemon() NewDaemonOpt
func WithSnapshotDir ¶
func WithSnapshotDir(dir string) NewDaemonOpt
func WithSnapshotID ¶
func WithSnapshotID(id string) NewDaemonOpt
func WithSocketDir ¶
func WithSocketDir(dir string) NewDaemonOpt
Click to show internal directories.
Click to hide internal directories.