subjectmapping

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause-Clear Imports: 19 Imported by: 5

Documentation

Overview

Package subjectmapping is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SubjectMappingService_MatchSubjectMappings_FullMethodName      = "/policy.subjectmapping.SubjectMappingService/MatchSubjectMappings"
	SubjectMappingService_ListSubjectMappings_FullMethodName       = "/policy.subjectmapping.SubjectMappingService/ListSubjectMappings"
	SubjectMappingService_GetSubjectMapping_FullMethodName         = "/policy.subjectmapping.SubjectMappingService/GetSubjectMapping"
	SubjectMappingService_CreateSubjectMapping_FullMethodName      = "/policy.subjectmapping.SubjectMappingService/CreateSubjectMapping"
	SubjectMappingService_UpdateSubjectMapping_FullMethodName      = "/policy.subjectmapping.SubjectMappingService/UpdateSubjectMapping"
	SubjectMappingService_DeleteSubjectMapping_FullMethodName      = "/policy.subjectmapping.SubjectMappingService/DeleteSubjectMapping"
	SubjectMappingService_ListSubjectConditionSets_FullMethodName  = "/policy.subjectmapping.SubjectMappingService/ListSubjectConditionSets"
	SubjectMappingService_GetSubjectConditionSet_FullMethodName    = "/policy.subjectmapping.SubjectMappingService/GetSubjectConditionSet"
	SubjectMappingService_CreateSubjectConditionSet_FullMethodName = "/policy.subjectmapping.SubjectMappingService/CreateSubjectConditionSet"
	SubjectMappingService_UpdateSubjectConditionSet_FullMethodName = "/policy.subjectmapping.SubjectMappingService/UpdateSubjectConditionSet"
	SubjectMappingService_DeleteSubjectConditionSet_FullMethodName = "/policy.subjectmapping.SubjectMappingService/DeleteSubjectConditionSet"
)

Variables

View Source
var File_policy_subjectmapping_subject_mapping_proto protoreflect.FileDescriptor
View Source
var SubjectMappingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "policy.subjectmapping.SubjectMappingService",
	HandlerType: (*SubjectMappingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MatchSubjectMappings",
			Handler:    _SubjectMappingService_MatchSubjectMappings_Handler,
		},
		{
			MethodName: "ListSubjectMappings",
			Handler:    _SubjectMappingService_ListSubjectMappings_Handler,
		},
		{
			MethodName: "GetSubjectMapping",
			Handler:    _SubjectMappingService_GetSubjectMapping_Handler,
		},
		{
			MethodName: "CreateSubjectMapping",
			Handler:    _SubjectMappingService_CreateSubjectMapping_Handler,
		},
		{
			MethodName: "UpdateSubjectMapping",
			Handler:    _SubjectMappingService_UpdateSubjectMapping_Handler,
		},
		{
			MethodName: "DeleteSubjectMapping",
			Handler:    _SubjectMappingService_DeleteSubjectMapping_Handler,
		},
		{
			MethodName: "ListSubjectConditionSets",
			Handler:    _SubjectMappingService_ListSubjectConditionSets_Handler,
		},
		{
			MethodName: "GetSubjectConditionSet",
			Handler:    _SubjectMappingService_GetSubjectConditionSet_Handler,
		},
		{
			MethodName: "CreateSubjectConditionSet",
			Handler:    _SubjectMappingService_CreateSubjectConditionSet_Handler,
		},
		{
			MethodName: "UpdateSubjectConditionSet",
			Handler:    _SubjectMappingService_UpdateSubjectConditionSet_Handler,
		},
		{
			MethodName: "DeleteSubjectConditionSet",
			Handler:    _SubjectMappingService_DeleteSubjectConditionSet_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policy/subjectmapping/subject_mapping.proto",
}

SubjectMappingService_ServiceDesc is the grpc.ServiceDesc for SubjectMappingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSubjectMappingServiceHandler

func RegisterSubjectMappingServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSubjectMappingServiceHandler registers the http handlers for service SubjectMappingService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSubjectMappingServiceHandlerClient

func RegisterSubjectMappingServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SubjectMappingServiceClient) error

