unsafe

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: BSD-3-Clause-Clear Imports: 18 Imported by: 5

Documentation

Overview

Package unsafe is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	UnsafeService_UnsafeUpdateNamespace_FullMethodName          = "/policy.unsafe.UnsafeService/UnsafeUpdateNamespace"
	UnsafeService_UnsafeReactivateNamespace_FullMethodName      = "/policy.unsafe.UnsafeService/UnsafeReactivateNamespace"
	UnsafeService_UnsafeDeleteNamespace_FullMethodName          = "/policy.unsafe.UnsafeService/UnsafeDeleteNamespace"
	UnsafeService_UnsafeUpdateAttribute_FullMethodName          = "/policy.unsafe.UnsafeService/UnsafeUpdateAttribute"
	UnsafeService_UnsafeReactivateAttribute_FullMethodName      = "/policy.unsafe.UnsafeService/UnsafeReactivateAttribute"
	UnsafeService_UnsafeDeleteAttribute_FullMethodName          = "/policy.unsafe.UnsafeService/UnsafeDeleteAttribute"
	UnsafeService_UnsafeUpdateAttributeValue_FullMethodName     = "/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue"
	UnsafeService_UnsafeReactivateAttributeValue_FullMethodName = "/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue"
	UnsafeService_UnsafeDeleteAttributeValue_FullMethodName     = "/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue"
)

Variables

View Source
var File_policy_unsafe_unsafe_proto protoreflect.FileDescriptor
View Source
var UnsafeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "policy.unsafe.UnsafeService",
	HandlerType: (*UnsafeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UnsafeUpdateNamespace",
			Handler:    _UnsafeService_UnsafeUpdateNamespace_Handler,
		},
		{
			MethodName: "UnsafeReactivateNamespace",
			Handler:    _UnsafeService_UnsafeReactivateNamespace_Handler,
		},
		{
			MethodName: "UnsafeDeleteNamespace",
			Handler:    _UnsafeService_UnsafeDeleteNamespace_Handler,
		},
		{
			MethodName: "UnsafeUpdateAttribute",
			Handler:    _UnsafeService_UnsafeUpdateAttribute_Handler,
		},
		{
			MethodName: "UnsafeReactivateAttribute",
			Handler:    _UnsafeService_UnsafeReactivateAttribute_Handler,
		},
		{
			MethodName: "UnsafeDeleteAttribute",
			Handler:    _UnsafeService_UnsafeDeleteAttribute_Handler,
		},
		{
			MethodName: "UnsafeUpdateAttributeValue",
			Handler:    _UnsafeService_UnsafeUpdateAttributeValue_Handler,
		},
		{
			MethodName: "UnsafeReactivateAttributeValue",
			Handler:    _UnsafeService_UnsafeReactivateAttributeValue_Handler,
		},
		{
			MethodName: "UnsafeDeleteAttributeValue",
			Handler:    _UnsafeService_UnsafeDeleteAttributeValue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "policy/unsafe/unsafe.proto",
}

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

Functions

func RegisterUnsafeServiceHandler

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

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

func RegisterUnsafeServiceHandlerClient

func RegisterUnsafeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UnsafeServiceClient) error

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

func RegisterUnsafeServiceHandlerFromEndpoint

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

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

func RegisterUnsafeServiceHandlerServer

func RegisterUnsafeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UnsafeServiceServer) error

RegisterUnsafeServiceHandlerServer registers the http handlers for service UnsafeService to "mux". UnaryRPC :call UnsafeServiceServer 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 RegisterUnsafeServiceHandlerFromEndpoint instead.

func RegisterUnsafeServiceServer

func RegisterUnsafeServiceServer(s grpc.ServiceRegistrar, srv UnsafeServiceServer)

Types

type UnimplementedUnsafeServiceServer

type UnimplementedUnsafeServiceServer struct {
}

UnimplementedUnsafeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUnsafeServiceServer) UnsafeDeleteAttribute added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeDeleteAttributeValue added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeDeleteNamespace added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeReactivateAttribute added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeReactivateAttributeValue added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeReactivateNamespace added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeUpdateAttribute added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeUpdateAttributeValue added in v0.2.5

func (UnimplementedUnsafeServiceServer) UnsafeUpdateNamespace added in v0.2.5

