applications

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package applications is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_api_proto_applications_proto protoreflect.FileDescriptor

Functions

func RegisterApplicationsServiceHandler

func RegisterApplicationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterApplicationsServiceHandler registers the http handlers for service ApplicationsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterApplicationsServiceHandlerClient

func RegisterApplicationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationsServiceClient) error

RegisterApplicationsServiceHandlerClient registers the http handlers for service ApplicationsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApplicationsServiceClient" to call the correct interceptors.

func RegisterApplicationsServiceHandlerFromEndpoint

func RegisterApplicationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterApplicationsServiceHandlerFromEndpoint is same as RegisterApplicationsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterApplicationsServiceHandlerServer

func RegisterApplicationsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationsServiceServer) error

RegisterApplicationsServiceHandlerServer registers the http handlers for service ApplicationsService to "mux". UnaryRPC :call ApplicationsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterApplicationsServiceHandlerFromEndpoint instead.

func RegisterApplicationsServiceServer

func RegisterApplicationsServiceServer(s *grpc.Server, srv ApplicationsServiceServer)

Types

type Application

type Application struct {
	OrgID       string `protobuf:"bytes,1,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	CreatedTime string `protobuf:"bytes,3,opt,name=CreatedTime,proto3" json:"CreatedTime,omitempty"`
	Host        string `protobuf:"bytes,4,opt,name=Host,proto3" json:"Host,omitempty"`
	Namespace   string `protobuf:"bytes,5,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
	Procid      string `protobuf:"bytes,6,opt,name=Procid,proto3" json:"Procid,omitempty"`
	LastSeen    int64  `protobuf:"varint,7,opt,name=lastSeen,proto3" json:"lastSeen,omitempty"`
	FirstSeen   int64  `protobuf:"varint,8,opt,name=firstSeen,proto3" json:"firstSeen,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetCreatedTime

func (x *Application) GetCreatedTime() string

func (*Application) GetFirstSeen

func (x *Application) GetFirstSeen() int64

func (*Application) GetHost

func (x *Application) GetHost() string

func (*Application) GetLastSeen

func (x *Application) GetLastSeen() int64

func (*Application) GetName

func (x *Application) GetName() string

func (*Application) GetNamespace

func (x *Application) GetNamespace() string

func (*Application) GetOrgID

func (x *Application) GetOrgID() string

func (*Application) GetProcid

func (x *Application) GetProcid() string

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type ApplicationV2

type ApplicationV2 struct {
	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	Namespace   string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	LastSeen    int64  `protobuf:"varint,4,opt,name=lastSeen,proto3" json:"lastSeen,omitempty"`
	FirstSeen   int64  `protobuf:"varint,5,opt,name=firstSeen,proto3" json:"firstSeen,omitempty"`
	// contains filtered or unexported fields
}

V2 in the new normalized version of V1 table.

func (*ApplicationV2) Descriptor deprecated

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

Deprecated: Use ApplicationV2.ProtoReflect.Descriptor instead.

func (*ApplicationV2) GetDestination

func (x *ApplicationV2) GetDestination() string

func (*ApplicationV2) GetFirstSeen

func (x *ApplicationV2) GetFirstSeen() int64

func (*ApplicationV2) GetLastSeen

func (x *ApplicationV2) GetLastSeen() int64

func (*ApplicationV2) GetName

func (x *ApplicationV2) GetName() string

func (*ApplicationV2) GetNamespace

func (x *ApplicationV2) GetNamespace() string

func (*ApplicationV2) ProtoMessage

func (*ApplicationV2) ProtoMessage()

func (*ApplicationV2) ProtoReflect

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

func (*ApplicationV2) Reset

func (x *ApplicationV2) Reset()

func (*ApplicationV2) String

func (x *ApplicationV2) String() string

type ApplicationsResponse

type ApplicationsResponse struct {

	// Deprecated: Marked as deprecated in api/proto/applications.proto.
	Applications     []string       `protobuf:"bytes,2,rep,name=applications,proto3" json:"applications,omitempty"`
	ApplicationsList []*Application `protobuf:"bytes,3,rep,name=applications_list,json=applicationsList,proto3" json:"applications_list,omitempty"`
	TotalCount       uint64         `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationsResponse) Descriptor deprecated

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

Deprecated: Use ApplicationsResponse.ProtoReflect.Descriptor instead.

func (*ApplicationsResponse) GetApplications deprecated

