scenariopb

package
v3.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScenarioSvc_CreateScenario_FullMethodName           = "/scenario.ScenarioSvc/CreateScenario"
	ScenarioSvc_GetScenario_FullMethodName              = "/scenario.ScenarioSvc/GetScenario"
	ScenarioSvc_UpdateScenario_FullMethodName           = "/scenario.ScenarioSvc/UpdateScenario"
	ScenarioSvc_DeleteScenario_FullMethodName           = "/scenario.ScenarioSvc/DeleteScenario"
	ScenarioSvc_DeleteCollectionScenario_FullMethodName = "/scenario.ScenarioSvc/DeleteCollectionScenario"
	ScenarioSvc_ListScenario_FullMethodName             = "/scenario.ScenarioSvc/ListScenario"
	ScenarioSvc_CopyScenario_FullMethodName             = "/scenario.ScenarioSvc/CopyScenario"
)

Variables

View Source
var File_scenario_scenario_proto protoreflect.FileDescriptor
View Source
var ScenarioSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scenario.ScenarioSvc",
	HandlerType: (*ScenarioSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateScenario",
			Handler:    _ScenarioSvc_CreateScenario_Handler,
		},
		{
			MethodName: "GetScenario",
			Handler:    _ScenarioSvc_GetScenario_Handler,
		},
		{
			MethodName: "UpdateScenario",
			Handler:    _ScenarioSvc_UpdateScenario_Handler,
		},
		{
			MethodName: "DeleteScenario",
			Handler:    _ScenarioSvc_DeleteScenario_Handler,
		},
		{
			MethodName: "DeleteCollectionScenario",
			Handler:    _ScenarioSvc_DeleteCollectionScenario_Handler,
		},
		{
			MethodName: "ListScenario",
			Handler:    _ScenarioSvc_ListScenario_Handler,
		},
		{
			MethodName: "CopyScenario",
			Handler:    _ScenarioSvc_CopyScenario_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scenario/scenario.proto",
}

ScenarioSvc_ServiceDesc is the grpc.ServiceDesc for ScenarioSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterScenarioSvcServer

func RegisterScenarioSvcServer(s grpc.ServiceRegistrar, srv ScenarioSvcServer)

Types

type CreateScenarioRequest

