proto

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Searcher_SearchFsEvents_FullMethodName       = "/proto.Searcher/SearchFsEvents"
	Searcher_SearchProviderEvents_FullMethodName = "/proto.Searcher/SearchProviderEvents"
	Searcher_SearchLogEvents_FullMethodName      = "/proto.Searcher/SearchLogEvents"
)

Variables

View Source
var (
	FsEventsFilter_Order_name = map[int32]string{
		0: "DESC",
		1: "ASC",
	}
	FsEventsFilter_Order_value = map[string]int32{
		"DESC": 0,
		"ASC":  1,
	}
)

Enum value maps for FsEventsFilter_Order.

View Source
var (
	ProviderEventsFilter_Order_name = map[int32]string{
		0: "DESC",
		1: "ASC",
	}
	ProviderEventsFilter_Order_value = map[string]int32{
		"DESC": 0,
		"ASC":  1,
	}
)

Enum value maps for ProviderEventsFilter_Order.

View Source
var (
	LogEventsFilter_Order_name = map[int32]string{
		0: "DESC",
		1: "ASC",
	}
	LogEventsFilter_Order_value = map[string]int32{
		"DESC": 0,
		"ASC":  1,
	}
)

Enum value maps for LogEventsFilter_Order.

View Source
var File_proto_search_proto protoreflect.FileDescriptor
View Source
var Searcher_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Searcher",
	HandlerType: (*SearcherServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SearchFsEvents",
			Handler:    _Searcher_SearchFsEvents_Handler,
		},
		{
			MethodName: "SearchProviderEvents",
			Handler:    _Searcher_SearchProviderEvents_Handler,
		},
		{
			MethodName: "SearchLogEvents",
			Handler:    _Searcher_SearchLogEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/search.proto",
}

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

Functions

func RegisterSearcherServer

func RegisterSearcherServer(s grpc.ServiceRegistrar, srv SearcherServer)

Types

type FsEventsFilter