func (x *ApplicationsResponse) GetApplications() []string

Deprecated: Marked as deprecated in api/proto/applications.proto.

func (*ApplicationsResponse) GetApplicationsList

func (x *ApplicationsResponse) GetApplicationsList() []*Application

func (*ApplicationsResponse) GetTotalCount

func (x *ApplicationsResponse) GetTotalCount() uint64

func (*ApplicationsResponse) ProtoMessage

func (*ApplicationsResponse) ProtoMessage()

func (*ApplicationsResponse) ProtoReflect

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

func (*ApplicationsResponse) Reset

func (x *ApplicationsResponse) Reset()

func (*ApplicationsResponse) String

func (x *ApplicationsResponse) String() string

type ApplicationsServiceClient

type ApplicationsServiceClient interface {
	GetApplicationsV2(ctx context.Context, in *GetApplicationsRequest, opts ...grpc.CallOption) (*GetApplicationsResponseV2, error)
	GetApplications(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetApplicationsResponse, error)
	GetApplicationsV3(ctx context.Context, in *GetApplicationsRequestV3, opts ...grpc.CallOption) (*GetApplicationsResponseV3, error)
}

ApplicationsServiceClient is the client API for ApplicationsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ApplicationsServiceServer

type ApplicationsServiceServer interface {
	GetApplicationsV2(context.Context, *GetApplicationsRequest) (*GetApplicationsResponseV2, error)
	GetApplications(context.Context, *empty.Empty) (*GetApplicationsResponse, error)
	GetApplicationsV3(context.Context, *GetApplicationsRequestV3) (*GetApplicationsResponseV3, error)
}

ApplicationsServiceServer is the server API for ApplicationsService service.

type GetApplicationsRequest

