attributesconnect

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: BSD-3-Clause-Clear Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// AttributesServiceListAttributesProcedure is the fully-qualified name of the AttributesService's
	// ListAttributes RPC.
	AttributesServiceListAttributesProcedure = "/policy.attributes.AttributesService/ListAttributes"
	// AttributesServiceListAttributeValuesProcedure is the fully-qualified name of the
	// AttributesService's ListAttributeValues RPC.
	AttributesServiceListAttributeValuesProcedure = "/policy.attributes.AttributesService/ListAttributeValues"
	// AttributesServiceGetAttributeProcedure is the fully-qualified name of the AttributesService's
	// GetAttribute RPC.
	AttributesServiceGetAttributeProcedure = "/policy.attributes.AttributesService/GetAttribute"
	// AttributesServiceGetAttributeValuesByFqnsProcedure is the fully-qualified name of the
	// AttributesService's GetAttributeValuesByFqns RPC.
	AttributesServiceGetAttributeValuesByFqnsProcedure = "/policy.attributes.AttributesService/GetAttributeValuesByFqns"
	// AttributesServiceCreateAttributeProcedure is the fully-qualified name of the AttributesService's
	// CreateAttribute RPC.
	AttributesServiceCreateAttributeProcedure = "/policy.attributes.AttributesService/CreateAttribute"
	// AttributesServiceUpdateAttributeProcedure is the fully-qualified name of the AttributesService's
	// UpdateAttribute RPC.
	AttributesServiceUpdateAttributeProcedure = "/policy.attributes.AttributesService/UpdateAttribute"
	// AttributesServiceDeactivateAttributeProcedure is the fully-qualified name of the
	// AttributesService's DeactivateAttribute RPC.
	AttributesServiceDeactivateAttributeProcedure = "/policy.attributes.AttributesService/DeactivateAttribute"
	// AttributesServiceGetAttributeValueProcedure is the fully-qualified name of the
	// AttributesService's GetAttributeValue RPC.
	AttributesServiceGetAttributeValueProcedure = "/policy.attributes.AttributesService/GetAttributeValue"
	// AttributesServiceCreateAttributeValueProcedure is the fully-qualified name of the
	// AttributesService's CreateAttributeValue RPC.
	AttributesServiceCreateAttributeValueProcedure = "/policy.attributes.AttributesService/CreateAttributeValue"
	// AttributesServiceUpdateAttributeValueProcedure is the fully-qualified name of the
	// AttributesService's UpdateAttributeValue RPC.
	AttributesServiceUpdateAttributeValueProcedure = "/policy.attributes.AttributesService/UpdateAttributeValue"
	// AttributesServiceDeactivateAttributeValueProcedure is the fully-qualified name of the
	// AttributesService's DeactivateAttributeValue RPC.
	AttributesServiceDeactivateAttributeValueProcedure = "/policy.attributes.AttributesService/DeactivateAttributeValue"
	// AttributesServiceAssignKeyAccessServerToAttributeProcedure is the fully-qualified name of the
	// AttributesService's AssignKeyAccessServerToAttribute RPC.
	AttributesServiceAssignKeyAccessServerToAttributeProcedure = "/policy.attributes.AttributesService/AssignKeyAccessServerToAttribute"
	// AttributesServiceRemoveKeyAccessServerFromAttributeProcedure is the fully-qualified name of the
	// AttributesService's RemoveKeyAccessServerFromAttribute RPC.
	AttributesServiceRemoveKeyAccessServerFromAttributeProcedure = "/policy.attributes.AttributesService/RemoveKeyAccessServerFromAttribute"
	// AttributesServiceAssignKeyAccessServerToValueProcedure is the fully-qualified name of the
	// AttributesService's AssignKeyAccessServerToValue RPC.
	AttributesServiceAssignKeyAccessServerToValueProcedure = "/policy.attributes.AttributesService/AssignKeyAccessServerToValue"
	// AttributesServiceRemoveKeyAccessServerFromValueProcedure is the fully-qualified name of the
	// AttributesService's RemoveKeyAccessServerFromValue RPC.
	AttributesServiceRemoveKeyAccessServerFromValueProcedure = "/policy.attributes.AttributesService/RemoveKeyAccessServerFromValue"
)

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 (
	// AttributesServiceName is the fully-qualified name of the AttributesService service.
	AttributesServiceName = "policy.attributes.AttributesService"
)

Variables

This section is empty.

Functions

func NewAttributesServiceHandler