RegisterSubjectMappingServiceHandlerClient registers the http handlers for service SubjectMappingService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SubjectMappingServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SubjectMappingServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SubjectMappingServiceClient" to call the correct interceptors.

func RegisterSubjectMappingServiceHandlerFromEndpoint

func RegisterSubjectMappingServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSubjectMappingServiceHandlerFromEndpoint is same as RegisterSubjectMappingServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSubjectMappingServiceHandlerServer

func RegisterSubjectMappingServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SubjectMappingServiceServer) error

RegisterSubjectMappingServiceHandlerServer registers the http handlers for service SubjectMappingService to "mux". UnaryRPC :call SubjectMappingServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSubjectMappingServiceHandlerFromEndpoint instead.

func RegisterSubjectMappingServiceServer

func RegisterSubjectMappingServiceServer(s grpc.ServiceRegistrar, srv SubjectMappingServiceServer)

Types

type CreateSubjectConditionSetRequest

type CreateSubjectConditionSetRequest struct {
	SubjectConditionSet *SubjectConditionSetCreate `protobuf:"bytes,1,opt,name=subject_condition_set,json=subjectConditionSet,proto3" json:"subject_condition_set,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubjectConditionSetRequest) Descriptor deprecated

func (*CreateSubjectConditionSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSubjectConditionSetRequest.ProtoReflect.Descriptor instead.

func (*CreateSubjectConditionSetRequest) GetSubjectConditionSet

func (x *CreateSubjectConditionSetRequest) GetSubjectConditionSet() *SubjectConditionSetCreate

func (*CreateSubjectConditionSetRequest) ProtoMessage

func (*CreateSubjectConditionSetRequest) ProtoMessage()

func (*CreateSubjectConditionSetRequest) ProtoReflect

func (*CreateSubjectConditionSetRequest) Reset

func (*CreateSubjectConditionSetRequest) String

type CreateSubjectConditionSetResponse

type CreateSubjectConditionSetResponse struct {
	SubjectConditionSet *policy.SubjectConditionSet `protobuf:"bytes,1,opt,name=subject_condition_set,json=subjectConditionSet,proto3" json:"subject_condition_set,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubjectConditionSetResponse) Descriptor deprecated

func (*CreateSubjectConditionSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateSubjectConditionSetResponse.ProtoReflect.Descriptor instead.

func (*CreateSubjectConditionSetResponse) GetSubjectConditionSet

func (x *CreateSubjectConditionSetResponse) GetSubjectConditionSet() *policy.SubjectConditionSet

func (*CreateSubjectConditionSetResponse) ProtoMessage

func (*CreateSubjectConditionSetResponse) ProtoMessage()

func (*CreateSubjectConditionSetResponse) ProtoReflect

func (*CreateSubjectConditionSetResponse) Reset

func (*CreateSubjectConditionSetResponse) String

type CreateSubjectMappingRequest

type CreateSubjectMappingRequest struct {

	// Required
	// Attribute Value to be mapped to
	AttributeValueId string `protobuf:"bytes,1,opt,name=attribute_value_id,json=attributeValueId,proto3" json:"attribute_value_id,omitempty"`
	// The actions permitted by subjects in this mapping
	Actions []*policy.Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// Either of the following:
	// Reuse existing SubjectConditionSet (NOTE: prioritized over new_subject_condition_set)
	ExistingSubjectConditionSetId string `` /* 154-byte string literal not displayed */
	// Create new SubjectConditionSet (NOTE: ignored if existing_subject_condition_set_id is provided)
	NewSubjectConditionSet *SubjectConditionSetCreate `` /* 131-byte string literal not displayed */
	// Optional
	Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubjectMappingRequest) Descriptor deprecated

func (*CreateSubjectMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSubjectMappingRequest.ProtoReflect.Descriptor instead.

func (*CreateSubjectMappingRequest) GetActions

func (x *CreateSubjectMappingRequest) GetActions() []*policy.Action

func (*CreateSubjectMappingRequest) GetAttributeValueId

func (x *CreateSubjectMappingRequest) GetAttributeValueId() string

func (*CreateSubjectMappingRequest) GetExistingSubjectConditionSetId

func (x *CreateSubjectMappingRequest) GetExistingSubjectConditionSetId() string

func (*CreateSubjectMappingRequest) GetMetadata

func (*CreateSubjectMappingRequest) GetNewSubjectConditionSet

func (x *CreateSubjectMappingRequest) GetNewSubjectConditionSet() *SubjectConditionSetCreate

func (*CreateSubjectMappingRequest) ProtoMessage

func (*CreateSubjectMappingRequest) ProtoMessage()

func (*CreateSubjectMappingRequest) ProtoReflect

func (*CreateSubjectMappingRequest) Reset

func (x *CreateSubjectMappingRequest) Reset()

func (*CreateSubjectMappingRequest) String

func (x *CreateSubjectMappingRequest) String() string

type CreateSubjectMappingResponse

type CreateSubjectMappingResponse struct {
	SubjectMapping *policy.SubjectMapping `protobuf:"bytes,1,opt,name=subject_mapping,json=subjectMapping,proto3" json:"subject_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubjectMappingResponse) Descriptor deprecated

func (*CreateSubjectMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateSubjectMappingResponse.ProtoReflect.Descriptor instead.

func (*CreateSubjectMappingResponse) GetSubjectMapping

func (x *CreateSubjectMappingResponse) GetSubjectMapping() *policy.SubjectMapping

func (*CreateSubjectMappingResponse) ProtoMessage

func (*CreateSubjectMappingResponse) ProtoMessage()

func (*CreateSubjectMappingResponse) ProtoReflect

func (*CreateSubjectMappingResponse) Reset

func (x *CreateSubjectMappingResponse) Reset()

func (*CreateSubjectMappingResponse) String

type DeleteSubjectConditionSetRequest

type DeleteSubjectConditionSetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSubjectConditionSetRequest) Descriptor deprecated

func (*DeleteSubjectConditionSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSubjectConditionSetRequest.ProtoReflect.Descriptor instead.

func (*DeleteSubjectConditionSetRequest) GetId

func (*DeleteSubjectConditionSetRequest) ProtoMessage

func (*DeleteSubjectConditionSetRequest) ProtoMessage()

func (*DeleteSubjectConditionSetRequest) ProtoReflect

func (*DeleteSubjectConditionSetRequest) Reset

func (*DeleteSubjectConditionSetRequest) String

type DeleteSubjectConditionSetResponse

type DeleteSubjectConditionSetResponse struct {

	// Only ID of deleted Subject Condition Set provided
	SubjectConditionSet *policy.SubjectConditionSet `protobuf:"bytes,1,opt,name=subject_condition_set,json=subjectConditionSet,proto3" json:"subject_condition_set,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSubjectConditionSetResponse) Descriptor deprecated

func (*DeleteSubjectConditionSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSubjectConditionSetResponse.ProtoReflect.Descriptor instead.

func (*DeleteSubjectConditionSetResponse) GetSubjectConditionSet

func (x *DeleteSubjectConditionSetResponse) GetSubjectConditionSet() *policy.SubjectConditionSet

func (*DeleteSubjectConditionSetResponse) ProtoMessage

func (*DeleteSubjectConditionSetResponse) ProtoMessage()

func (*DeleteSubjectConditionSetResponse) ProtoReflect

func (*DeleteSubjectConditionSetResponse) Reset

func (*DeleteSubjectConditionSetResponse) String

type DeleteSubjectMappingRequest

type DeleteSubjectMappingRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSubjectMappingRequest) Descriptor deprecated

func (*DeleteSubjectMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSubjectMappingRequest.ProtoReflect.Descriptor instead.

func (*DeleteSubjectMappingRequest) GetId

func (*DeleteSubjectMappingRequest) ProtoMessage

func (*DeleteSubjectMappingRequest) ProtoMessage()

func (*DeleteSubjectMappingRequest) ProtoReflect

func (*DeleteSubjectMappingRequest) Reset

func (x *DeleteSubjectMappingRequest) Reset()

func (*DeleteSubjectMappingRequest) String

func (x *DeleteSubjectMappingRequest) String() string

type DeleteSubjectMappingResponse

type DeleteSubjectMappingResponse struct {

	// Only ID of the updated Subject Mapping provided
	SubjectMapping *policy.SubjectMapping `protobuf:"bytes,1,opt,name=subject_mapping,json=subjectMapping,proto3" json:"subject_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSubjectMappingResponse) Descriptor deprecated

func (*DeleteSubjectMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSubjectMappingResponse.ProtoReflect.Descriptor instead.

func (*DeleteSubjectMappingResponse) GetSubjectMapping

func (x *DeleteSubjectMappingResponse) GetSubjectMapping() *policy.SubjectMapping

func (*DeleteSubjectMappingResponse) ProtoMessage

func (*DeleteSubjectMappingResponse) ProtoMessage()

func (*DeleteSubjectMappingResponse) ProtoReflect

func (*DeleteSubjectMappingResponse) Reset

func (x *DeleteSubjectMappingResponse) Reset()

func (*DeleteSubjectMappingResponse) String

type GetSubjectConditionSetRequest

type GetSubjectConditionSetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubjectConditionSetRequest) Descriptor deprecated

func (*GetSubjectConditionSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSubjectConditionSetRequest.ProtoReflect.Descriptor instead.

func (*GetSubjectConditionSetRequest) GetId

func (*GetSubjectConditionSetRequest) ProtoMessage

func (*GetSubjectConditionSetRequest) ProtoMessage()

func (*GetSubjectConditionSetRequest) ProtoReflect

func (*GetSubjectConditionSetRequest) Reset

func (x *GetSubjectConditionSetRequest) Reset()

func (*GetSubjectConditionSetRequest) String

type GetSubjectConditionSetResponse

type GetSubjectConditionSetResponse struct {
	SubjectConditionSet *policy.SubjectConditionSet `protobuf:"bytes,1,opt,name=subject_condition_set,json=subjectConditionSet,proto3" json:"subject_condition_set,omitempty"`
	// contextualized Subject Mappings associated with this SubjectConditionSet
	AssociatedSubjectMappings []*policy.SubjectMapping `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSubjectConditionSetResponse) Descriptor deprecated

func (*GetSubjectConditionSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSubjectConditionSetResponse.ProtoReflect.Descriptor instead.

func (*GetSubjectConditionSetResponse) GetAssociatedSubjectMappings

func (x *GetSubjectConditionSetResponse) GetAssociatedSubjectMappings() []*policy.SubjectMapping

func (*GetSubjectConditionSetResponse) GetSubjectConditionSet

func (x *GetSubjectConditionSetResponse) GetSubjectConditionSet() *policy.SubjectConditionSet

func (*GetSubjectConditionSetResponse) ProtoMessage

func (*GetSubjectConditionSetResponse) ProtoMessage()

func (*GetSubjectConditionSetResponse) ProtoReflect

func (*GetSubjectConditionSetResponse) Reset

func (x *GetSubjectConditionSetResponse) Reset()

func (*GetSubjectConditionSetResponse) String

type GetSubjectMappingRequest

type GetSubjectMappingRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubjectMappingRequest) Descriptor deprecated

func (*GetSubjectMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSubjectMappingRequest.ProtoReflect.Descriptor instead.

func (*GetSubjectMappingRequest) GetId

func (x *GetSubjectMappingRequest) GetId() string

func (*GetSubjectMappingRequest) ProtoMessage

func (*GetSubjectMappingRequest) ProtoMessage()

func (*GetSubjectMappingRequest) ProtoReflect

func (x *GetSubjectMappingRequest) ProtoReflect() protoreflect.Message

func (*GetSubjectMappingRequest) Reset

func (x *GetSubjectMappingRequest) Reset()

func (*GetSubjectMappingRequest) String

func (x *GetSubjectMappingRequest) String() string

type GetSubjectMappingResponse

type GetSubjectMappingResponse struct {
	SubjectMapping *policy.SubjectMapping `protobuf:"bytes,1,opt,name=subject_mapping,json=subjectMapping,proto3" json:"subject_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubjectMappingResponse) Descriptor deprecated

func (*GetSubjectMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSubjectMappingResponse.ProtoReflect.Descriptor instead.

func (*GetSubjectMappingResponse) GetSubjectMapping

func (x *GetSubjectMappingResponse) GetSubjectMapping() *policy.SubjectMapping

func (*GetSubjectMappingResponse) ProtoMessage

func (*GetSubjectMappingResponse) ProtoMessage()

func (*GetSubjectMappingResponse) ProtoReflect

func (*GetSubjectMappingResponse) Reset

func (x *GetSubjectMappingResponse) Reset()

func (*GetSubjectMappingResponse) String

func (x *GetSubjectMappingResponse) String() string

type ListSubjectConditionSetsRequest

type ListSubjectConditionSetsRequest struct {
	// contains filtered or unexported fields
}

func (*ListSubjectConditionSetsRequest) Descriptor deprecated

func (*ListSubjectConditionSetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSubjectConditionSetsRequest.ProtoReflect.Descriptor instead.

func (*ListSubjectConditionSetsRequest) ProtoMessage

func (*ListSubjectConditionSetsRequest) ProtoMessage()

func (*ListSubjectConditionSetsRequest) ProtoReflect

func (*ListSubjectConditionSetsRequest) Reset

func (*ListSubjectConditionSetsRequest) String

type ListSubjectConditionSetsResponse

type ListSubjectConditionSetsResponse struct {
	SubjectConditionSets []*policy.SubjectConditionSet `protobuf:"bytes,1,rep,name=subject_condition_sets,json=subjectConditionSets,proto3" json:"subject_condition_sets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubjectConditionSetsResponse) Descriptor deprecated

func (*ListSubjectConditionSetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSubjectConditionSetsResponse.ProtoReflect.Descriptor instead.

func (*ListSubjectConditionSetsResponse) GetSubjectConditionSets

func (x *ListSubjectConditionSetsResponse) GetSubjectConditionSets() []*policy.SubjectConditionSet

func (*ListSubjectConditionSetsResponse) ProtoMessage

func (*ListSubjectConditionSetsResponse) ProtoMessage()

func (*ListSubjectConditionSetsResponse) ProtoReflect

func (*ListSubjectConditionSetsResponse) Reset

func (*ListSubjectConditionSetsResponse) String

type ListSubjectMappingsRequest

type ListSubjectMappingsRequest struct {
	// contains filtered or unexported fields
}

func (*ListSubjectMappingsRequest) Descriptor deprecated

func (*ListSubjectMappingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSubjectMappingsRequest.ProtoReflect.Descriptor instead.

func (*ListSubjectMappingsRequest) ProtoMessage

func (*ListSubjectMappingsRequest) ProtoMessage()

func (*ListSubjectMappingsRequest) ProtoReflect

func (*ListSubjectMappingsRequest) Reset

func (x *ListSubjectMappingsRequest) Reset()

func (*ListSubjectMappingsRequest) String

func (x *ListSubjectMappingsRequest) String() string

type ListSubjectMappingsResponse

type ListSubjectMappingsResponse struct {
	SubjectMappings []*policy.SubjectMapping `protobuf:"bytes,1,rep,name=subject_mappings,json=subjectMappings,proto3" json:"subject_mappings,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubjectMappingsResponse) Descriptor deprecated

func (*ListSubjectMappingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSubjectMappingsResponse.ProtoReflect.Descriptor instead.

func (*ListSubjectMappingsResponse) GetSubjectMappings

func (x *ListSubjectMappingsResponse) GetSubjectMappings() []*policy.SubjectMapping

func (*ListSubjectMappingsResponse) ProtoMessage

func (*ListSubjectMappingsResponse) ProtoMessage()

func (*ListSubjectMappingsResponse) ProtoReflect

func (*ListSubjectMappingsResponse) Reset

func (x *ListSubjectMappingsResponse) Reset()

func (*ListSubjectMappingsResponse) String

func (x *ListSubjectMappingsResponse) String() string

type MatchSubjectMappingsRequest

type MatchSubjectMappingsRequest struct {
	SubjectProperties []*policy.SubjectProperty `protobuf:"bytes,1,rep,name=subject_properties,json=subjectProperties,proto3" json:"subject_properties,omitempty"`
	// contains filtered or unexported fields
}

MatchSubjectMappingsRequest liberally returns a list of SubjectMappings based on the provided SubjectProperties. The SubjectMappings are returned if there is any single condition found among the structures that matches for one of the provided properties: 1. The external selector value, external value, and an IN operator 2. The external selector value, _no_ external value, and a NOT_IN operator

Without this filtering, if a selector value was something like '.emailAddress' or '.username', every Subject is probably going to relate to that mapping in some way or another, potentially matching every single attribute in the DB if a policy admin has relied heavily on that field. There is no logic applied beyond a single condition within the query to avoid business logic interpreting the supplied conditions beyond the bare minimum initial filter.

NOTE: if you have any issues, debug logs are available within the service to help identify why a mapping was or was not returned.

func (*MatchSubjectMappingsRequest) Descriptor deprecated

func (*MatchSubjectMappingsRequest) Descriptor() ([]byte, []int)

Deprecated: Use MatchSubjectMappingsRequest.ProtoReflect.Descriptor instead.

func (*MatchSubjectMappingsRequest) GetSubjectProperties

func (x *MatchSubjectMappingsRequest) GetSubjectProperties() []*policy.SubjectProperty

func (*MatchSubjectMappingsRequest) ProtoMessage

func (*MatchSubjectMappingsRequest) ProtoMessage()

func (*MatchSubjectMappingsRequest) ProtoReflect

func (*MatchSubjectMappingsRequest) Reset

func (x *MatchSubjectMappingsRequest) Reset()

func (*MatchSubjectMappingsRequest) String

func (x *MatchSubjectMappingsRequest) String() string

type MatchSubjectMappingsResponse

type MatchSubjectMappingsResponse struct {
	SubjectMappings []*policy.SubjectMapping `protobuf:"bytes,1,rep,name=subject_mappings,json=subjectMappings,proto3" json:"subject_mappings,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchSubjectMappingsResponse) Descriptor deprecated

func (*MatchSubjectMappingsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MatchSubjectMappingsResponse.ProtoReflect.Descriptor instead.

func (*MatchSubjectMappingsResponse) GetSubjectMappings

func (x *MatchSubjectMappingsResponse) GetSubjectMappings() []*policy.SubjectMapping

func (*MatchSubjectMappingsResponse) ProtoMessage

func (*MatchSubjectMappingsResponse) ProtoMessage()

func (*MatchSubjectMappingsResponse) ProtoReflect

func (*MatchSubjectMappingsResponse) Reset

func (x *MatchSubjectMappingsResponse) Reset()

func (*MatchSubjectMappingsResponse) String

type SubjectConditionSetCreate

type SubjectConditionSetCreate struct {

	// Required
	SubjectSets []*policy.SubjectSet `protobuf:"bytes,1,rep,name=subject_sets,json=subjectSets,proto3" json:"subject_sets,omitempty"`
	// Optional
	// Common metadata
	Metadata *common.MetadataMutable `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*SubjectConditionSetCreate) Descriptor deprecated

func (*SubjectConditionSetCreate) Descriptor() ([]byte, []int)

Deprecated: Use SubjectConditionSetCreate.ProtoReflect.Descriptor instead.

func (*SubjectConditionSetCreate) GetMetadata

func (*SubjectConditionSetCreate) GetSubjectSets

func (x *SubjectConditionSetCreate) GetSubjectSets() []*policy.SubjectSet

func (*SubjectConditionSetCreate) ProtoMessage

func (*SubjectConditionSetCreate) ProtoMessage()

func (*SubjectConditionSetCreate) ProtoReflect

func (*SubjectConditionSetCreate) Reset

func (x *SubjectConditionSetCreate) Reset()

func (*SubjectConditionSetCreate) String

func (x *SubjectConditionSetCreate) String() string

type SubjectMappingServiceClient

type SubjectMappingServiceClient interface {
	// Find matching Subject Mappings for a given Subject
	MatchSubjectMappings(ctx context.Context, in *MatchSubjectMappingsRequest, opts ...grpc.CallOption) (*MatchSubjectMappingsResponse, error)
	ListSubjectMappings(ctx context.Context, in *ListSubjectMappingsRequest, opts ...grpc.CallOption) (*ListSubjectMappingsResponse, error)
	GetSubjectMapping(ctx context.Context, in *GetSubjectMappingRequest, opts ...grpc.CallOption) (*GetSubjectMappingResponse, error)
	CreateSubjectMapping(ctx context.Context, in *CreateSubjectMappingRequest, opts ...grpc.CallOption) (*CreateSubjectMappingResponse, error)
	UpdateSubjectMapping(ctx context.Context, in *UpdateSubjectMappingRequest, opts ...grpc.CallOption) (*UpdateSubjectMappingResponse, error)
	DeleteSubjectMapping(ctx context.Context, in *DeleteSubjectMappingRequest, opts ...grpc.CallOption) (*DeleteSubjectMappingResponse, error)
	ListSubjectConditionSets(ctx context.Context, in *ListSubjectConditionSetsRequest, opts ...grpc.CallOption) (*ListSubjectConditionSetsResponse, error)
	GetSubjectConditionSet(ctx context.Context, in *GetSubjectConditionSetRequest, opts ...grpc.CallOption) (*GetSubjectConditionSetResponse, error)
	CreateSubjectConditionSet(ctx context.Context, in *CreateSubjectConditionSetRequest, opts ...grpc.CallOption) (*CreateSubjectConditionSetResponse, error)
	UpdateSubjectConditionSet(ctx context.Context, in *UpdateSubjectConditionSetRequest, opts ...grpc.CallOption) (*UpdateSubjectConditionSetResponse, error)
	DeleteSubjectConditionSet(ctx context.Context, in *DeleteSubjectConditionSetRequest, opts ...grpc.CallOption) (*DeleteSubjectConditionSetResponse, error)
}

SubjectMappingServiceClient is the client API for SubjectMappingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SubjectMappingServiceServer

SubjectMappingServiceServer is the server API for SubjectMappingService service. All implementations must embed UnimplementedSubjectMappingServiceServer for forward compatibility

type UnimplementedSubjectMappingServiceServer

type UnimplementedSubjectMappingServiceServer struct {
}

UnimplementedSubjectMappingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSubjectMappingServiceServer) CreateSubjectMapping

func (UnimplementedSubjectMappingServiceServer) DeleteSubjectMapping

func (UnimplementedSubjectMappingServiceServer) GetSubjectMapping

func (UnimplementedSubjectMappingServiceServer) ListSubjectMappings

func (UnimplementedSubjectMappingServiceServer) MatchSubjectMappings

func (UnimplementedSubjectMappingServiceServer) UpdateSubjectMapping

type UnsafeSubjectMappingServiceServer

type UnsafeSubjectMappingServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSubjectMappingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubjectMappingServiceServer will result in compilation errors.

type UpdateSubjectConditionSetRequest

type UpdateSubjectConditionSetRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	// If provided, replaces entire existing structure of Subject Sets, Condition Groups, & Conditions
	SubjectSets []*policy.SubjectSet `protobuf:"bytes,2,rep,name=subject_sets,json=subjectSets,proto3" json:"subject_sets,omitempty"`
	// Common metadata
	Metadata               *common.MetadataMutable   `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateSubjectConditionSetRequest) Descriptor deprecated

func (*UpdateSubjectConditionSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSubjectConditionSetRequest.ProtoReflect.Descriptor instead.

func (*UpdateSubjectConditionSetRequest) GetId

func (*UpdateSubjectConditionSetRequest) GetMetadata

func (*UpdateSubjectConditionSetRequest) GetMetadataUpdateBehavior

func (x *UpdateSubjectConditionSetRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum

func (*UpdateSubjectConditionSetRequest) GetSubjectSets

func (x *UpdateSubjectConditionSetRequest) GetSubjectSets() []*policy.SubjectSet

func (*UpdateSubjectConditionSetRequest) ProtoMessage

func (*UpdateSubjectConditionSetRequest) ProtoMessage()

func (*UpdateSubjectConditionSetRequest) ProtoReflect

func (*UpdateSubjectConditionSetRequest) Reset

func (*UpdateSubjectConditionSetRequest) String

type UpdateSubjectConditionSetResponse

type UpdateSubjectConditionSetResponse struct {

	// Only ID of updated Subject Condition Set provided
	SubjectConditionSet *policy.SubjectConditionSet `protobuf:"bytes,1,opt,name=subject_condition_set,json=subjectConditionSet,proto3" json:"subject_condition_set,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSubjectConditionSetResponse) Descriptor deprecated

func (*UpdateSubjectConditionSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSubjectConditionSetResponse.ProtoReflect.Descriptor instead.

func (*UpdateSubjectConditionSetResponse) GetSubjectConditionSet

func (x *UpdateSubjectConditionSetResponse) GetSubjectConditionSet() *policy.SubjectConditionSet

func (*UpdateSubjectConditionSetResponse) ProtoMessage

func (*UpdateSubjectConditionSetResponse) ProtoMessage()

func (*UpdateSubjectConditionSetResponse) ProtoReflect

func (*UpdateSubjectConditionSetResponse) Reset

func (*UpdateSubjectConditionSetResponse) String

type UpdateSubjectMappingRequest

type UpdateSubjectMappingRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	// Replaces the existing SubjectConditionSet id with a new one
	SubjectConditionSetId string `` /* 128-byte string literal not displayed */
	// Replaces entire list of actions permitted by subjects
	Actions []*policy.Action `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// Common metadata
	Metadata               *common.MetadataMutable   `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"`
	MetadataUpdateBehavior common.MetadataUpdateEnum `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateSubjectMappingRequest) Descriptor deprecated

func (*UpdateSubjectMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSubjectMappingRequest.ProtoReflect.Descriptor instead.

func (*UpdateSubjectMappingRequest) GetActions

func (x *UpdateSubjectMappingRequest) GetActions() []*policy.Action

func (*UpdateSubjectMappingRequest) GetId

func (*UpdateSubjectMappingRequest) GetMetadata

func (*UpdateSubjectMappingRequest) GetMetadataUpdateBehavior

func (x *UpdateSubjectMappingRequest) GetMetadataUpdateBehavior() common.MetadataUpdateEnum

func (*UpdateSubjectMappingRequest) GetSubjectConditionSetId

func (x *UpdateSubjectMappingRequest) GetSubjectConditionSetId() string

func (*UpdateSubjectMappingRequest) ProtoMessage

func (*UpdateSubjectMappingRequest) ProtoMessage()

func (*UpdateSubjectMappingRequest) ProtoReflect

func (*UpdateSubjectMappingRequest) Reset

func (x *UpdateSubjectMappingRequest) Reset()

func (*UpdateSubjectMappingRequest) String

func (x *UpdateSubjectMappingRequest) String() string

type UpdateSubjectMappingResponse

type UpdateSubjectMappingResponse struct {

	// Only ID of the updated Subject Mapping provided
	SubjectMapping *policy.SubjectMapping `protobuf:"bytes,1,opt,name=subject_mapping,json=subjectMapping,proto3" json:"subject_mapping,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSubjectMappingResponse) Descriptor deprecated

func (*UpdateSubjectMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSubjectMappingResponse.ProtoReflect.Descriptor instead.

func (*UpdateSubjectMappingResponse) GetSubjectMapping

func (x *UpdateSubjectMappingResponse) GetSubjectMapping() *policy.SubjectMapping

func (*UpdateSubjectMappingResponse) ProtoMessage

func (*UpdateSubjectMappingResponse) ProtoMessage()

func (*UpdateSubjectMappingResponse) ProtoReflect

func (*UpdateSubjectMappingResponse) Reset

func (x *UpdateSubjectMappingResponse) Reset()

func (*UpdateSubjectMappingResponse) String

Jump to

Keyboard shortcuts

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