type GetApplicationsRequest struct {
	Namespace   string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Page        uint64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Size        uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Destination string `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApplicationsRequest) Descriptor deprecated

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

Deprecated: Use GetApplicationsRequest.ProtoReflect.Descriptor instead.

func (*GetApplicationsRequest) GetDestination

func (x *GetApplicationsRequest) GetDestination() string

func (*GetApplicationsRequest) GetNamespace

func (x *GetApplicationsRequest) GetNamespace() string

func (*GetApplicationsRequest) GetPage

func (x *GetApplicationsRequest) GetPage() uint64

func (*GetApplicationsRequest) GetSize

func (x *GetApplicationsRequest) GetSize() uint64

func (*GetApplicationsRequest) ProtoMessage

func (*GetApplicationsRequest) ProtoMessage()

func (*GetApplicationsRequest) ProtoReflect

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

func (*GetApplicationsRequest) Reset

func (x *GetApplicationsRequest) Reset()

func (*GetApplicationsRequest) String

func (x *GetApplicationsRequest) String() string

type GetApplicationsRequestV3

type GetApplicationsRequestV3 struct {
	Namespaces        []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	Count             uint64   `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Offset            uint64   `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Applications      []string `protobuf:"bytes,4,rep,name=applications,proto3" json:"applications,omitempty"`
	SortAttribute     string   `protobuf:"bytes,5,opt,name=sortAttribute,proto3" json:"sortAttribute,omitempty"`
	SortOrder         string   `protobuf:"bytes,6,opt,name=sortOrder,proto3" json:"sortOrder,omitempty"`
	LastSeenStartTime uint64   `protobuf:"varint,7,opt,name=lastSeenStartTime,proto3" json:"lastSeenStartTime,omitempty"`
	LastSeenEndTime   uint64   `protobuf:"varint,8,opt,name=lastSeenEndTime,proto3" json:"lastSeenEndTime,omitempty"`
	Search            []string `protobuf:"bytes,9,rep,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApplicationsRequestV3) Descriptor deprecated

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

Deprecated: Use GetApplicationsRequestV3.ProtoReflect.Descriptor instead.

func (*GetApplicationsRequestV3) GetApplications

func (x *GetApplicationsRequestV3) GetApplications() []string

func (*GetApplicationsRequestV3) GetCount

func (x *GetApplicationsRequestV3) GetCount() uint64

func (*GetApplicationsRequestV3) GetLastSeenEndTime

func (x *GetApplicationsRequestV3) GetLastSeenEndTime() uint64

func (*GetApplicationsRequestV3) GetLastSeenStartTime

func (x *GetApplicationsRequestV3) GetLastSeenStartTime() uint64

func (*GetApplicationsRequestV3) GetNamespaces

func (x *GetApplicationsRequestV3) GetNamespaces() []string

func (*GetApplicationsRequestV3) GetOffset

func (x *GetApplicationsRequestV3) GetOffset() uint64

func (*GetApplicationsRequestV3) GetSearch

func (x *GetApplicationsRequestV3) GetSearch() []string

func (*GetApplicationsRequestV3) GetSortAttribute

func (x *GetApplicationsRequestV3) GetSortAttribute() string

func (*GetApplicationsRequestV3) GetSortOrder

func (x *GetApplicationsRequestV3) GetSortOrder() string

func (*GetApplicationsRequestV3) ProtoMessage

func (*GetApplicationsRequestV3) ProtoMessage()

func (*GetApplicationsRequestV3) ProtoReflect

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

func (*GetApplicationsRequestV3) Reset

func (x *GetApplicationsRequestV3) Reset()

func (*GetApplicationsRequestV3) String

func (x *GetApplicationsRequestV3) String() string

type GetApplicationsResponse

type GetApplicationsResponse struct {
	Response *ApplicationsResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApplicationsResponse) Descriptor deprecated

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

Deprecated: Use GetApplicationsResponse.ProtoReflect.Descriptor instead.

func (*GetApplicationsResponse) GetResponse

func (*GetApplicationsResponse) ProtoMessage

func (*GetApplicationsResponse) ProtoMessage()

func (*GetApplicationsResponse) ProtoReflect

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

func (*GetApplicationsResponse) Reset

func (x *GetApplicationsResponse) Reset()

func (*GetApplicationsResponse) String

func (x *GetApplicationsResponse) String() string

type GetApplicationsResponseV2

type GetApplicationsResponseV2 struct {
	Applications []*ApplicationV2 `protobuf:"bytes,2,rep,name=applications,proto3" json:"applications,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApplicationsResponseV2) Descriptor deprecated

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

Deprecated: Use GetApplicationsResponseV2.ProtoReflect.Descriptor instead.

func (*GetApplicationsResponseV2) GetApplications

func (x *GetApplicationsResponseV2) GetApplications() []*ApplicationV2

func (*GetApplicationsResponseV2) ProtoMessage

func (*GetApplicationsResponseV2) ProtoMessage()

func (*GetApplicationsResponseV2) ProtoReflect

func (*GetApplicationsResponseV2) Reset

func (x *GetApplicationsResponseV2) Reset()

func (*GetApplicationsResponseV2) String

func (x *GetApplicationsResponseV2) String() string

type GetApplicationsResponseV3

type GetApplicationsResponseV3 struct {
	TotalCount   uint64           `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	Offset       uint64           `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Count        uint64           `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Applications []*ApplicationV2 `protobuf:"bytes,4,rep,name=applications,proto3" json:"applications,omitempty"`
	// contains filtered or unexported fields
}

func (*GetApplicationsResponseV3) Descriptor deprecated

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

Deprecated: Use GetApplicationsResponseV3.ProtoReflect.Descriptor instead.

func (*GetApplicationsResponseV3) GetApplications

func (x *GetApplicationsResponseV3) GetApplications() []*ApplicationV2

func (*GetApplicationsResponseV3) GetCount

func (x *GetApplicationsResponseV3) GetCount() uint64

func (*GetApplicationsResponseV3) GetOffset

func (x *GetApplicationsResponseV3) GetOffset() uint64

func (*GetApplicationsResponseV3) GetTotalCount

func (x *GetApplicationsResponseV3) GetTotalCount() uint64

func (*GetApplicationsResponseV3) ProtoMessage

func (*GetApplicationsResponseV3) ProtoMessage()

func (*GetApplicationsResponseV3) ProtoReflect

func (*GetApplicationsResponseV3) Reset

func (x *GetApplicationsResponseV3) Reset()

func (*GetApplicationsResponseV3) String

func (x *GetApplicationsResponseV3) String() string

type UnimplementedApplicationsServiceServer

type UnimplementedApplicationsServiceServer struct {
}

UnimplementedApplicationsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedApplicationsServiceServer) GetApplications

func (*UnimplementedApplicationsServiceServer) GetApplicationsV2

func (*UnimplementedApplicationsServiceServer) GetApplicationsV3

Jump to

Keyboard shortcuts

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