func NewAttributesServiceHandler(svc AttributesServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAttributesServiceHandler 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 AttributesServiceClient

type AttributesServiceClient interface {
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	ListAttributes(context.Context, *connect.Request[attributes.ListAttributesRequest]) (*connect.Response[attributes.ListAttributesResponse], error)
	ListAttributeValues(context.Context, *connect.Request[attributes.ListAttributeValuesRequest]) (*connect.Response[attributes.ListAttributeValuesResponse], error)
	GetAttribute(context.Context, *connect.Request[attributes.GetAttributeRequest]) (*connect.Response[attributes.GetAttributeResponse], error)
	GetAttributeValuesByFqns(context.Context, *connect.Request[attributes.GetAttributeValuesByFqnsRequest]) (*connect.Response[attributes.GetAttributeValuesByFqnsResponse], error)
	CreateAttribute(context.Context, *connect.Request[attributes.CreateAttributeRequest]) (*connect.Response[attributes.CreateAttributeResponse], error)
	UpdateAttribute(context.Context, *connect.Request[attributes.UpdateAttributeRequest]) (*connect.Response[attributes.UpdateAttributeResponse], error)
	DeactivateAttribute(context.Context, *connect.Request[attributes.DeactivateAttributeRequest]) (*connect.Response[attributes.DeactivateAttributeResponse], error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	GetAttributeValue(context.Context, *connect.Request[attributes.GetAttributeValueRequest]) (*connect.Response[attributes.GetAttributeValueResponse], error)
	CreateAttributeValue(context.Context, *connect.Request[attributes.CreateAttributeValueRequest]) (*connect.Response[attributes.CreateAttributeValueResponse], error)
	UpdateAttributeValue(context.Context, *connect.Request[attributes.UpdateAttributeValueRequest]) (*connect.Response[attributes.UpdateAttributeValueResponse], error)
	DeactivateAttributeValue(context.Context, *connect.Request[attributes.DeactivateAttributeValueRequest]) (*connect.Response[attributes.DeactivateAttributeValueResponse], error)
	// --------------------------------------*
	// Attribute <> Key Access Server RPCs
	// ---------------------------------------
	AssignKeyAccessServerToAttribute(context.Context, *connect.Request[attributes.AssignKeyAccessServerToAttributeRequest]) (*connect.Response[attributes.AssignKeyAccessServerToAttributeResponse], error)
	RemoveKeyAccessServerFromAttribute(context.Context, *connect.Request[attributes.RemoveKeyAccessServerFromAttributeRequest]) (*connect.Response[attributes.RemoveKeyAccessServerFromAttributeResponse], error)
	AssignKeyAccessServerToValue(context.Context, *connect.Request[attributes.AssignKeyAccessServerToValueRequest]) (*connect.Response[attributes.AssignKeyAccessServerToValueResponse], error)
	RemoveKeyAccessServerFromValue(context.Context, *connect.Request[attributes.RemoveKeyAccessServerFromValueRequest]) (*connect.Response[attributes.RemoveKeyAccessServerFromValueResponse], error)
}

AttributesServiceClient is a client for the policy.attributes.AttributesService service.

func NewAttributesServiceClient

func NewAttributesServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AttributesServiceClient

NewAttributesServiceClient constructs a client for the policy.attributes.AttributesService 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 AttributesServiceHandler

type AttributesServiceHandler interface {
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	ListAttributes(context.Context, *connect.Request[attributes.ListAttributesRequest]) (*connect.Response[attributes.ListAttributesResponse], error)
	ListAttributeValues(context.Context, *connect.Request[attributes.ListAttributeValuesRequest]) (*connect.Response[attributes.ListAttributeValuesResponse], error)
	GetAttribute(context.Context, *connect.Request[attributes.GetAttributeRequest]) (*connect.Response[attributes.GetAttributeResponse], error)
	GetAttributeValuesByFqns(context.Context, *connect.Request[attributes.GetAttributeValuesByFqnsRequest]) (*connect.Response[attributes.GetAttributeValuesByFqnsResponse], error)
	CreateAttribute(context.Context, *connect.Request[attributes.CreateAttributeRequest]) (*connect.Response[attributes.CreateAttributeResponse], error)
	UpdateAttribute(context.Context, *connect.Request[attributes.UpdateAttributeRequest]) (*connect.Response[attributes.UpdateAttributeResponse], error)
	DeactivateAttribute(context.Context, *connect.Request[attributes.DeactivateAttributeRequest]) (*connect.Response[attributes.DeactivateAttributeResponse], error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	GetAttributeValue(context.Context, *connect.Request[attributes.GetAttributeValueRequest]) (*connect.Response[attributes.GetAttributeValueResponse], error)
	CreateAttributeValue(context.Context, *connect.Request[attributes.CreateAttributeValueRequest]) (*connect.Response[attributes.CreateAttributeValueResponse], error)
	UpdateAttributeValue(context.Context, *connect.Request[attributes.UpdateAttributeValueRequest]) (*connect.Response[attributes.UpdateAttributeValueResponse], error)
	DeactivateAttributeValue(context.Context, *connect.Request[attributes.DeactivateAttributeValueRequest]) (*connect.Response[attributes.DeactivateAttributeValueResponse], error)
	// --------------------------------------*
	// Attribute <> Key Access Server RPCs
	// ---------------------------------------
	AssignKeyAccessServerToAttribute(context.Context, *connect.Request[attributes.AssignKeyAccessServerToAttributeRequest]) (*connect.Response[attributes.AssignKeyAccessServerToAttributeResponse], error)
	RemoveKeyAccessServerFromAttribute(context.Context, *connect.Request[attributes.RemoveKeyAccessServerFromAttributeRequest]) (*connect.Response[attributes.RemoveKeyAccessServerFromAttributeResponse], error)
	AssignKeyAccessServerToValue(context.Context, *connect.Request[attributes.AssignKeyAccessServerToValueRequest]) (*connect.Response[attributes.AssignKeyAccessServerToValueResponse], error)
	RemoveKeyAccessServerFromValue(context.Context, *connect.Request[attributes.RemoveKeyAccessServerFromValueRequest]) (*connect.Response[attributes.RemoveKeyAccessServerFromValueResponse], error)
}

AttributesServiceHandler is an implementation of the policy.attributes.AttributesService service.

type UnimplementedAttributesServiceHandler

type UnimplementedAttributesServiceHandler struct{}

UnimplementedAttributesServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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