Documentation ¶
Index ¶
- Constants
- func NewResourceMappingServiceHandler(svc ResourceMappingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ResourceMappingServiceClient
- type ResourceMappingServiceHandler
- type UnimplementedResourceMappingServiceHandler
- func (UnimplementedResourceMappingServiceHandler) CreateResourceMapping(context.Context, ...) (*connect.Response[resourcemapping.CreateResourceMappingResponse], error)
- func (UnimplementedResourceMappingServiceHandler) CreateResourceMappingGroup(context.Context, ...) (*connect.Response[resourcemapping.CreateResourceMappingGroupResponse], error)
- func (UnimplementedResourceMappingServiceHandler) DeleteResourceMapping(context.Context, ...) (*connect.Response[resourcemapping.DeleteResourceMappingResponse], error)
- func (UnimplementedResourceMappingServiceHandler) DeleteResourceMappingGroup(context.Context, ...) (*connect.Response[resourcemapping.DeleteResourceMappingGroupResponse], error)
- func (UnimplementedResourceMappingServiceHandler) GetResourceMapping(context.Context, *connect.Request[resourcemapping.GetResourceMappingRequest]) (*connect.Response[resourcemapping.GetResourceMappingResponse], error)
- func (UnimplementedResourceMappingServiceHandler) GetResourceMappingGroup(context.Context, ...) (*connect.Response[resourcemapping.GetResourceMappingGroupResponse], error)
- func (UnimplementedResourceMappingServiceHandler) ListResourceMappingGroups(context.Context, ...) (*connect.Response[resourcemapping.ListResourceMappingGroupsResponse], error)
- func (UnimplementedResourceMappingServiceHandler) ListResourceMappings(context.Context, *connect.Request[resourcemapping.ListResourceMappingsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsResponse], error)
- func (UnimplementedResourceMappingServiceHandler) ListResourceMappingsByGroupFqns(context.Context, ...) (*connect.Response[resourcemapping.ListResourceMappingsByGroupFqnsResponse], ...)
- func (UnimplementedResourceMappingServiceHandler) UpdateResourceMapping(context.Context, ...) (*connect.Response[resourcemapping.UpdateResourceMappingResponse], error)
- func (UnimplementedResourceMappingServiceHandler) UpdateResourceMappingGroup(context.Context, ...) (*connect.Response[resourcemapping.UpdateResourceMappingGroupResponse], error)
Constants ¶
const ( // ResourceMappingServiceListResourceMappingGroupsProcedure is the fully-qualified name of the // ResourceMappingService's ListResourceMappingGroups RPC. ResourceMappingServiceListResourceMappingGroupsProcedure = "/policy.resourcemapping.ResourceMappingService/ListResourceMappingGroups" // ResourceMappingServiceGetResourceMappingGroupProcedure is the fully-qualified name of the // ResourceMappingService's GetResourceMappingGroup RPC. ResourceMappingServiceGetResourceMappingGroupProcedure = "/policy.resourcemapping.ResourceMappingService/GetResourceMappingGroup" // ResourceMappingServiceCreateResourceMappingGroupProcedure is the fully-qualified name of the // ResourceMappingService's CreateResourceMappingGroup RPC. ResourceMappingServiceCreateResourceMappingGroupProcedure = "/policy.resourcemapping.ResourceMappingService/CreateResourceMappingGroup" // ResourceMappingServiceUpdateResourceMappingGroupProcedure is the fully-qualified name of the // ResourceMappingService's UpdateResourceMappingGroup RPC. ResourceMappingServiceUpdateResourceMappingGroupProcedure = "/policy.resourcemapping.ResourceMappingService/UpdateResourceMappingGroup" // ResourceMappingServiceDeleteResourceMappingGroupProcedure is the fully-qualified name of the // ResourceMappingService's DeleteResourceMappingGroup RPC. ResourceMappingServiceDeleteResourceMappingGroupProcedure = "/policy.resourcemapping.ResourceMappingService/DeleteResourceMappingGroup" // ResourceMappingServiceListResourceMappingsProcedure is the fully-qualified name of the // ResourceMappingService's ListResourceMappings RPC. ResourceMappingServiceListResourceMappingsProcedure = "/policy.resourcemapping.ResourceMappingService/ListResourceMappings" // ResourceMappingServiceListResourceMappingsByGroupFqnsProcedure is the fully-qualified name of the // ResourceMappingService's ListResourceMappingsByGroupFqns RPC. ResourceMappingServiceListResourceMappingsByGroupFqnsProcedure = "/policy.resourcemapping.ResourceMappingService/ListResourceMappingsByGroupFqns" // ResourceMappingServiceGetResourceMappingProcedure is the fully-qualified name of the // ResourceMappingService's GetResourceMapping RPC. ResourceMappingServiceGetResourceMappingProcedure = "/policy.resourcemapping.ResourceMappingService/GetResourceMapping" // ResourceMappingServiceCreateResourceMappingProcedure is the fully-qualified name of the // ResourceMappingService's CreateResourceMapping RPC. ResourceMappingServiceCreateResourceMappingProcedure = "/policy.resourcemapping.ResourceMappingService/CreateResourceMapping" // ResourceMappingServiceUpdateResourceMappingProcedure is the fully-qualified name of the // ResourceMappingService's UpdateResourceMapping RPC. ResourceMappingServiceUpdateResourceMappingProcedure = "/policy.resourcemapping.ResourceMappingService/UpdateResourceMapping" // ResourceMappingServiceDeleteResourceMappingProcedure is the fully-qualified name of the // ResourceMappingService's DeleteResourceMapping RPC. ResourceMappingServiceDeleteResourceMappingProcedure = "/policy.resourcemapping.ResourceMappingService/DeleteResourceMapping" )
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.
const (
// ResourceMappingServiceName is the fully-qualified name of the ResourceMappingService service.
ResourceMappingServiceName = "policy.resourcemapping.ResourceMappingService"
)
Variables ¶
This section is empty.
Functions ¶
func NewResourceMappingServiceHandler ¶
func NewResourceMappingServiceHandler(svc ResourceMappingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewResourceMappingServiceHandler 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 ResourceMappingServiceClient ¶
type ResourceMappingServiceClient interface { ListResourceMappingGroups(context.Context, *connect.Request[resourcemapping.ListResourceMappingGroupsRequest]) (*connect.Response[resourcemapping.ListResourceMappingGroupsResponse], error) GetResourceMappingGroup(context.Context, *connect.Request[resourcemapping.GetResourceMappingGroupRequest]) (*connect.Response[resourcemapping.GetResourceMappingGroupResponse], error) CreateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.CreateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.CreateResourceMappingGroupResponse], error) UpdateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingGroupResponse], error) DeleteResourceMappingGroup(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingGroupRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingGroupResponse], error) ListResourceMappings(context.Context, *connect.Request[resourcemapping.ListResourceMappingsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsResponse], error) ListResourceMappingsByGroupFqns(context.Context, *connect.Request[resourcemapping.ListResourceMappingsByGroupFqnsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsByGroupFqnsResponse], error) GetResourceMapping(context.Context, *connect.Request[resourcemapping.GetResourceMappingRequest]) (*connect.Response[resourcemapping.GetResourceMappingResponse], error) CreateResourceMapping(context.Context, *connect.Request[resourcemapping.CreateResourceMappingRequest]) (*connect.Response[resourcemapping.CreateResourceMappingResponse], error) UpdateResourceMapping(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingResponse], error) DeleteResourceMapping(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingResponse], error) }
ResourceMappingServiceClient is a client for the policy.resourcemapping.ResourceMappingService service.
func NewResourceMappingServiceClient ¶
func NewResourceMappingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResourceMappingServiceClient
NewResourceMappingServiceClient constructs a client for the policy.resourcemapping.ResourceMappingService 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 ResourceMappingServiceHandler ¶
type ResourceMappingServiceHandler interface { ListResourceMappingGroups(context.Context, *connect.Request[resourcemapping.ListResourceMappingGroupsRequest]) (*connect.Response[resourcemapping.ListResourceMappingGroupsResponse], error) GetResourceMappingGroup(context.Context, *connect.Request[resourcemapping.GetResourceMappingGroupRequest]) (*connect.Response[resourcemapping.GetResourceMappingGroupResponse], error) CreateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.CreateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.CreateResourceMappingGroupResponse], error) UpdateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingGroupResponse], error) DeleteResourceMappingGroup(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingGroupRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingGroupResponse], error) ListResourceMappings(context.Context, *connect.Request[resourcemapping.ListResourceMappingsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsResponse], error) ListResourceMappingsByGroupFqns(context.Context, *connect.Request[resourcemapping.ListResourceMappingsByGroupFqnsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsByGroupFqnsResponse], error) GetResourceMapping(context.Context, *connect.Request[resourcemapping.GetResourceMappingRequest]) (*connect.Response[resourcemapping.GetResourceMappingResponse], error) CreateResourceMapping(context.Context, *connect.Request[resourcemapping.CreateResourceMappingRequest]) (*connect.Response[resourcemapping.CreateResourceMappingResponse], error) UpdateResourceMapping(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingResponse], error) DeleteResourceMapping(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingResponse], error) }
ResourceMappingServiceHandler is an implementation of the policy.resourcemapping.ResourceMappingService service.
type UnimplementedResourceMappingServiceHandler ¶
type UnimplementedResourceMappingServiceHandler struct{}
UnimplementedResourceMappingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedResourceMappingServiceHandler) CreateResourceMapping ¶
func (UnimplementedResourceMappingServiceHandler) CreateResourceMapping(context.Context, *connect.Request[resourcemapping.CreateResourceMappingRequest]) (*connect.Response[resourcemapping.CreateResourceMappingResponse], error)
func (UnimplementedResourceMappingServiceHandler) CreateResourceMappingGroup ¶
func (UnimplementedResourceMappingServiceHandler) CreateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.CreateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.CreateResourceMappingGroupResponse], error)
func (UnimplementedResourceMappingServiceHandler) DeleteResourceMapping ¶
func (UnimplementedResourceMappingServiceHandler) DeleteResourceMapping(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingResponse], error)
func (UnimplementedResourceMappingServiceHandler) DeleteResourceMappingGroup ¶
func (UnimplementedResourceMappingServiceHandler) DeleteResourceMappingGroup(context.Context, *connect.Request[resourcemapping.DeleteResourceMappingGroupRequest]) (*connect.Response[resourcemapping.DeleteResourceMappingGroupResponse], error)
func (UnimplementedResourceMappingServiceHandler) GetResourceMapping ¶
func (UnimplementedResourceMappingServiceHandler) GetResourceMapping(context.Context, *connect.Request[resourcemapping.GetResourceMappingRequest]) (*connect.Response[resourcemapping.GetResourceMappingResponse], error)
func (UnimplementedResourceMappingServiceHandler) GetResourceMappingGroup ¶
func (UnimplementedResourceMappingServiceHandler) GetResourceMappingGroup(context.Context, *connect.Request[resourcemapping.GetResourceMappingGroupRequest]) (*connect.Response[resourcemapping.GetResourceMappingGroupResponse], error)
func (UnimplementedResourceMappingServiceHandler) ListResourceMappingGroups ¶
func (UnimplementedResourceMappingServiceHandler) ListResourceMappingGroups(context.Context, *connect.Request[resourcemapping.ListResourceMappingGroupsRequest]) (*connect.Response[resourcemapping.ListResourceMappingGroupsResponse], error)
func (UnimplementedResourceMappingServiceHandler) ListResourceMappings ¶
func (UnimplementedResourceMappingServiceHandler) ListResourceMappings(context.Context, *connect.Request[resourcemapping.ListResourceMappingsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsResponse], error)
func (UnimplementedResourceMappingServiceHandler) ListResourceMappingsByGroupFqns ¶
func (UnimplementedResourceMappingServiceHandler) ListResourceMappingsByGroupFqns(context.Context, *connect.Request[resourcemapping.ListResourceMappingsByGroupFqnsRequest]) (*connect.Response[resourcemapping.ListResourceMappingsByGroupFqnsResponse], error)
func (UnimplementedResourceMappingServiceHandler) UpdateResourceMapping ¶
func (UnimplementedResourceMappingServiceHandler) UpdateResourceMapping(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingResponse], error)
func (UnimplementedResourceMappingServiceHandler) UpdateResourceMappingGroup ¶
func (UnimplementedResourceMappingServiceHandler) UpdateResourceMappingGroup(context.Context, *connect.Request[resourcemapping.UpdateResourceMappingGroupRequest]) (*connect.Response[resourcemapping.UpdateResourceMappingGroupResponse], error)