type CreateScenarioRequest struct {
	Name              string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description       string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	RawSteps          string `protobuf:"bytes,3,opt,name=raw_steps,json=rawSteps,proto3" json:"raw_steps,omitempty"`
	RawCategories     string `protobuf:"bytes,4,opt,name=raw_categories,json=rawCategories,proto3" json:"raw_categories,omitempty"`
	RawTags           string `protobuf:"bytes,5,opt,name=raw_tags,json=rawTags,proto3" json:"raw_tags,omitempty"`
	RawVms            string `protobuf:"bytes,6,opt,name=raw_vms,json=rawVms,proto3" json:"raw_vms,omitempty"`
	RawVmTasks        string `protobuf:"bytes,7,opt,name=raw_vm_tasks,json=rawVmTasks,proto3" json:"raw_vm_tasks,omitempty"`
	KeepaliveDuration string `protobuf:"bytes,8,opt,name=keepalive_duration,json=keepaliveDuration,proto3" json:"keepalive_duration,omitempty"`
	PauseDuration     string `protobuf:"bytes,9,opt,name=pause_duration,json=pauseDuration,proto3" json:"pause_duration,omitempty"`
	Pausable          bool   `protobuf:"varint,10,opt,name=pausable,proto3" json:"pausable,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateScenarioRequest) Descriptor deprecated

func (*CreateScenarioRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateScenarioRequest.ProtoReflect.Descriptor instead.

func (*CreateScenarioRequest) GetDescription

func (x *CreateScenarioRequest) GetDescription() string

func (*CreateScenarioRequest) GetKeepaliveDuration

func (x *CreateScenarioRequest) GetKeepaliveDuration() string

func (*CreateScenarioRequest) GetName

func (x *CreateScenarioRequest) GetName() string

func (*CreateScenarioRequest) GetPausable

func (x *CreateScenarioRequest) GetPausable() bool

func (*CreateScenarioRequest) GetPauseDuration

func (x *CreateScenarioRequest) GetPauseDuration() string

func (*CreateScenarioRequest) GetRawCategories

func (x *CreateScenarioRequest) GetRawCategories() string

func (*CreateScenarioRequest) GetRawSteps

func (x *CreateScenarioRequest) GetRawSteps() string

func (*CreateScenarioRequest) GetRawTags

func (x *CreateScenarioRequest) GetRawTags() string

func (*CreateScenarioRequest) GetRawVmTasks

func (x *CreateScenarioRequest) GetRawVmTasks() string

func (*CreateScenarioRequest) GetRawVms

func (x *CreateScenarioRequest) GetRawVms() string

func (*CreateScenarioRequest) ProtoMessage

func (*CreateScenarioRequest) ProtoMessage()

func (*CreateScenarioRequest) ProtoReflect

func (x *CreateScenarioRequest) ProtoReflect() protoreflect.Message

func (*CreateScenarioRequest) Reset

func (x *CreateScenarioRequest) Reset()

func (*CreateScenarioRequest) String

func (x *CreateScenarioRequest) String() string

type ListScenariosResponse

type ListScenariosResponse struct {
	Scenarios []*Scenario `protobuf:"bytes,1,rep,name=scenarios,proto3" json:"scenarios,omitempty"`
	// contains filtered or unexported fields
}

func (*ListScenariosResponse) Descriptor deprecated

func (*ListScenariosResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListScenariosResponse.ProtoReflect.Descriptor instead.

func (*ListScenariosResponse) GetScenarios

func (x *ListScenariosResponse) GetScenarios() []*Scenario

func (*ListScenariosResponse) ProtoMessage

func (*ListScenariosResponse) ProtoMessage()

func (*ListScenariosResponse) ProtoReflect

func (x *ListScenariosResponse) ProtoReflect() protoreflect.Message

func (*ListScenariosResponse) Reset

func (x *ListScenariosResponse) Reset()

func (*ListScenariosResponse) String

func (x *ListScenariosResponse) String() string

type Scenario

type Scenario struct {
	Id                string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid               string                 `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	Name              string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description       string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Steps             []*ScenarioStep        `protobuf:"bytes,5,rep,name=steps,proto3" json:"steps,omitempty"`
	Categories        []string               `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"`
	Tags              []string               `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	Vms               []*general.StringMap   `protobuf:"bytes,8,rep,name=vms,proto3" json:"vms,omitempty"`
	KeepaliveDuration string                 `protobuf:"bytes,9,opt,name=keepalive_duration,json=keepaliveDuration,proto3" json:"keepalive_duration,omitempty"`
	PauseDuration     string                 `protobuf:"bytes,10,opt,name=pause_duration,json=pauseDuration,proto3" json:"pause_duration,omitempty"`
	Pausable          bool                   `protobuf:"varint,11,opt,name=pausable,proto3" json:"pausable,omitempty"`
	VmTasks           []*VirtualMachineTasks `protobuf:"bytes,12,rep,name=vm_tasks,json=vmTasks,proto3" json:"vm_tasks,omitempty"`
	Labels            map[string]string      `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Scenario) Descriptor deprecated

func (*Scenario) Descriptor() ([]byte, []int)

Deprecated: Use Scenario.ProtoReflect.Descriptor instead.

func (*Scenario) GetCategories

func (x *Scenario) GetCategories() []string

func (*Scenario) GetDescription

func (x *Scenario) GetDescription() string

func (*Scenario) GetId

func (x *Scenario) GetId() string

func (*Scenario) GetKeepaliveDuration

func (x *Scenario) GetKeepaliveDuration() string

func (*Scenario) GetLabels

func (x *Scenario) GetLabels() map[string]string

func (*Scenario) GetName

func (x *Scenario) GetName() string

func (*Scenario) GetPausable

func (x *Scenario) GetPausable() bool

func (*Scenario) GetPauseDuration

func (x *Scenario) GetPauseDuration() string

func (*Scenario) GetSteps

func (x *Scenario) GetSteps() []*ScenarioStep

func (*Scenario) GetTags

func (x *Scenario) GetTags() []string

func (*Scenario) GetUid

func (x *Scenario) GetUid() string

func (*Scenario) GetVmTasks

func (x *Scenario) GetVmTasks() []*VirtualMachineTasks

func (*Scenario) GetVms

func (x *Scenario) GetVms() []*general.StringMap

