chaosblade
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
17package cri
18
19import "github.com/chaosblade-io/chaosblade-spec-go/spec"
20
21type CommandModelSpec struct {
22spec.BaseExpModelCommandSpec
23}
24
25func NewCommandModelSpec() spec.ExpModelCommandSpec {
26return &CommandModelSpec{
27spec.BaseExpModelCommandSpec{
28ExpActions: []spec.ExpActionCommandSpec{},
29ExpFlags: []spec.ExpFlagSpec{},
30},
31}
32}
33
34func (*CommandModelSpec) Name() string {
35return "cri"
36}
37
38func (*CommandModelSpec) ShortDesc() string {
39return "CRI experiment"
40}
41
42func (*CommandModelSpec) LongDesc() string {
43return "CRI experiment, for example remove container. If container-runtime is containerd, the container-id shoud be full id."
44}
45
46func (*CommandModelSpec) Example() string {
47return "blade create cri remove --container-id 65eead213dd3"
48}
49