Documentation
¶
Index ¶
- Constants
- func NewAuthorizerServiceHandler(svc AuthorizerServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
- func NewResolverServiceHandler(svc ResolverServiceHandler, opts ...rpc.HandlerOption) (string, http.Handler)
- type AuthorizerServiceClient
- type AuthorizerServiceHandler
- type ResolverServiceClient
- type ResolverServiceHandler
- type UnimplementedAuthorizerServiceHandler
- type UnimplementedResolverServiceHandler
Constants ¶
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" )
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 ¶
func (UnimplementedAuthorizerServiceHandler) Authorize(context.Context, *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)
type UnimplementedResolverServiceHandler ¶
type UnimplementedResolverServiceHandler struct{}
UnimplementedResolverServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedResolverServiceHandler) GetSecrets ¶
func (UnimplementedResolverServiceHandler) GetSecrets(context.Context, *v1.GetSecretsRequest) (*v1.GetSecretsResponse, error)