type UnsafeDeleteAttributeRequest added in v0.2.5

type UnsafeDeleteAttributeRequest struct {

	// Required
	// UUID of the Attribute
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Fully Qualified Name (FQN) of Attribute Definition (i.e. https://<namespace>/attr/<attribute name>), normalized to lower case.
	Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// contains filtered or unexported fields
}

WARNING!! Deleting an Attribute will free up the Attribute name for reuse, which can introduce an access path to existing TDFs containing the deleted Attribute name. Values under this Attribute will be cascadingly deleted. Any KAS Grants associated with this Attribute will be cascadingly deleted.

func (*UnsafeDeleteAttributeRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteAttributeRequest.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteAttributeRequest) GetFqn added in v0.2.5

func (*UnsafeDeleteAttributeRequest) GetId added in v0.2.5

func (*UnsafeDeleteAttributeRequest) ProtoMessage added in v0.2.5

func (*UnsafeDeleteAttributeRequest) ProtoMessage()

func (*UnsafeDeleteAttributeRequest) ProtoReflect added in v0.2.5

func (*UnsafeDeleteAttributeRequest) Reset added in v0.2.5

func (x *UnsafeDeleteAttributeRequest) Reset()

func (*UnsafeDeleteAttributeRequest) String added in v0.2.5

type UnsafeDeleteAttributeResponse added in v0.2.5

type UnsafeDeleteAttributeResponse struct {
	Attribute *policy.Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeDeleteAttributeResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteAttributeResponse.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteAttributeResponse) GetAttribute added in v0.2.5

func (x *UnsafeDeleteAttributeResponse) GetAttribute() *policy.Attribute

func (*UnsafeDeleteAttributeResponse) ProtoMessage added in v0.2.5

func (*UnsafeDeleteAttributeResponse) ProtoMessage()

func (*UnsafeDeleteAttributeResponse) ProtoReflect added in v0.2.5

func (*UnsafeDeleteAttributeResponse) Reset added in v0.2.5

func (x *UnsafeDeleteAttributeResponse) Reset()

func (*UnsafeDeleteAttributeResponse) String added in v0.2.5

type UnsafeDeleteAttributeValueRequest added in v0.2.5

type UnsafeDeleteAttributeValueRequest struct {

	// Required
	// UUID of the Attribute Value
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Fully Qualified Name (FQN) of Attribute Value (i.e. https://<namespace>/attr/<attribute name>/value/<value>), normalized to lower case.
	Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// contains filtered or unexported fields
}

WARNING!! Deleting an Attribute Value will free up the Attribute Value for reuse, which can introduce an access path to existing TDFs containing the deleted Attribute Value. Any KAS Grants associated with this Attribute Value will be cascadingly deleted.

func (*UnsafeDeleteAttributeValueRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteAttributeValueRequest.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteAttributeValueRequest) GetFqn added in v0.2.5

func (*UnsafeDeleteAttributeValueRequest) GetId added in v0.2.5

func (*UnsafeDeleteAttributeValueRequest) ProtoMessage added in v0.2.5

func (*UnsafeDeleteAttributeValueRequest) ProtoMessage()

func (*UnsafeDeleteAttributeValueRequest) ProtoReflect added in v0.2.5

func (*UnsafeDeleteAttributeValueRequest) Reset added in v0.2.5

func (*UnsafeDeleteAttributeValueRequest) String added in v0.2.5

type UnsafeDeleteAttributeValueResponse added in v0.2.5

type UnsafeDeleteAttributeValueResponse struct {
	Value *policy.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeDeleteAttributeValueResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteAttributeValueResponse.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteAttributeValueResponse) GetValue added in v0.2.5

func (*UnsafeDeleteAttributeValueResponse) ProtoMessage added in v0.2.5

func (*UnsafeDeleteAttributeValueResponse) ProtoMessage()

func (*UnsafeDeleteAttributeValueResponse) ProtoReflect added in v0.2.5

func (*UnsafeDeleteAttributeValueResponse) Reset added in v0.2.5

func (*UnsafeDeleteAttributeValueResponse) String added in v0.2.5

type UnsafeDeleteNamespaceRequest added in v0.2.5

type UnsafeDeleteNamespaceRequest struct {

	// Required
	// UUID of the Namespace
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Fully Qualified Name (FQN) of Namespace (i.e. https://<namespace>), normalized to lower case.
	Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// contains filtered or unexported fields
}

WARNING!! Deleting a Namespace will free up the Attribute Namespace, Definitions, and Values for reuse, which can introduce an access path to existing TDFs containing the deleted policy. Definitions and their Values under this Namespace will be cascadingly deleted.

func (*UnsafeDeleteNamespaceRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteNamespaceRequest) GetFqn added in v0.2.5

func (*UnsafeDeleteNamespaceRequest) GetId added in v0.2.5

func (*UnsafeDeleteNamespaceRequest) ProtoMessage added in v0.2.5

func (*UnsafeDeleteNamespaceRequest) ProtoMessage()

func (*UnsafeDeleteNamespaceRequest) ProtoReflect added in v0.2.5

func (*UnsafeDeleteNamespaceRequest) Reset added in v0.2.5

func (x *UnsafeDeleteNamespaceRequest) Reset()

func (*UnsafeDeleteNamespaceRequest) String added in v0.2.5

type UnsafeDeleteNamespaceResponse added in v0.2.5

type UnsafeDeleteNamespaceResponse struct {
	Namespace *policy.Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeDeleteNamespaceResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeDeleteNamespaceResponse.ProtoReflect.Descriptor instead.

func (*UnsafeDeleteNamespaceResponse) GetNamespace added in v0.2.5

func (x *UnsafeDeleteNamespaceResponse) GetNamespace() *policy.Namespace

func (*UnsafeDeleteNamespaceResponse) ProtoMessage added in v0.2.5

func (*UnsafeDeleteNamespaceResponse) ProtoMessage()

func (*UnsafeDeleteNamespaceResponse) ProtoReflect added in v0.2.5

func (*UnsafeDeleteNamespaceResponse) Reset added in v0.2.5

func (x *UnsafeDeleteNamespaceResponse) Reset()

func (*UnsafeDeleteNamespaceResponse) String added in v0.2.5

type UnsafeReactivateAttributeRequest added in v0.2.5

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

WARNING!! Reactivating an Attribute can potentially open up an access path to existing TDFs containing the Attribute name. Active state of any Values under this Attribute Definition will NOT be changed.

func (*UnsafeReactivateAttributeRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateAttributeRequest.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateAttributeRequest) GetId added in v0.2.5

func (*UnsafeReactivateAttributeRequest) ProtoMessage added in v0.2.5

func (*UnsafeReactivateAttributeRequest) ProtoMessage()

func (*UnsafeReactivateAttributeRequest) ProtoReflect added in v0.2.5

func (*UnsafeReactivateAttributeRequest) Reset added in v0.2.5

func (*UnsafeReactivateAttributeRequest) String added in v0.2.5

type UnsafeReactivateAttributeResponse added in v0.2.5

type UnsafeReactivateAttributeResponse struct {
	Attribute *policy.Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeReactivateAttributeResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateAttributeResponse.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateAttributeResponse) GetAttribute added in v0.2.5

func (*UnsafeReactivateAttributeResponse) ProtoMessage added in v0.2.5

func (*UnsafeReactivateAttributeResponse) ProtoMessage()

func (*UnsafeReactivateAttributeResponse) ProtoReflect added in v0.2.5

func (*UnsafeReactivateAttributeResponse) Reset added in v0.2.5

func (*UnsafeReactivateAttributeResponse) String added in v0.2.5

type UnsafeReactivateAttributeValueRequest added in v0.2.5

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

WARNING!! Reactivating an Attribute Value can potentially open up an access path to existing TDFs containing the Attribute Value.

func (*UnsafeReactivateAttributeValueRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateAttributeValueRequest.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateAttributeValueRequest) GetId added in v0.2.5

func (*UnsafeReactivateAttributeValueRequest) ProtoMessage added in v0.2.5

func (*UnsafeReactivateAttributeValueRequest) ProtoMessage()

func (*UnsafeReactivateAttributeValueRequest) ProtoReflect added in v0.2.5

func (*UnsafeReactivateAttributeValueRequest) Reset added in v0.2.5

func (*UnsafeReactivateAttributeValueRequest) String added in v0.2.5

type UnsafeReactivateAttributeValueResponse added in v0.2.5

type UnsafeReactivateAttributeValueResponse struct {
	Value *policy.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeReactivateAttributeValueResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateAttributeValueResponse.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateAttributeValueResponse) GetValue added in v0.2.5

func (*UnsafeReactivateAttributeValueResponse) ProtoMessage added in v0.2.5

func (*UnsafeReactivateAttributeValueResponse) ProtoReflect added in v0.2.5

func (*UnsafeReactivateAttributeValueResponse) Reset added in v0.2.5

func (*UnsafeReactivateAttributeValueResponse) String added in v0.2.5

type UnsafeReactivateNamespaceRequest added in v0.2.5

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

WARNING!! Reactivating a Namespace can potentially open up an access path to existing TDFs containing any Attributes under the Namespace. Active state of any Definitions and their Values under this Namespace will NOT be changed.

func (*UnsafeReactivateNamespaceRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateNamespaceRequest) GetId added in v0.2.5

func (*UnsafeReactivateNamespaceRequest) ProtoMessage added in v0.2.5

func (*UnsafeReactivateNamespaceRequest) ProtoMessage()

func (*UnsafeReactivateNamespaceRequest) ProtoReflect added in v0.2.5

func (*UnsafeReactivateNamespaceRequest) Reset added in v0.2.5

func (*UnsafeReactivateNamespaceRequest) String added in v0.2.5

type UnsafeReactivateNamespaceResponse added in v0.2.5

type UnsafeReactivateNamespaceResponse struct {
	Namespace *policy.Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeReactivateNamespaceResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeReactivateNamespaceResponse.ProtoReflect.Descriptor instead.

func (*UnsafeReactivateNamespaceResponse) GetNamespace added in v0.2.5

func (*UnsafeReactivateNamespaceResponse) ProtoMessage added in v0.2.5

func (*UnsafeReactivateNamespaceResponse) ProtoMessage()

func (*UnsafeReactivateNamespaceResponse) ProtoReflect added in v0.2.5

func (*UnsafeReactivateNamespaceResponse) Reset added in v0.2.5

func (*UnsafeReactivateNamespaceResponse) String added in v0.2.5

type UnsafeServiceClient

type UnsafeServiceClient interface {
	// --------------------------------------*
	// Namespace RPCs
	// ---------------------------------------
	UnsafeUpdateNamespace(ctx context.Context, in *UnsafeUpdateNamespaceRequest, opts ...grpc.CallOption) (*UnsafeUpdateNamespaceResponse, error)
	UnsafeReactivateNamespace(ctx context.Context, in *UnsafeReactivateNamespaceRequest, opts ...grpc.CallOption) (*UnsafeReactivateNamespaceResponse, error)
	UnsafeDeleteNamespace(ctx context.Context, in *UnsafeDeleteNamespaceRequest, opts ...grpc.CallOption) (*UnsafeDeleteNamespaceResponse, error)
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	UnsafeUpdateAttribute(ctx context.Context, in *UnsafeUpdateAttributeRequest, opts ...grpc.CallOption) (*UnsafeUpdateAttributeResponse, error)
	UnsafeReactivateAttribute(ctx context.Context, in *UnsafeReactivateAttributeRequest, opts ...grpc.CallOption) (*UnsafeReactivateAttributeResponse, error)
	UnsafeDeleteAttribute(ctx context.Context, in *UnsafeDeleteAttributeRequest, opts ...grpc.CallOption) (*UnsafeDeleteAttributeResponse, error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	UnsafeUpdateAttributeValue(ctx context.Context, in *UnsafeUpdateAttributeValueRequest, opts ...grpc.CallOption) (*UnsafeUpdateAttributeValueResponse, error)
	UnsafeReactivateAttributeValue(ctx context.Context, in *UnsafeReactivateAttributeValueRequest, opts ...grpc.CallOption) (*UnsafeReactivateAttributeValueResponse, error)
	UnsafeDeleteAttributeValue(ctx context.Context, in *UnsafeDeleteAttributeValueRequest, opts ...grpc.CallOption) (*UnsafeDeleteAttributeValueResponse, error)
}

UnsafeServiceClient is the client API for UnsafeService 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 UnsafeServiceServer

type UnsafeServiceServer interface {
	// --------------------------------------*
	// Namespace RPCs
	// ---------------------------------------
	UnsafeUpdateNamespace(context.Context, *UnsafeUpdateNamespaceRequest) (*UnsafeUpdateNamespaceResponse, error)
	UnsafeReactivateNamespace(context.Context, *UnsafeReactivateNamespaceRequest) (*UnsafeReactivateNamespaceResponse, error)
	UnsafeDeleteNamespace(context.Context, *UnsafeDeleteNamespaceRequest) (*UnsafeDeleteNamespaceResponse, error)
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	UnsafeUpdateAttribute(context.Context, *UnsafeUpdateAttributeRequest) (*UnsafeUpdateAttributeResponse, error)
	UnsafeReactivateAttribute(context.Context, *UnsafeReactivateAttributeRequest) (*UnsafeReactivateAttributeResponse, error)
	UnsafeDeleteAttribute(context.Context, *UnsafeDeleteAttributeRequest) (*UnsafeDeleteAttributeResponse, error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	UnsafeUpdateAttributeValue(context.Context, *UnsafeUpdateAttributeValueRequest) (*UnsafeUpdateAttributeValueResponse, error)
	UnsafeReactivateAttributeValue(context.Context, *UnsafeReactivateAttributeValueRequest) (*UnsafeReactivateAttributeValueResponse, error)
	UnsafeDeleteAttributeValue(context.Context, *UnsafeDeleteAttributeValueRequest) (*UnsafeDeleteAttributeValueResponse, error)
	// contains filtered or unexported methods
}

UnsafeServiceServer is the server API for UnsafeService service. All implementations must embed UnimplementedUnsafeServiceServer for forward compatibility

type UnsafeUnsafeServiceServer

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

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

type UnsafeUpdateAttributeRequest added in v0.2.5

type UnsafeUpdateAttributeRequest struct {

	// Required
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Optional
	// WARNING!!
	// Updating the name of an Attribute will retroactively alter access to existing TDFs of the old and new Attribute name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// WARNING!!
	// Updating the rule of an Attribute will retroactively alter access to existing TDFs of the Attribute name.
	Rule policy.AttributeRuleTypeEnum `protobuf:"varint,3,opt,name=rule,proto3,enum=policy.AttributeRuleTypeEnum" json:"rule,omitempty"`
	// WARNING!!
	// Unsafe reordering requires the full list of values in the new order they should be stored. Updating the order of values in a HIERARCHY-rule Attribute Definition
	// will retroactively alter access to existing TDFs containing those values. Replacing values on an attribute in place is not supported; values can be unsafely deleted
	// deleted, created, and unsafely re-ordered as necessary.
	ValuesOrder []string `protobuf:"bytes,4,rep,name=values_order,json=valuesOrder,proto3" json:"values_order,omitempty"`
	// contains filtered or unexported fields
}

WARNING!! Updating an Attribute can have dangerous consequences. Use with caution.

func (*UnsafeUpdateAttributeRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateAttributeRequest.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateAttributeRequest) GetId added in v0.2.5

func (*UnsafeUpdateAttributeRequest) GetName added in v0.2.5

func (x *UnsafeUpdateAttributeRequest) GetName() string

func (*UnsafeUpdateAttributeRequest) GetRule added in v0.2.5

func (*UnsafeUpdateAttributeRequest) GetValuesOrder added in v0.2.5

func (x *UnsafeUpdateAttributeRequest) GetValuesOrder() []string

func (*UnsafeUpdateAttributeRequest) ProtoMessage added in v0.2.5

func (*UnsafeUpdateAttributeRequest) ProtoMessage()

func (*UnsafeUpdateAttributeRequest) ProtoReflect added in v0.2.5

func (*UnsafeUpdateAttributeRequest) Reset added in v0.2.5

func (x *UnsafeUpdateAttributeRequest) Reset()

func (*UnsafeUpdateAttributeRequest) String added in v0.2.5

type UnsafeUpdateAttributeResponse added in v0.2.5

type UnsafeUpdateAttributeResponse struct {
	Attribute *policy.Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeUpdateAttributeResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateAttributeResponse.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateAttributeResponse) GetAttribute added in v0.2.5

func (x *UnsafeUpdateAttributeResponse) GetAttribute() *policy.Attribute

func (*UnsafeUpdateAttributeResponse) ProtoMessage added in v0.2.5

func (*UnsafeUpdateAttributeResponse) ProtoMessage()

func (*UnsafeUpdateAttributeResponse) ProtoReflect added in v0.2.5

func (*UnsafeUpdateAttributeResponse) Reset added in v0.2.5

func (x *UnsafeUpdateAttributeResponse) Reset()

func (*UnsafeUpdateAttributeResponse) String added in v0.2.5

type UnsafeUpdateAttributeValueRequest added in v0.2.5

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

WARNING!! Updating an Attribute Value will retroactively alter access to existing TDFs containing the old and new Attribute Value.

func (*UnsafeUpdateAttributeValueRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateAttributeValueRequest.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateAttributeValueRequest) GetId added in v0.2.5

func (*UnsafeUpdateAttributeValueRequest) GetValue added in v0.2.5

func (*UnsafeUpdateAttributeValueRequest) ProtoMessage added in v0.2.5

func (*UnsafeUpdateAttributeValueRequest) ProtoMessage()

func (*UnsafeUpdateAttributeValueRequest) ProtoReflect added in v0.2.5

func (*UnsafeUpdateAttributeValueRequest) Reset added in v0.2.5

func (*UnsafeUpdateAttributeValueRequest) String added in v0.2.5

type UnsafeUpdateAttributeValueResponse added in v0.2.5

type UnsafeUpdateAttributeValueResponse struct {
	Value *policy.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeUpdateAttributeValueResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateAttributeValueResponse.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateAttributeValueResponse) GetValue added in v0.2.5

func (*UnsafeUpdateAttributeValueResponse) ProtoMessage added in v0.2.5

func (*UnsafeUpdateAttributeValueResponse) ProtoMessage()

func (*UnsafeUpdateAttributeValueResponse) ProtoReflect added in v0.2.5

func (*UnsafeUpdateAttributeValueResponse) Reset added in v0.2.5

func (*UnsafeUpdateAttributeValueResponse) String added in v0.2.5

type UnsafeUpdateNamespaceRequest added in v0.2.5

type UnsafeUpdateNamespaceRequest struct {

	// Required
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

WARNING!! Updating the Namespace of an Attribute will retroactively alter access to existing TDFs of the old and new Namespace name. Existing Attribute Definitions and their Values under the Namespace will now be associated with the new Namespace name.

func (*UnsafeUpdateNamespaceRequest) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateNamespaceRequest) GetId added in v0.2.5

func (*UnsafeUpdateNamespaceRequest) GetName added in v0.2.5

func (x *UnsafeUpdateNamespaceRequest) GetName() string

func (*UnsafeUpdateNamespaceRequest) ProtoMessage added in v0.2.5

func (*UnsafeUpdateNamespaceRequest) ProtoMessage()

func (*UnsafeUpdateNamespaceRequest) ProtoReflect added in v0.2.5

func (*UnsafeUpdateNamespaceRequest) Reset added in v0.2.5

func (x *UnsafeUpdateNamespaceRequest) Reset()

func (*UnsafeUpdateNamespaceRequest) String added in v0.2.5

type UnsafeUpdateNamespaceResponse added in v0.2.5

type UnsafeUpdateNamespaceResponse struct {
	Namespace *policy.Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsafeUpdateNamespaceResponse) Descriptor deprecated added in v0.2.5

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

Deprecated: Use UnsafeUpdateNamespaceResponse.ProtoReflect.Descriptor instead.

func (*UnsafeUpdateNamespaceResponse) GetNamespace added in v0.2.5

func (x *UnsafeUpdateNamespaceResponse) GetNamespace() *policy.Namespace

func (*UnsafeUpdateNamespaceResponse) ProtoMessage added in v0.2.5

func (*UnsafeUpdateNamespaceResponse) ProtoMessage()

func (*UnsafeUpdateNamespaceResponse) ProtoReflect added in v0.2.5

func (*UnsafeUpdateNamespaceResponse) Reset added in v0.2.5

func (x *UnsafeUpdateNamespaceResponse) Reset()

func (*UnsafeUpdateNamespaceResponse) String added in v0.2.5

Jump to

Keyboard shortcuts

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