Documentation ¶
Index ¶
- Variables
- func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
- type AgentClient
- type AgentServer
- type Agent_MonitorStreamClient
- type Agent_MonitorStreamServer
- type ChildExercise
- func (*ChildExercise) Descriptor() ([]byte, []int)deprecated
- func (x *ChildExercise) GetFlag() string
- func (x *ChildExercise) GetTag() string
- func (*ChildExercise) ProtoMessage()
- func (x *ChildExercise) ProtoReflect() protoreflect.Message
- func (x *ChildExercise) Reset()
- func (x *ChildExercise) String() string
- type ChildrenChalConfig
- func (*ChildrenChalConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ChildrenChalConfig) GetEnvFlag() string
- func (x *ChildrenChalConfig) GetName() string
- func (x *ChildrenChalConfig) GetStatic() string
- func (x *ChildrenChalConfig) GetTag() string
- func (*ChildrenChalConfig) ProtoMessage()
- func (x *ChildrenChalConfig) ProtoReflect() protoreflect.Message
- func (x *ChildrenChalConfig) Reset()
- func (x *ChildrenChalConfig) String() string
- type CloseEnvRequest
- type CloseLabRequest
- type CreatEnvRequest
- func (*CreatEnvRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatEnvRequest) GetEnvType() int32
- func (x *CreatEnvRequest) GetEventTag() string
- func (x *CreatEnvRequest) GetExerciseConfigs() []*ExerciseConfig
- func (x *CreatEnvRequest) GetExercises() []string
- func (x *CreatEnvRequest) GetInitialLabs() int32
- func (x *CreatEnvRequest) GetTeamSize() int32
- func (x *CreatEnvRequest) GetVm() *VmConfig
- func (*CreatEnvRequest) ProtoMessage()
- func (x *CreatEnvRequest) ProtoReflect() protoreflect.Message
- func (x *CreatEnvRequest) Reset()
- func (x *CreatEnvRequest) String() string
- type CreateLabRequest
- func (*CreateLabRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLabRequest) GetEventTag() string
- func (x *CreateLabRequest) GetIsVPN() bool
- func (*CreateLabRequest) ProtoMessage()
- func (x *CreateLabRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLabRequest) Reset()
- func (x *CreateLabRequest) String() string
- type CreateVpnConfRequest
- func (*CreateVpnConfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVpnConfRequest) GetLabTag() string
- func (*CreateVpnConfRequest) ProtoMessage()
- func (x *CreateVpnConfRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVpnConfRequest) Reset()
- func (x *CreateVpnConfRequest) String() string
- type CreateVpnConfResponse
- func (*CreateVpnConfResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVpnConfResponse) GetConfigs() []string
- func (*CreateVpnConfResponse) ProtoMessage()
- func (x *CreateVpnConfResponse) ProtoReflect() protoreflect.Message
- func (x *CreateVpnConfResponse) Reset()
- func (x *CreateVpnConfResponse) String() string
- type Empty
- type EnvVarConfig
- func (*EnvVarConfig) Descriptor() ([]byte, []int)deprecated
- func (x *EnvVarConfig) GetName() string
- func (x *EnvVarConfig) GetValue() string
- func (*EnvVarConfig) ProtoMessage()
- func (x *EnvVarConfig) ProtoReflect() protoreflect.Message
- func (x *EnvVarConfig) Reset()
- func (x *EnvVarConfig) String() string
- type Exercise
- func (*Exercise) Descriptor() ([]byte, []int)deprecated
- func (x *Exercise) GetChildExercises() []*ChildExercise
- func (x *Exercise) GetMachines() []*Machine
- func (x *Exercise) GetTag() string
- func (*Exercise) ProtoMessage()
- func (x *Exercise) ProtoReflect() protoreflect.Message
- func (x *Exercise) Reset()
- func (x *Exercise) String() string
- type ExerciseConfig
- func (*ExerciseConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ExerciseConfig) GetInstance() []*ExerciseInstanceConfig
- func (x *ExerciseConfig) GetStatic() bool
- func (x *ExerciseConfig) GetTag() string
- func (*ExerciseConfig) ProtoMessage()
- func (x *ExerciseConfig) ProtoReflect() protoreflect.Message
- func (x *ExerciseConfig) Reset()
- func (x *ExerciseConfig) String() string
- type ExerciseInstanceConfig
- func (*ExerciseInstanceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ExerciseInstanceConfig) GetChildren() []*ChildrenChalConfig
- func (x *ExerciseInstanceConfig) GetCpu() float32
- func (x *ExerciseInstanceConfig) GetEnvs() []*EnvVarConfig
- func (x *ExerciseInstanceConfig) GetImage() string
- func (x *ExerciseInstanceConfig) GetMemory() uint32
- func (x *ExerciseInstanceConfig) GetRecords() []*RecordConfig
- func (*ExerciseInstanceConfig) ProtoMessage()
- func (x *ExerciseInstanceConfig) ProtoReflect() protoreflect.Message
- func (x *ExerciseInstanceConfig) Reset()
- func (x *ExerciseInstanceConfig) String() string
- type ExerciseRequest
- func (*ExerciseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExerciseRequest) GetEnvTag() string
- func (x *ExerciseRequest) GetExercise() string
- func (x *ExerciseRequest) GetExerciseConfigs() []*ExerciseConfig
- func (x *ExerciseRequest) GetExercises() []string
- func (x *ExerciseRequest) GetLabTag() string
- func (*ExerciseRequest) ProtoMessage()
- func (x *ExerciseRequest) ProtoReflect() protoreflect.Message
- func (x *ExerciseRequest) Reset()
- func (x *ExerciseRequest) String() string
- type GetHostsRequest
- type GetHostsResponse
- type GetLabRequest
- type GetLabResponse
- type GuacCreds
- type Lab
- func (*Lab) Descriptor() ([]byte, []int)deprecated
- func (x *Lab) GetEventTag() string
- func (x *Lab) GetExercises() []*Exercise
- func (x *Lab) GetGuacCreds() *GuacCreds
- func (x *Lab) GetIsVPN() bool
- func (x *Lab) GetTag() string
- func (x *Lab) GetVpnConfs() []string
- func (*Lab) ProtoMessage()
- func (x *Lab) ProtoReflect() protoreflect.Message
- func (x *Lab) Reset()
- func (x *Lab) String() string
- type ListEnvResponse
- func (*ListEnvResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEnvResponse) GetClosingEventTags() map[string]bool
- func (x *ListEnvResponse) GetEventTags() map[string]bool
- func (x *ListEnvResponse) GetStartingEventTags() map[string]bool
- func (*ListEnvResponse) ProtoMessage()
- func (x *ListEnvResponse) ProtoReflect() protoreflect.Message
- func (x *ListEnvResponse) Reset()
- func (x *ListEnvResponse) String() string
- type Machine
- func (*Machine) Descriptor() ([]byte, []int)deprecated
- func (x *Machine) GetErrors() []string
- func (x *Machine) GetId() string
- func (x *Machine) GetImage() string
- func (x *Machine) GetStatus() string
- func (x *Machine) GetType() string
- func (*Machine) ProtoMessage()
- func (x *Machine) ProtoReflect() protoreflect.Message
- func (x *Machine) Reset()
- func (x *Machine) String() string
- type MonitorResponse
- func (*MonitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MonitorResponse) GetHb() string
- func (x *MonitorResponse) GetNewLabs() []*Lab
- func (x *MonitorResponse) GetQueuedTasks() uint32
- func (x *MonitorResponse) GetResources() *Resources
- func (*MonitorResponse) ProtoMessage()
- func (x *MonitorResponse) ProtoReflect() protoreflect.Message
- func (x *MonitorResponse) Reset()
- func (x *MonitorResponse) String() string
- type PingRequest
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingResponse) GetMemInstalled() uint64
- func (x *PingResponse) GetPong() string
- func (*PingResponse) ProtoMessage()
- func (x *PingResponse) ProtoReflect() protoreflect.Message
- func (x *PingResponse) Reset()
- func (x *PingResponse) String() string
- type RecordConfig
- func (*RecordConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RecordConfig) GetData() string
- func (x *RecordConfig) GetName() string
- func (x *RecordConfig) GetType() string
- func (*RecordConfig) ProtoMessage()
- func (x *RecordConfig) ProtoReflect() protoreflect.Message
- func (x *RecordConfig) Reset()
- func (x *RecordConfig) String() string
- type ResetLabRequest
- type Resources
- func (*Resources) Descriptor() ([]byte, []int)deprecated
- func (x *Resources) GetContainerCount() uint32
- func (x *Resources) GetCpu() float64
- func (x *Resources) GetLabCount() uint32
- func (x *Resources) GetMemAvailable() uint64
- func (x *Resources) GetMemInstalled() uint64
- func (x *Resources) GetMemPercentUsed() float64
- func (x *Resources) GetVmCount() uint32
- func (*Resources) ProtoMessage()
- func (x *Resources) ProtoReflect() protoreflect.Message
- func (x *Resources) Reset()
- func (x *Resources) String() string
- type StatusResponse
- type UnimplementedAgentServer
- func (UnimplementedAgentServer) AddExercisesToEnv(context.Context, *ExerciseRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) AddExercisesToLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) CloseEnvironment(context.Context, *CloseEnvRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) CloseLab(context.Context, *CloseLabRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) CreateEnvironment(context.Context, *CreatEnvRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) CreateLabForEnv(context.Context, *CreateLabRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) CreateVpnConfForLab(context.Context, *CreateVpnConfRequest) (*CreateVpnConfResponse, error)
- func (UnimplementedAgentServer) GetHostsInLab(context.Context, *GetHostsRequest) (*GetHostsResponse, error)
- func (UnimplementedAgentServer) GetLab(context.Context, *GetLabRequest) (*GetLabResponse, error)
- func (UnimplementedAgentServer) ListEnvironments(context.Context, *Empty) (*ListEnvResponse, error)
- func (UnimplementedAgentServer) MonitorStream(Agent_MonitorStreamServer) error
- func (UnimplementedAgentServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedAgentServer) ResetExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) ResetLab(context.Context, *ResetLabRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) ResetVmInLab(context.Context, *VmRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) StartExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
- func (UnimplementedAgentServer) StopExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
- type UnsafeAgentServer
- type VmConfig
- func (*VmConfig) Descriptor() ([]byte, []int)deprecated
- func (x *VmConfig) GetCpu() float64
- func (x *VmConfig) GetImage() string
- func (x *VmConfig) GetMemoryMB() uint32
- func (*VmConfig) ProtoMessage()
- func (x *VmConfig) ProtoReflect() protoreflect.Message
- func (x *VmConfig) Reset()
- func (x *VmConfig) String() string
- type VmRequest
- func (*VmRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VmRequest) GetConnectionIdentifier() string
- func (x *VmRequest) GetLabTag() string
- func (*VmRequest) ProtoMessage()
- func (x *VmRequest) ProtoReflect() protoreflect.Message
- func (x *VmRequest) Reset()
- func (x *VmRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var Agent_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agent.Agent", HandlerType: (*AgentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateEnvironment", Handler: _Agent_CreateEnvironment_Handler, }, { MethodName: "CloseEnvironment", Handler: _Agent_CloseEnvironment_Handler, }, { MethodName: "ListEnvironments", Handler: _Agent_ListEnvironments_Handler, }, { MethodName: "CreateLabForEnv", Handler: _Agent_CreateLabForEnv_Handler, }, { MethodName: "CreateVpnConfForLab", Handler: _Agent_CreateVpnConfForLab_Handler, }, { MethodName: "CloseLab", Handler: _Agent_CloseLab_Handler, }, { MethodName: "AddExercisesToEnv", Handler: _Agent_AddExercisesToEnv_Handler, }, { MethodName: "AddExercisesToLab", Handler: _Agent_AddExercisesToLab_Handler, }, { MethodName: "ResetLab", Handler: _Agent_ResetLab_Handler, }, { MethodName: "ResetExerciseInLab", Handler: _Agent_ResetExerciseInLab_Handler, }, { MethodName: "StartExerciseInLab", Handler: _Agent_StartExerciseInLab_Handler, }, { MethodName: "StopExerciseInLab", Handler: _Agent_StopExerciseInLab_Handler, }, { MethodName: "Ping", Handler: _Agent_Ping_Handler, }, { MethodName: "GetLab", Handler: _Agent_GetLab_Handler, }, { MethodName: "GetHostsInLab", Handler: _Agent_GetHostsInLab_Handler, }, { MethodName: "ResetVmInLab", Handler: _Agent_ResetVmInLab_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "MonitorStream", Handler: _Agent_MonitorStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "agent.proto", }
Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_agent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServer ¶
func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)
Types ¶
type AgentClient ¶
type AgentClient interface { CreateEnvironment(ctx context.Context, in *CreatEnvRequest, opts ...grpc.CallOption) (*StatusResponse, error) CloseEnvironment(ctx context.Context, in *CloseEnvRequest, opts ...grpc.CallOption) (*StatusResponse, error) ListEnvironments(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListEnvResponse, error) CreateLabForEnv(ctx context.Context, in *CreateLabRequest, opts ...grpc.CallOption) (*StatusResponse, error) CreateVpnConfForLab(ctx context.Context, in *CreateVpnConfRequest, opts ...grpc.CallOption) (*CreateVpnConfResponse, error) CloseLab(ctx context.Context, in *CloseLabRequest, opts ...grpc.CallOption) (*StatusResponse, error) AddExercisesToEnv(ctx context.Context, in *ExerciseRequest, opts ...grpc.CallOption) (*StatusResponse, error) AddExercisesToLab(ctx context.Context, in *ExerciseRequest, opts ...grpc.CallOption) (*StatusResponse, error) ResetLab(ctx context.Context, in *ResetLabRequest, opts ...grpc.CallOption) (*StatusResponse, error) ResetExerciseInLab(ctx context.Context, in *ExerciseRequest, opts ...grpc.CallOption) (*StatusResponse, error) StartExerciseInLab(ctx context.Context, in *ExerciseRequest, opts ...grpc.CallOption) (*StatusResponse, error) StopExerciseInLab(ctx context.Context, in *ExerciseRequest, opts ...grpc.CallOption) (*StatusResponse, error) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) MonitorStream(ctx context.Context, opts ...grpc.CallOption) (Agent_MonitorStreamClient, error) GetLab(ctx context.Context, in *GetLabRequest, opts ...grpc.CallOption) (*GetLabResponse, error) GetHostsInLab(ctx context.Context, in *GetHostsRequest, opts ...grpc.CallOption) (*GetHostsResponse, error) ResetVmInLab(ctx context.Context, in *VmRequest, opts ...grpc.CallOption) (*StatusResponse, error) }
AgentClient is the client API for Agent 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.
func NewAgentClient ¶
func NewAgentClient(cc grpc.ClientConnInterface) AgentClient
type AgentServer ¶
type AgentServer interface { CreateEnvironment(context.Context, *CreatEnvRequest) (*StatusResponse, error) CloseEnvironment(context.Context, *CloseEnvRequest) (*StatusResponse, error) ListEnvironments(context.Context, *Empty) (*ListEnvResponse, error) CreateLabForEnv(context.Context, *CreateLabRequest) (*StatusResponse, error) CreateVpnConfForLab(context.Context, *CreateVpnConfRequest) (*CreateVpnConfResponse, error) CloseLab(context.Context, *CloseLabRequest) (*StatusResponse, error) AddExercisesToEnv(context.Context, *ExerciseRequest) (*StatusResponse, error) AddExercisesToLab(context.Context, *ExerciseRequest) (*StatusResponse, error) ResetLab(context.Context, *ResetLabRequest) (*StatusResponse, error) ResetExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error) StartExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error) StopExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) MonitorStream(Agent_MonitorStreamServer) error GetLab(context.Context, *GetLabRequest) (*GetLabResponse, error) GetHostsInLab(context.Context, *GetHostsRequest) (*GetHostsResponse, error) ResetVmInLab(context.Context, *VmRequest) (*StatusResponse, error) // contains filtered or unexported methods }
AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility
type Agent_MonitorStreamClient ¶ added in v0.1.0
type Agent_MonitorStreamClient interface { Send(*PingRequest) error Recv() (*MonitorResponse, error) grpc.ClientStream }
type Agent_MonitorStreamServer ¶ added in v0.1.0
type Agent_MonitorStreamServer interface { Send(*MonitorResponse) error Recv() (*PingRequest, error) grpc.ServerStream }
type ChildExercise ¶ added in v0.1.0
type ChildExercise struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Flag string `protobuf:"bytes,2,opt,name=flag,proto3" json:"flag,omitempty"` // contains filtered or unexported fields }
func (*ChildExercise) Descriptor
deprecated
added in
v0.1.0
func (*ChildExercise) Descriptor() ([]byte, []int)
Deprecated: Use ChildExercise.ProtoReflect.Descriptor instead.
func (*ChildExercise) GetFlag ¶ added in v0.1.0
func (x *ChildExercise) GetFlag() string
func (*ChildExercise) GetTag ¶ added in v0.1.0
func (x *ChildExercise) GetTag() string
func (*ChildExercise) ProtoMessage ¶ added in v0.1.0
func (*ChildExercise) ProtoMessage()
func (*ChildExercise) ProtoReflect ¶ added in v0.1.0
func (x *ChildExercise) ProtoReflect() protoreflect.Message
func (*ChildExercise) Reset ¶ added in v0.1.0
func (x *ChildExercise) Reset()
func (*ChildExercise) String ¶ added in v0.1.0
func (x *ChildExercise) String() string
type ChildrenChalConfig ¶ added in v1.0.0
type ChildrenChalConfig struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` EnvFlag string `protobuf:"bytes,3,opt,name=envFlag,proto3" json:"envFlag,omitempty"` Static string `protobuf:"bytes,4,opt,name=static,proto3" json:"static,omitempty"` // contains filtered or unexported fields }
func (*ChildrenChalConfig) Descriptor
deprecated
added in
v1.0.0
func (*ChildrenChalConfig) Descriptor() ([]byte, []int)
Deprecated: Use ChildrenChalConfig.ProtoReflect.Descriptor instead.
func (*ChildrenChalConfig) GetEnvFlag ¶ added in v1.0.0
func (x *ChildrenChalConfig) GetEnvFlag() string
func (*ChildrenChalConfig) GetName ¶ added in v1.0.0
func (x *ChildrenChalConfig) GetName() string
func (*ChildrenChalConfig) GetStatic ¶ added in v1.0.0
func (x *ChildrenChalConfig) GetStatic() string
func (*ChildrenChalConfig) GetTag ¶ added in v1.0.0
func (x *ChildrenChalConfig) GetTag() string
func (*ChildrenChalConfig) ProtoMessage ¶ added in v1.0.0
func (*ChildrenChalConfig) ProtoMessage()
func (*ChildrenChalConfig) ProtoReflect ¶ added in v1.0.0
func (x *ChildrenChalConfig) ProtoReflect() protoreflect.Message
func (*ChildrenChalConfig) Reset ¶ added in v1.0.0
func (x *ChildrenChalConfig) Reset()
func (*ChildrenChalConfig) String ¶ added in v1.0.0
func (x *ChildrenChalConfig) String() string
type CloseEnvRequest ¶ added in v0.1.0
type CloseEnvRequest struct { EventTag string `protobuf:"bytes,1,opt,name=eventTag,proto3" json:"eventTag,omitempty"` // contains filtered or unexported fields }
func (*CloseEnvRequest) Descriptor
deprecated
added in
v0.1.0
func (*CloseEnvRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseEnvRequest.ProtoReflect.Descriptor instead.
func (*CloseEnvRequest) GetEventTag ¶ added in v0.1.0
func (x *CloseEnvRequest) GetEventTag() string
func (*CloseEnvRequest) ProtoMessage ¶ added in v0.1.0
func (*CloseEnvRequest) ProtoMessage()
func (*CloseEnvRequest) ProtoReflect ¶ added in v0.1.0
func (x *CloseEnvRequest) ProtoReflect() protoreflect.Message
func (*CloseEnvRequest) Reset ¶ added in v0.1.0
func (x *CloseEnvRequest) Reset()
func (*CloseEnvRequest) String ¶ added in v0.1.0
func (x *CloseEnvRequest) String() string
type CloseLabRequest ¶ added in v0.1.0
type CloseLabRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` // contains filtered or unexported fields }
func (*CloseLabRequest) Descriptor
deprecated
added in
v0.1.0
func (*CloseLabRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseLabRequest.ProtoReflect.Descriptor instead.
func (*CloseLabRequest) GetLabTag ¶ added in v0.1.0
func (x *CloseLabRequest) GetLabTag() string
func (*CloseLabRequest) ProtoMessage ¶ added in v0.1.0
func (*CloseLabRequest) ProtoMessage()
func (*CloseLabRequest) ProtoReflect ¶ added in v0.1.0
func (x *CloseLabRequest) ProtoReflect() protoreflect.Message
func (*CloseLabRequest) Reset ¶ added in v0.1.0
func (x *CloseLabRequest) Reset()
func (*CloseLabRequest) String ¶ added in v0.1.0
func (x *CloseLabRequest) String() string
type CreatEnvRequest ¶ added in v0.1.0
type CreatEnvRequest struct { EventTag string `protobuf:"bytes,1,opt,name=eventTag,proto3" json:"eventTag,omitempty"` EnvType int32 `protobuf:"varint,2,opt,name=envType,proto3" json:"envType,omitempty"` Vm *VmConfig `protobuf:"bytes,3,opt,name=vm,proto3" json:"vm,omitempty"` InitialLabs int32 `protobuf:"varint,4,opt,name=initialLabs,proto3" json:"initialLabs,omitempty"` Exercises []string `protobuf:"bytes,5,rep,name=exercises,proto3" json:"exercises,omitempty"` TeamSize int32 `protobuf:"varint,6,opt,name=teamSize,proto3" json:"teamSize,omitempty"` ExerciseConfigs []*ExerciseConfig `protobuf:"bytes,7,rep,name=exerciseConfigs,proto3" json:"exerciseConfigs,omitempty"` // contains filtered or unexported fields }
func (*CreatEnvRequest) Descriptor
deprecated
added in
v0.1.0
func (*CreatEnvRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatEnvRequest.ProtoReflect.Descriptor instead.
func (*CreatEnvRequest) GetEnvType ¶ added in v0.1.0
func (x *CreatEnvRequest) GetEnvType() int32
func (*CreatEnvRequest) GetEventTag ¶ added in v0.1.0
func (x *CreatEnvRequest) GetEventTag() string
func (*CreatEnvRequest) GetExerciseConfigs ¶ added in v1.0.0
func (x *CreatEnvRequest) GetExerciseConfigs() []*ExerciseConfig
func (*CreatEnvRequest) GetExercises ¶ added in v0.1.0
func (x *CreatEnvRequest) GetExercises() []string
func (*CreatEnvRequest) GetInitialLabs ¶ added in v0.1.0
func (x *CreatEnvRequest) GetInitialLabs() int32
func (*CreatEnvRequest) GetTeamSize ¶ added in v0.1.0
func (x *CreatEnvRequest) GetTeamSize() int32
func (*CreatEnvRequest) GetVm ¶ added in v0.1.0
func (x *CreatEnvRequest) GetVm() *VmConfig
func (*CreatEnvRequest) ProtoMessage ¶ added in v0.1.0
func (*CreatEnvRequest) ProtoMessage()
func (*CreatEnvRequest) ProtoReflect ¶ added in v0.1.0
func (x *CreatEnvRequest) ProtoReflect() protoreflect.Message
func (*CreatEnvRequest) Reset ¶ added in v0.1.0
func (x *CreatEnvRequest) Reset()
func (*CreatEnvRequest) String ¶ added in v0.1.0
func (x *CreatEnvRequest) String() string
type CreateLabRequest ¶ added in v0.1.0
type CreateLabRequest struct { EventTag string `protobuf:"bytes,1,opt,name=eventTag,proto3" json:"eventTag,omitempty"` IsVPN bool `protobuf:"varint,2,opt,name=isVPN,proto3" json:"isVPN,omitempty"` // contains filtered or unexported fields }
func (*CreateLabRequest) Descriptor
deprecated
added in
v0.1.0
func (*CreateLabRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLabRequest.ProtoReflect.Descriptor instead.
func (*CreateLabRequest) GetEventTag ¶ added in v0.1.0
func (x *CreateLabRequest) GetEventTag() string
func (*CreateLabRequest) GetIsVPN ¶ added in v0.1.0
func (x *CreateLabRequest) GetIsVPN() bool
func (*CreateLabRequest) ProtoMessage ¶ added in v0.1.0
func (*CreateLabRequest) ProtoMessage()
func (*CreateLabRequest) ProtoReflect ¶ added in v0.1.0
func (x *CreateLabRequest) ProtoReflect() protoreflect.Message
func (*CreateLabRequest) Reset ¶ added in v0.1.0
func (x *CreateLabRequest) Reset()
func (*CreateLabRequest) String ¶ added in v0.1.0
func (x *CreateLabRequest) String() string
type CreateVpnConfRequest ¶ added in v0.1.0
type CreateVpnConfRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` // contains filtered or unexported fields }
func (*CreateVpnConfRequest) Descriptor
deprecated
added in
v0.1.0
func (*CreateVpnConfRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVpnConfRequest.ProtoReflect.Descriptor instead.
func (*CreateVpnConfRequest) GetLabTag ¶ added in v0.1.0
func (x *CreateVpnConfRequest) GetLabTag() string
func (*CreateVpnConfRequest) ProtoMessage ¶ added in v0.1.0
func (*CreateVpnConfRequest) ProtoMessage()
func (*CreateVpnConfRequest) ProtoReflect ¶ added in v0.1.0
func (x *CreateVpnConfRequest) ProtoReflect() protoreflect.Message
func (*CreateVpnConfRequest) Reset ¶ added in v0.1.0
func (x *CreateVpnConfRequest) Reset()
func (*CreateVpnConfRequest) String ¶ added in v0.1.0
func (x *CreateVpnConfRequest) String() string
type CreateVpnConfResponse ¶ added in v0.1.0
type CreateVpnConfResponse struct { Configs []string `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` // contains filtered or unexported fields }
func (*CreateVpnConfResponse) Descriptor
deprecated
added in
v0.1.0
func (*CreateVpnConfResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVpnConfResponse.ProtoReflect.Descriptor instead.
func (*CreateVpnConfResponse) GetConfigs ¶ added in v0.1.0
func (x *CreateVpnConfResponse) GetConfigs() []string
func (*CreateVpnConfResponse) ProtoMessage ¶ added in v0.1.0
func (*CreateVpnConfResponse) ProtoMessage()
func (*CreateVpnConfResponse) ProtoReflect ¶ added in v0.1.0
func (x *CreateVpnConfResponse) ProtoReflect() protoreflect.Message
func (*CreateVpnConfResponse) Reset ¶ added in v0.1.0
func (x *CreateVpnConfResponse) Reset()
func (*CreateVpnConfResponse) String ¶ added in v0.1.0
func (x *CreateVpnConfResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EnvVarConfig ¶ added in v1.0.0
type EnvVarConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*EnvVarConfig) Descriptor
deprecated
added in
v1.0.0
func (*EnvVarConfig) Descriptor() ([]byte, []int)
Deprecated: Use EnvVarConfig.ProtoReflect.Descriptor instead.
func (*EnvVarConfig) GetName ¶ added in v1.0.0
func (x *EnvVarConfig) GetName() string
func (*EnvVarConfig) GetValue ¶ added in v1.0.0
func (x *EnvVarConfig) GetValue() string
func (*EnvVarConfig) ProtoMessage ¶ added in v1.0.0
func (*EnvVarConfig) ProtoMessage()
func (*EnvVarConfig) ProtoReflect ¶ added in v1.0.0
func (x *EnvVarConfig) ProtoReflect() protoreflect.Message
func (*EnvVarConfig) Reset ¶ added in v1.0.0
func (x *EnvVarConfig) Reset()
func (*EnvVarConfig) String ¶ added in v1.0.0
func (x *EnvVarConfig) String() string
type Exercise ¶ added in v0.1.0
type Exercise struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` ChildExercises []*ChildExercise `protobuf:"bytes,2,rep,name=childExercises,proto3" json:"childExercises,omitempty"` Machines []*Machine `protobuf:"bytes,3,rep,name=machines,proto3" json:"machines,omitempty"` // contains filtered or unexported fields }
func (*Exercise) Descriptor
deprecated
added in
v0.1.0
func (*Exercise) GetChildExercises ¶ added in v0.1.0
func (x *Exercise) GetChildExercises() []*ChildExercise
func (*Exercise) GetMachines ¶ added in v0.1.0
func (*Exercise) ProtoMessage ¶ added in v0.1.0
func (*Exercise) ProtoMessage()
func (*Exercise) ProtoReflect ¶ added in v0.1.0
func (x *Exercise) ProtoReflect() protoreflect.Message
type ExerciseConfig ¶ added in v1.0.0
type ExerciseConfig struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Static bool `protobuf:"varint,2,opt,name=static,proto3" json:"static,omitempty"` Instance []*ExerciseInstanceConfig `protobuf:"bytes,3,rep,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
func (*ExerciseConfig) Descriptor
deprecated
added in
v1.0.0
func (*ExerciseConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExerciseConfig.ProtoReflect.Descriptor instead.
func (*ExerciseConfig) GetInstance ¶ added in v1.0.0
func (x *ExerciseConfig) GetInstance() []*ExerciseInstanceConfig
func (*ExerciseConfig) GetStatic ¶ added in v1.0.0
func (x *ExerciseConfig) GetStatic() bool
func (*ExerciseConfig) GetTag ¶ added in v1.0.0
func (x *ExerciseConfig) GetTag() string
func (*ExerciseConfig) ProtoMessage ¶ added in v1.0.0
func (*ExerciseConfig) ProtoMessage()
func (*ExerciseConfig) ProtoReflect ¶ added in v1.0.0
func (x *ExerciseConfig) ProtoReflect() protoreflect.Message
func (*ExerciseConfig) Reset ¶ added in v1.0.0
func (x *ExerciseConfig) Reset()
func (*ExerciseConfig) String ¶ added in v1.0.0
func (x *ExerciseConfig) String() string
type ExerciseInstanceConfig ¶ added in v1.0.0
type ExerciseInstanceConfig struct { Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Memory uint32 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` Cpu float32 `protobuf:"fixed32,3,opt,name=cpu,proto3" json:"cpu,omitempty"` Envs []*EnvVarConfig `protobuf:"bytes,4,rep,name=envs,proto3" json:"envs,omitempty"` Children []*ChildrenChalConfig `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"` Records []*RecordConfig `protobuf:"bytes,6,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
func (*ExerciseInstanceConfig) Descriptor
deprecated
added in
v1.0.0
func (*ExerciseInstanceConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExerciseInstanceConfig.ProtoReflect.Descriptor instead.
func (*ExerciseInstanceConfig) GetChildren ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetChildren() []*ChildrenChalConfig
func (*ExerciseInstanceConfig) GetCpu ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetCpu() float32
func (*ExerciseInstanceConfig) GetEnvs ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetEnvs() []*EnvVarConfig
func (*ExerciseInstanceConfig) GetImage ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetImage() string
func (*ExerciseInstanceConfig) GetMemory ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetMemory() uint32
func (*ExerciseInstanceConfig) GetRecords ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) GetRecords() []*RecordConfig
func (*ExerciseInstanceConfig) ProtoMessage ¶ added in v1.0.0
func (*ExerciseInstanceConfig) ProtoMessage()
func (*ExerciseInstanceConfig) ProtoReflect ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) ProtoReflect() protoreflect.Message
func (*ExerciseInstanceConfig) Reset ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) Reset()
func (*ExerciseInstanceConfig) String ¶ added in v1.0.0
func (x *ExerciseInstanceConfig) String() string
type ExerciseRequest ¶ added in v0.1.0
type ExerciseRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` EnvTag string `protobuf:"bytes,2,opt,name=envTag,proto3" json:"envTag,omitempty"` Exercises []string `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` Exercise string `protobuf:"bytes,4,opt,name=exercise,proto3" json:"exercise,omitempty"` ExerciseConfigs []*ExerciseConfig `protobuf:"bytes,5,rep,name=exerciseConfigs,proto3" json:"exerciseConfigs,omitempty"` // contains filtered or unexported fields }
func (*ExerciseRequest) Descriptor
deprecated
added in
v0.1.0
func (*ExerciseRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExerciseRequest.ProtoReflect.Descriptor instead.
func (*ExerciseRequest) GetEnvTag ¶ added in v0.1.0
func (x *ExerciseRequest) GetEnvTag() string
func (*ExerciseRequest) GetExercise ¶ added in v0.1.0
func (x *ExerciseRequest) GetExercise() string
func (*ExerciseRequest) GetExerciseConfigs ¶ added in v1.0.0
func (x *ExerciseRequest) GetExerciseConfigs() []*ExerciseConfig
func (*ExerciseRequest) GetExercises ¶ added in v0.1.0
func (x *ExerciseRequest) GetExercises() []string
func (*ExerciseRequest) GetLabTag ¶ added in v0.1.0
func (x *ExerciseRequest) GetLabTag() string
func (*ExerciseRequest) ProtoMessage ¶ added in v0.1.0
func (*ExerciseRequest) ProtoMessage()
func (*ExerciseRequest) ProtoReflect ¶ added in v0.1.0
func (x *ExerciseRequest) ProtoReflect() protoreflect.Message
func (*ExerciseRequest) Reset ¶ added in v0.1.0
func (x *ExerciseRequest) Reset()
func (*ExerciseRequest) String ¶ added in v0.1.0
func (x *ExerciseRequest) String() string
type GetHostsRequest ¶ added in v0.1.0
type GetHostsRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` // contains filtered or unexported fields }
func (*GetHostsRequest) Descriptor
deprecated
added in
v0.1.0
func (*GetHostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHostsRequest.ProtoReflect.Descriptor instead.
func (*GetHostsRequest) GetLabTag ¶ added in v0.1.0
func (x *GetHostsRequest) GetLabTag() string
func (*GetHostsRequest) ProtoMessage ¶ added in v0.1.0
func (*GetHostsRequest) ProtoMessage()
func (*GetHostsRequest) ProtoReflect ¶ added in v0.1.0
func (x *GetHostsRequest) ProtoReflect() protoreflect.Message
func (*GetHostsRequest) Reset ¶ added in v0.1.0
func (x *GetHostsRequest) Reset()
func (*GetHostsRequest) String ¶ added in v0.1.0
func (x *GetHostsRequest) String() string
type GetHostsResponse ¶ added in v0.1.0
type GetHostsResponse struct { Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` // contains filtered or unexported fields }
func (*GetHostsResponse) Descriptor
deprecated
added in
v0.1.0
func (*GetHostsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHostsResponse.ProtoReflect.Descriptor instead.
func (*GetHostsResponse) GetHosts ¶ added in v0.1.0
func (x *GetHostsResponse) GetHosts() []string
func (*GetHostsResponse) ProtoMessage ¶ added in v0.1.0
func (*GetHostsResponse) ProtoMessage()
func (*GetHostsResponse) ProtoReflect ¶ added in v0.1.0
func (x *GetHostsResponse) ProtoReflect() protoreflect.Message
func (*GetHostsResponse) Reset ¶ added in v0.1.0
func (x *GetHostsResponse) Reset()
func (*GetHostsResponse) String ¶ added in v0.1.0
func (x *GetHostsResponse) String() string
type GetLabRequest ¶ added in v0.1.0
type GetLabRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` // contains filtered or unexported fields }
func (*GetLabRequest) Descriptor
deprecated
added in
v0.1.0
func (*GetLabRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLabRequest.ProtoReflect.Descriptor instead.
func (*GetLabRequest) GetLabTag ¶ added in v0.1.0
func (x *GetLabRequest) GetLabTag() string
func (*GetLabRequest) ProtoMessage ¶ added in v0.1.0
func (*GetLabRequest) ProtoMessage()
func (*GetLabRequest) ProtoReflect ¶ added in v0.1.0
func (x *GetLabRequest) ProtoReflect() protoreflect.Message
func (*GetLabRequest) Reset ¶ added in v0.1.0
func (x *GetLabRequest) Reset()
func (*GetLabRequest) String ¶ added in v0.1.0
func (x *GetLabRequest) String() string
type GetLabResponse ¶ added in v0.1.0
type GetLabResponse struct { Lab *Lab `protobuf:"bytes,1,opt,name=lab,proto3" json:"lab,omitempty"` // contains filtered or unexported fields }
func (*GetLabResponse) Descriptor
deprecated
added in
v0.1.0
func (*GetLabResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLabResponse.ProtoReflect.Descriptor instead.
func (*GetLabResponse) GetLab ¶ added in v0.1.0
func (x *GetLabResponse) GetLab() *Lab
func (*GetLabResponse) ProtoMessage ¶ added in v0.1.0
func (*GetLabResponse) ProtoMessage()
func (*GetLabResponse) ProtoReflect ¶ added in v0.1.0
func (x *GetLabResponse) ProtoReflect() protoreflect.Message
func (*GetLabResponse) Reset ¶ added in v0.1.0
func (x *GetLabResponse) Reset()
func (*GetLabResponse) String ¶ added in v0.1.0
func (x *GetLabResponse) String() string
type GuacCreds ¶ added in v0.1.0
type GuacCreds struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*GuacCreds) Descriptor
deprecated
added in
v0.1.0
func (*GuacCreds) GetPassword ¶ added in v0.1.0
func (*GuacCreds) GetUsername ¶ added in v0.1.0
func (*GuacCreds) ProtoMessage ¶ added in v0.1.0
func (*GuacCreds) ProtoMessage()
func (*GuacCreds) ProtoReflect ¶ added in v0.1.0
func (x *GuacCreds) ProtoReflect() protoreflect.Message
type Lab ¶ added in v0.1.0
type Lab struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` EventTag string `protobuf:"bytes,2,opt,name=eventTag,proto3" json:"eventTag,omitempty"` Exercises []*Exercise `protobuf:"bytes,3,rep,name=exercises,proto3" json:"exercises,omitempty"` IsVPN bool `protobuf:"varint,4,opt,name=isVPN,proto3" json:"isVPN,omitempty"` GuacCreds *GuacCreds `protobuf:"bytes,5,opt,name=guacCreds,proto3" json:"guacCreds,omitempty"` VpnConfs []string `protobuf:"bytes,6,rep,name=vpnConfs,proto3" json:"vpnConfs,omitempty"` // contains filtered or unexported fields }
func (*Lab) Descriptor
deprecated
added in
v0.1.0
func (*Lab) GetEventTag ¶ added in v0.1.0
func (*Lab) GetExercises ¶ added in v0.1.0
func (*Lab) GetGuacCreds ¶ added in v0.1.0
func (*Lab) GetVpnConfs ¶ added in v0.1.0
func (*Lab) ProtoMessage ¶ added in v0.1.0
func (*Lab) ProtoMessage()
func (*Lab) ProtoReflect ¶ added in v0.1.0
func (x *Lab) ProtoReflect() protoreflect.Message
type ListEnvResponse ¶ added in v1.0.0
type ListEnvResponse struct { EventTags map[string]bool `` /* 160-byte string literal not displayed */ StartingEventTags map[string]bool `` /* 176-byte string literal not displayed */ ClosingEventTags map[string]bool `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListEnvResponse) Descriptor
deprecated
added in
v1.0.0
func (*ListEnvResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEnvResponse.ProtoReflect.Descriptor instead.
func (*ListEnvResponse) GetClosingEventTags ¶ added in v1.0.0
func (x *ListEnvResponse) GetClosingEventTags() map[string]bool
func (*ListEnvResponse) GetEventTags ¶ added in v1.0.0
func (x *ListEnvResponse) GetEventTags() map[string]bool
func (*ListEnvResponse) GetStartingEventTags ¶ added in v1.0.0
func (x *ListEnvResponse) GetStartingEventTags() map[string]bool
func (*ListEnvResponse) ProtoMessage ¶ added in v1.0.0
func (*ListEnvResponse) ProtoMessage()
func (*ListEnvResponse) ProtoReflect ¶ added in v1.0.0
func (x *ListEnvResponse) ProtoReflect() protoreflect.Message
func (*ListEnvResponse) Reset ¶ added in v1.0.0
func (x *ListEnvResponse) Reset()
func (*ListEnvResponse) String ¶ added in v1.0.0
func (x *ListEnvResponse) String() string
type Machine ¶ added in v0.1.0
type Machine struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` Errors []string `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Machine) Descriptor
deprecated
added in
v0.1.0
func (*Machine) ProtoMessage ¶ added in v0.1.0
func (*Machine) ProtoMessage()
func (*Machine) ProtoReflect ¶ added in v0.1.0
func (x *Machine) ProtoReflect() protoreflect.Message
type MonitorResponse ¶ added in v0.1.0
type MonitorResponse struct { Hb string `protobuf:"bytes,1,opt,name=hb,proto3" json:"hb,omitempty"` NewLabs []*Lab `protobuf:"bytes,2,rep,name=newLabs,proto3" json:"newLabs,omitempty"` Resources *Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` QueuedTasks uint32 `protobuf:"varint,4,opt,name=queuedTasks,proto3" json:"queuedTasks,omitempty"` // contains filtered or unexported fields }
func (*MonitorResponse) Descriptor
deprecated
added in
v0.1.0
func (*MonitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MonitorResponse.ProtoReflect.Descriptor instead.
func (*MonitorResponse) GetHb ¶ added in v0.1.0
func (x *MonitorResponse) GetHb() string
func (*MonitorResponse) GetNewLabs ¶ added in v0.1.0
func (x *MonitorResponse) GetNewLabs() []*Lab
func (*MonitorResponse) GetQueuedTasks ¶ added in v0.1.0
func (x *MonitorResponse) GetQueuedTasks() uint32
func (*MonitorResponse) GetResources ¶ added in v0.1.0
func (x *MonitorResponse) GetResources() *Resources
func (*MonitorResponse) ProtoMessage ¶ added in v0.1.0
func (*MonitorResponse) ProtoMessage()
func (*MonitorResponse) ProtoReflect ¶ added in v0.1.0
func (x *MonitorResponse) ProtoReflect() protoreflect.Message
func (*MonitorResponse) Reset ¶ added in v0.1.0
func (x *MonitorResponse) Reset()
func (*MonitorResponse) String ¶ added in v0.1.0
func (x *MonitorResponse) String() string
type PingRequest ¶ added in v0.1.0
type PingRequest struct { Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"` // contains filtered or unexported fields }
func (*PingRequest) Descriptor
deprecated
added in
v0.1.0
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) GetPing ¶ added in v0.1.0
func (x *PingRequest) GetPing() string
func (*PingRequest) ProtoMessage ¶ added in v0.1.0
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶ added in v0.1.0
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶ added in v0.1.0
func (x *PingRequest) Reset()
func (*PingRequest) String ¶ added in v0.1.0
func (x *PingRequest) String() string
type PingResponse ¶ added in v0.1.0
type PingResponse struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` MemInstalled uint64 `protobuf:"varint,2,opt,name=memInstalled,proto3" json:"memInstalled,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
added in
v0.1.0
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetMemInstalled ¶ added in v0.1.0
func (x *PingResponse) GetMemInstalled() uint64
func (*PingResponse) GetPong ¶ added in v0.1.0
func (x *PingResponse) GetPong() string
func (*PingResponse) ProtoMessage ¶ added in v0.1.0
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶ added in v0.1.0
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶ added in v0.1.0
func (x *PingResponse) Reset()
func (*PingResponse) String ¶ added in v0.1.0
func (x *PingResponse) String() string
type RecordConfig ¶ added in v1.0.0
type RecordConfig struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RecordConfig) Descriptor
deprecated
added in
v1.0.0
func (*RecordConfig) Descriptor() ([]byte, []int)
Deprecated: Use RecordConfig.ProtoReflect.Descriptor instead.
func (*RecordConfig) GetData ¶ added in v1.0.0
func (x *RecordConfig) GetData() string
func (*RecordConfig) GetName ¶ added in v1.0.0
func (x *RecordConfig) GetName() string
func (*RecordConfig) GetType ¶ added in v1.0.0
func (x *RecordConfig) GetType() string
func (*RecordConfig) ProtoMessage ¶ added in v1.0.0
func (*RecordConfig) ProtoMessage()
func (*RecordConfig) ProtoReflect ¶ added in v1.0.0
func (x *RecordConfig) ProtoReflect() protoreflect.Message
func (*RecordConfig) Reset ¶ added in v1.0.0
func (x *RecordConfig) Reset()
func (*RecordConfig) String ¶ added in v1.0.0
func (x *RecordConfig) String() string
type ResetLabRequest ¶ added in v1.0.0
type ResetLabRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` // contains filtered or unexported fields }
func (*ResetLabRequest) Descriptor
deprecated
added in
v1.0.0
func (*ResetLabRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetLabRequest.ProtoReflect.Descriptor instead.
func (*ResetLabRequest) GetLabTag ¶ added in v1.0.0
func (x *ResetLabRequest) GetLabTag() string
func (*ResetLabRequest) ProtoMessage ¶ added in v1.0.0
func (*ResetLabRequest) ProtoMessage()
func (*ResetLabRequest) ProtoReflect ¶ added in v1.0.0
func (x *ResetLabRequest) ProtoReflect() protoreflect.Message
func (*ResetLabRequest) Reset ¶ added in v1.0.0
func (x *ResetLabRequest) Reset()
func (*ResetLabRequest) String ¶ added in v1.0.0
func (x *ResetLabRequest) String() string
type Resources ¶ added in v0.1.0
type Resources struct { MemAvailable uint64 `protobuf:"varint,1,opt,name=memAvailable,proto3" json:"memAvailable,omitempty"` Cpu float64 `protobuf:"fixed64,2,opt,name=cpu,proto3" json:"cpu,omitempty"` MemPercentUsed float64 `protobuf:"fixed64,3,opt,name=memPercentUsed,proto3" json:"memPercentUsed,omitempty"` LabCount uint32 `protobuf:"varint,4,opt,name=labCount,proto3" json:"labCount,omitempty"` VmCount uint32 `protobuf:"varint,5,opt,name=vmCount,proto3" json:"vmCount,omitempty"` ContainerCount uint32 `protobuf:"varint,6,opt,name=containerCount,proto3" json:"containerCount,omitempty"` MemInstalled uint64 `protobuf:"varint,7,opt,name=memInstalled,proto3" json:"memInstalled,omitempty"` // contains filtered or unexported fields }
func (*Resources) Descriptor
deprecated
added in
v0.1.0
func (*Resources) GetContainerCount ¶ added in v0.1.0
func (*Resources) GetLabCount ¶ added in v0.1.0
func (*Resources) GetMemAvailable ¶ added in v0.1.0
func (*Resources) GetMemInstalled ¶ added in v0.1.0
func (*Resources) GetMemPercentUsed ¶ added in v0.1.0
func (*Resources) GetVmCount ¶ added in v0.1.0
func (*Resources) ProtoMessage ¶ added in v0.1.0
func (*Resources) ProtoMessage()
func (*Resources) ProtoReflect ¶ added in v0.1.0
func (x *Resources) ProtoReflect() protoreflect.Message
type StatusResponse ¶ added in v0.1.0
type StatusResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
added in
v0.1.0
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetMessage ¶ added in v0.1.0
func (x *StatusResponse) GetMessage() string
func (*StatusResponse) ProtoMessage ¶ added in v0.1.0
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶ added in v0.1.0
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶ added in v0.1.0
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶ added in v0.1.0
func (x *StatusResponse) String() string
type UnimplementedAgentServer ¶
type UnimplementedAgentServer struct { }
UnimplementedAgentServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServer) AddExercisesToEnv ¶ added in v0.1.0
func (UnimplementedAgentServer) AddExercisesToEnv(context.Context, *ExerciseRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) AddExercisesToLab ¶ added in v0.1.0
func (UnimplementedAgentServer) AddExercisesToLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) CloseEnvironment ¶ added in v0.1.0
func (UnimplementedAgentServer) CloseEnvironment(context.Context, *CloseEnvRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) CloseLab ¶ added in v0.1.0
func (UnimplementedAgentServer) CloseLab(context.Context, *CloseLabRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) CreateEnvironment ¶ added in v0.1.0
func (UnimplementedAgentServer) CreateEnvironment(context.Context, *CreatEnvRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) CreateLabForEnv ¶ added in v0.1.0
func (UnimplementedAgentServer) CreateLabForEnv(context.Context, *CreateLabRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) CreateVpnConfForLab ¶ added in v0.1.0
func (UnimplementedAgentServer) CreateVpnConfForLab(context.Context, *CreateVpnConfRequest) (*CreateVpnConfResponse, error)
func (UnimplementedAgentServer) GetHostsInLab ¶ added in v0.1.0
func (UnimplementedAgentServer) GetHostsInLab(context.Context, *GetHostsRequest) (*GetHostsResponse, error)
func (UnimplementedAgentServer) GetLab ¶ added in v0.1.0
func (UnimplementedAgentServer) GetLab(context.Context, *GetLabRequest) (*GetLabResponse, error)
func (UnimplementedAgentServer) ListEnvironments ¶ added in v1.0.0
func (UnimplementedAgentServer) ListEnvironments(context.Context, *Empty) (*ListEnvResponse, error)
func (UnimplementedAgentServer) MonitorStream ¶ added in v0.1.0
func (UnimplementedAgentServer) MonitorStream(Agent_MonitorStreamServer) error
func (UnimplementedAgentServer) Ping ¶ added in v0.1.0
func (UnimplementedAgentServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedAgentServer) ResetExerciseInLab ¶ added in v0.1.0
func (UnimplementedAgentServer) ResetExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) ResetLab ¶ added in v1.0.0
func (UnimplementedAgentServer) ResetLab(context.Context, *ResetLabRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) ResetVmInLab ¶ added in v0.1.0
func (UnimplementedAgentServer) ResetVmInLab(context.Context, *VmRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) StartExerciseInLab ¶ added in v0.1.0
func (UnimplementedAgentServer) StartExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
func (UnimplementedAgentServer) StopExerciseInLab ¶ added in v0.1.0
func (UnimplementedAgentServer) StopExerciseInLab(context.Context, *ExerciseRequest) (*StatusResponse, error)
type UnsafeAgentServer ¶
type UnsafeAgentServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServer will result in compilation errors.
type VmConfig ¶ added in v0.1.0
type VmConfig struct { Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` MemoryMB uint32 `protobuf:"varint,2,opt,name=memoryMB,proto3" json:"memoryMB,omitempty"` Cpu float64 `protobuf:"fixed64,3,opt,name=cpu,proto3" json:"cpu,omitempty"` // contains filtered or unexported fields }
func (*VmConfig) Descriptor
deprecated
added in
v0.1.0
func (*VmConfig) GetMemoryMB ¶ added in v0.1.0
func (*VmConfig) ProtoMessage ¶ added in v0.1.0
func (*VmConfig) ProtoMessage()
func (*VmConfig) ProtoReflect ¶ added in v0.1.0
func (x *VmConfig) ProtoReflect() protoreflect.Message
type VmRequest ¶ added in v0.1.0
type VmRequest struct { LabTag string `protobuf:"bytes,1,opt,name=labTag,proto3" json:"labTag,omitempty"` ConnectionIdentifier string `protobuf:"bytes,2,opt,name=connectionIdentifier,proto3" json:"connectionIdentifier,omitempty"` // contains filtered or unexported fields }
func (*VmRequest) Descriptor
deprecated
added in
v0.1.0
func (*VmRequest) GetConnectionIdentifier ¶ added in v0.1.0
func (*VmRequest) ProtoMessage ¶ added in v0.1.0
func (*VmRequest) ProtoMessage()
func (*VmRequest) ProtoReflect ¶ added in v0.1.0
func (x *VmRequest) ProtoReflect() protoreflect.Message