util

package
v0.0.0-...-c61b85a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// indicates if this rpc should be private. If true, then internal use only. If False,
	// then publicly available to world.
	//
	// optional bool cl_private_rpc = 80321;
	E_ClPrivateRpc = &file_proto_clarifai_auth_util_extension_proto_extTypes[1]
	// For each grpc method we define a list of required low-level auth scopes that are needed
	// for the key that is issuing the request. These are checked at authorization time for the
	// request as one of the first things in the life of a request once it reaches out API
	// servers. There are additional checks for each scope when the resource is used throughout the
	// backend in order to protect that resource. For example, Inputs_Add protects the writes to the
	// inputs DB table. Since we know every PostInputs call needs to do that, we add Inputs_Add scope
	// to the cl_depending_scopes list for the PostInputs method.
	//
	// This is only checked valid when used with KeyAuth cl_auth_type.
	//
	// This should be the absolute minimum required scopes to make API calls with the method
	// that this options is used for. If there are some scopes that are needed some of the time
	// depending on the request, then leave those out as they will be checked at the tighest
	// possible portion of the codebase to protect that resource and won't effect every API call. For
	// example, the PostAnnotations call is often used to add concepts as well. If those concepts are
	// new, then the Concepts_Add scope will be needed. But since you don't always annotate with
	// concepts, it is not a hard requirements that Concepts_Add is used.
	//
	// repeated clarifai.auth.scope.S cl_depending_scopes = 80322;
	E_ClDependingScopes = &file_proto_clarifai_auth_util_extension_proto_extTypes[2]
	// This is the authorizer type for the endpoint our of multiple backend authorizers.
	//
	// optional clarifai.auth.types.AuthType cl_auth_type = 80323;
	E_ClAuthType = &file_proto_clarifai_auth_util_extension_proto_extTypes[3]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// indicates if this field should be private. If true, then internal use only. If False,
	// then publicly avaliable to world.
	//
	// optional bool cl_private_field = 80320;
	E_ClPrivateField = &file_proto_clarifai_auth_util_extension_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// indicates if this message should be private. If true, then internal use only. If False,
	// then publicly avaliable to world.
	//
	// optional bool cl_private_message = 80324;
	E_ClPrivateMessage = &file_proto_clarifai_auth_util_extension_proto_extTypes[4]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_proto_clarifai_auth_util_extension_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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