chaosblade

Форк
0
/
spec.go 
48 строк · 1.3 Кб
1
/*
2
 * Copyright 1999-2020 Alibaba Group Holding Ltd.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package cri
18

19
import "github.com/chaosblade-io/chaosblade-spec-go/spec"
20

21
type CommandModelSpec struct {
22
	spec.BaseExpModelCommandSpec
23
}
24

25
func NewCommandModelSpec() spec.ExpModelCommandSpec {
26
	return &CommandModelSpec{
27
		spec.BaseExpModelCommandSpec{
28
			ExpActions: []spec.ExpActionCommandSpec{},
29
			ExpFlags:   []spec.ExpFlagSpec{},
30
		},
31
	}
32
}
33

34
func (*CommandModelSpec) Name() string {
35
	return "cri"
36
}
37

38
func (*CommandModelSpec) ShortDesc() string {
39
	return "CRI experiment"
40
}
41

42
func (*CommandModelSpec) LongDesc() string {
43
	return "CRI experiment, for example remove container. If container-runtime is containerd, the container-id shoud be full id."
44
}
45

46
func (*CommandModelSpec) Example() string {
47
	return "blade create cri remove --container-id 65eead213dd3"
48
}
49

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

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

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

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