type FsEventsFilter struct {
	StartTimestamp int64                `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp   int64                `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	Actions        []string             `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	Username       string               `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Ip             string               `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	SshCmd         string               `protobuf:"bytes,6,opt,name=ssh_cmd,json=sshCmd,proto3" json:"ssh_cmd,omitempty"`
	Protocols      []string             `protobuf:"bytes,7,rep,name=protocols,proto3" json:"protocols,omitempty"`
	Statuses       []int32              `protobuf:"varint,8,rep,packed,name=statuses,proto3" json:"statuses,omitempty"`
	InstanceIds    []string             `protobuf:"bytes,9,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
	Limit          int32                `protobuf:"varint,10,opt,name=limit,proto3" json:"limit,omitempty"`
	FromId         string               `protobuf:"bytes,11,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"`
	FsProvider     int32                `protobuf:"varint,12,opt,name=fs_provider,json=fsProvider,proto3" json:"fs_provider,omitempty"`
	Bucket         string               `protobuf:"bytes,13,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Endpoint       string               `protobuf:"bytes,14,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Order          FsEventsFilter_Order `protobuf:"varint,15,opt,name=order,proto3,enum=proto.FsEventsFilter_Order" json:"order,omitempty"`
	Role           string               `protobuf:"bytes,16,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*FsEventsFilter) Descriptor deprecated

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

Deprecated: Use FsEventsFilter.ProtoReflect.Descriptor instead.

func (*FsEventsFilter) GetActions

func (x *FsEventsFilter) GetActions() []string

func (*FsEventsFilter) GetBucket

func (x *FsEventsFilter) GetBucket() string

func (*FsEventsFilter) GetEndTimestamp

func (x *FsEventsFilter) GetEndTimestamp() int64

func (*FsEventsFilter) GetEndpoint

func (x *FsEventsFilter) GetEndpoint() string

func (*FsEventsFilter) GetFromId added in v0.1.4

func (x *FsEventsFilter) GetFromId() string

func (*FsEventsFilter) GetFsProvider

func (x *FsEventsFilter) GetFsProvider() int32

func (*FsEventsFilter) GetInstanceIds

func (x *FsEventsFilter) GetInstanceIds() []string

func (*FsEventsFilter) GetIp

func (x *FsEventsFilter) GetIp() string

func (*FsEventsFilter) GetLimit

func (x *FsEventsFilter) GetLimit() int32

func (*FsEventsFilter) GetOrder

func (x *FsEventsFilter) GetOrder() FsEventsFilter_Order

func (*FsEventsFilter) GetProtocols

func (x *FsEventsFilter) GetProtocols() []string

func (*FsEventsFilter) GetRole added in v0.1.3

func (x *FsEventsFilter) GetRole() string

func (*FsEventsFilter) GetSshCmd

func (x *FsEventsFilter) GetSshCmd() string

func (*FsEventsFilter) GetStartTimestamp

func (x *FsEventsFilter) GetStartTimestamp() int64

func (*FsEventsFilter) GetStatuses

func (x *FsEventsFilter) GetStatuses() []int32

func (*FsEventsFilter) GetUsername

func (x *FsEventsFilter) GetUsername() string

func (*FsEventsFilter) ProtoMessage

func (*FsEventsFilter) ProtoMessage()

func (*FsEventsFilter) ProtoReflect

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

func (*FsEventsFilter) Reset

func (x *FsEventsFilter) Reset()

func (*FsEventsFilter) String

func (x *FsEventsFilter) String() string

type FsEventsFilter_Order

type FsEventsFilter_Order int32
const (
	FsEventsFilter_DESC FsEventsFilter_Order = 0
	FsEventsFilter_ASC  FsEventsFilter_Order = 1
)

func (FsEventsFilter_Order) Descriptor

func (FsEventsFilter_Order) Enum

func (FsEventsFilter_Order) EnumDescriptor deprecated

func (FsEventsFilter_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use FsEventsFilter_Order.Descriptor instead.

func (FsEventsFilter_Order) Number

func (FsEventsFilter_Order) String

func (x FsEventsFilter_Order) String() string

func (FsEventsFilter_Order) Type

type LogEventsFilter added in v0.1.4

type LogEventsFilter struct {
	StartTimestamp int64                 `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp   int64                 `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	Events         []int32               `protobuf:"varint,3,rep,packed,name=events,proto3" json:"events,omitempty"`
	Username       string                `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Ip             string                `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	Protocols      []string              `protobuf:"bytes,6,rep,name=protocols,proto3" json:"protocols,omitempty"`
	InstanceIds    []string              `protobuf:"bytes,7,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
	Limit          int32                 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
	FromId         string                `protobuf:"bytes,9,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"`
	Order          LogEventsFilter_Order `protobuf:"varint,10,opt,name=order,proto3,enum=proto.LogEventsFilter_Order" json:"order,omitempty"`
	Role           string                `protobuf:"bytes,11,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*LogEventsFilter) Descriptor deprecated added in v0.1.4

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

Deprecated: Use LogEventsFilter.ProtoReflect.Descriptor instead.

func (*LogEventsFilter) GetEndTimestamp added in v0.1.4

func (x *LogEventsFilter) GetEndTimestamp() int64

func (*LogEventsFilter) GetEvents added in v0.1.4

func (x *LogEventsFilter) GetEvents() []int32

func (*LogEventsFilter) GetFromId added in v0.1.4

func (x *LogEventsFilter) GetFromId() string

func (*LogEventsFilter) GetInstanceIds added in v0.1.4

func (x *LogEventsFilter) GetInstanceIds() []string

func (*LogEventsFilter) GetIp added in v0.1.4

func (x *LogEventsFilter) GetIp() string

func (*LogEventsFilter) GetLimit added in v0.1.4

func (x *LogEventsFilter) GetLimit() int32

func (*LogEventsFilter) GetOrder added in v0.1.4

func (x *LogEventsFilter) GetOrder() LogEventsFilter_Order

func (*LogEventsFilter) GetProtocols added in v0.1.4

func (x *LogEventsFilter) GetProtocols() []string

func (*LogEventsFilter) GetRole added in v0.1.4

func (x *LogEventsFilter) GetRole() string

func (*LogEventsFilter) GetStartTimestamp added in v0.1.4

func (x *LogEventsFilter) GetStartTimestamp() int64

func (*LogEventsFilter) GetUsername added in v0.1.4

func (x *LogEventsFilter) GetUsername() string

func (*LogEventsFilter) ProtoMessage added in v0.1.4

func (*LogEventsFilter) ProtoMessage()

func (*LogEventsFilter) ProtoReflect added in v0.1.4

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

func (*LogEventsFilter) Reset added in v0.1.4

func (x *LogEventsFilter) Reset()

func (*LogEventsFilter) String added in v0.1.4

func (x *LogEventsFilter) String() string

type LogEventsFilter_Order added in v0.1.4

type LogEventsFilter_Order int32
const (
	LogEventsFilter_DESC LogEventsFilter_Order = 0
	LogEventsFilter_ASC  LogEventsFilter_Order = 1
)

func (LogEventsFilter_Order) Descriptor added in v0.1.4

func (LogEventsFilter_Order) Enum added in v0.1.4

func (LogEventsFilter_Order) EnumDescriptor deprecated added in v0.1.4

func (LogEventsFilter_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogEventsFilter_Order.Descriptor instead.

func (LogEventsFilter_Order) Number added in v0.1.4

func (LogEventsFilter_Order) String added in v0.1.4

func (x LogEventsFilter_Order) String() string

func (LogEventsFilter_Order) Type added in v0.1.4

type ProviderEventsFilter

type ProviderEventsFilter struct {
	StartTimestamp int64                      `protobuf:"varint,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp   int64                      `protobuf:"varint,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	Actions        []string                   `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	Username       string                     `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Ip             string                     `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	ObjectTypes    []string                   `protobuf:"bytes,6,rep,name=object_types,json=objectTypes,proto3" json:"object_types,omitempty"`
	ObjectName     string                     `protobuf:"bytes,7,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
	InstanceIds    []string                   `protobuf:"bytes,8,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"`
	Limit          int32                      `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"`
	FromId         string                     `protobuf:"bytes,10,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"`
	Order          ProviderEventsFilter_Order `protobuf:"varint,11,opt,name=order,proto3,enum=proto.ProviderEventsFilter_Order" json:"order,omitempty"`
	Role           string                     `protobuf:"bytes,12,opt,name=role,proto3" json:"role,omitempty"`
	OmitObjectData bool                       `protobuf:"varint,13,opt,name=omit_object_data,json=omitObjectData,proto3" json:"omit_object_data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderEventsFilter) Descriptor deprecated

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

Deprecated: Use ProviderEventsFilter.ProtoReflect.Descriptor instead.

func (*ProviderEventsFilter) GetActions

func (x *ProviderEventsFilter) GetActions() []string

func (*ProviderEventsFilter) GetEndTimestamp

func (x *ProviderEventsFilter) GetEndTimestamp() int64

func (*ProviderEventsFilter) GetFromId added in v0.1.4

func (x *ProviderEventsFilter) GetFromId() string

func (*ProviderEventsFilter) GetInstanceIds

func (x *ProviderEventsFilter) GetInstanceIds() []string

func (*ProviderEventsFilter) GetIp

func (x *ProviderEventsFilter) GetIp() string

func (*ProviderEventsFilter) GetLimit

func (x *ProviderEventsFilter) GetLimit() int32

func (*ProviderEventsFilter) GetObjectName

func (x *ProviderEventsFilter) GetObjectName() string

func (*ProviderEventsFilter) GetObjectTypes

func (x *ProviderEventsFilter) GetObjectTypes() []string

func (*ProviderEventsFilter) GetOmitObjectData added in v0.1.3

func (x *ProviderEventsFilter) GetOmitObjectData() bool

func (*ProviderEventsFilter) GetOrder

func (*ProviderEventsFilter) GetRole added in v0.1.3

func (x *ProviderEventsFilter) GetRole() string

func (*ProviderEventsFilter) GetStartTimestamp

func (x *ProviderEventsFilter) GetStartTimestamp() int64

func (*ProviderEventsFilter) GetUsername

func (x *ProviderEventsFilter) GetUsername() string

func (*ProviderEventsFilter) ProtoMessage

func (*ProviderEventsFilter) ProtoMessage()

func (*ProviderEventsFilter) ProtoReflect

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

func (*ProviderEventsFilter) Reset

func (x *ProviderEventsFilter) Reset()

func (*ProviderEventsFilter) String

func (x *ProviderEventsFilter) String() string

type ProviderEventsFilter_Order

type ProviderEventsFilter_Order int32
const (
	ProviderEventsFilter_DESC ProviderEventsFilter_Order = 0
	ProviderEventsFilter_ASC  ProviderEventsFilter_Order = 1
)

func (ProviderEventsFilter_Order) Descriptor

func (ProviderEventsFilter_Order) Enum

func (ProviderEventsFilter_Order) EnumDescriptor deprecated

func (ProviderEventsFilter_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProviderEventsFilter_Order.Descriptor instead.

func (ProviderEventsFilter_Order) Number

func (ProviderEventsFilter_Order) String

func (ProviderEventsFilter_Order) Type

type SearchResponse

type SearchResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // JSON serialized response to return
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetData

func (x *SearchResponse) GetData() []byte

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type SearcherClient

type SearcherClient interface {
	SearchFsEvents(ctx context.Context, in *FsEventsFilter, opts ...grpc.CallOption) (*SearchResponse, error)
	SearchProviderEvents(ctx context.Context, in *ProviderEventsFilter, opts ...grpc.CallOption) (*SearchResponse, error)
	SearchLogEvents(ctx context.Context, in *LogEventsFilter, opts ...grpc.CallOption) (*SearchResponse, error)
}

SearcherClient is the client API for Searcher 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 NewSearcherClient

func NewSearcherClient(cc grpc.ClientConnInterface) SearcherClient

type SearcherServer

type SearcherServer interface {
	SearchFsEvents(context.Context, *FsEventsFilter) (*SearchResponse, error)
	SearchProviderEvents(context.Context, *ProviderEventsFilter) (*SearchResponse, error)
	SearchLogEvents(context.Context, *LogEventsFilter) (*SearchResponse, error)
}

SearcherServer is the server API for Searcher service. All implementations should embed UnimplementedSearcherServer for forward compatibility

type UnimplementedSearcherServer

type UnimplementedSearcherServer struct {
}

UnimplementedSearcherServer should be embedded to have forward compatible implementations.

func (UnimplementedSearcherServer) SearchFsEvents

func (UnimplementedSearcherServer) SearchLogEvents added in v0.1.4

func (UnimplementedSearcherServer) SearchProviderEvents

type UnsafeSearcherServer added in v0.1.3

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

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

Jump to

Keyboard shortcuts

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