Documentation ¶
Index ¶
- Variables
- func RegisterNetemServer(s *grpc.Server, srv NetemServer)
- type AckResponse
- type CaptureSrvMsg
- func (*CaptureSrvMsg) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureSrvMsg) GetCode() CaptureSrvMsg_Code
- func (x *CaptureSrvMsg) GetData() []byte
- func (*CaptureSrvMsg) ProtoMessage()
- func (x *CaptureSrvMsg) ProtoReflect() protoreflect.Message
- func (x *CaptureSrvMsg) Reset()
- func (x *CaptureSrvMsg) String() string
- type CaptureSrvMsg_Code
- func (CaptureSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
- func (x CaptureSrvMsg_Code) Enum() *CaptureSrvMsg_Code
- func (CaptureSrvMsg_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x CaptureSrvMsg_Code) Number() protoreflect.EnumNumber
- func (x CaptureSrvMsg_Code) String() string
- func (CaptureSrvMsg_Code) Type() protoreflect.EnumType
- type ConfigFilesResponse
- func (*ConfigFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigFilesResponse) GetFiles() []*ConfigFilesResponse_ConfigFile
- func (x *ConfigFilesResponse) GetSource() ConfigFilesResponse_Source
- func (x *ConfigFilesResponse) GetStatus() *Status
- func (*ConfigFilesResponse) ProtoMessage()
- func (x *ConfigFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigFilesResponse) Reset()
- func (x *ConfigFilesResponse) String() string
- type ConfigFilesResponse_ConfigFile
- func (*ConfigFilesResponse_ConfigFile) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigFilesResponse_ConfigFile) GetData() []byte
- func (x *ConfigFilesResponse_ConfigFile) GetName() string
- func (*ConfigFilesResponse_ConfigFile) ProtoMessage()
- func (x *ConfigFilesResponse_ConfigFile) ProtoReflect() protoreflect.Message
- func (x *ConfigFilesResponse_ConfigFile) Reset()
- func (x *ConfigFilesResponse_ConfigFile) String() string
- type ConfigFilesResponse_Source
- func (ConfigFilesResponse_Source) Descriptor() protoreflect.EnumDescriptor
- func (x ConfigFilesResponse_Source) Enum() *ConfigFilesResponse_Source
- func (ConfigFilesResponse_Source) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfigFilesResponse_Source) Number() protoreflect.EnumNumber
- func (x ConfigFilesResponse_Source) String() string
- func (ConfigFilesResponse_Source) Type() protoreflect.EnumType
- type ConsoleCltMsg
- func (*ConsoleCltMsg) Descriptor() ([]byte, []int)deprecated
- func (x *ConsoleCltMsg) GetCode() ConsoleCltMsg_Code
- func (x *ConsoleCltMsg) GetData() []byte
- func (x *ConsoleCltMsg) GetNode() string
- func (x *ConsoleCltMsg) GetPrjId() string
- func (x *ConsoleCltMsg) GetShell() bool
- func (x *ConsoleCltMsg) GetTtyHeight() int32
- func (x *ConsoleCltMsg) GetTtyWidth() int32
- func (*ConsoleCltMsg) ProtoMessage()
- func (x *ConsoleCltMsg) ProtoReflect() protoreflect.Message
- func (x *ConsoleCltMsg) Reset()
- func (x *ConsoleCltMsg) String() string
- type ConsoleCltMsg_Code
- func (ConsoleCltMsg_Code) Descriptor() protoreflect.EnumDescriptor
- func (x ConsoleCltMsg_Code) Enum() *ConsoleCltMsg_Code
- func (ConsoleCltMsg_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConsoleCltMsg_Code) Number() protoreflect.EnumNumber
- func (x ConsoleCltMsg_Code) String() string
- func (ConsoleCltMsg_Code) Type() protoreflect.EnumType
- type ConsoleSrvMsg
- func (*ConsoleSrvMsg) Descriptor() ([]byte, []int)deprecated
- func (x *ConsoleSrvMsg) GetCode() ConsoleSrvMsg_Code
- func (x *ConsoleSrvMsg) GetData() []byte
- func (*ConsoleSrvMsg) ProtoMessage()
- func (x *ConsoleSrvMsg) ProtoReflect() protoreflect.Message
- func (x *ConsoleSrvMsg) Reset()
- func (x *ConsoleSrvMsg) String() string
- type ConsoleSrvMsg_Code
- func (ConsoleSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
- func (x ConsoleSrvMsg_Code) Enum() *ConsoleSrvMsg_Code
- func (ConsoleSrvMsg_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConsoleSrvMsg_Code) Number() protoreflect.EnumNumber
- func (x ConsoleSrvMsg_Code) String() string
- func (ConsoleSrvMsg_Code) Type() protoreflect.EnumType
- type CopyMsg
- func (*CopyMsg) Descriptor() ([]byte, []int)deprecated
- func (x *CopyMsg) GetCode() CopyMsg_Code
- func (x *CopyMsg) GetData() []byte
- func (x *CopyMsg) GetNode() string
- func (x *CopyMsg) GetNodePath() string
- func (x *CopyMsg) GetPrjId() string
- func (*CopyMsg) ProtoMessage()
- func (x *CopyMsg) ProtoReflect() protoreflect.Message
- func (x *CopyMsg) Reset()
- func (x *CopyMsg) String() string
- type CopyMsg_Code
- func (CopyMsg_Code) Descriptor() protoreflect.EnumDescriptor
- func (x CopyMsg_Code) Enum() *CopyMsg_Code
- func (CopyMsg_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x CopyMsg_Code) Number() protoreflect.EnumNumber
- func (x CopyMsg_Code) String() string
- func (CopyMsg_Code) Type() protoreflect.EnumType
- type FileResponse
- func (*FileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileResponse) GetData() []byte
- func (x *FileResponse) GetStatus() *Status
- func (*FileResponse) ProtoMessage()
- func (x *FileResponse) ProtoReflect() protoreflect.Message
- func (x *FileResponse) Reset()
- func (x *FileResponse) String() string
- type IfState
- type NetemClient
- type NetemServer
- type Netem_CaptureClient
- type Netem_CaptureServer
- type Netem_ConsoleClient
- type Netem_ConsoleServer
- type Netem_CopyFromClient
- type Netem_CopyFromServer
- type Netem_CopyToClient
- type Netem_CopyToServer
- type Netem_PullImagesClient
- type Netem_PullImagesServer
- type NodeIfStateRequest
- func (*NodeIfStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeIfStateRequest) GetIfIndex() int32
- func (x *NodeIfStateRequest) GetNode() string
- func (x *NodeIfStateRequest) GetPrjId() string
- func (x *NodeIfStateRequest) GetState() IfState
- func (*NodeIfStateRequest) ProtoMessage()
- func (x *NodeIfStateRequest) ProtoReflect() protoreflect.Message
- func (x *NodeIfStateRequest) Reset()
- func (x *NodeIfStateRequest) String() string
- type NodeInterfaceRequest
- func (*NodeInterfaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInterfaceRequest) GetIfIndex() int32
- func (x *NodeInterfaceRequest) GetNode() string
- func (x *NodeInterfaceRequest) GetPrjId() string
- func (*NodeInterfaceRequest) ProtoMessage()
- func (x *NodeInterfaceRequest) ProtoReflect() protoreflect.Message
- func (x *NodeInterfaceRequest) Reset()
- func (x *NodeInterfaceRequest) String() string
- type NodeRequest
- type OpenRequest
- type PrjListResponse
- func (*PrjListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrjListResponse) GetProjects() []*PrjListResponse_Info
- func (x *PrjListResponse) GetStatus() *Status
- func (*PrjListResponse) ProtoMessage()
- func (x *PrjListResponse) ProtoReflect() protoreflect.Message
- func (x *PrjListResponse) Reset()
- func (x *PrjListResponse) String() string
- type PrjListResponse_Info
- func (*PrjListResponse_Info) Descriptor() ([]byte, []int)deprecated
- func (x *PrjListResponse_Info) GetId() string
- func (x *PrjListResponse_Info) GetName() string
- func (x *PrjListResponse_Info) GetOpenAt() string
- func (*PrjListResponse_Info) ProtoMessage()
- func (x *PrjListResponse_Info) ProtoReflect() protoreflect.Message
- func (x *PrjListResponse_Info) Reset()
- func (x *PrjListResponse_Info) String() string
- type PrjOpenResponse
- func (*PrjOpenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrjOpenResponse) GetId() string
- func (x *PrjOpenResponse) GetStatus() *Status
- func (*PrjOpenResponse) ProtoMessage()
- func (x *PrjOpenResponse) ProtoReflect() protoreflect.Message
- func (x *PrjOpenResponse) Reset()
- func (x *PrjOpenResponse) String() string
- type ProjectRequest
- type PullSrvMsg
- func (*PullSrvMsg) Descriptor() ([]byte, []int)deprecated
- func (x *PullSrvMsg) GetCode() PullSrvMsg_Code
- func (x *PullSrvMsg) GetError() string
- func (x *PullSrvMsg) GetImage() string
- func (*PullSrvMsg) ProtoMessage()
- func (x *PullSrvMsg) ProtoReflect() protoreflect.Message
- func (x *PullSrvMsg) Reset()
- func (x *PullSrvMsg) String() string
- type PullSrvMsg_Code
- func (PullSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
- func (x PullSrvMsg_Code) Enum() *PullSrvMsg_Code
- func (PullSrvMsg_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x PullSrvMsg_Code) Number() protoreflect.EnumNumber
- func (x PullSrvMsg_Code) String() string
- func (PullSrvMsg_Code) Type() protoreflect.EnumType
- type RunResponse
- func (*RunResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunResponse) GetNodeMessages() []*RunResponse_NodeMessages
- func (x *RunResponse) GetStatus() *Status
- func (*RunResponse) ProtoMessage()
- func (x *RunResponse) ProtoReflect() protoreflect.Message
- func (x *RunResponse) Reset()
- func (x *RunResponse) String() string
- type RunResponse_NodeMessages
- func (*RunResponse_NodeMessages) Descriptor() ([]byte, []int)deprecated
- func (x *RunResponse_NodeMessages) GetMessages() []string
- func (x *RunResponse_NodeMessages) GetName() string
- func (*RunResponse_NodeMessages) ProtoMessage()
- func (x *RunResponse_NodeMessages) ProtoReflect() protoreflect.Message
- func (x *RunResponse_NodeMessages) Reset()
- func (x *RunResponse_NodeMessages) String() string
- type Status
- type StatusCode
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetId() string
- func (x *StatusResponse) GetName() string
- func (x *StatusResponse) GetNodes() []*StatusResponse_NodeStatus
- func (x *StatusResponse) GetOpenAt() string
- func (x *StatusResponse) GetRunning() bool
- func (x *StatusResponse) GetStatus() *Status
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type StatusResponse_IfStatus
- func (*StatusResponse_IfStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse_IfStatus) GetName() string
- func (x *StatusResponse_IfStatus) GetState() IfState
- func (*StatusResponse_IfStatus) ProtoMessage()
- func (x *StatusResponse_IfStatus) ProtoReflect() protoreflect.Message
- func (x *StatusResponse_IfStatus) Reset()
- func (x *StatusResponse_IfStatus) String() string
- type StatusResponse_NodeStatus
- func (*StatusResponse_NodeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse_NodeStatus) GetInterfaces() []*StatusResponse_IfStatus
- func (x *StatusResponse_NodeStatus) GetName() string
- func (x *StatusResponse_NodeStatus) GetRunning() bool
- func (*StatusResponse_NodeStatus) ProtoMessage()
- func (x *StatusResponse_NodeStatus) ProtoReflect() protoreflect.Message
- func (x *StatusResponse_NodeStatus) Reset()
- func (x *StatusResponse_NodeStatus) String() string
- type UnimplementedNetemServer
- func (UnimplementedNetemServer) CanRunConsole(context.Context, *NodeRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Capture(*NodeInterfaceRequest, Netem_CaptureServer) error
- func (UnimplementedNetemServer) Check(context.Context, *ProjectRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Clean(context.Context, *emptypb.Empty) (*AckResponse, error)
- func (UnimplementedNetemServer) CloseProject(context.Context, *ProjectRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Console(Netem_ConsoleServer) error
- func (UnimplementedNetemServer) CopyFrom(*CopyMsg, Netem_CopyFromServer) error
- func (UnimplementedNetemServer) CopyTo(Netem_CopyToServer) error
- func (UnimplementedNetemServer) GetProjectConfigs(context.Context, *ProjectRequest) (*FileResponse, error)
- func (UnimplementedNetemServer) GetProjectStatus(context.Context, *ProjectRequest) (*StatusResponse, error)
- func (UnimplementedNetemServer) GetProjects(context.Context, *emptypb.Empty) (*PrjListResponse, error)
- func (UnimplementedNetemServer) GetVersion(context.Context, *emptypb.Empty) (*VersionResponse, error)
- func (UnimplementedNetemServer) OpenProject(context.Context, *OpenRequest) (*PrjOpenResponse, error)
- func (UnimplementedNetemServer) PullImages(*emptypb.Empty, Netem_PullImagesServer) error
- func (UnimplementedNetemServer) ReadConfigFiles(context.Context, *NodeRequest) (*ConfigFilesResponse, error)
- func (UnimplementedNetemServer) ReadNetworkFile(context.Context, *ProjectRequest) (*FileResponse, error)
- func (UnimplementedNetemServer) Reload(context.Context, *ProjectRequest) (*RunResponse, error)
- func (UnimplementedNetemServer) Restart(context.Context, *NodeRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Run(context.Context, *ProjectRequest) (*RunResponse, error)
- func (UnimplementedNetemServer) SaveProject(context.Context, *ProjectRequest) (*FileResponse, error)
- func (UnimplementedNetemServer) SetIfState(context.Context, *NodeIfStateRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Start(context.Context, *NodeRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) Stop(context.Context, *NodeRequest) (*AckResponse, error)
- func (UnimplementedNetemServer) WriteNetworkFile(context.Context, *WNetworkRequest) (*AckResponse, error)
- type UnsafeNetemServer
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VersionResponse) GetStatus() *Status
- func (x *VersionResponse) GetVersion() string
- func (*VersionResponse) ProtoMessage()
- func (x *VersionResponse) ProtoReflect() protoreflect.Message
- func (x *VersionResponse) Reset()
- func (x *VersionResponse) String() string
- type WNetworkRequest
- func (*WNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WNetworkRequest) GetData() []byte
- func (x *WNetworkRequest) GetId() string
- func (*WNetworkRequest) ProtoMessage()
- func (x *WNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *WNetworkRequest) Reset()
- func (x *WNetworkRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( StatusCode_name = map[int32]string{ 0: "OK", 1: "ERROR", } StatusCode_value = map[string]int32{ "OK": 0, "ERROR": 1, } )
Enum value maps for StatusCode.
var ( IfState_name = map[int32]string{ 0: "UP", 1: "DOWN", } IfState_value = map[string]int32{ "UP": 0, "DOWN": 1, } )
Enum value maps for IfState.
var ( CopyMsg_Code_name = map[int32]string{ 0: "INIT", 1: "DATA", 3: "ERROR", } CopyMsg_Code_value = map[string]int32{ "INIT": 0, "DATA": 1, "ERROR": 3, } )
Enum value maps for CopyMsg_Code.
var ( ConsoleCltMsg_Code_name = map[int32]string{ 0: "INIT", 1: "DATA", 2: "RESIZE", 3: "CLOSE", } ConsoleCltMsg_Code_value = map[string]int32{ "INIT": 0, "DATA": 1, "RESIZE": 2, "CLOSE": 3, } )
Enum value maps for ConsoleCltMsg_Code.
var ( ConsoleSrvMsg_Code_name = map[int32]string{ 0: "STDOUT", 1: "STDERR", 2: "ERROR", 3: "CLOSE", } ConsoleSrvMsg_Code_value = map[string]int32{ "STDOUT": 0, "STDERR": 1, "ERROR": 2, "CLOSE": 3, } )
Enum value maps for ConsoleSrvMsg_Code.
var ( PullSrvMsg_Code_name = map[int32]string{ 0: "START", 1: "OK", 2: "ERROR", } PullSrvMsg_Code_value = map[string]int32{ "START": 0, "OK": 1, "ERROR": 2, } )
Enum value maps for PullSrvMsg_Code.
var ( CaptureSrvMsg_Code_name = map[int32]string{ 0: "STDOUT", 1: "STDERR", 2: "OK", 3: "ERROR", } CaptureSrvMsg_Code_value = map[string]int32{ "STDOUT": 0, "STDERR": 1, "OK": 2, "ERROR": 3, } )
Enum value maps for CaptureSrvMsg_Code.
var ( ConfigFilesResponse_Source_name = map[int32]string{ 0: "ARCHIVE", 1: "RUNNING", } ConfigFilesResponse_Source_value = map[string]int32{ "ARCHIVE": 0, "RUNNING": 1, } )
Enum value maps for ConfigFilesResponse_Source.
var File_internal_proto_netem_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNetemServer ¶
func RegisterNetemServer(s *grpc.Server, srv NetemServer)
Types ¶
type AckResponse ¶
type AckResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AckResponse) Descriptor
deprecated
func (*AckResponse) Descriptor() ([]byte, []int)
Deprecated: Use AckResponse.ProtoReflect.Descriptor instead.
func (*AckResponse) GetStatus ¶
func (x *AckResponse) GetStatus() *Status
func (*AckResponse) ProtoMessage ¶
func (*AckResponse) ProtoMessage()
func (*AckResponse) ProtoReflect ¶
func (x *AckResponse) ProtoReflect() protoreflect.Message
func (*AckResponse) Reset ¶
func (x *AckResponse) Reset()
func (*AckResponse) String ¶
func (x *AckResponse) String() string
type CaptureSrvMsg ¶
type CaptureSrvMsg struct { Code CaptureSrvMsg_Code `protobuf:"varint,1,opt,name=code,proto3,enum=netem.CaptureSrvMsg_Code" json:"code,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CaptureSrvMsg) Descriptor
deprecated
func (*CaptureSrvMsg) Descriptor() ([]byte, []int)
Deprecated: Use CaptureSrvMsg.ProtoReflect.Descriptor instead.
func (*CaptureSrvMsg) GetCode ¶
func (x *CaptureSrvMsg) GetCode() CaptureSrvMsg_Code
func (*CaptureSrvMsg) GetData ¶
func (x *CaptureSrvMsg) GetData() []byte
func (*CaptureSrvMsg) ProtoMessage ¶
func (*CaptureSrvMsg) ProtoMessage()
func (*CaptureSrvMsg) ProtoReflect ¶
func (x *CaptureSrvMsg) ProtoReflect() protoreflect.Message
func (*CaptureSrvMsg) Reset ¶
func (x *CaptureSrvMsg) Reset()
func (*CaptureSrvMsg) String ¶
func (x *CaptureSrvMsg) String() string
type CaptureSrvMsg_Code ¶
type CaptureSrvMsg_Code int32
const ( CaptureSrvMsg_STDOUT CaptureSrvMsg_Code = 0 CaptureSrvMsg_STDERR CaptureSrvMsg_Code = 1 CaptureSrvMsg_OK CaptureSrvMsg_Code = 2 CaptureSrvMsg_ERROR CaptureSrvMsg_Code = 3 )
func (CaptureSrvMsg_Code) Descriptor ¶
func (CaptureSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
func (CaptureSrvMsg_Code) Enum ¶
func (x CaptureSrvMsg_Code) Enum() *CaptureSrvMsg_Code
func (CaptureSrvMsg_Code) EnumDescriptor
deprecated
func (CaptureSrvMsg_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use CaptureSrvMsg_Code.Descriptor instead.
func (CaptureSrvMsg_Code) Number ¶
func (x CaptureSrvMsg_Code) Number() protoreflect.EnumNumber
func (CaptureSrvMsg_Code) String ¶
func (x CaptureSrvMsg_Code) String() string
func (CaptureSrvMsg_Code) Type ¶
func (CaptureSrvMsg_Code) Type() protoreflect.EnumType
type ConfigFilesResponse ¶ added in v0.2.0
type ConfigFilesResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Source ConfigFilesResponse_Source `protobuf:"varint,2,opt,name=source,proto3,enum=netem.ConfigFilesResponse_Source" json:"source,omitempty"` Files []*ConfigFilesResponse_ConfigFile `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*ConfigFilesResponse) Descriptor
deprecated
added in
v0.2.0
func (*ConfigFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigFilesResponse.ProtoReflect.Descriptor instead.
func (*ConfigFilesResponse) GetFiles ¶ added in v0.2.0
func (x *ConfigFilesResponse) GetFiles() []*ConfigFilesResponse_ConfigFile
func (*ConfigFilesResponse) GetSource ¶ added in v0.2.0
func (x *ConfigFilesResponse) GetSource() ConfigFilesResponse_Source
func (*ConfigFilesResponse) GetStatus ¶ added in v0.2.0
func (x *ConfigFilesResponse) GetStatus() *Status
func (*ConfigFilesResponse) ProtoMessage ¶ added in v0.2.0
func (*ConfigFilesResponse) ProtoMessage()
func (*ConfigFilesResponse) ProtoReflect ¶ added in v0.2.0
func (x *ConfigFilesResponse) ProtoReflect() protoreflect.Message
func (*ConfigFilesResponse) Reset ¶ added in v0.2.0
func (x *ConfigFilesResponse) Reset()
func (*ConfigFilesResponse) String ¶ added in v0.2.0
func (x *ConfigFilesResponse) String() string
type ConfigFilesResponse_ConfigFile ¶ added in v0.2.0
type ConfigFilesResponse_ConfigFile struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ConfigFilesResponse_ConfigFile) Descriptor
deprecated
added in
v0.2.0
func (*ConfigFilesResponse_ConfigFile) Descriptor() ([]byte, []int)
Deprecated: Use ConfigFilesResponse_ConfigFile.ProtoReflect.Descriptor instead.
func (*ConfigFilesResponse_ConfigFile) GetData ¶ added in v0.2.0
func (x *ConfigFilesResponse_ConfigFile) GetData() []byte
func (*ConfigFilesResponse_ConfigFile) GetName ¶ added in v0.2.0
func (x *ConfigFilesResponse_ConfigFile) GetName() string
func (*ConfigFilesResponse_ConfigFile) ProtoMessage ¶ added in v0.2.0
func (*ConfigFilesResponse_ConfigFile) ProtoMessage()
func (*ConfigFilesResponse_ConfigFile) ProtoReflect ¶ added in v0.2.0
func (x *ConfigFilesResponse_ConfigFile) ProtoReflect() protoreflect.Message
func (*ConfigFilesResponse_ConfigFile) Reset ¶ added in v0.2.0
func (x *ConfigFilesResponse_ConfigFile) Reset()
func (*ConfigFilesResponse_ConfigFile) String ¶ added in v0.2.0
func (x *ConfigFilesResponse_ConfigFile) String() string
type ConfigFilesResponse_Source ¶ added in v0.2.0
type ConfigFilesResponse_Source int32
const ( ConfigFilesResponse_ARCHIVE ConfigFilesResponse_Source = 0 ConfigFilesResponse_RUNNING ConfigFilesResponse_Source = 1 )
func (ConfigFilesResponse_Source) Descriptor ¶ added in v0.2.0
func (ConfigFilesResponse_Source) Descriptor() protoreflect.EnumDescriptor
func (ConfigFilesResponse_Source) Enum ¶ added in v0.2.0
func (x ConfigFilesResponse_Source) Enum() *ConfigFilesResponse_Source
func (ConfigFilesResponse_Source) EnumDescriptor
deprecated
added in
v0.2.0
func (ConfigFilesResponse_Source) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfigFilesResponse_Source.Descriptor instead.
func (ConfigFilesResponse_Source) Number ¶ added in v0.2.0
func (x ConfigFilesResponse_Source) Number() protoreflect.EnumNumber
func (ConfigFilesResponse_Source) String ¶ added in v0.2.0
func (x ConfigFilesResponse_Source) String() string
func (ConfigFilesResponse_Source) Type ¶ added in v0.2.0
func (ConfigFilesResponse_Source) Type() protoreflect.EnumType
type ConsoleCltMsg ¶
type ConsoleCltMsg struct { Code ConsoleCltMsg_Code `protobuf:"varint,1,opt,name=code,proto3,enum=netem.ConsoleCltMsg_Code" json:"code,omitempty"` PrjId string `protobuf:"bytes,2,opt,name=prjId,proto3" json:"prjId,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` Shell bool `protobuf:"varint,4,opt,name=shell,proto3" json:"shell,omitempty"` TtyWidth int32 `protobuf:"varint,5,opt,name=ttyWidth,proto3" json:"ttyWidth,omitempty"` TtyHeight int32 `protobuf:"varint,6,opt,name=ttyHeight,proto3" json:"ttyHeight,omitempty"` Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ConsoleCltMsg) Descriptor
deprecated
func (*ConsoleCltMsg) Descriptor() ([]byte, []int)
Deprecated: Use ConsoleCltMsg.ProtoReflect.Descriptor instead.
func (*ConsoleCltMsg) GetCode ¶
func (x *ConsoleCltMsg) GetCode() ConsoleCltMsg_Code
func (*ConsoleCltMsg) GetData ¶
func (x *ConsoleCltMsg) GetData() []byte
func (*ConsoleCltMsg) GetNode ¶
func (x *ConsoleCltMsg) GetNode() string
func (*ConsoleCltMsg) GetPrjId ¶
func (x *ConsoleCltMsg) GetPrjId() string
func (*ConsoleCltMsg) GetShell ¶
func (x *ConsoleCltMsg) GetShell() bool
func (*ConsoleCltMsg) GetTtyHeight ¶
func (x *ConsoleCltMsg) GetTtyHeight() int32
func (*ConsoleCltMsg) GetTtyWidth ¶
func (x *ConsoleCltMsg) GetTtyWidth() int32
func (*ConsoleCltMsg) ProtoMessage ¶
func (*ConsoleCltMsg) ProtoMessage()
func (*ConsoleCltMsg) ProtoReflect ¶
func (x *ConsoleCltMsg) ProtoReflect() protoreflect.Message
func (*ConsoleCltMsg) Reset ¶
func (x *ConsoleCltMsg) Reset()
func (*ConsoleCltMsg) String ¶
func (x *ConsoleCltMsg) String() string
type ConsoleCltMsg_Code ¶
type ConsoleCltMsg_Code int32
const ( ConsoleCltMsg_INIT ConsoleCltMsg_Code = 0 ConsoleCltMsg_DATA ConsoleCltMsg_Code = 1 ConsoleCltMsg_RESIZE ConsoleCltMsg_Code = 2 ConsoleCltMsg_CLOSE ConsoleCltMsg_Code = 3 )
func (ConsoleCltMsg_Code) Descriptor ¶
func (ConsoleCltMsg_Code) Descriptor() protoreflect.EnumDescriptor
func (ConsoleCltMsg_Code) Enum ¶
func (x ConsoleCltMsg_Code) Enum() *ConsoleCltMsg_Code
func (ConsoleCltMsg_Code) EnumDescriptor
deprecated
func (ConsoleCltMsg_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConsoleCltMsg_Code.Descriptor instead.
func (ConsoleCltMsg_Code) Number ¶
func (x ConsoleCltMsg_Code) Number() protoreflect.EnumNumber
func (ConsoleCltMsg_Code) String ¶
func (x ConsoleCltMsg_Code) String() string
func (ConsoleCltMsg_Code) Type ¶
func (ConsoleCltMsg_Code) Type() protoreflect.EnumType
type ConsoleSrvMsg ¶
type ConsoleSrvMsg struct { Code ConsoleSrvMsg_Code `protobuf:"varint,1,opt,name=code,proto3,enum=netem.ConsoleSrvMsg_Code" json:"code,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ConsoleSrvMsg) Descriptor
deprecated
func (*ConsoleSrvMsg) Descriptor() ([]byte, []int)
Deprecated: Use ConsoleSrvMsg.ProtoReflect.Descriptor instead.
func (*ConsoleSrvMsg) GetCode ¶
func (x *ConsoleSrvMsg) GetCode() ConsoleSrvMsg_Code
func (*ConsoleSrvMsg) GetData ¶
func (x *ConsoleSrvMsg) GetData() []byte
func (*ConsoleSrvMsg) ProtoMessage ¶
func (*ConsoleSrvMsg) ProtoMessage()
func (*ConsoleSrvMsg) ProtoReflect ¶
func (x *ConsoleSrvMsg) ProtoReflect() protoreflect.Message
func (*ConsoleSrvMsg) Reset ¶
func (x *ConsoleSrvMsg) Reset()
func (*ConsoleSrvMsg) String ¶
func (x *ConsoleSrvMsg) String() string
type ConsoleSrvMsg_Code ¶
type ConsoleSrvMsg_Code int32
const ( ConsoleSrvMsg_STDOUT ConsoleSrvMsg_Code = 0 ConsoleSrvMsg_STDERR ConsoleSrvMsg_Code = 1 ConsoleSrvMsg_ERROR ConsoleSrvMsg_Code = 2 ConsoleSrvMsg_CLOSE ConsoleSrvMsg_Code = 3 )
func (ConsoleSrvMsg_Code) Descriptor ¶
func (ConsoleSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
func (ConsoleSrvMsg_Code) Enum ¶
func (x ConsoleSrvMsg_Code) Enum() *ConsoleSrvMsg_Code
func (ConsoleSrvMsg_Code) EnumDescriptor
deprecated
func (ConsoleSrvMsg_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConsoleSrvMsg_Code.Descriptor instead.
func (ConsoleSrvMsg_Code) Number ¶
func (x ConsoleSrvMsg_Code) Number() protoreflect.EnumNumber
func (ConsoleSrvMsg_Code) String ¶
func (x ConsoleSrvMsg_Code) String() string
func (ConsoleSrvMsg_Code) Type ¶
func (ConsoleSrvMsg_Code) Type() protoreflect.EnumType
type CopyMsg ¶
type CopyMsg struct { Code CopyMsg_Code `protobuf:"varint,1,opt,name=code,proto3,enum=netem.CopyMsg_Code" json:"code,omitempty"` PrjId string `protobuf:"bytes,2,opt,name=prjId,proto3" json:"prjId,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` NodePath string `protobuf:"bytes,4,opt,name=nodePath,proto3" json:"nodePath,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CopyMsg) Descriptor
deprecated
func (*CopyMsg) GetCode ¶
func (x *CopyMsg) GetCode() CopyMsg_Code
func (*CopyMsg) GetNodePath ¶
func (*CopyMsg) ProtoMessage ¶
func (*CopyMsg) ProtoMessage()
func (*CopyMsg) ProtoReflect ¶
func (x *CopyMsg) ProtoReflect() protoreflect.Message
type CopyMsg_Code ¶
type CopyMsg_Code int32
const ( CopyMsg_INIT CopyMsg_Code = 0 CopyMsg_DATA CopyMsg_Code = 1 CopyMsg_ERROR CopyMsg_Code = 3 )
func (CopyMsg_Code) Descriptor ¶
func (CopyMsg_Code) Descriptor() protoreflect.EnumDescriptor
func (CopyMsg_Code) Enum ¶
func (x CopyMsg_Code) Enum() *CopyMsg_Code
func (CopyMsg_Code) EnumDescriptor
deprecated
func (CopyMsg_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use CopyMsg_Code.Descriptor instead.
func (CopyMsg_Code) Number ¶
func (x CopyMsg_Code) Number() protoreflect.EnumNumber
func (CopyMsg_Code) String ¶
func (x CopyMsg_Code) String() string
func (CopyMsg_Code) Type ¶
func (CopyMsg_Code) Type() protoreflect.EnumType
type FileResponse ¶
type FileResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FileResponse) Descriptor
deprecated
func (*FileResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.
func (*FileResponse) GetData ¶
func (x *FileResponse) GetData() []byte
func (*FileResponse) GetStatus ¶
func (x *FileResponse) GetStatus() *Status
func (*FileResponse) ProtoMessage ¶
func (*FileResponse) ProtoMessage()
func (*FileResponse) ProtoReflect ¶
func (x *FileResponse) ProtoReflect() protoreflect.Message
func (*FileResponse) Reset ¶
func (x *FileResponse) Reset()
func (*FileResponse) String ¶
func (x *FileResponse) String() string
type IfState ¶
type IfState int32
func (IfState) Descriptor ¶
func (IfState) Descriptor() protoreflect.EnumDescriptor
func (IfState) EnumDescriptor
deprecated
func (IfState) Number ¶
func (x IfState) Number() protoreflect.EnumNumber
func (IfState) Type ¶
func (IfState) Type() protoreflect.EnumType
type NetemClient ¶
type NetemClient interface { // general action GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error) PullImages(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Netem_PullImagesClient, error) Clean(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AckResponse, error) // Project actions GetProjects(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PrjListResponse, error) OpenProject(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*PrjOpenResponse, error) CloseProject(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*AckResponse, error) SaveProject(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*FileResponse, error) GetProjectConfigs(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*FileResponse, error) GetProjectStatus(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*StatusResponse, error) // Read/Write network topology ReadNetworkFile(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*FileResponse, error) WriteNetworkFile(ctx context.Context, in *WNetworkRequest, opts ...grpc.CallOption) (*AckResponse, error) // topology actions Check(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*AckResponse, error) Reload(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*RunResponse, error) Run(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*RunResponse, error) // Node actions ReadConfigFiles(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*ConfigFilesResponse, error) CanRunConsole(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*AckResponse, error) Console(ctx context.Context, opts ...grpc.CallOption) (Netem_ConsoleClient, error) Start(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*AckResponse, error) Stop(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*AckResponse, error) Restart(ctx context.Context, in *NodeRequest, opts ...grpc.CallOption) (*AckResponse, error) SetIfState(ctx context.Context, in *NodeIfStateRequest, opts ...grpc.CallOption) (*AckResponse, error) Capture(ctx context.Context, in *NodeInterfaceRequest, opts ...grpc.CallOption) (Netem_CaptureClient, error) CopyFrom(ctx context.Context, in *CopyMsg, opts ...grpc.CallOption) (Netem_CopyFromClient, error) CopyTo(ctx context.Context, opts ...grpc.CallOption) (Netem_CopyToClient, error) }
NetemClient is the client API for Netem 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 NewNetemClient ¶
func NewNetemClient(cc grpc.ClientConnInterface) NetemClient
type NetemServer ¶
type NetemServer interface { // general action GetVersion(context.Context, *emptypb.Empty) (*VersionResponse, error) PullImages(*emptypb.Empty, Netem_PullImagesServer) error Clean(context.Context, *emptypb.Empty) (*AckResponse, error) // Project actions GetProjects(context.Context, *emptypb.Empty) (*PrjListResponse, error) OpenProject(context.Context, *OpenRequest) (*PrjOpenResponse, error) CloseProject(context.Context, *ProjectRequest) (*AckResponse, error) SaveProject(context.Context, *ProjectRequest) (*FileResponse, error) GetProjectConfigs(context.Context, *ProjectRequest) (*FileResponse, error) GetProjectStatus(context.Context, *ProjectRequest) (*StatusResponse, error) // Read/Write network topology ReadNetworkFile(context.Context, *ProjectRequest) (*FileResponse, error) WriteNetworkFile(context.Context, *WNetworkRequest) (*AckResponse, error) // topology actions Check(context.Context, *ProjectRequest) (*AckResponse, error) Reload(context.Context, *ProjectRequest) (*RunResponse, error) Run(context.Context, *ProjectRequest) (*RunResponse, error) // Node actions ReadConfigFiles(context.Context, *NodeRequest) (*ConfigFilesResponse, error) CanRunConsole(context.Context, *NodeRequest) (*AckResponse, error) Console(Netem_ConsoleServer) error Start(context.Context, *NodeRequest) (*AckResponse, error) Stop(context.Context, *NodeRequest) (*AckResponse, error) Restart(context.Context, *NodeRequest) (*AckResponse, error) SetIfState(context.Context, *NodeIfStateRequest) (*AckResponse, error) Capture(*NodeInterfaceRequest, Netem_CaptureServer) error CopyFrom(*CopyMsg, Netem_CopyFromServer) error CopyTo(Netem_CopyToServer) error // contains filtered or unexported methods }
NetemServer is the server API for Netem service. All implementations must embed UnimplementedNetemServer for forward compatibility
type Netem_CaptureClient ¶
type Netem_CaptureClient interface { Recv() (*CaptureSrvMsg, error) grpc.ClientStream }
type Netem_CaptureServer ¶
type Netem_CaptureServer interface { Send(*CaptureSrvMsg) error grpc.ServerStream }
type Netem_ConsoleClient ¶
type Netem_ConsoleClient interface { Send(*ConsoleCltMsg) error Recv() (*ConsoleSrvMsg, error) grpc.ClientStream }
type Netem_ConsoleServer ¶
type Netem_ConsoleServer interface { Send(*ConsoleSrvMsg) error Recv() (*ConsoleCltMsg, error) grpc.ServerStream }
type Netem_CopyFromClient ¶
type Netem_CopyFromClient interface { Recv() (*CopyMsg, error) grpc.ClientStream }
type Netem_CopyFromServer ¶
type Netem_CopyFromServer interface { Send(*CopyMsg) error grpc.ServerStream }
type Netem_CopyToClient ¶
type Netem_CopyToClient interface { Send(*CopyMsg) error CloseAndRecv() (*AckResponse, error) grpc.ClientStream }
type Netem_CopyToServer ¶
type Netem_CopyToServer interface { SendAndClose(*AckResponse) error Recv() (*CopyMsg, error) grpc.ServerStream }
type Netem_PullImagesClient ¶
type Netem_PullImagesClient interface { Recv() (*PullSrvMsg, error) grpc.ClientStream }
type Netem_PullImagesServer ¶
type Netem_PullImagesServer interface { Send(*PullSrvMsg) error grpc.ServerStream }
type NodeIfStateRequest ¶
type NodeIfStateRequest struct { PrjId string `protobuf:"bytes,1,opt,name=prjId,proto3" json:"prjId,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` IfIndex int32 `protobuf:"varint,3,opt,name=ifIndex,proto3" json:"ifIndex,omitempty"` State IfState `protobuf:"varint,4,opt,name=state,proto3,enum=netem.IfState" json:"state,omitempty"` // contains filtered or unexported fields }
func (*NodeIfStateRequest) Descriptor
deprecated
func (*NodeIfStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeIfStateRequest.ProtoReflect.Descriptor instead.
func (*NodeIfStateRequest) GetIfIndex ¶
func (x *NodeIfStateRequest) GetIfIndex() int32
func (*NodeIfStateRequest) GetNode ¶
func (x *NodeIfStateRequest) GetNode() string
func (*NodeIfStateRequest) GetPrjId ¶
func (x *NodeIfStateRequest) GetPrjId() string
func (*NodeIfStateRequest) GetState ¶
func (x *NodeIfStateRequest) GetState() IfState
func (*NodeIfStateRequest) ProtoMessage ¶
func (*NodeIfStateRequest) ProtoMessage()
func (*NodeIfStateRequest) ProtoReflect ¶
func (x *NodeIfStateRequest) ProtoReflect() protoreflect.Message
func (*NodeIfStateRequest) Reset ¶
func (x *NodeIfStateRequest) Reset()
func (*NodeIfStateRequest) String ¶
func (x *NodeIfStateRequest) String() string
type NodeInterfaceRequest ¶
type NodeInterfaceRequest struct { PrjId string `protobuf:"bytes,1,opt,name=prjId,proto3" json:"prjId,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` IfIndex int32 `protobuf:"varint,3,opt,name=ifIndex,proto3" json:"ifIndex,omitempty"` // contains filtered or unexported fields }
func (*NodeInterfaceRequest) Descriptor
deprecated
func (*NodeInterfaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeInterfaceRequest.ProtoReflect.Descriptor instead.
func (*NodeInterfaceRequest) GetIfIndex ¶
func (x *NodeInterfaceRequest) GetIfIndex() int32
func (*NodeInterfaceRequest) GetNode ¶
func (x *NodeInterfaceRequest) GetNode() string
func (*NodeInterfaceRequest) GetPrjId ¶
func (x *NodeInterfaceRequest) GetPrjId() string
func (*NodeInterfaceRequest) ProtoMessage ¶
func (*NodeInterfaceRequest) ProtoMessage()
func (*NodeInterfaceRequest) ProtoReflect ¶
func (x *NodeInterfaceRequest) ProtoReflect() protoreflect.Message
func (*NodeInterfaceRequest) Reset ¶
func (x *NodeInterfaceRequest) Reset()
func (*NodeInterfaceRequest) String ¶
func (x *NodeInterfaceRequest) String() string
type NodeRequest ¶
type NodeRequest struct { PrjId string `protobuf:"bytes,1,opt,name=prjId,proto3" json:"prjId,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*NodeRequest) Descriptor
deprecated
func (*NodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeRequest.ProtoReflect.Descriptor instead.
func (*NodeRequest) GetNode ¶
func (x *NodeRequest) GetNode() string
func (*NodeRequest) GetPrjId ¶
func (x *NodeRequest) GetPrjId() string
func (*NodeRequest) ProtoMessage ¶
func (*NodeRequest) ProtoMessage()
func (*NodeRequest) ProtoReflect ¶
func (x *NodeRequest) ProtoReflect() protoreflect.Message
func (*NodeRequest) Reset ¶
func (x *NodeRequest) Reset()
func (*NodeRequest) String ¶
func (x *NodeRequest) String() string
type OpenRequest ¶
type OpenRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*OpenRequest) Descriptor
deprecated
func (*OpenRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenRequest.ProtoReflect.Descriptor instead.
func (*OpenRequest) GetData ¶
func (x *OpenRequest) GetData() []byte
func (*OpenRequest) GetName ¶
func (x *OpenRequest) GetName() string
func (*OpenRequest) ProtoMessage ¶
func (*OpenRequest) ProtoMessage()
func (*OpenRequest) ProtoReflect ¶
func (x *OpenRequest) ProtoReflect() protoreflect.Message
func (*OpenRequest) Reset ¶
func (x *OpenRequest) Reset()
func (*OpenRequest) String ¶
func (x *OpenRequest) String() string
type PrjListResponse ¶
type PrjListResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Projects []*PrjListResponse_Info `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*PrjListResponse) Descriptor
deprecated
func (*PrjListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrjListResponse.ProtoReflect.Descriptor instead.
func (*PrjListResponse) GetProjects ¶
func (x *PrjListResponse) GetProjects() []*PrjListResponse_Info
func (*PrjListResponse) GetStatus ¶
func (x *PrjListResponse) GetStatus() *Status
func (*PrjListResponse) ProtoMessage ¶
func (*PrjListResponse) ProtoMessage()
func (*PrjListResponse) ProtoReflect ¶
func (x *PrjListResponse) ProtoReflect() protoreflect.Message
func (*PrjListResponse) Reset ¶
func (x *PrjListResponse) Reset()
func (*PrjListResponse) String ¶
func (x *PrjListResponse) String() string
type PrjListResponse_Info ¶
type PrjListResponse_Info 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"` OpenAt string `protobuf:"bytes,3,opt,name=openAt,proto3" json:"openAt,omitempty"` // contains filtered or unexported fields }
func (*PrjListResponse_Info) Descriptor
deprecated
func (*PrjListResponse_Info) Descriptor() ([]byte, []int)
Deprecated: Use PrjListResponse_Info.ProtoReflect.Descriptor instead.
func (*PrjListResponse_Info) GetId ¶
func (x *PrjListResponse_Info) GetId() string
func (*PrjListResponse_Info) GetName ¶
func (x *PrjListResponse_Info) GetName() string
func (*PrjListResponse_Info) GetOpenAt ¶
func (x *PrjListResponse_Info) GetOpenAt() string
func (*PrjListResponse_Info) ProtoMessage ¶
func (*PrjListResponse_Info) ProtoMessage()
func (*PrjListResponse_Info) ProtoReflect ¶
func (x *PrjListResponse_Info) ProtoReflect() protoreflect.Message
func (*PrjListResponse_Info) Reset ¶
func (x *PrjListResponse_Info) Reset()
func (*PrjListResponse_Info) String ¶
func (x *PrjListResponse_Info) String() string
type PrjOpenResponse ¶
type PrjOpenResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PrjOpenResponse) Descriptor
deprecated
func (*PrjOpenResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrjOpenResponse.ProtoReflect.Descriptor instead.
func (*PrjOpenResponse) GetId ¶
func (x *PrjOpenResponse) GetId() string
func (*PrjOpenResponse) GetStatus ¶
func (x *PrjOpenResponse) GetStatus() *Status
func (*PrjOpenResponse) ProtoMessage ¶
func (*PrjOpenResponse) ProtoMessage()
func (*PrjOpenResponse) ProtoReflect ¶
func (x *PrjOpenResponse) ProtoReflect() protoreflect.Message
func (*PrjOpenResponse) Reset ¶
func (x *PrjOpenResponse) Reset()
func (*PrjOpenResponse) String ¶
func (x *PrjOpenResponse) String() string
type ProjectRequest ¶
type ProjectRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProjectRequest) Descriptor
deprecated
func (*ProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProjectRequest.ProtoReflect.Descriptor instead.
func (*ProjectRequest) GetId ¶
func (x *ProjectRequest) GetId() string
func (*ProjectRequest) ProtoMessage ¶
func (*ProjectRequest) ProtoMessage()
func (*ProjectRequest) ProtoReflect ¶
func (x *ProjectRequest) ProtoReflect() protoreflect.Message
func (*ProjectRequest) Reset ¶
func (x *ProjectRequest) Reset()
func (*ProjectRequest) String ¶
func (x *ProjectRequest) String() string
type PullSrvMsg ¶
type PullSrvMsg struct { Code PullSrvMsg_Code `protobuf:"varint,1,opt,name=code,proto3,enum=netem.PullSrvMsg_Code" json:"code,omitempty"` Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*PullSrvMsg) Descriptor
deprecated
func (*PullSrvMsg) Descriptor() ([]byte, []int)
Deprecated: Use PullSrvMsg.ProtoReflect.Descriptor instead.
func (*PullSrvMsg) GetCode ¶
func (x *PullSrvMsg) GetCode() PullSrvMsg_Code
func (*PullSrvMsg) GetError ¶
func (x *PullSrvMsg) GetError() string
func (*PullSrvMsg) GetImage ¶
func (x *PullSrvMsg) GetImage() string
func (*PullSrvMsg) ProtoMessage ¶
func (*PullSrvMsg) ProtoMessage()
func (*PullSrvMsg) ProtoReflect ¶
func (x *PullSrvMsg) ProtoReflect() protoreflect.Message
func (*PullSrvMsg) Reset ¶
func (x *PullSrvMsg) Reset()
func (*PullSrvMsg) String ¶
func (x *PullSrvMsg) String() string
type PullSrvMsg_Code ¶
type PullSrvMsg_Code int32
const ( PullSrvMsg_START PullSrvMsg_Code = 0 PullSrvMsg_OK PullSrvMsg_Code = 1 PullSrvMsg_ERROR PullSrvMsg_Code = 2 )
func (PullSrvMsg_Code) Descriptor ¶
func (PullSrvMsg_Code) Descriptor() protoreflect.EnumDescriptor
func (PullSrvMsg_Code) Enum ¶
func (x PullSrvMsg_Code) Enum() *PullSrvMsg_Code
func (PullSrvMsg_Code) EnumDescriptor
deprecated
func (PullSrvMsg_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use PullSrvMsg_Code.Descriptor instead.
func (PullSrvMsg_Code) Number ¶
func (x PullSrvMsg_Code) Number() protoreflect.EnumNumber
func (PullSrvMsg_Code) String ¶
func (x PullSrvMsg_Code) String() string
func (PullSrvMsg_Code) Type ¶
func (PullSrvMsg_Code) Type() protoreflect.EnumType
type RunResponse ¶ added in v0.1.1
type RunResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` NodeMessages []*RunResponse_NodeMessages `protobuf:"bytes,2,rep,name=nodeMessages,proto3" json:"nodeMessages,omitempty"` // contains filtered or unexported fields }
func (*RunResponse) Descriptor
deprecated
added in
v0.1.1
func (*RunResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
func (*RunResponse) GetNodeMessages ¶ added in v0.1.1
func (x *RunResponse) GetNodeMessages() []*RunResponse_NodeMessages
func (*RunResponse) GetStatus ¶ added in v0.1.1
func (x *RunResponse) GetStatus() *Status
func (*RunResponse) ProtoMessage ¶ added in v0.1.1
func (*RunResponse) ProtoMessage()
func (*RunResponse) ProtoReflect ¶ added in v0.1.1
func (x *RunResponse) ProtoReflect() protoreflect.Message
func (*RunResponse) Reset ¶ added in v0.1.1
func (x *RunResponse) Reset()
func (*RunResponse) String ¶ added in v0.1.1
func (x *RunResponse) String() string
type RunResponse_NodeMessages ¶ added in v0.1.1
type RunResponse_NodeMessages struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Messages []string `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*RunResponse_NodeMessages) Descriptor
deprecated
added in
v0.1.1
func (*RunResponse_NodeMessages) Descriptor() ([]byte, []int)
Deprecated: Use RunResponse_NodeMessages.ProtoReflect.Descriptor instead.
func (*RunResponse_NodeMessages) GetMessages ¶ added in v0.1.1
func (x *RunResponse_NodeMessages) GetMessages() []string
func (*RunResponse_NodeMessages) GetName ¶ added in v0.1.1
func (x *RunResponse_NodeMessages) GetName() string
func (*RunResponse_NodeMessages) ProtoMessage ¶ added in v0.1.1
func (*RunResponse_NodeMessages) ProtoMessage()
func (*RunResponse_NodeMessages) ProtoReflect ¶ added in v0.1.1
func (x *RunResponse_NodeMessages) ProtoReflect() protoreflect.Message
func (*RunResponse_NodeMessages) Reset ¶ added in v0.1.1
func (x *RunResponse_NodeMessages) Reset()
func (*RunResponse_NodeMessages) String ¶ added in v0.1.1
func (x *RunResponse_NodeMessages) String() string
type Status ¶
type Status struct { Code StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=netem.StatusCode" json:"code,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetCode ¶
func (x *Status) GetCode() StatusCode
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type StatusCode ¶
type StatusCode int32
const ( StatusCode_OK StatusCode = 0 StatusCode_ERROR StatusCode = 1 )
func (StatusCode) Descriptor ¶
func (StatusCode) Descriptor() protoreflect.EnumDescriptor
func (StatusCode) Enum ¶
func (x StatusCode) Enum() *StatusCode
func (StatusCode) EnumDescriptor
deprecated
func (StatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusCode.Descriptor instead.
func (StatusCode) Number ¶
func (x StatusCode) Number() protoreflect.EnumNumber
func (StatusCode) String ¶
func (x StatusCode) String() string
func (StatusCode) Type ¶
func (StatusCode) Type() protoreflect.EnumType
type StatusResponse ¶
type StatusResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` OpenAt string `protobuf:"bytes,4,opt,name=openAt,proto3" json:"openAt,omitempty"` Running bool `protobuf:"varint,5,opt,name=running,proto3" json:"running,omitempty"` Nodes []*StatusResponse_NodeStatus `protobuf:"bytes,10,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetId ¶
func (x *StatusResponse) GetId() string
func (*StatusResponse) GetName ¶
func (x *StatusResponse) GetName() string
func (*StatusResponse) GetNodes ¶
func (x *StatusResponse) GetNodes() []*StatusResponse_NodeStatus
func (*StatusResponse) GetOpenAt ¶
func (x *StatusResponse) GetOpenAt() string
func (*StatusResponse) GetRunning ¶
func (x *StatusResponse) GetRunning() bool
func (*StatusResponse) GetStatus ¶
func (x *StatusResponse) GetStatus() *Status
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type StatusResponse_IfStatus ¶
type StatusResponse_IfStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` State IfState `protobuf:"varint,2,opt,name=state,proto3,enum=netem.IfState" json:"state,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse_IfStatus) Descriptor
deprecated
func (*StatusResponse_IfStatus) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse_IfStatus.ProtoReflect.Descriptor instead.
func (*StatusResponse_IfStatus) GetName ¶
func (x *StatusResponse_IfStatus) GetName() string
func (*StatusResponse_IfStatus) GetState ¶
func (x *StatusResponse_IfStatus) GetState() IfState
func (*StatusResponse_IfStatus) ProtoMessage ¶
func (*StatusResponse_IfStatus) ProtoMessage()
func (*StatusResponse_IfStatus) ProtoReflect ¶
func (x *StatusResponse_IfStatus) ProtoReflect() protoreflect.Message
func (*StatusResponse_IfStatus) Reset ¶
func (x *StatusResponse_IfStatus) Reset()
func (*StatusResponse_IfStatus) String ¶
func (x *StatusResponse_IfStatus) String() string
type StatusResponse_NodeStatus ¶
type StatusResponse_NodeStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Running bool `protobuf:"varint,2,opt,name=running,proto3" json:"running,omitempty"` Interfaces []*StatusResponse_IfStatus `protobuf:"bytes,10,rep,name=interfaces,proto3" json:"interfaces,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse_NodeStatus) Descriptor
deprecated
func (*StatusResponse_NodeStatus) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse_NodeStatus.ProtoReflect.Descriptor instead.
func (*StatusResponse_NodeStatus) GetInterfaces ¶
func (x *StatusResponse_NodeStatus) GetInterfaces() []*StatusResponse_IfStatus
func (*StatusResponse_NodeStatus) GetName ¶
func (x *StatusResponse_NodeStatus) GetName() string
func (*StatusResponse_NodeStatus) GetRunning ¶
func (x *StatusResponse_NodeStatus) GetRunning() bool
func (*StatusResponse_NodeStatus) ProtoMessage ¶
func (*StatusResponse_NodeStatus) ProtoMessage()
func (*StatusResponse_NodeStatus) ProtoReflect ¶
func (x *StatusResponse_NodeStatus) ProtoReflect() protoreflect.Message
func (*StatusResponse_NodeStatus) Reset ¶
func (x *StatusResponse_NodeStatus) Reset()
func (*StatusResponse_NodeStatus) String ¶
func (x *StatusResponse_NodeStatus) String() string
type UnimplementedNetemServer ¶
type UnimplementedNetemServer struct { }
UnimplementedNetemServer must be embedded to have forward compatible implementations.
func (UnimplementedNetemServer) CanRunConsole ¶
func (UnimplementedNetemServer) CanRunConsole(context.Context, *NodeRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Capture ¶
func (UnimplementedNetemServer) Capture(*NodeInterfaceRequest, Netem_CaptureServer) error
func (UnimplementedNetemServer) Check ¶
func (UnimplementedNetemServer) Check(context.Context, *ProjectRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Clean ¶
func (UnimplementedNetemServer) Clean(context.Context, *emptypb.Empty) (*AckResponse, error)
func (UnimplementedNetemServer) CloseProject ¶
func (UnimplementedNetemServer) CloseProject(context.Context, *ProjectRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Console ¶
func (UnimplementedNetemServer) Console(Netem_ConsoleServer) error
func (UnimplementedNetemServer) CopyFrom ¶
func (UnimplementedNetemServer) CopyFrom(*CopyMsg, Netem_CopyFromServer) error
func (UnimplementedNetemServer) CopyTo ¶
func (UnimplementedNetemServer) CopyTo(Netem_CopyToServer) error
func (UnimplementedNetemServer) GetProjectConfigs ¶ added in v0.1.4
func (UnimplementedNetemServer) GetProjectConfigs(context.Context, *ProjectRequest) (*FileResponse, error)
func (UnimplementedNetemServer) GetProjectStatus ¶
func (UnimplementedNetemServer) GetProjectStatus(context.Context, *ProjectRequest) (*StatusResponse, error)
func (UnimplementedNetemServer) GetProjects ¶
func (UnimplementedNetemServer) GetProjects(context.Context, *emptypb.Empty) (*PrjListResponse, error)
func (UnimplementedNetemServer) GetVersion ¶
func (UnimplementedNetemServer) GetVersion(context.Context, *emptypb.Empty) (*VersionResponse, error)
func (UnimplementedNetemServer) OpenProject ¶
func (UnimplementedNetemServer) OpenProject(context.Context, *OpenRequest) (*PrjOpenResponse, error)
func (UnimplementedNetemServer) PullImages ¶
func (UnimplementedNetemServer) PullImages(*emptypb.Empty, Netem_PullImagesServer) error
func (UnimplementedNetemServer) ReadConfigFiles ¶ added in v0.2.0
func (UnimplementedNetemServer) ReadConfigFiles(context.Context, *NodeRequest) (*ConfigFilesResponse, error)
func (UnimplementedNetemServer) ReadNetworkFile ¶
func (UnimplementedNetemServer) ReadNetworkFile(context.Context, *ProjectRequest) (*FileResponse, error)
func (UnimplementedNetemServer) Reload ¶
func (UnimplementedNetemServer) Reload(context.Context, *ProjectRequest) (*RunResponse, error)
func (UnimplementedNetemServer) Restart ¶
func (UnimplementedNetemServer) Restart(context.Context, *NodeRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Run ¶
func (UnimplementedNetemServer) Run(context.Context, *ProjectRequest) (*RunResponse, error)
func (UnimplementedNetemServer) SaveProject ¶
func (UnimplementedNetemServer) SaveProject(context.Context, *ProjectRequest) (*FileResponse, error)
func (UnimplementedNetemServer) SetIfState ¶
func (UnimplementedNetemServer) SetIfState(context.Context, *NodeIfStateRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Start ¶
func (UnimplementedNetemServer) Start(context.Context, *NodeRequest) (*AckResponse, error)
func (UnimplementedNetemServer) Stop ¶
func (UnimplementedNetemServer) Stop(context.Context, *NodeRequest) (*AckResponse, error)
func (UnimplementedNetemServer) WriteNetworkFile ¶
func (UnimplementedNetemServer) WriteNetworkFile(context.Context, *WNetworkRequest) (*AckResponse, error)
type UnsafeNetemServer ¶
type UnsafeNetemServer interface {
// contains filtered or unexported methods
}
UnsafeNetemServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetemServer will result in compilation errors.
type VersionResponse ¶
type VersionResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) GetStatus ¶
func (x *VersionResponse) GetStatus() *Status
func (*VersionResponse) GetVersion ¶
func (x *VersionResponse) GetVersion() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string
type WNetworkRequest ¶
type WNetworkRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WNetworkRequest) Descriptor
deprecated
func (*WNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use WNetworkRequest.ProtoReflect.Descriptor instead.
func (*WNetworkRequest) GetData ¶
func (x *WNetworkRequest) GetData() []byte
func (*WNetworkRequest) GetId ¶
func (x *WNetworkRequest) GetId() string
func (*WNetworkRequest) ProtoMessage ¶
func (*WNetworkRequest) ProtoMessage()
func (*WNetworkRequest) ProtoReflect ¶
func (x *WNetworkRequest) ProtoReflect() protoreflect.Message
func (*WNetworkRequest) Reset ¶
func (x *WNetworkRequest) Reset()
func (*WNetworkRequest) String ¶
func (x *WNetworkRequest) String() string