types

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthType_name = map[int32]string{
		0: "undef",
		1: "NoAuth",
		2: "KeyAuth",
		3: "SessionTokenAuth",
		4: "AdminAuth",
		5: "PATAuth",
	}
	AuthType_value = map[string]int32{
		"undef":            0,
		"NoAuth":           1,
		"KeyAuth":          2,
		"SessionTokenAuth": 3,
		"AdminAuth":        4,
		"PATAuth":          5,
	}
)

Enum value maps for AuthType.

View Source
var File_proto_clarifai_auth_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthType

type AuthType int32

Authorization type for endpoints.

const (
	// introduce undef so that the zero (default/unset) value of the enum is not a real
	// permission.  undef is only present for this purpose and should not be used
	// to indicate any "real" value.
	AuthType_undef AuthType = 0
	// No authorization need for this endpoint.
	AuthType_NoAuth AuthType = 1
	// This authorization requires API keys (both app-spceific keys and personal access tokens).
	// The endpoints that use this AuthType may also include a list of
	// clarifai.auth.utils.cl_depending_scopes.
	AuthType_KeyAuth AuthType = 2
	// This uses a session token from your web browser. This is reserved for users/account level APIs
	// that are only needed in a browser.
	AuthType_SessionTokenAuth AuthType = 3
	// This uses a special token for admin access to the APIs.
	AuthType_AdminAuth AuthType = 4
	// This authorization requires personal access tokens. This is used for endpoints such as
	// /users/{user_id}/apps which are not specific. An app-specific API key will not work
	// when PATAuth is used.
	AuthType_PATAuth AuthType = 5
)

func (AuthType) Descriptor

func (AuthType) Descriptor() protoreflect.EnumDescriptor

func (AuthType) Enum

func (x AuthType) Enum() *AuthType

func (AuthType) EnumDescriptor deprecated

func (AuthType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthType.Descriptor instead.

func (AuthType) Number

func (x AuthType) Number() protoreflect.EnumNumber

func (AuthType) String

func (x AuthType) String() string

func (AuthType) Type

Jump to

Keyboard shortcuts

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