resolverv1rpc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResolverServiceName is the fully-qualified name of the ResolverService service.
	ResolverServiceName = "resolver.v1.ResolverService"
	// AuthorizerServiceName is the fully-qualified name of the AuthorizerService service.
	AuthorizerServiceName = "resolver.v1.AuthorizerService"
)
View Source
const (
	// ResolverServiceGetSecretsProcedure is the fully-qualified name of the ResolverService's GetSecrets RPC.
	ResolverServiceGetSecretsProcedure = "/resolver.v1.ResolverService/GetSecrets"
	// AuthorizerServiceAuthorizeProcedure is the fully-qualified name of the AuthorizerService's Authorize RPC.
	AuthorizerServiceAuthorizeProcedure = "/resolver.v1.AuthorizerService/Authorize"
)

Variables

This section is empty.

Functions

func NewAuthorizerServiceHandler

func NewAuthorizerServiceHandler(svc AuthorizerServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)

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

func NewResolverServiceHandler

func NewResolverServiceHandler(svc ResolverServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)

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

Types

type AuthorizerServiceClient

type AuthorizerServiceClient interface {
	// Preflight: authorizes the caller for the patterns ahead of use, valid
	// until the returned expiry.
	Authorize(context.Context, *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)
}

AuthorizerServiceClient is a client for the resolver.v1.AuthorizerService service.

func NewAuthorizerServiceClient

func NewAuthorizerServiceClient(httpClient rpc.HTTPClient, baseURL string, opts ...rpc.ClientOption) AuthorizerServiceClient

NewAuthorizerServiceClient constructs a client for the resolver.v1.AuthorizerService service at baseURL, for example "http://unix".

type AuthorizerServiceHandler

type AuthorizerServiceHandler interface {
	// Preflight: authorizes the caller for the patterns ahead of use, valid
	// until the returned expiry.
	Authorize(context.Context, *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)
}

AuthorizerServiceHandler is an implementation of the resolver.v1.AuthorizerService service.

type ResolverServiceClient

type ResolverServiceClient interface {
	// Resolve a secret by its ID.
	GetSecrets(context.Context, *v1.GetSecretsRequest) (*v1.GetSecretsResponse, error)
}

ResolverServiceClient is a client for the resolver.v1.ResolverService service.

func NewResolverServiceClient

func NewResolverServiceClient(httpClient rpc.HTTPClient, baseURL string, opts ...rpc.ClientOption) ResolverServiceClient

NewResolverServiceClient constructs a client for the resolver.v1.ResolverService service at baseURL, for example "http://unix".

type ResolverServiceHandler

type ResolverServiceHandler interface {
	// Resolve a secret by its ID.
	GetSecrets(context.Context, *v1.GetSecretsRequest) (*v1.GetSecretsResponse, error)
}

ResolverServiceHandler is an implementation of the resolver.v1.ResolverService service.

type UnimplementedAuthorizerServiceHandler

type UnimplementedAuthorizerServiceHandler struct{}

UnimplementedAuthorizerServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAuthorizerServiceHandler) Authorize

type UnimplementedResolverServiceHandler

type UnimplementedResolverServiceHandler struct{}

UnimplementedResolverServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedResolverServiceHandler) GetSecrets

Jump to

Keyboard shortcuts

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