Documentation ¶
Index ¶
- type Runtime
- func (r *Runtime) CreateDisk(id string, sizeMB uint64) (*disks.Disk, error)
- func (r *Runtime) CreateInstance(ctx context.Context, opt instance.InstanceOptions) (*instance.Instance, error)
- func (r *Runtime) DeleteImage(ctx context.Context, ref string) error
- func (r *Runtime) DestroyDisk(id string) error
- func (r *Runtime) DestroyInstance(ctx context.Context, id string) error
- func (r *Runtime) GetDisk(id string) (*disks.Disk, error)
- func (r *Runtime) GetInstance(id string) (*instance.Instance, error)
- func (r *Runtime) GetInstanceLogs(id string) ([]*api.LogEntry, error)
- func (r *Runtime) InstanceExec(ctx context.Context, id string, cmd []string, timeout time.Duration) (*api.ExecResult, error)
- func (r *Runtime) ListDisks() ([]disks.Disk, error)
- func (r *Runtime) ListImages(ctx context.Context) ([]daemon.Image, error)
- func (r *Runtime) ListInstances() []instance.Instance
- func (r *Runtime) PruneImages(ctx context.Context) error
- func (r *Runtime) PullImage(ctx context.Context, opt daemon.ImagePullOptions) (*daemon.Image, error)
- func (r *Runtime) Start() error
- func (r *Runtime) StartInstance(ctx context.Context, id string) error
- func (r *Runtime) StopInstance(ctx context.Context, id string, opt *api.StopConfig) error
- func (r *Runtime) SubscribeToInstanceLogs(ctx context.Context, id string) ([]*api.LogEntry, <-chan *api.LogEntry, error)
- func (r *Runtime) WatchInstanceState(ctx context.Context, id string) (<-chan instance.State, error)
- type State
- func (s *State) AddInstance(id string, manager *instancerunner.InstanceRunner)
- func (s *State) Delete(id string)
- func (s *State) GetInstance(id string) (*instancerunner.InstanceRunner, error)
- func (s *State) List() []instance.Instance
- func (s *State) ReleaseId(id string)
- func (s *State) ReserveId(id string) bool
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *config.RuntimeConfig, registries registry.RegistriesConfig, store Store) (*Runtime, error)
func (*Runtime) CreateDisk ¶ added in v0.7.0
func (*Runtime) CreateInstance ¶
func (*Runtime) DestroyDisk ¶ added in v0.7.0
func (*Runtime) DestroyInstance ¶
func (*Runtime) GetInstanceLogs ¶
func (*Runtime) InstanceExec ¶
func (*Runtime) ListImages ¶
func (*Runtime) ListInstances ¶
func (*Runtime) StartInstance ¶
func (*Runtime) StopInstance ¶
func (*Runtime) SubscribeToInstanceLogs ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) AddInstance ¶
func (s *State) AddInstance(id string, manager *instancerunner.InstanceRunner)
func (*State) GetInstance ¶
func (s *State) GetInstance(id string) (*instancerunner.InstanceRunner, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.