Documentation
¶
Index ¶
- Constants
- func NewSubjectMappingServiceHandler(svc SubjectMappingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type SubjectMappingServiceClient
- type SubjectMappingServiceHandler
- type UnimplementedSubjectMappingServiceHandler
- func (UnimplementedSubjectMappingServiceHandler) CreateSubjectConditionSet(context.Context, ...) (*connect.Response[subjectmapping.CreateSubjectConditionSetResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) CreateSubjectMapping(context.Context, *connect.Request[subjectmapping.CreateSubjectMappingRequest]) (*connect.Response[subjectmapping.CreateSubjectMappingResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) DeleteAllUnmappedSubjectConditionSets(context.Context, ...) (...)
- func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectConditionSet(context.Context, ...) (*connect.Response[subjectmapping.DeleteSubjectConditionSetResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectMapping(context.Context, *connect.Request[subjectmapping.DeleteSubjectMappingRequest]) (*connect.Response[subjectmapping.DeleteSubjectMappingResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) GetSubjectConditionSet(context.Context, ...) (*connect.Response[subjectmapping.GetSubjectConditionSetResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) GetSubjectMapping(context.Context, *connect.Request[subjectmapping.GetSubjectMappingRequest]) (*connect.Response[subjectmapping.GetSubjectMappingResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) ListSubjectConditionSets(context.Context, ...) (*connect.Response[subjectmapping.ListSubjectConditionSetsResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) ListSubjectMappings(context.Context, *connect.Request[subjectmapping.ListSubjectMappingsRequest]) (*connect.Response[subjectmapping.ListSubjectMappingsResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) MatchSubjectMappings(context.Context, *connect.Request[subjectmapping.MatchSubjectMappingsRequest]) (*connect.Response[subjectmapping.MatchSubjectMappingsResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectConditionSet(context.Context, ...) (*connect.Response[subjectmapping.UpdateSubjectConditionSetResponse], error)
- func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectMapping(context.Context, *connect.Request[subjectmapping.UpdateSubjectMappingRequest]) (*connect.Response[subjectmapping.UpdateSubjectMappingResponse], error)
Constants ¶
const ( // SubjectMappingServiceMatchSubjectMappingsProcedure is the fully-qualified name of the // SubjectMappingService's MatchSubjectMappings RPC. SubjectMappingServiceMatchSubjectMappingsProcedure = "/policy.subjectmapping.SubjectMappingService/MatchSubjectMappings" // SubjectMappingServiceListSubjectMappingsProcedure is the fully-qualified name of the // SubjectMappingService's ListSubjectMappings RPC. SubjectMappingServiceListSubjectMappingsProcedure = "/policy.subjectmapping.SubjectMappingService/ListSubjectMappings" // SubjectMappingServiceGetSubjectMappingProcedure is the fully-qualified name of the // SubjectMappingService's GetSubjectMapping RPC. SubjectMappingServiceGetSubjectMappingProcedure = "/policy.subjectmapping.SubjectMappingService/GetSubjectMapping" // SubjectMappingServiceCreateSubjectMappingProcedure is the fully-qualified name of the // SubjectMappingService's CreateSubjectMapping RPC. SubjectMappingServiceCreateSubjectMappingProcedure = "/policy.subjectmapping.SubjectMappingService/CreateSubjectMapping" // SubjectMappingServiceUpdateSubjectMappingProcedure is the fully-qualified name of the // SubjectMappingService's UpdateSubjectMapping RPC. SubjectMappingServiceUpdateSubjectMappingProcedure = "/policy.subjectmapping.SubjectMappingService/UpdateSubjectMapping" // SubjectMappingServiceDeleteSubjectMappingProcedure is the fully-qualified name of the // SubjectMappingService's DeleteSubjectMapping RPC. SubjectMappingServiceDeleteSubjectMappingProcedure = "/policy.subjectmapping.SubjectMappingService/DeleteSubjectMapping" // SubjectMappingServiceListSubjectConditionSetsProcedure is the fully-qualified name of the // SubjectMappingService's ListSubjectConditionSets RPC. SubjectMappingServiceListSubjectConditionSetsProcedure = "/policy.subjectmapping.SubjectMappingService/ListSubjectConditionSets" // SubjectMappingServiceGetSubjectConditionSetProcedure is the fully-qualified name of the // SubjectMappingService's GetSubjectConditionSet RPC. SubjectMappingServiceGetSubjectConditionSetProcedure = "/policy.subjectmapping.SubjectMappingService/GetSubjectConditionSet" // SubjectMappingServiceCreateSubjectConditionSetProcedure is the fully-qualified name of the // SubjectMappingService's CreateSubjectConditionSet RPC. SubjectMappingServiceCreateSubjectConditionSetProcedure = "/policy.subjectmapping.SubjectMappingService/CreateSubjectConditionSet" // SubjectMappingServiceUpdateSubjectConditionSetProcedure is the fully-qualified name of the // SubjectMappingService's UpdateSubjectConditionSet RPC. SubjectMappingServiceUpdateSubjectConditionSetProcedure = "/policy.subjectmapping.SubjectMappingService/UpdateSubjectConditionSet" // SubjectMappingServiceDeleteSubjectConditionSetProcedure is the fully-qualified name of the // SubjectMappingService's DeleteSubjectConditionSet RPC. SubjectMappingServiceDeleteSubjectConditionSetProcedure = "/policy.subjectmapping.SubjectMappingService/DeleteSubjectConditionSet" // SubjectMappingServiceDeleteAllUnmappedSubjectConditionSetsProcedure is the fully-qualified name // of the SubjectMappingService's DeleteAllUnmappedSubjectConditionSets RPC. SubjectMappingServiceDeleteAllUnmappedSubjectConditionSetsProcedure = "/policy.subjectmapping.SubjectMappingService/DeleteAllUnmappedSubjectConditionSets" )
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 (
// SubjectMappingServiceName is the fully-qualified name of the SubjectMappingService service.
SubjectMappingServiceName = "policy.subjectmapping.SubjectMappingService"
)
Variables ¶
This section is empty.
Functions ¶
func NewSubjectMappingServiceHandler ¶
func NewSubjectMappingServiceHandler(svc SubjectMappingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewSubjectMappingServiceHandler 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 SubjectMappingServiceClient ¶
type SubjectMappingServiceClient interface { // Find matching Subject Mappings for a given Subject MatchSubjectMappings(context.Context, *connect.Request[subjectmapping.MatchSubjectMappingsRequest]) (*connect.Response[subjectmapping.MatchSubjectMappingsResponse], error) ListSubjectMappings(context.Context, *connect.Request[subjectmapping.ListSubjectMappingsRequest]) (*connect.Response[subjectmapping.ListSubjectMappingsResponse], error) GetSubjectMapping(context.Context, *connect.Request[subjectmapping.GetSubjectMappingRequest]) (*connect.Response[subjectmapping.GetSubjectMappingResponse], error) CreateSubjectMapping(context.Context, *connect.Request[subjectmapping.CreateSubjectMappingRequest]) (*connect.Response[subjectmapping.CreateSubjectMappingResponse], error) UpdateSubjectMapping(context.Context, *connect.Request[subjectmapping.UpdateSubjectMappingRequest]) (*connect.Response[subjectmapping.UpdateSubjectMappingResponse], error) DeleteSubjectMapping(context.Context, *connect.Request[subjectmapping.DeleteSubjectMappingRequest]) (*connect.Response[subjectmapping.DeleteSubjectMappingResponse], error) ListSubjectConditionSets(context.Context, *connect.Request[subjectmapping.ListSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.ListSubjectConditionSetsResponse], error) GetSubjectConditionSet(context.Context, *connect.Request[subjectmapping.GetSubjectConditionSetRequest]) (*connect.Response[subjectmapping.GetSubjectConditionSetResponse], error) CreateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.CreateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.CreateSubjectConditionSetResponse], error) UpdateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.UpdateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.UpdateSubjectConditionSetResponse], error) DeleteSubjectConditionSet(context.Context, *connect.Request[subjectmapping.DeleteSubjectConditionSetRequest]) (*connect.Response[subjectmapping.DeleteSubjectConditionSetResponse], error) DeleteAllUnmappedSubjectConditionSets(context.Context, *connect.Request[subjectmapping.DeleteAllUnmappedSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.DeleteAllUnmappedSubjectConditionSetsResponse], error) }
SubjectMappingServiceClient is a client for the policy.subjectmapping.SubjectMappingService service.
func NewSubjectMappingServiceClient ¶
func NewSubjectMappingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SubjectMappingServiceClient
NewSubjectMappingServiceClient constructs a client for the policy.subjectmapping.SubjectMappingService 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 SubjectMappingServiceHandler ¶
type SubjectMappingServiceHandler interface { // Find matching Subject Mappings for a given Subject MatchSubjectMappings(context.Context, *connect.Request[subjectmapping.MatchSubjectMappingsRequest]) (*connect.Response[subjectmapping.MatchSubjectMappingsResponse], error) ListSubjectMappings(context.Context, *connect.Request[subjectmapping.ListSubjectMappingsRequest]) (*connect.Response[subjectmapping.ListSubjectMappingsResponse], error) GetSubjectMapping(context.Context, *connect.Request[subjectmapping.GetSubjectMappingRequest]) (*connect.Response[subjectmapping.GetSubjectMappingResponse], error) CreateSubjectMapping(context.Context, *connect.Request[subjectmapping.CreateSubjectMappingRequest]) (*connect.Response[subjectmapping.CreateSubjectMappingResponse], error) UpdateSubjectMapping(context.Context, *connect.Request[subjectmapping.UpdateSubjectMappingRequest]) (*connect.Response[subjectmapping.UpdateSubjectMappingResponse], error) DeleteSubjectMapping(context.Context, *connect.Request[subjectmapping.DeleteSubjectMappingRequest]) (*connect.Response[subjectmapping.DeleteSubjectMappingResponse], error) ListSubjectConditionSets(context.Context, *connect.Request[subjectmapping.ListSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.ListSubjectConditionSetsResponse], error) GetSubjectConditionSet(context.Context, *connect.Request[subjectmapping.GetSubjectConditionSetRequest]) (*connect.Response[subjectmapping.GetSubjectConditionSetResponse], error) CreateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.CreateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.CreateSubjectConditionSetResponse], error) UpdateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.UpdateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.UpdateSubjectConditionSetResponse], error) DeleteSubjectConditionSet(context.Context, *connect.Request[subjectmapping.DeleteSubjectConditionSetRequest]) (*connect.Response[subjectmapping.DeleteSubjectConditionSetResponse], error) DeleteAllUnmappedSubjectConditionSets(context.Context, *connect.Request[subjectmapping.DeleteAllUnmappedSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.DeleteAllUnmappedSubjectConditionSetsResponse], error) }
SubjectMappingServiceHandler is an implementation of the policy.subjectmapping.SubjectMappingService service.
type UnimplementedSubjectMappingServiceHandler ¶
type UnimplementedSubjectMappingServiceHandler struct{}
UnimplementedSubjectMappingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSubjectMappingServiceHandler) CreateSubjectConditionSet ¶
func (UnimplementedSubjectMappingServiceHandler) CreateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.CreateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.CreateSubjectConditionSetResponse], error)
func (UnimplementedSubjectMappingServiceHandler) CreateSubjectMapping ¶
func (UnimplementedSubjectMappingServiceHandler) CreateSubjectMapping(context.Context, *connect.Request[subjectmapping.CreateSubjectMappingRequest]) (*connect.Response[subjectmapping.CreateSubjectMappingResponse], error)
func (UnimplementedSubjectMappingServiceHandler) DeleteAllUnmappedSubjectConditionSets ¶
func (UnimplementedSubjectMappingServiceHandler) DeleteAllUnmappedSubjectConditionSets(context.Context, *connect.Request[subjectmapping.DeleteAllUnmappedSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.DeleteAllUnmappedSubjectConditionSetsResponse], error)
func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectConditionSet ¶
func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectConditionSet(context.Context, *connect.Request[subjectmapping.DeleteSubjectConditionSetRequest]) (*connect.Response[subjectmapping.DeleteSubjectConditionSetResponse], error)
func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectMapping ¶
func (UnimplementedSubjectMappingServiceHandler) DeleteSubjectMapping(context.Context, *connect.Request[subjectmapping.DeleteSubjectMappingRequest]) (*connect.Response[subjectmapping.DeleteSubjectMappingResponse], error)
func (UnimplementedSubjectMappingServiceHandler) GetSubjectConditionSet ¶
func (UnimplementedSubjectMappingServiceHandler) GetSubjectConditionSet(context.Context, *connect.Request[subjectmapping.GetSubjectConditionSetRequest]) (*connect.Response[subjectmapping.GetSubjectConditionSetResponse], error)
func (UnimplementedSubjectMappingServiceHandler) GetSubjectMapping ¶
func (UnimplementedSubjectMappingServiceHandler) GetSubjectMapping(context.Context, *connect.Request[subjectmapping.GetSubjectMappingRequest]) (*connect.Response[subjectmapping.GetSubjectMappingResponse], error)
func (UnimplementedSubjectMappingServiceHandler) ListSubjectConditionSets ¶
func (UnimplementedSubjectMappingServiceHandler) ListSubjectConditionSets(context.Context, *connect.Request[subjectmapping.ListSubjectConditionSetsRequest]) (*connect.Response[subjectmapping.ListSubjectConditionSetsResponse], error)
func (UnimplementedSubjectMappingServiceHandler) ListSubjectMappings ¶
func (UnimplementedSubjectMappingServiceHandler) ListSubjectMappings(context.Context, *connect.Request[subjectmapping.ListSubjectMappingsRequest]) (*connect.Response[subjectmapping.ListSubjectMappingsResponse], error)
func (UnimplementedSubjectMappingServiceHandler) MatchSubjectMappings ¶
func (UnimplementedSubjectMappingServiceHandler) MatchSubjectMappings(context.Context, *connect.Request[subjectmapping.MatchSubjectMappingsRequest]) (*connect.Response[subjectmapping.MatchSubjectMappingsResponse], error)
func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectConditionSet ¶
func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectConditionSet(context.Context, *connect.Request[subjectmapping.UpdateSubjectConditionSetRequest]) (*connect.Response[subjectmapping.UpdateSubjectConditionSetResponse], error)
func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectMapping ¶
func (UnimplementedSubjectMappingServiceHandler) UpdateSubjectMapping(context.Context, *connect.Request[subjectmapping.UpdateSubjectMappingRequest]) (*connect.Response[subjectmapping.UpdateSubjectMappingResponse], error)