Documentation ¶
Index ¶
- Constants
- func NewLabelsServiceHandler(svc LabelsServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type LabelsServiceClient
- type LabelsServiceHandler
- type UnimplementedLabelsServiceHandler
- func (UnimplementedLabelsServiceHandler) AssignLabels(context.Context, *connect_go.Request[labels.AssignLabelsRequest]) (*connect_go.Response[labels.AssignLabelsResponse], error)
- func (UnimplementedLabelsServiceHandler) AttachLabel(context.Context, *connect_go.Request[labels.AttachLabelRequest]) (*connect_go.Response[labels.AttachLabelResponse], error)
- func (UnimplementedLabelsServiceHandler) CreateLabel(context.Context, *connect_go.Request[labels.CreateLabelRequest]) (*connect_go.Response[labels.CreateLabelResponse], error)
- func (UnimplementedLabelsServiceHandler) DeleteLabel(context.Context, *connect_go.Request[labels.DeleteLabelRequest]) (*connect_go.Response[labels.DeleteLabelResponse], error)
- func (UnimplementedLabelsServiceHandler) DetachLabel(context.Context, *connect_go.Request[labels.DetachLabelRequest]) (*connect_go.Response[labels.DetachLabelResponse], error)
- func (UnimplementedLabelsServiceHandler) GetLabel(context.Context, *connect_go.Request[labels.GetLabelRequest]) (*connect_go.Response[labels.GetLabelResponse], error)
- func (UnimplementedLabelsServiceHandler) GetLabeledEntityMap(context.Context, *connect_go.Request[labels.GetLabeledEntityMapRequest]) (*connect_go.Response[labels.GetLabeledEntityMapResponse], error)
- func (UnimplementedLabelsServiceHandler) ListLabels(context.Context, *connect_go.Request[labels.ListLabelsRequest]) (*connect_go.Response[labels.ListLabelsResponse], error)
- func (UnimplementedLabelsServiceHandler) RevokeLabels(context.Context, *connect_go.Request[labels.RevokeLabelsRequest]) (*connect_go.Response[labels.RevokeLabelsResponse], error)
- func (UnimplementedLabelsServiceHandler) UpdateLabel(context.Context, *connect_go.Request[labels.UpdateLabelRequest]) (*connect_go.Response[labels.UpdateLabelResponse], error)
Constants ¶
const ( // LabelsServiceCreateLabelProcedure is the fully-qualified name of the LabelsService's CreateLabel // RPC. LabelsServiceCreateLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/CreateLabel" // LabelsServiceGetLabelProcedure is the fully-qualified name of the LabelsService's GetLabel RPC. LabelsServiceGetLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/GetLabel" // LabelsServiceUpdateLabelProcedure is the fully-qualified name of the LabelsService's UpdateLabel // RPC. LabelsServiceUpdateLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/UpdateLabel" // LabelsServiceListLabelsProcedure is the fully-qualified name of the LabelsService's ListLabels // RPC. LabelsServiceListLabelsProcedure = "/api.v1alpha1.org.labels.LabelsService/ListLabels" // LabelsServiceDeleteLabelProcedure is the fully-qualified name of the LabelsService's DeleteLabel // RPC. LabelsServiceDeleteLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/DeleteLabel" // LabelsServiceAttachLabelProcedure is the fully-qualified name of the LabelsService's AttachLabel // RPC. LabelsServiceAttachLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/AttachLabel" // LabelsServiceDetachLabelProcedure is the fully-qualified name of the LabelsService's DetachLabel // RPC. LabelsServiceDetachLabelProcedure = "/api.v1alpha1.org.labels.LabelsService/DetachLabel" // LabelsServiceGetLabeledEntityMapProcedure is the fully-qualified name of the LabelsService's // GetLabeledEntityMap RPC. LabelsServiceGetLabeledEntityMapProcedure = "/api.v1alpha1.org.labels.LabelsService/GetLabeledEntityMap" // LabelsServiceAssignLabelsProcedure is the fully-qualified name of the LabelsService's // AssignLabels RPC. LabelsServiceAssignLabelsProcedure = "/api.v1alpha1.org.labels.LabelsService/AssignLabels" // LabelsServiceRevokeLabelsProcedure is the fully-qualified name of the LabelsService's // RevokeLabels RPC. LabelsServiceRevokeLabelsProcedure = "/api.v1alpha1.org.labels.LabelsService/RevokeLabels" )
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 (
// LabelsServiceName is the fully-qualified name of the LabelsService service.
LabelsServiceName = "api.v1alpha1.org.labels.LabelsService"
)
Variables ¶
This section is empty.
Functions ¶
func NewLabelsServiceHandler ¶
func NewLabelsServiceHandler(svc LabelsServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewLabelsServiceHandler 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 LabelsServiceClient ¶
type LabelsServiceClient interface { // CreateLabel creates a new label. CreateLabel(context.Context, *connect_go.Request[labels.CreateLabelRequest]) (*connect_go.Response[labels.CreateLabelResponse], error) // GetLabel gets a single label GetLabel(context.Context, *connect_go.Request[labels.GetLabelRequest]) (*connect_go.Response[labels.GetLabelResponse], error) // UpdateLabel updates a single label UpdateLabel(context.Context, *connect_go.Request[labels.UpdateLabelRequest]) (*connect_go.Response[labels.UpdateLabelResponse], error) // ListLabels lists all labels for a given organization ListLabels(context.Context, *connect_go.Request[labels.ListLabelsRequest]) (*connect_go.Response[labels.ListLabelsResponse], error) // DeleteLabel deletes a single label DeleteLabel(context.Context, *connect_go.Request[labels.DeleteLabelRequest]) (*connect_go.Response[labels.DeleteLabelResponse], error) // AttachLabel attaches a label to a given entity type AttachLabel(context.Context, *connect_go.Request[labels.AttachLabelRequest]) (*connect_go.Response[labels.AttachLabelResponse], error) // DetachLabel detaches a label from an entity based on an entity type DetachLabel(context.Context, *connect_go.Request[labels.DetachLabelRequest]) (*connect_go.Response[labels.DetachLabelResponse], error) // GetLabeledEntityMap gives back a map of entity Id to attached labels. The Entity type is specified on the request GetLabeledEntityMap(context.Context, *connect_go.Request[labels.GetLabeledEntityMapRequest]) (*connect_go.Response[labels.GetLabeledEntityMapResponse], error) // AssignLabels assigns labels to a specific permission group. AssignLabels(context.Context, *connect_go.Request[labels.AssignLabelsRequest]) (*connect_go.Response[labels.AssignLabelsResponse], error) // RevokeLabels revokes labels from a specific permission group. RevokeLabels(context.Context, *connect_go.Request[labels.RevokeLabelsRequest]) (*connect_go.Response[labels.RevokeLabelsResponse], error) }
LabelsServiceClient is a client for the api.v1alpha1.org.labels.LabelsService service.
func NewLabelsServiceClient ¶
func NewLabelsServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) LabelsServiceClient
NewLabelsServiceClient constructs a client for the api.v1alpha1.org.labels.LabelsService 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 LabelsServiceHandler ¶
type LabelsServiceHandler interface { // CreateLabel creates a new label. CreateLabel(context.Context, *connect_go.Request[labels.CreateLabelRequest]) (*connect_go.Response[labels.CreateLabelResponse], error) // GetLabel gets a single label GetLabel(context.Context, *connect_go.Request[labels.GetLabelRequest]) (*connect_go.Response[labels.GetLabelResponse], error) // UpdateLabel updates a single label UpdateLabel(context.Context, *connect_go.Request[labels.UpdateLabelRequest]) (*connect_go.Response[labels.UpdateLabelResponse], error) // ListLabels lists all labels for a given organization ListLabels(context.Context, *connect_go.Request[labels.ListLabelsRequest]) (*connect_go.Response[labels.ListLabelsResponse], error) // DeleteLabel deletes a single label DeleteLabel(context.Context, *connect_go.Request[labels.DeleteLabelRequest]) (*connect_go.Response[labels.DeleteLabelResponse], error) // AttachLabel attaches a label to a given entity type AttachLabel(context.Context, *connect_go.Request[labels.AttachLabelRequest]) (*connect_go.Response[labels.AttachLabelResponse], error) // DetachLabel detaches a label from an entity based on an entity type DetachLabel(context.Context, *connect_go.Request[labels.DetachLabelRequest]) (*connect_go.Response[labels.DetachLabelResponse], error) // GetLabeledEntityMap gives back a map of entity Id to attached labels. The Entity type is specified on the request GetLabeledEntityMap(context.Context, *connect_go.Request[labels.GetLabeledEntityMapRequest]) (*connect_go.Response[labels.GetLabeledEntityMapResponse], error) // AssignLabels assigns labels to a specific permission group. AssignLabels(context.Context, *connect_go.Request[labels.AssignLabelsRequest]) (*connect_go.Response[labels.AssignLabelsResponse], error) // RevokeLabels revokes labels from a specific permission group. RevokeLabels(context.Context, *connect_go.Request[labels.RevokeLabelsRequest]) (*connect_go.Response[labels.RevokeLabelsResponse], error) }
LabelsServiceHandler is an implementation of the api.v1alpha1.org.labels.LabelsService service.
type UnimplementedLabelsServiceHandler ¶
type UnimplementedLabelsServiceHandler struct{}
UnimplementedLabelsServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedLabelsServiceHandler) AssignLabels ¶ added in v1.7.79
func (UnimplementedLabelsServiceHandler) AssignLabels(context.Context, *connect_go.Request[labels.AssignLabelsRequest]) (*connect_go.Response[labels.AssignLabelsResponse], error)
func (UnimplementedLabelsServiceHandler) AttachLabel ¶
func (UnimplementedLabelsServiceHandler) AttachLabel(context.Context, *connect_go.Request[labels.AttachLabelRequest]) (*connect_go.Response[labels.AttachLabelResponse], error)
func (UnimplementedLabelsServiceHandler) CreateLabel ¶
func (UnimplementedLabelsServiceHandler) CreateLabel(context.Context, *connect_go.Request[labels.CreateLabelRequest]) (*connect_go.Response[labels.CreateLabelResponse], error)
func (UnimplementedLabelsServiceHandler) DeleteLabel ¶
func (UnimplementedLabelsServiceHandler) DeleteLabel(context.Context, *connect_go.Request[labels.DeleteLabelRequest]) (*connect_go.Response[labels.DeleteLabelResponse], error)
func (UnimplementedLabelsServiceHandler) DetachLabel ¶ added in v1.7.76
func (UnimplementedLabelsServiceHandler) DetachLabel(context.Context, *connect_go.Request[labels.DetachLabelRequest]) (*connect_go.Response[labels.DetachLabelResponse], error)
func (UnimplementedLabelsServiceHandler) GetLabel ¶
func (UnimplementedLabelsServiceHandler) GetLabel(context.Context, *connect_go.Request[labels.GetLabelRequest]) (*connect_go.Response[labels.GetLabelResponse], error)
func (UnimplementedLabelsServiceHandler) GetLabeledEntityMap ¶
func (UnimplementedLabelsServiceHandler) GetLabeledEntityMap(context.Context, *connect_go.Request[labels.GetLabeledEntityMapRequest]) (*connect_go.Response[labels.GetLabeledEntityMapResponse], error)
func (UnimplementedLabelsServiceHandler) ListLabels ¶
func (UnimplementedLabelsServiceHandler) ListLabels(context.Context, *connect_go.Request[labels.ListLabelsRequest]) (*connect_go.Response[labels.ListLabelsResponse], error)
func (UnimplementedLabelsServiceHandler) RevokeLabels ¶ added in v1.7.79
func (UnimplementedLabelsServiceHandler) RevokeLabels(context.Context, *connect_go.Request[labels.RevokeLabelsRequest]) (*connect_go.Response[labels.RevokeLabelsResponse], error)
func (UnimplementedLabelsServiceHandler) UpdateLabel ¶
func (UnimplementedLabelsServiceHandler) UpdateLabel(context.Context, *connect_go.Request[labels.UpdateLabelRequest]) (*connect_go.Response[labels.UpdateLabelResponse], error)