Documentation
¶
Overview ¶
Package perseusapi is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterHealthZServiceServer(s grpc.ServiceRegistrar, srv HealthZServiceServer)
- func RegisterPerseusServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPerseusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PerseusServiceClient) error
- func RegisterPerseusServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPerseusServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PerseusServiceServer) error
- func RegisterPerseusServiceServer(s grpc.ServiceRegistrar, srv PerseusServiceServer)
- type CreateModuleRequest
- func (*CreateModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModuleRequest) GetModule() *Module
- func (*CreateModuleRequest) ProtoMessage()
- func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateModuleRequest) Reset()
- func (x *CreateModuleRequest) String() string
- type CreateModuleResponse
- func (*CreateModuleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModuleResponse) GetModule() *Module
- func (*CreateModuleResponse) ProtoMessage()
- func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateModuleResponse) Reset()
- func (x *CreateModuleResponse) String() string
- type DependencyDirection
- func (DependencyDirection) Descriptor() protoreflect.EnumDescriptor
- func (x DependencyDirection) Enum() *DependencyDirection
- func (DependencyDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x DependencyDirection) Number() protoreflect.EnumNumber
- func (x DependencyDirection) String() string
- func (DependencyDirection) Type() protoreflect.EnumType
- type HealthZServiceClient
- type HealthZServiceServer
- type ListModuleVersionsRequest
- func (*ListModuleVersionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModuleVersionsRequest) GetIncludePrerelease() bool
- func (x *ListModuleVersionsRequest) GetModuleFilter() string
- func (x *ListModuleVersionsRequest) GetModuleName() string
- func (x *ListModuleVersionsRequest) GetPageSize() int32
- func (x *ListModuleVersionsRequest) GetPageToken() string
- func (x *ListModuleVersionsRequest) GetVersionFilter() string
- func (x *ListModuleVersionsRequest) GetVersionOption() ModuleVersionOption
- func (*ListModuleVersionsRequest) ProtoMessage()
- func (x *ListModuleVersionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListModuleVersionsRequest) Reset()
- func (x *ListModuleVersionsRequest) String() string
- type ListModuleVersionsResponse
- func (*ListModuleVersionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModuleVersionsResponse) GetModules() []*Module
- func (x *ListModuleVersionsResponse) GetNextPageToken() string
- func (*ListModuleVersionsResponse) ProtoMessage()
- func (x *ListModuleVersionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModuleVersionsResponse) Reset()
- func (x *ListModuleVersionsResponse) String() string
- type ListModulesRequest
- func (*ListModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesRequest) GetFilter() string
- func (x *ListModulesRequest) GetPageSize() int32
- func (x *ListModulesRequest) GetPageToken() string
- func (*ListModulesRequest) ProtoMessage()
- func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListModulesRequest) Reset()
- func (x *ListModulesRequest) String() string
- type ListModulesResponse
- func (*ListModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModulesResponse) GetModules() []*Module
- func (x *ListModulesResponse) GetNextPageToken() string
- func (*ListModulesResponse) ProtoMessage()
- func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListModulesResponse) Reset()
- func (x *ListModulesResponse) String() string
- type Module
- type ModuleVersionOption
- func (ModuleVersionOption) Descriptor() protoreflect.EnumDescriptor
- func (x ModuleVersionOption) Enum() *ModuleVersionOption
- func (ModuleVersionOption) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModuleVersionOption) Number() protoreflect.EnumNumber
- func (x ModuleVersionOption) String() string
- func (ModuleVersionOption) Type() protoreflect.EnumType
- type PerseusServiceClient
- type PerseusServiceServer
- type QueryDependenciesRequest
- func (*QueryDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDependenciesRequest) GetDirection() DependencyDirection
- func (x *QueryDependenciesRequest) GetModuleName() string
- func (x *QueryDependenciesRequest) GetPageSize() int32
- func (x *QueryDependenciesRequest) GetPageToken() string
- func (x *QueryDependenciesRequest) GetVersion() string
- func (*QueryDependenciesRequest) ProtoMessage()
- func (x *QueryDependenciesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDependenciesRequest) Reset()
- func (x *QueryDependenciesRequest) String() string
- type QueryDependenciesResponse
- func (*QueryDependenciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDependenciesResponse) GetModules() []*Module
- func (x *QueryDependenciesResponse) GetNextPageToken() string
- func (*QueryDependenciesResponse) ProtoMessage()
- func (x *QueryDependenciesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDependenciesResponse) Reset()
- func (x *QueryDependenciesResponse) String() string
- type UnimplementedHealthZServiceServer
- type UnimplementedPerseusServiceServer
- func (UnimplementedPerseusServiceServer) CreateModule(context.Context, *CreateModuleRequest) (*CreateModuleResponse, error)
- func (UnimplementedPerseusServiceServer) ListModuleVersions(context.Context, *ListModuleVersionsRequest) (*ListModuleVersionsResponse, error)
- func (UnimplementedPerseusServiceServer) ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
- func (UnimplementedPerseusServiceServer) QueryDependencies(context.Context, *QueryDependenciesRequest) (*QueryDependenciesResponse, error)
- func (UnimplementedPerseusServiceServer) UpdateDependencies(context.Context, *UpdateDependenciesRequest) (*UpdateDependenciesResponse, error)
- type UnsafeHealthZServiceServer
- type UnsafePerseusServiceServer
- type UpdateDependenciesRequest
- func (*UpdateDependenciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDependenciesRequest) GetDependencies() []*Module
- func (x *UpdateDependenciesRequest) GetModuleName() string
- func (x *UpdateDependenciesRequest) GetVersion() string
- func (*UpdateDependenciesRequest) ProtoMessage()
- func (x *UpdateDependenciesRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDependenciesRequest) Reset()
- func (x *UpdateDependenciesRequest) String() string
- type UpdateDependenciesResponse
Constants ¶
This section is empty.
Variables ¶
var ( ModuleVersionOption_name = map[int32]string{ 0: "none", 1: "latest", 2: "all", } ModuleVersionOption_value = map[string]int32{ "none": 0, "latest": 1, "all": 2, } )
Enum value maps for ModuleVersionOption.
var ( DependencyDirection_name = map[int32]string{ 0: "dependencies", 2: "dependents", } DependencyDirection_value = map[string]int32{ "dependencies": 0, "dependents": 2, } )
Enum value maps for DependencyDirection.
var File_perseus_proto protoreflect.FileDescriptor
var HealthZService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "crowdstrike.perseus.perseusapi.HealthZService", HandlerType: (*HealthZServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, Metadata: "perseus.proto", }
HealthZService_ServiceDesc is the grpc.ServiceDesc for HealthZService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PerseusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "crowdstrike.perseus.perseusapi.PerseusService", HandlerType: (*PerseusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateModule", Handler: _PerseusService_CreateModule_Handler, }, { MethodName: "ListModules", Handler: _PerseusService_ListModules_Handler, }, { MethodName: "ListModuleVersions", Handler: _PerseusService_ListModuleVersions_Handler, }, { MethodName: "UpdateDependencies", Handler: _PerseusService_UpdateDependencies_Handler, }, { MethodName: "QueryDependencies", Handler: _PerseusService_QueryDependencies_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "perseus.proto", }
PerseusService_ServiceDesc is the grpc.ServiceDesc for PerseusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHealthZServiceServer ¶
func RegisterHealthZServiceServer(s grpc.ServiceRegistrar, srv HealthZServiceServer)
func RegisterPerseusServiceHandler ¶
func RegisterPerseusServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPerseusServiceHandler registers the http handlers for service PerseusService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPerseusServiceHandlerClient ¶
func RegisterPerseusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PerseusServiceClient) error
RegisterPerseusServiceHandlerClient registers the http handlers for service PerseusService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PerseusServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PerseusServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PerseusServiceClient" to call the correct interceptors.
func RegisterPerseusServiceHandlerFromEndpoint ¶
func RegisterPerseusServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPerseusServiceHandlerFromEndpoint is same as RegisterPerseusServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPerseusServiceHandlerServer ¶
func RegisterPerseusServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PerseusServiceServer) error
RegisterPerseusServiceHandlerServer registers the http handlers for service PerseusService to "mux". UnaryRPC :call PerseusServiceServer 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 RegisterPerseusServiceHandlerFromEndpoint instead.
func RegisterPerseusServiceServer ¶
func RegisterPerseusServiceServer(s grpc.ServiceRegistrar, srv PerseusServiceServer)
Types ¶
type CreateModuleRequest ¶
type CreateModuleRequest struct { Module *Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // contains filtered or unexported fields }
func (*CreateModuleRequest) Descriptor
deprecated
func (*CreateModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateModuleRequest.ProtoReflect.Descriptor instead.
func (*CreateModuleRequest) GetModule ¶
func (x *CreateModuleRequest) GetModule() *Module
func (*CreateModuleRequest) ProtoMessage ¶
func (*CreateModuleRequest) ProtoMessage()
func (*CreateModuleRequest) ProtoReflect ¶
func (x *CreateModuleRequest) ProtoReflect() protoreflect.Message
func (*CreateModuleRequest) Reset ¶
func (x *CreateModuleRequest) Reset()
func (*CreateModuleRequest) String ¶
func (x *CreateModuleRequest) String() string
type CreateModuleResponse ¶
type CreateModuleResponse struct { Module *Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // contains filtered or unexported fields }
func (*CreateModuleResponse) Descriptor
deprecated
func (*CreateModuleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateModuleResponse.ProtoReflect.Descriptor instead.
func (*CreateModuleResponse) GetModule ¶
func (x *CreateModuleResponse) GetModule() *Module
func (*CreateModuleResponse) ProtoMessage ¶
func (*CreateModuleResponse) ProtoMessage()
func (*CreateModuleResponse) ProtoReflect ¶
func (x *CreateModuleResponse) ProtoReflect() protoreflect.Message
func (*CreateModuleResponse) Reset ¶
func (x *CreateModuleResponse) Reset()
func (*CreateModuleResponse) String ¶
func (x *CreateModuleResponse) String() string
type DependencyDirection ¶
type DependencyDirection int32
const ( DependencyDirection_dependencies DependencyDirection = 0 DependencyDirection_dependents DependencyDirection = 2 )
func (DependencyDirection) Descriptor ¶
func (DependencyDirection) Descriptor() protoreflect.EnumDescriptor
func (DependencyDirection) Enum ¶
func (x DependencyDirection) Enum() *DependencyDirection
func (DependencyDirection) EnumDescriptor
deprecated
func (DependencyDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use DependencyDirection.Descriptor instead.
func (DependencyDirection) Number ¶
func (x DependencyDirection) Number() protoreflect.EnumNumber
func (DependencyDirection) String ¶
func (x DependencyDirection) String() string
func (DependencyDirection) Type ¶
func (DependencyDirection) Type() protoreflect.EnumType
type HealthZServiceClient ¶
type HealthZServiceClient interface { }
HealthZServiceClient is the client API for HealthZService 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 NewHealthZServiceClient ¶
func NewHealthZServiceClient(cc grpc.ClientConnInterface) HealthZServiceClient
type HealthZServiceServer ¶
type HealthZServiceServer interface {
// contains filtered or unexported methods
}
HealthZServiceServer is the server API for HealthZService service. All implementations must embed UnimplementedHealthZServiceServer for forward compatibility
type ListModuleVersionsRequest ¶
type ListModuleVersionsRequest struct { // if specified, return versions for this module ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` // glob pattern for the module(s) to return ModuleFilter string `protobuf:"bytes,5,opt,name=module_filter,json=moduleFilter,proto3" json:"module_filter,omitempty"` // glob pattern for the version(s) to return VersionFilter string `protobuf:"bytes,6,opt,name=version_filter,json=versionFilter,proto3" json:"version_filter,omitempty"` // indicates whether or not matching pre-release versions should be returned IncludePrerelease bool `protobuf:"varint,7,opt,name=include_prerelease,json=includePrerelease,proto3" json:"include_prerelease,omitempty"` // indicates which matching version(s) should be returned VersionOption ModuleVersionOption `` /* 157-byte string literal not displayed */ PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListModuleVersionsRequest) Descriptor
deprecated
func (*ListModuleVersionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModuleVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListModuleVersionsRequest) GetIncludePrerelease ¶ added in v0.5.0
func (x *ListModuleVersionsRequest) GetIncludePrerelease() bool
func (*ListModuleVersionsRequest) GetModuleFilter ¶ added in v0.5.0
func (x *ListModuleVersionsRequest) GetModuleFilter() string
func (*ListModuleVersionsRequest) GetModuleName ¶
func (x *ListModuleVersionsRequest) GetModuleName() string
func (*ListModuleVersionsRequest) GetPageSize ¶
func (x *ListModuleVersionsRequest) GetPageSize() int32
func (*ListModuleVersionsRequest) GetPageToken ¶
func (x *ListModuleVersionsRequest) GetPageToken() string
func (*ListModuleVersionsRequest) GetVersionFilter ¶ added in v0.5.0
func (x *ListModuleVersionsRequest) GetVersionFilter() string
func (*ListModuleVersionsRequest) GetVersionOption ¶
func (x *ListModuleVersionsRequest) GetVersionOption() ModuleVersionOption
func (*ListModuleVersionsRequest) ProtoMessage ¶
func (*ListModuleVersionsRequest) ProtoMessage()
func (*ListModuleVersionsRequest) ProtoReflect ¶
func (x *ListModuleVersionsRequest) ProtoReflect() protoreflect.Message
func (*ListModuleVersionsRequest) Reset ¶
func (x *ListModuleVersionsRequest) Reset()
func (*ListModuleVersionsRequest) String ¶
func (x *ListModuleVersionsRequest) String() string
type ListModuleVersionsResponse ¶
type ListModuleVersionsResponse struct { Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListModuleVersionsResponse) Descriptor
deprecated
func (*ListModuleVersionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModuleVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListModuleVersionsResponse) GetModules ¶ added in v0.5.0
func (x *ListModuleVersionsResponse) GetModules() []*Module
func (*ListModuleVersionsResponse) GetNextPageToken ¶
func (x *ListModuleVersionsResponse) GetNextPageToken() string
func (*ListModuleVersionsResponse) ProtoMessage ¶
func (*ListModuleVersionsResponse) ProtoMessage()
func (*ListModuleVersionsResponse) ProtoReflect ¶
func (x *ListModuleVersionsResponse) ProtoReflect() protoreflect.Message
func (*ListModuleVersionsResponse) Reset ¶
func (x *ListModuleVersionsResponse) Reset()
func (*ListModuleVersionsResponse) String ¶
func (x *ListModuleVersionsResponse) String() string
type ListModulesRequest ¶
type ListModulesRequest struct { Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListModulesRequest) Descriptor
deprecated
func (*ListModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesRequest.ProtoReflect.Descriptor instead.
func (*ListModulesRequest) GetFilter ¶
func (x *ListModulesRequest) GetFilter() string
func (*ListModulesRequest) GetPageSize ¶
func (x *ListModulesRequest) GetPageSize() int32
func (*ListModulesRequest) GetPageToken ¶
func (x *ListModulesRequest) GetPageToken() string
func (*ListModulesRequest) ProtoMessage ¶
func (*ListModulesRequest) ProtoMessage()
func (*ListModulesRequest) ProtoReflect ¶
func (x *ListModulesRequest) ProtoReflect() protoreflect.Message
func (*ListModulesRequest) Reset ¶
func (x *ListModulesRequest) Reset()
func (*ListModulesRequest) String ¶
func (x *ListModulesRequest) String() string
type ListModulesResponse ¶
type ListModulesResponse struct { Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListModulesResponse) Descriptor
deprecated
func (*ListModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModulesResponse.ProtoReflect.Descriptor instead.
func (*ListModulesResponse) GetModules ¶
func (x *ListModulesResponse) GetModules() []*Module
func (*ListModulesResponse) GetNextPageToken ¶
func (x *ListModulesResponse) GetNextPageToken() string
func (*ListModulesResponse) ProtoMessage ¶
func (*ListModulesResponse) ProtoMessage()
func (*ListModulesResponse) ProtoReflect ¶
func (x *ListModulesResponse) ProtoReflect() protoreflect.Message
func (*ListModulesResponse) Reset ¶
func (x *ListModulesResponse) Reset()
func (*ListModulesResponse) String ¶
func (x *ListModulesResponse) String() string
type Module ¶
type Module struct { // The name corresponds directly to the name attribute in the Go module's go.mod file and // uniquely identifies a specific module Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A list of 0 or more Semantic Version strings that define released versions of the module Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` // contains filtered or unexported fields }
A Module is the sole entity within the system, uniquely identified by its name.
func (*Module) Descriptor
deprecated
func (*Module) GetVersions ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
type ModuleVersionOption ¶
type ModuleVersionOption int32
const ( ModuleVersionOption_none ModuleVersionOption = 0 ModuleVersionOption_latest ModuleVersionOption = 1 ModuleVersionOption_all ModuleVersionOption = 2 )
func (ModuleVersionOption) Descriptor ¶
func (ModuleVersionOption) Descriptor() protoreflect.EnumDescriptor
func (ModuleVersionOption) Enum ¶
func (x ModuleVersionOption) Enum() *ModuleVersionOption
func (ModuleVersionOption) EnumDescriptor
deprecated
func (ModuleVersionOption) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModuleVersionOption.Descriptor instead.
func (ModuleVersionOption) Number ¶
func (x ModuleVersionOption) Number() protoreflect.EnumNumber
func (ModuleVersionOption) String ¶
func (x ModuleVersionOption) String() string
func (ModuleVersionOption) Type ¶
func (ModuleVersionOption) Type() protoreflect.EnumType
type PerseusServiceClient ¶
type PerseusServiceClient interface { // Adds a module, along with any versions provided, to the system CreateModule(ctx context.Context, in *CreateModuleRequest, opts ...grpc.CallOption) (*CreateModuleResponse, error) // Lists known modules. // // If specified, 'filter' should contain a pattern (type TBD) to match against the modules' names. // The returned elements will contain no versions, only the highest version, or all versions, // based on the value of the 'version_option' field. ListModules(ctx context.Context, in *ListModulesRequest, opts ...grpc.CallOption) (*ListModulesResponse, error) // Lists versions of the specified module, either the latest or all ListModuleVersions(ctx context.Context, in *ListModuleVersionsRequest, opts ...grpc.CallOption) (*ListModuleVersionsResponse, error) // Adds or updates the direct dependencies of specific version of a module. // // When invoking this API, the 'versions' attribute of each specified dependency must contain exactly 1 item UpdateDependencies(ctx context.Context, in *UpdateDependenciesRequest, opts ...grpc.CallOption) (*UpdateDependenciesResponse, error) // Queries direct dependencies of a specific version of a module. // // The 'direction' indicate whether or not the returned list contains dependencies (things the // specified module depends on) or dependents (things that depend on the specified module). QueryDependencies(ctx context.Context, in *QueryDependenciesRequest, opts ...grpc.CallOption) (*QueryDependenciesResponse, error) }
PerseusServiceClient is the client API for PerseusService 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 NewPerseusServiceClient ¶
func NewPerseusServiceClient(cc grpc.ClientConnInterface) PerseusServiceClient
type PerseusServiceServer ¶
type PerseusServiceServer interface { // Adds a module, along with any versions provided, to the system CreateModule(context.Context, *CreateModuleRequest) (*CreateModuleResponse, error) // Lists known modules. // // If specified, 'filter' should contain a pattern (type TBD) to match against the modules' names. // The returned elements will contain no versions, only the highest version, or all versions, // based on the value of the 'version_option' field. ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error) // Lists versions of the specified module, either the latest or all ListModuleVersions(context.Context, *ListModuleVersionsRequest) (*ListModuleVersionsResponse, error) // Adds or updates the direct dependencies of specific version of a module. // // When invoking this API, the 'versions' attribute of each specified dependency must contain exactly 1 item UpdateDependencies(context.Context, *UpdateDependenciesRequest) (*UpdateDependenciesResponse, error) // Queries direct dependencies of a specific version of a module. // // The 'direction' indicate whether or not the returned list contains dependencies (things the // specified module depends on) or dependents (things that depend on the specified module). QueryDependencies(context.Context, *QueryDependenciesRequest) (*QueryDependenciesResponse, error) // contains filtered or unexported methods }
PerseusServiceServer is the server API for PerseusService service. All implementations must embed UnimplementedPerseusServiceServer for forward compatibility
type QueryDependenciesRequest ¶
type QueryDependenciesRequest struct { ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Direction DependencyDirection `` /* 128-byte string literal not displayed */ PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*QueryDependenciesRequest) Descriptor
deprecated
func (*QueryDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDependenciesRequest.ProtoReflect.Descriptor instead.
func (*QueryDependenciesRequest) GetDirection ¶
func (x *QueryDependenciesRequest) GetDirection() DependencyDirection
func (*QueryDependenciesRequest) GetModuleName ¶
func (x *QueryDependenciesRequest) GetModuleName() string
func (*QueryDependenciesRequest) GetPageSize ¶
func (x *QueryDependenciesRequest) GetPageSize() int32
func (*QueryDependenciesRequest) GetPageToken ¶
func (x *QueryDependenciesRequest) GetPageToken() string
func (*QueryDependenciesRequest) GetVersion ¶
func (x *QueryDependenciesRequest) GetVersion() string
func (*QueryDependenciesRequest) ProtoMessage ¶
func (*QueryDependenciesRequest) ProtoMessage()
func (*QueryDependenciesRequest) ProtoReflect ¶
func (x *QueryDependenciesRequest) ProtoReflect() protoreflect.Message
func (*QueryDependenciesRequest) Reset ¶
func (x *QueryDependenciesRequest) Reset()
func (*QueryDependenciesRequest) String ¶
func (x *QueryDependenciesRequest) String() string
type QueryDependenciesResponse ¶
type QueryDependenciesResponse struct { Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*QueryDependenciesResponse) Descriptor
deprecated
func (*QueryDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDependenciesResponse.ProtoReflect.Descriptor instead.
func (*QueryDependenciesResponse) GetModules ¶
func (x *QueryDependenciesResponse) GetModules() []*Module
func (*QueryDependenciesResponse) GetNextPageToken ¶
func (x *QueryDependenciesResponse) GetNextPageToken() string
func (*QueryDependenciesResponse) ProtoMessage ¶
func (*QueryDependenciesResponse) ProtoMessage()
func (*QueryDependenciesResponse) ProtoReflect ¶
func (x *QueryDependenciesResponse) ProtoReflect() protoreflect.Message
func (*QueryDependenciesResponse) Reset ¶
func (x *QueryDependenciesResponse) Reset()
func (*QueryDependenciesResponse) String ¶
func (x *QueryDependenciesResponse) String() string
type UnimplementedHealthZServiceServer ¶
type UnimplementedHealthZServiceServer struct { }
UnimplementedHealthZServiceServer must be embedded to have forward compatible implementations.
type UnimplementedPerseusServiceServer ¶
type UnimplementedPerseusServiceServer struct { }
UnimplementedPerseusServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPerseusServiceServer) CreateModule ¶
func (UnimplementedPerseusServiceServer) CreateModule(context.Context, *CreateModuleRequest) (*CreateModuleResponse, error)
func (UnimplementedPerseusServiceServer) ListModuleVersions ¶
func (UnimplementedPerseusServiceServer) ListModuleVersions(context.Context, *ListModuleVersionsRequest) (*ListModuleVersionsResponse, error)
func (UnimplementedPerseusServiceServer) ListModules ¶
func (UnimplementedPerseusServiceServer) ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
func (UnimplementedPerseusServiceServer) QueryDependencies ¶
func (UnimplementedPerseusServiceServer) QueryDependencies(context.Context, *QueryDependenciesRequest) (*QueryDependenciesResponse, error)
func (UnimplementedPerseusServiceServer) UpdateDependencies ¶
func (UnimplementedPerseusServiceServer) UpdateDependencies(context.Context, *UpdateDependenciesRequest) (*UpdateDependenciesResponse, error)
type UnsafeHealthZServiceServer ¶
type UnsafeHealthZServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHealthZServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthZServiceServer will result in compilation errors.
type UnsafePerseusServiceServer ¶
type UnsafePerseusServiceServer interface {
// contains filtered or unexported methods
}
UnsafePerseusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PerseusServiceServer will result in compilation errors.
type UpdateDependenciesRequest ¶
type UpdateDependenciesRequest struct { ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Dependencies []*Module `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
func (*UpdateDependenciesRequest) Descriptor
deprecated
func (*UpdateDependenciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDependenciesRequest.ProtoReflect.Descriptor instead.
func (*UpdateDependenciesRequest) GetDependencies ¶
func (x *UpdateDependenciesRequest) GetDependencies() []*Module
func (*UpdateDependenciesRequest) GetModuleName ¶
func (x *UpdateDependenciesRequest) GetModuleName() string
func (*UpdateDependenciesRequest) GetVersion ¶
func (x *UpdateDependenciesRequest) GetVersion() string
func (*UpdateDependenciesRequest) ProtoMessage ¶
func (*UpdateDependenciesRequest) ProtoMessage()
func (*UpdateDependenciesRequest) ProtoReflect ¶
func (x *UpdateDependenciesRequest) ProtoReflect() protoreflect.Message
func (*UpdateDependenciesRequest) Reset ¶
func (x *UpdateDependenciesRequest) Reset()
func (*UpdateDependenciesRequest) String ¶
func (x *UpdateDependenciesRequest) String() string
type UpdateDependenciesResponse ¶
type UpdateDependenciesResponse struct {
// contains filtered or unexported fields
}
func (*UpdateDependenciesResponse) Descriptor
deprecated
func (*UpdateDependenciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDependenciesResponse.ProtoReflect.Descriptor instead.
func (*UpdateDependenciesResponse) ProtoMessage ¶
func (*UpdateDependenciesResponse) ProtoMessage()
func (*UpdateDependenciesResponse) ProtoReflect ¶
func (x *UpdateDependenciesResponse) ProtoReflect() protoreflect.Message
func (*UpdateDependenciesResponse) Reset ¶
func (x *UpdateDependenciesResponse) Reset()
func (*UpdateDependenciesResponse) String ¶
func (x *UpdateDependenciesResponse) String() string