Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMoriartyServer(s grpc.ServiceRegistrar, srv MoriartyServer)
- type App
- type Apps
- type CleanOptions
- type ConfigProxyReq
- func (*ConfigProxyReq) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigProxyReq) GetCaptureAll() bool
- func (x *ConfigProxyReq) GetChainHost() string
- func (x *ConfigProxyReq) GetChainPort() string
- func (x *ConfigProxyReq) GetHosts() []string
- func (x *ConfigProxyReq) GetIP() string
- func (x *ConfigProxyReq) GetPort() string
- func (*ConfigProxyReq) ProtoMessage()
- func (x *ConfigProxyReq) ProtoReflect() protoreflect.Message
- func (x *ConfigProxyReq) Reset()
- func (x *ConfigProxyReq) String() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetCpuArchitecture() string
- func (x *Device) GetIsTablet() bool
- func (x *Device) GetModel() string
- func (x *Device) GetName() string
- func (x *Device) GetPlatform() int32
- func (x *Device) GetPlatformVersion() string
- func (x *Device) GetUuid() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Empty
- type Finding
- type InstallReq
- type Message
- type MoriartyClient
- type MoriartyServer
- type UnimplementedMoriartyServer
- func (UnimplementedMoriartyServer) Clean(context.Context, *CleanOptions) (*Message, error)
- func (UnimplementedMoriartyServer) ClearProxy(context.Context, *Empty) (*Message, error)
- func (UnimplementedMoriartyServer) ConfigureGadget(context.Context, *App) (*Message, error)
- func (UnimplementedMoriartyServer) ConfigureProxy(context.Context, *ConfigProxyReq) (*Message, error)
- func (UnimplementedMoriartyServer) Echo(context.Context, *Message) (*Message, error)
- func (UnimplementedMoriartyServer) HealthCheck(context.Context, *Empty) (*Message, error)
- func (UnimplementedMoriartyServer) Info(context.Context, *Empty) (*Device, error)
- func (UnimplementedMoriartyServer) InstallPackage(context.Context, *InstallReq) (*Message, error)
- func (UnimplementedMoriartyServer) LaunchApp(context.Context, *App) (*Message, error)
- func (UnimplementedMoriartyServer) ListPackages(context.Context, *Empty) (*Apps, error)
- func (UnimplementedMoriartyServer) RemovePackage(context.Context, *App) (*Message, error)
- type UnsafeMoriartyServer
Constants ¶
const ( Moriarty_Echo_FullMethodName = "/com.appknox.bakerstreet.Moriarty/Echo" Moriarty_LaunchApp_FullMethodName = "/com.appknox.bakerstreet.Moriarty/LaunchApp" Moriarty_ClearProxy_FullMethodName = "/com.appknox.bakerstreet.Moriarty/ClearProxy" Moriarty_HealthCheck_FullMethodName = "/com.appknox.bakerstreet.Moriarty/HealthCheck" Moriarty_RemovePackage_FullMethodName = "/com.appknox.bakerstreet.Moriarty/RemovePackage" Moriarty_InstallPackage_FullMethodName = "/com.appknox.bakerstreet.Moriarty/InstallPackage" Moriarty_ConfigureProxy_FullMethodName = "/com.appknox.bakerstreet.Moriarty/ConfigureProxy" Moriarty_ConfigureGadget_FullMethodName = "/com.appknox.bakerstreet.Moriarty/ConfigureGadget" Moriarty_Clean_FullMethodName = "/com.appknox.bakerstreet.Moriarty/Clean" Moriarty_Info_FullMethodName = "/com.appknox.bakerstreet.Moriarty/Info" Moriarty_ListPackages_FullMethodName = "/com.appknox.bakerstreet.Moriarty/ListPackages" )
Variables ¶
var File_bakerstreet_bakerstreet_proto protoreflect.FileDescriptor
var Moriarty_ServiceDesc = grpc.ServiceDesc{ ServiceName: "com.appknox.bakerstreet.Moriarty", HandlerType: (*MoriartyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _Moriarty_Echo_Handler, }, { MethodName: "LaunchApp", Handler: _Moriarty_LaunchApp_Handler, }, { MethodName: "ClearProxy", Handler: _Moriarty_ClearProxy_Handler, }, { MethodName: "HealthCheck", Handler: _Moriarty_HealthCheck_Handler, }, { MethodName: "RemovePackage", Handler: _Moriarty_RemovePackage_Handler, }, { MethodName: "InstallPackage", Handler: _Moriarty_InstallPackage_Handler, }, { MethodName: "ConfigureProxy", Handler: _Moriarty_ConfigureProxy_Handler, }, { MethodName: "ConfigureGadget", Handler: _Moriarty_ConfigureGadget_Handler, }, { MethodName: "Clean", Handler: _Moriarty_Clean_Handler, }, { MethodName: "Info", Handler: _Moriarty_Info_Handler, }, { MethodName: "ListPackages", Handler: _Moriarty_ListPackages_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bakerstreet/bakerstreet.proto", }
Moriarty_ServiceDesc is the grpc.ServiceDesc for Moriarty service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMoriartyServer ¶ added in v0.1.9
func RegisterMoriartyServer(s grpc.ServiceRegistrar, srv MoriartyServer)
Types ¶
type App ¶ added in v0.1.16
type App struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*App) Descriptor
deprecated
added in
v0.1.16
func (*App) ProtoMessage ¶ added in v0.1.16
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶ added in v1.0.0
func (x *App) ProtoReflect() protoreflect.Message
type Apps ¶ added in v0.1.16
type Apps struct { App []*App `protobuf:"bytes,1,rep,name=App,proto3" json:"App,omitempty"` // contains filtered or unexported fields }
func (*Apps) Descriptor
deprecated
added in
v0.1.16
func (*Apps) ProtoMessage ¶ added in v0.1.16
func (*Apps) ProtoMessage()
func (*Apps) ProtoReflect ¶ added in v1.0.0
func (x *Apps) ProtoReflect() protoreflect.Message
type CleanOptions ¶ added in v0.1.22
type CleanOptions struct { DryRun bool `protobuf:"varint,1,opt,name=DryRun,proto3" json:"DryRun,omitempty"` // contains filtered or unexported fields }
func (*CleanOptions) Descriptor
deprecated
added in
v0.1.22
func (*CleanOptions) Descriptor() ([]byte, []int)
Deprecated: Use CleanOptions.ProtoReflect.Descriptor instead.
func (*CleanOptions) GetDryRun ¶ added in v0.1.22
func (x *CleanOptions) GetDryRun() bool
func (*CleanOptions) ProtoMessage ¶ added in v0.1.22
func (*CleanOptions) ProtoMessage()
func (*CleanOptions) ProtoReflect ¶ added in v1.0.0
func (x *CleanOptions) ProtoReflect() protoreflect.Message
func (*CleanOptions) Reset ¶ added in v0.1.22
func (x *CleanOptions) Reset()
func (*CleanOptions) String ¶ added in v0.1.22
func (x *CleanOptions) String() string
type ConfigProxyReq ¶ added in v0.1.15
type ConfigProxyReq struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Port string `protobuf:"bytes,2,opt,name=Port,proto3" json:"Port,omitempty"` Hosts []string `protobuf:"bytes,3,rep,name=Hosts,proto3" json:"Hosts,omitempty"` ChainHost string `protobuf:"bytes,4,opt,name=ChainHost,proto3" json:"ChainHost,omitempty"` ChainPort string `protobuf:"bytes,5,opt,name=ChainPort,proto3" json:"ChainPort,omitempty"` CaptureAll bool `protobuf:"varint,6,opt,name=CaptureAll,proto3" json:"CaptureAll,omitempty"` // contains filtered or unexported fields }
func (*ConfigProxyReq) Descriptor
deprecated
added in
v0.1.15
func (*ConfigProxyReq) Descriptor() ([]byte, []int)
Deprecated: Use ConfigProxyReq.ProtoReflect.Descriptor instead.
func (*ConfigProxyReq) GetCaptureAll ¶ added in v0.2.0
func (x *ConfigProxyReq) GetCaptureAll() bool
func (*ConfigProxyReq) GetChainHost ¶ added in v0.2.0
func (x *ConfigProxyReq) GetChainHost() string
func (*ConfigProxyReq) GetChainPort ¶ added in v0.2.0
func (x *ConfigProxyReq) GetChainPort() string
func (*ConfigProxyReq) GetHosts ¶ added in v0.1.18
func (x *ConfigProxyReq) GetHosts() []string
func (*ConfigProxyReq) GetIP ¶ added in v0.1.17
func (x *ConfigProxyReq) GetIP() string
func (*ConfigProxyReq) GetPort ¶ added in v0.1.18
func (x *ConfigProxyReq) GetPort() string
func (*ConfigProxyReq) ProtoMessage ¶ added in v0.1.15
func (*ConfigProxyReq) ProtoMessage()
func (*ConfigProxyReq) ProtoReflect ¶ added in v1.0.0
func (x *ConfigProxyReq) ProtoReflect() protoreflect.Message
func (*ConfigProxyReq) Reset ¶ added in v0.1.15
func (x *ConfigProxyReq) Reset()
func (*ConfigProxyReq) String ¶ added in v0.1.15
func (x *ConfigProxyReq) String() string
type Device ¶
type Device struct { Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"` IsTablet bool `protobuf:"varint,2,opt,name=IsTablet,proto3" json:"IsTablet,omitempty"` Platform int32 `protobuf:"varint,3,opt,name=Platform,proto3" json:"Platform,omitempty"` PlatformVersion string `protobuf:"bytes,4,opt,name=PlatformVersion,proto3" json:"PlatformVersion,omitempty"` CpuArchitecture string `protobuf:"bytes,5,opt,name=CpuArchitecture,proto3" json:"CpuArchitecture,omitempty"` Model string `protobuf:"bytes,6,opt,name=Model,proto3" json:"Model,omitempty"` Name string `protobuf:"bytes,7,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetCpuArchitecture ¶ added in v0.1.22
func (*Device) GetIsTablet ¶
func (*Device) GetPlatform ¶
func (*Device) GetPlatformVersion ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶ added in v1.0.0
func (x *Device) ProtoReflect() protoreflect.Message
type Empty ¶ added in v0.1.15
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
added in
v0.1.15
func (*Empty) ProtoMessage ¶ added in v0.1.15
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v1.0.0
func (x *Empty) ProtoReflect() protoreflect.Message
type Finding ¶ added in v0.1.9
type Finding struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"` Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
func (*Finding) Descriptor
deprecated
added in
v0.1.9
func (*Finding) GetDescription ¶ added in v0.1.9
func (*Finding) ProtoMessage ¶ added in v0.1.9
func (*Finding) ProtoMessage()
func (*Finding) ProtoReflect ¶ added in v1.0.0
func (x *Finding) ProtoReflect() protoreflect.Message
type InstallReq ¶ added in v0.1.15
type InstallReq struct { URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"` // contains filtered or unexported fields }
func (*InstallReq) Descriptor
deprecated
added in
v0.1.15
func (*InstallReq) Descriptor() ([]byte, []int)
Deprecated: Use InstallReq.ProtoReflect.Descriptor instead.
func (*InstallReq) GetURL ¶ added in v0.1.15
func (x *InstallReq) GetURL() string
func (*InstallReq) ProtoMessage ¶ added in v0.1.15
func (*InstallReq) ProtoMessage()
func (*InstallReq) ProtoReflect ¶ added in v1.0.0
func (x *InstallReq) ProtoReflect() protoreflect.Message
func (*InstallReq) Reset ¶ added in v0.1.15
func (x *InstallReq) Reset()
func (*InstallReq) String ¶ added in v0.1.15
func (x *InstallReq) String() string
type Message ¶
type Message struct { Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v1.0.0
func (x *Message) ProtoReflect() protoreflect.Message
type MoriartyClient ¶ added in v0.1.9
type MoriartyClient interface { Echo(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) LaunchApp(ctx context.Context, in *App, opts ...grpc.CallOption) (*Message, error) ClearProxy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Message, error) HealthCheck(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Message, error) RemovePackage(ctx context.Context, in *App, opts ...grpc.CallOption) (*Message, error) InstallPackage(ctx context.Context, in *InstallReq, opts ...grpc.CallOption) (*Message, error) ConfigureProxy(ctx context.Context, in *ConfigProxyReq, opts ...grpc.CallOption) (*Message, error) ConfigureGadget(ctx context.Context, in *App, opts ...grpc.CallOption) (*Message, error) Clean(ctx context.Context, in *CleanOptions, opts ...grpc.CallOption) (*Message, error) Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Device, error) ListPackages(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Apps, error) }
MoriartyClient is the client API for Moriarty 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 NewMoriartyClient ¶ added in v0.1.9
func NewMoriartyClient(cc grpc.ClientConnInterface) MoriartyClient
type MoriartyServer ¶ added in v0.1.9
type MoriartyServer interface { Echo(context.Context, *Message) (*Message, error) LaunchApp(context.Context, *App) (*Message, error) ClearProxy(context.Context, *Empty) (*Message, error) HealthCheck(context.Context, *Empty) (*Message, error) RemovePackage(context.Context, *App) (*Message, error) InstallPackage(context.Context, *InstallReq) (*Message, error) ConfigureProxy(context.Context, *ConfigProxyReq) (*Message, error) ConfigureGadget(context.Context, *App) (*Message, error) Clean(context.Context, *CleanOptions) (*Message, error) Info(context.Context, *Empty) (*Device, error) ListPackages(context.Context, *Empty) (*Apps, error) // contains filtered or unexported methods }
MoriartyServer is the server API for Moriarty service. All implementations must embed UnimplementedMoriartyServer for forward compatibility
type UnimplementedMoriartyServer ¶ added in v0.1.22
type UnimplementedMoriartyServer struct { }
UnimplementedMoriartyServer must be embedded to have forward compatible implementations.
func (UnimplementedMoriartyServer) Clean ¶ added in v0.1.22
func (UnimplementedMoriartyServer) Clean(context.Context, *CleanOptions) (*Message, error)
func (UnimplementedMoriartyServer) ClearProxy ¶ added in v0.1.22
func (UnimplementedMoriartyServer) ConfigureGadget ¶ added in v0.1.22
func (UnimplementedMoriartyServer) ConfigureProxy ¶ added in v0.1.22
func (UnimplementedMoriartyServer) ConfigureProxy(context.Context, *ConfigProxyReq) (*Message, error)
func (UnimplementedMoriartyServer) HealthCheck ¶ added in v0.1.22
func (UnimplementedMoriartyServer) InstallPackage ¶ added in v0.1.22
func (UnimplementedMoriartyServer) InstallPackage(context.Context, *InstallReq) (*Message, error)
func (UnimplementedMoriartyServer) ListPackages ¶ added in v0.1.22
func (UnimplementedMoriartyServer) RemovePackage ¶ added in v0.1.22
type UnsafeMoriartyServer ¶ added in v1.0.0
type UnsafeMoriartyServer interface {
// contains filtered or unexported methods
}
UnsafeMoriartyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MoriartyServer will result in compilation errors.