bakerstreet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_bakerstreet_bakerstreet_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetName added in v0.1.16

func (x *App) GetName() string

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

func (*App) Reset added in v0.1.16

func (x *App) Reset()

func (*App) String added in v0.1.16

func (x *App) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Apps.ProtoReflect.Descriptor instead.

func (*Apps) GetApp added in v0.1.16

func (x *Apps) GetApp() []*App

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

func (*Apps) Reset added in v0.1.16

func (x *Apps) Reset()

func (*Apps) String added in v0.1.16

func (x *Apps) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetCpuArchitecture added in v0.1.22

func (x *Device) GetCpuArchitecture() string

func (*Device) GetIsTablet

func (x *Device) GetIsTablet() bool

func (*Device) GetModel added in v0.1.22

func (x *Device) GetModel() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetPlatform

func (x *Device) GetPlatform() int32

func (*Device) GetPlatformVersion

func (x *Device) GetPlatformVersion() string

func (*Device) GetUuid

func (x *Device) GetUuid() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect added in v1.0.0

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

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

func (*Empty) Reset added in v0.1.15

func (x *Empty) Reset()

func (*Empty) String added in v0.1.15

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Finding.ProtoReflect.Descriptor instead.

func (*Finding) GetDescription added in v0.1.9

func (x *Finding) GetDescription() string

func (*Finding) GetTitle added in v0.1.9

func (x *Finding) GetTitle() string

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

func (*Finding) Reset added in v0.1.9

func (x *Finding) Reset()

func (*Finding) String added in v0.1.9

func (x *Finding) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetData added in v0.1.10

func (x *Message) GetData() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v1.0.0

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) ClearProxy added in v0.1.22

func (UnimplementedMoriartyServer) ConfigureGadget added in v0.1.22

func (UnimplementedMoriartyServer) ConfigureProxy added in v0.1.22

func (UnimplementedMoriartyServer) Echo added in v0.1.22

func (UnimplementedMoriartyServer) HealthCheck added in v0.1.22

func (UnimplementedMoriartyServer) Info added in v0.1.22

func (UnimplementedMoriartyServer) InstallPackage added in v0.1.22

func (UnimplementedMoriartyServer) LaunchApp added in v0.1.22

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.

Jump to

Keyboard shortcuts

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