func (*Scenario) ProtoMessage

func (*Scenario) ProtoMessage()

func (*Scenario) ProtoReflect

func (x *Scenario) ProtoReflect() protoreflect.Message

func (*Scenario) Reset

func (x *Scenario) Reset()

func (*Scenario) String

func (x *Scenario) String() string

type ScenarioStep

type ScenarioStep struct {
	Title   string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ScenarioStep) Descriptor deprecated

func (*ScenarioStep) Descriptor() ([]byte, []int)

Deprecated: Use ScenarioStep.ProtoReflect.Descriptor instead.

func (*ScenarioStep) GetContent

func (x *ScenarioStep) GetContent() string

func (*ScenarioStep) GetTitle

func (x *ScenarioStep) GetTitle() string

func (*ScenarioStep) ProtoMessage

func (*ScenarioStep) ProtoMessage()

func (*ScenarioStep) ProtoReflect

func (x *ScenarioStep) ProtoReflect() protoreflect.Message

func (*ScenarioStep) Reset

func (x *ScenarioStep) Reset()

func (*ScenarioStep) String

func (x *ScenarioStep) String() string

type ScenarioSvcClient

type ScenarioSvcClient interface {
	// Resource oriented functions:
	CreateScenario(ctx context.Context, in *CreateScenarioRequest, opts ...grpc.CallOption) (*general.ResourceId, error)
	GetScenario(ctx context.Context, in *general.GetRequest, opts ...grpc.CallOption) (*Scenario, error)
	UpdateScenario(ctx context.Context, in *UpdateScenarioRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteScenario(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteCollectionScenario(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListScenario(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*ListScenariosResponse, error)
	// Helper functions:
	CopyScenario(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ScenarioSvcClient is the client API for ScenarioSvc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ScenarioSvcServer

type ScenarioSvcServer interface {
	// Resource oriented functions:
	CreateScenario(context.Context, *CreateScenarioRequest) (*general.ResourceId, error)
	GetScenario(context.Context, *general.GetRequest) (*Scenario, error)
	UpdateScenario(context.Context, *UpdateScenarioRequest) (*emptypb.Empty, error)
	DeleteScenario(context.Context, *general.ResourceId) (*emptypb.Empty, error)
	DeleteCollectionScenario(context.Context, *general.ListOptions) (*emptypb.Empty, error)
	ListScenario(context.Context, *general.ListOptions) (*ListScenariosResponse, error)
	// Helper functions:
	CopyScenario(context.Context, *general.ResourceId) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ScenarioSvcServer is the server API for ScenarioSvc service. All implementations must embed UnimplementedScenarioSvcServer for forward compatibility

type Task

type Task struct {
	Name                string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description         string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Command             string `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
	ExpectedOutputValue string `protobuf:"bytes,4,opt,name=expected_output_value,json=expectedOutputValue,proto3" json:"expected_output_value,omitempty"`
	ExpectedReturnCode  int32  `protobuf:"varint,5,opt,name=expected_return_code,json=expectedReturnCode,proto3" json:"expected_return_code,omitempty"`
	ReturnType          string `protobuf:"bytes,6,opt,name=return_type,json=returnType,proto3" json:"return_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCommand

func (x *Task) GetCommand() string

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetExpectedOutputValue

func (x *Task) GetExpectedOutputValue() string

func (*Task) GetExpectedReturnCode

func (x *Task) GetExpectedReturnCode() int32

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetReturnType

func (x *Task) GetReturnType() string

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type UnimplementedScenarioSvcServer

type UnimplementedScenarioSvcServer struct {
}

UnimplementedScenarioSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedScenarioSvcServer) CopyScenario

func (UnimplementedScenarioSvcServer) CreateScenario

func (UnimplementedScenarioSvcServer) DeleteCollectionScenario

func (UnimplementedScenarioSvcServer) DeleteScenario

func (UnimplementedScenarioSvcServer) GetScenario

func (UnimplementedScenarioSvcServer) ListScenario

func (UnimplementedScenarioSvcServer) UpdateScenario

type UnsafeScenarioSvcServer

type UnsafeScenarioSvcServer interface {
	// contains filtered or unexported methods
}

UnsafeScenarioSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ScenarioSvcServer will result in compilation errors.

type UpdateScenarioRequest

type UpdateScenarioRequest struct {
	Id                string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name              string                  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description       string                  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	RawSteps          string                  `protobuf:"bytes,4,opt,name=raw_steps,json=rawSteps,proto3" json:"raw_steps,omitempty"`
	RawCategories     string                  `protobuf:"bytes,5,opt,name=raw_categories,json=rawCategories,proto3" json:"raw_categories,omitempty"`
	RawTags           string                  `protobuf:"bytes,6,opt,name=raw_tags,json=rawTags,proto3" json:"raw_tags,omitempty"`
	RawVms            string                  `protobuf:"bytes,7,opt,name=raw_vms,json=rawVms,proto3" json:"raw_vms,omitempty"`
	RawVmTasks        string                  `protobuf:"bytes,8,opt,name=raw_vm_tasks,json=rawVmTasks,proto3" json:"raw_vm_tasks,omitempty"`
	KeepaliveDuration *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=keepalive_duration,json=keepaliveDuration,proto3" json:"keepalive_duration,omitempty"`
	PauseDuration     *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=pause_duration,json=pauseDuration,proto3" json:"pause_duration,omitempty"`
	Pausable          *wrapperspb.BoolValue   `protobuf:"bytes,11,opt,name=pausable,proto3" json:"pausable,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateScenarioRequest) Descriptor deprecated

func (*UpdateScenarioRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateScenarioRequest.ProtoReflect.Descriptor instead.

func (*UpdateScenarioRequest) GetDescription

func (x *UpdateScenarioRequest) GetDescription() string

func (*UpdateScenarioRequest) GetId

func (x *UpdateScenarioRequest) GetId() string

func (*UpdateScenarioRequest) GetKeepaliveDuration

func (x *UpdateScenarioRequest) GetKeepaliveDuration() *wrapperspb.StringValue

func (*UpdateScenarioRequest) GetName

func (x *UpdateScenarioRequest) GetName() string

func (*UpdateScenarioRequest) GetPausable

func (x *UpdateScenarioRequest) GetPausable() *wrapperspb.BoolValue

func (*UpdateScenarioRequest) GetPauseDuration

func (x *UpdateScenarioRequest) GetPauseDuration() *wrapperspb.StringValue

func (*UpdateScenarioRequest) GetRawCategories

func (x *UpdateScenarioRequest) GetRawCategories() string

func (*UpdateScenarioRequest) GetRawSteps

func (x *UpdateScenarioRequest) GetRawSteps() string

func (*UpdateScenarioRequest) GetRawTags

func (x *UpdateScenarioRequest) GetRawTags() string

func (*UpdateScenarioRequest) GetRawVmTasks

func (x *UpdateScenarioRequest) GetRawVmTasks() string

func (*UpdateScenarioRequest) GetRawVms

func (x *UpdateScenarioRequest) GetRawVms() string

func (*UpdateScenarioRequest) ProtoMessage

func (*UpdateScenarioRequest) ProtoMessage()

func (*UpdateScenarioRequest) ProtoReflect

func (x *UpdateScenarioRequest) ProtoReflect() protoreflect.Message

func (*UpdateScenarioRequest) Reset

func (x *UpdateScenarioRequest) Reset()

func (*UpdateScenarioRequest) String

func (x *UpdateScenarioRequest) String() string

type VirtualMachineTasks

type VirtualMachineTasks struct {
	VmName string  `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"`
	Tasks  []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualMachineTasks) Descriptor deprecated

func (*VirtualMachineTasks) Descriptor() ([]byte, []int)

Deprecated: Use VirtualMachineTasks.ProtoReflect.Descriptor instead.

func (*VirtualMachineTasks) GetTasks

func (x *VirtualMachineTasks) GetTasks() []*Task

func (*VirtualMachineTasks) GetVmName

func (x *VirtualMachineTasks) GetVmName() string

func (*VirtualMachineTasks) ProtoMessage

func (*VirtualMachineTasks) ProtoMessage()

func (*VirtualMachineTasks) ProtoReflect

func (x *VirtualMachineTasks) ProtoReflect() protoreflect.Message

func (*VirtualMachineTasks) Reset

func (x *VirtualMachineTasks) Reset()

func (*VirtualMachineTasks) String

func (x *VirtualMachineTasks) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL