perseusapiconnect

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PerseusServiceName is the fully-qualified name of the PerseusService service.
	PerseusServiceName = "crowdstrike.perseus.perseusapi.PerseusService"
	// HealthZServiceName is the fully-qualified name of the HealthZService service.
	HealthZServiceName = "crowdstrike.perseus.perseusapi.HealthZService"
)
View Source
const (
	// PerseusServiceCreateModuleProcedure is the fully-qualified name of the PerseusService's
	// CreateModule RPC.
	PerseusServiceCreateModuleProcedure = "/crowdstrike.perseus.perseusapi.PerseusService/CreateModule"
	// PerseusServiceListModulesProcedure is the fully-qualified name of the PerseusService's
	// ListModules RPC.
	PerseusServiceListModulesProcedure = "/crowdstrike.perseus.perseusapi.PerseusService/ListModules"
	// PerseusServiceListModuleVersionsProcedure is the fully-qualified name of the PerseusService's
	// ListModuleVersions RPC.
	PerseusServiceListModuleVersionsProcedure = "/crowdstrike.perseus.perseusapi.PerseusService/ListModuleVersions"
	// PerseusServiceUpdateDependenciesProcedure is the fully-qualified name of the PerseusService's
	// UpdateDependencies RPC.
	PerseusServiceUpdateDependenciesProcedure = "/crowdstrike.perseus.perseusapi.PerseusService/UpdateDependencies"
	// PerseusServiceQueryDependenciesProcedure is the fully-qualified name of the PerseusService's
	// QueryDependencies RPC.
	PerseusServiceQueryDependenciesProcedure = "/crowdstrike.perseus.perseusapi.PerseusService/QueryDependencies"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

Variables

This section is empty.

Functions

func NewHealthZServiceHandler

func NewHealthZServiceHandler(svc HealthZServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewHealthZServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewPerseusServiceHandler

func NewPerseusServiceHandler(svc PerseusServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewPerseusServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type HealthZServiceClient

type HealthZServiceClient interface {
}

HealthZServiceClient is a client for the crowdstrike.perseus.perseusapi.HealthZService service.

func NewHealthZServiceClient

func NewHealthZServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HealthZServiceClient

NewHealthZServiceClient constructs a client for the crowdstrike.perseus.perseusapi.HealthZService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type HealthZServiceHandler

type HealthZServiceHandler interface {
}

HealthZServiceHandler is an implementation of the crowdstrike.perseus.perseusapi.HealthZService service.

type PerseusServiceClient

type PerseusServiceClient interface {
	// Adds a module, along with any versions provided, to the system
	CreateModule(context.Context, *connect.Request[perseusapi.CreateModuleRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.ListModulesRequest]) (*connect.Response[perseusapi.ListModulesResponse], error)
	// Lists versions of the specified module, either the latest or all
	ListModuleVersions(context.Context, *connect.Request[perseusapi.ListModuleVersionsRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.UpdateDependenciesRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.QueryDependenciesRequest]) (*connect.Response[perseusapi.QueryDependenciesResponse], error)
}

PerseusServiceClient is a client for the crowdstrike.perseus.perseusapi.PerseusService service.

func NewPerseusServiceClient

func NewPerseusServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PerseusServiceClient

NewPerseusServiceClient constructs a client for the crowdstrike.perseus.perseusapi.PerseusService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type PerseusServiceHandler

type PerseusServiceHandler interface {
	// Adds a module, along with any versions provided, to the system
	CreateModule(context.Context, *connect.Request[perseusapi.CreateModuleRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.ListModulesRequest]) (*connect.Response[perseusapi.ListModulesResponse], error)
	// Lists versions of the specified module, either the latest or all
	ListModuleVersions(context.Context, *connect.Request[perseusapi.ListModuleVersionsRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.UpdateDependenciesRequest]) (*connect.Response[perseusapi.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, *connect.Request[perseusapi.QueryDependenciesRequest]) (*connect.Response[perseusapi.QueryDependenciesResponse], error)
}

PerseusServiceHandler is an implementation of the crowdstrike.perseus.perseusapi.PerseusService service.

type UnimplementedHealthZServiceHandler

type UnimplementedHealthZServiceHandler struct{}

UnimplementedHealthZServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedPerseusServiceHandler

type UnimplementedPerseusServiceHandler struct{}

UnimplementedPerseusServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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