talos

Форк
0
/
controller.go 
19 строк · 499.0 Байт
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
package vm
6

7
// Controller interface should be implemented by the VM to be controlled via the API.
8
type Controller interface {
9
	PowerOn() error
10
	PowerOff() error
11
	Reboot() error
12
	PXEBootOnce() error
13
	Status() Status
14
}
15

16
// Status describes current VM status.
17
type Status struct {
18
	PoweredOn bool
19
}
20

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.