subjectmappingconnect

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: BSD-3-Clause-Clear Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
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.

View Source
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.

Jump to

Keyboard shortcuts

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