apiv1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RelationshipUpdate_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_CREATE",
		2: "OPERATION_TOUCH",
		3: "OPERATION_DELETE",
	}
	RelationshipUpdate_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"OPERATION_CREATE":      1,
		"OPERATION_TOUCH":       2,
		"OPERATION_DELETE":      3,
	}
)

Enum value maps for RelationshipUpdate_Operation.

View Source
var (
	AlgebraicSubjectSet_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UNION",
		2: "OPERATION_INTERSECTION",
		3: "OPERATION_EXCLUSION",
	}
	AlgebraicSubjectSet_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED":  0,
		"OPERATION_UNION":        1,
		"OPERATION_INTERSECTION": 2,
		"OPERATION_EXCLUSION":    3,
	}
)

Enum value maps for AlgebraicSubjectSet_Operation.

View Source
var (
	CheckDebugTrace_PermissionType_name = map[int32]string{
		0: "PERMISSION_TYPE_UNSPECIFIED",
		1: "PERMISSION_TYPE_RELATION",
		2: "PERMISSION_TYPE_PERMISSION",
	}
	CheckDebugTrace_PermissionType_value = map[string]int32{
		"PERMISSION_TYPE_UNSPECIFIED": 0,
		"PERMISSION_TYPE_RELATION":    1,
		"PERMISSION_TYPE_PERMISSION":  2,
	}
)

Enum value maps for CheckDebugTrace_PermissionType.

View Source
var (
	CheckDebugTrace_Permissionship_name = map[int32]string{
		0: "PERMISSIONSHIP_UNSPECIFIED",
		1: "PERMISSIONSHIP_NO_PERMISSION",
		2: "PERMISSIONSHIP_HAS_PERMISSION",
		3: "PERMISSIONSHIP_CONDITIONAL_PERMISSION",
	}
	CheckDebugTrace_Permissionship_value = map[string]int32{
		"PERMISSIONSHIP_UNSPECIFIED":            0,
		"PERMISSIONSHIP_NO_PERMISSION":          1,
		"PERMISSIONSHIP_HAS_PERMISSION":         2,
		"PERMISSIONSHIP_CONDITIONAL_PERMISSION": 3,
	}
)

Enum value maps for CheckDebugTrace_Permissionship.

View Source
var (
	CaveatEvalInfo_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_UNEVALUATED",
		2: "RESULT_FALSE",
		3: "RESULT_TRUE",
		4: "RESULT_MISSING_SOME_CONTEXT",
	}
	CaveatEvalInfo_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED":          0,
		"RESULT_UNEVALUATED":          1,
		"RESULT_FALSE":                2,
		"RESULT_TRUE":                 3,
		"RESULT_MISSING_SOME_CONTEXT": 4,
	}
)

Enum value maps for CaveatEvalInfo_Result.

View Source
var File_authzed_api_v1_core_proto protoreflect.FileDescriptor
View Source
var File_authzed_api_v1_debug_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AlgebraicSubjectSet

type AlgebraicSubjectSet struct {
	Operation AlgebraicSubjectSet_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.AlgebraicSubjectSet_Operation" json:"operation,omitempty"`
	Children  []*PermissionRelationshipTree `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

AlgebraicSubjectSet is a subject set which is computed based on applying the specified operation to the operands according to the algebra of sets.

UNION is a logical set containing the subject members from all operands.

INTERSECTION is a logical set containing only the subject members which are present in all operands.

EXCLUSION is a logical set containing only the subject members which are present in the first operand, and none of the other operands.

func (*AlgebraicSubjectSet) CloneMessageVT

func (m *AlgebraicSubjectSet) CloneMessageVT() proto.Message

func (*AlgebraicSubjectSet) CloneVT

func (*AlgebraicSubjectSet) Descriptor deprecated

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

Deprecated: Use AlgebraicSubjectSet.ProtoReflect.Descriptor instead.

func (*AlgebraicSubjectSet) EqualMessageVT

func (this *AlgebraicSubjectSet) EqualMessageVT(thatMsg proto.Message) bool

func (*AlgebraicSubjectSet) EqualVT

func (this *AlgebraicSubjectSet) EqualVT(that *AlgebraicSubjectSet) bool

func (*AlgebraicSubjectSet) GetChildren

func (x *AlgebraicSubjectSet) GetChildren() []*PermissionRelationshipTree

func (*AlgebraicSubjectSet) GetOperation

func (*AlgebraicSubjectSet) MarshalToSizedBufferVT

func (m *AlgebraicSubjectSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*AlgebraicSubjectSet) MarshalToVT

func (m *AlgebraicSubjectSet) MarshalToVT(dAtA []byte) (int, error)

func (*AlgebraicSubjectSet) MarshalVT

func (m *AlgebraicSubjectSet) MarshalVT() (dAtA []byte, err error)

func (*AlgebraicSubjectSet) ProtoMessage

func (*AlgebraicSubjectSet) ProtoMessage()

func (*AlgebraicSubjectSet) ProtoReflect

func (x *AlgebraicSubjectSet) ProtoReflect() protoreflect.Message

func (*AlgebraicSubjectSet) Reset

func (x *AlgebraicSubjectSet) Reset()

func (*AlgebraicSubjectSet) SizeVT

func (m *AlgebraicSubjectSet) SizeVT() (n int)

func (*AlgebraicSubjectSet) String

func (x *AlgebraicSubjectSet) String() string

func (*AlgebraicSubjectSet) UnmarshalVT

func (m *AlgebraicSubjectSet) UnmarshalVT(dAtA []byte) error

func (*AlgebraicSubjectSet) Validate

func (m *AlgebraicSubjectSet) Validate() error

Validate checks the field values on AlgebraicSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AlgebraicSubjectSet) ValidateAll

func (m *AlgebraicSubjectSet) ValidateAll() error

ValidateAll checks the field values on AlgebraicSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlgebraicSubjectSetMultiError, or nil if none found.

type AlgebraicSubjectSetMultiError

type AlgebraicSubjectSetMultiError []error

AlgebraicSubjectSetMultiError is an error wrapping multiple validation errors returned by AlgebraicSubjectSet.ValidateAll() if the designated constraints aren't met.

func (AlgebraicSubjectSetMultiError) AllErrors

func (m AlgebraicSubjectSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AlgebraicSubjectSetMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AlgebraicSubjectSetValidationError

type AlgebraicSubjectSetValidationError struct {
	// contains filtered or unexported fields
}

AlgebraicSubjectSetValidationError is the validation error returned by AlgebraicSubjectSet.Validate if the designated constraints aren't met.

func (AlgebraicSubjectSetValidationError) Cause

Cause function returns cause value.

func (AlgebraicSubjectSetValidationError) Error

Error satisfies the builtin error interface

func (AlgebraicSubjectSetValidationError) ErrorName

ErrorName returns error name.

func (AlgebraicSubjectSetValidationError) Field

Field function returns field value.

func (AlgebraicSubjectSetValidationError) Key

Key function returns key value.

func (AlgebraicSubjectSetValidationError) Reason

Reason function returns reason value.

type AlgebraicSubjectSet_Operation

type AlgebraicSubjectSet_Operation int32
const (
	AlgebraicSubjectSet_OPERATION_UNSPECIFIED  AlgebraicSubjectSet_Operation = 0
	AlgebraicSubjectSet_OPERATION_UNION        AlgebraicSubjectSet_Operation = 1
	AlgebraicSubjectSet_OPERATION_INTERSECTION AlgebraicSubjectSet_Operation = 2
	AlgebraicSubjectSet_OPERATION_EXCLUSION    AlgebraicSubjectSet_Operation = 3
)

func (AlgebraicSubjectSet_Operation) Descriptor

func (AlgebraicSubjectSet_Operation) Enum

func (AlgebraicSubjectSet_Operation) EnumDescriptor deprecated

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

Deprecated: Use AlgebraicSubjectSet_Operation.Descriptor instead.

func (AlgebraicSubjectSet_Operation) Number

func (AlgebraicSubjectSet_Operation) String

func (AlgebraicSubjectSet_Operation) Type

type CaveatEvalInfo

type CaveatEvalInfo struct {

	// expression is the expression that was evaluated.
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
	// result is the result of the evaluation.
	Result CaveatEvalInfo_Result `protobuf:"varint,2,opt,name=result,proto3,enum=authzed.api.v1.CaveatEvalInfo_Result" json:"result,omitempty"`
	// context consists of any named values that were used for evaluating the caveat expression.
	Context *structpb.Struct `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
	// partial_caveat_info holds information of a partially-evaluated caveated response, if applicable.
	PartialCaveatInfo *PartialCaveatInfo `protobuf:"bytes,4,opt,name=partial_caveat_info,json=partialCaveatInfo,proto3" json:"partial_caveat_info,omitempty"`
	// caveat_name is the name of the caveat that was executed, if applicable.
	CaveatName string `protobuf:"bytes,5,opt,name=caveat_name,json=caveatName,proto3" json:"caveat_name,omitempty"`
	// contains filtered or unexported fields
}

CaveatEvalInfo holds information about a caveat expression that was evaluated.

func (*CaveatEvalInfo) CloneMessageVT

func (m *CaveatEvalInfo) CloneMessageVT() proto.Message

func (*CaveatEvalInfo) CloneVT

func (m *CaveatEvalInfo) CloneVT() *CaveatEvalInfo

func (*CaveatEvalInfo) Descriptor deprecated

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

Deprecated: Use CaveatEvalInfo.ProtoReflect.Descriptor instead.

func (*CaveatEvalInfo) EqualMessageVT

func (this *CaveatEvalInfo) EqualMessageVT(thatMsg proto.Message) bool

func (*CaveatEvalInfo) EqualVT

func (this *CaveatEvalInfo) EqualVT(that *CaveatEvalInfo) bool

func (*CaveatEvalInfo) GetCaveatName

func (x *CaveatEvalInfo) GetCaveatName() string

func (*CaveatEvalInfo) GetContext

func (x *CaveatEvalInfo) GetContext() *structpb.Struct

func (*CaveatEvalInfo) GetExpression

func (x *CaveatEvalInfo) GetExpression() string

func (*CaveatEvalInfo) GetPartialCaveatInfo

func (x *CaveatEvalInfo) GetPartialCaveatInfo() *PartialCaveatInfo

func (*CaveatEvalInfo) GetResult

func (x *CaveatEvalInfo) GetResult() CaveatEvalInfo_Result

func (*CaveatEvalInfo) MarshalToSizedBufferVT

func (m *CaveatEvalInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CaveatEvalInfo) MarshalToVT

func (m *CaveatEvalInfo) MarshalToVT(dAtA []byte) (int, error)

func (*CaveatEvalInfo) MarshalVT

func (m *CaveatEvalInfo) MarshalVT() (dAtA []byte, err error)

func (*CaveatEvalInfo) ProtoMessage

func (*CaveatEvalInfo) ProtoMessage()

func (*CaveatEvalInfo) ProtoReflect

func (x *CaveatEvalInfo) ProtoReflect() protoreflect.Message

func (*CaveatEvalInfo) Reset

func (x *CaveatEvalInfo) Reset()

func (*CaveatEvalInfo) SizeVT

func (m *CaveatEvalInfo) SizeVT() (n int)

func (*CaveatEvalInfo) String

func (x *CaveatEvalInfo) String() string

func (*CaveatEvalInfo) UnmarshalVT

func (m *CaveatEvalInfo) UnmarshalVT(dAtA []byte) error

func (*CaveatEvalInfo) Validate

func (m *CaveatEvalInfo) Validate() error

Validate checks the field values on CaveatEvalInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CaveatEvalInfo) ValidateAll

func (m *CaveatEvalInfo) ValidateAll() error

ValidateAll checks the field values on CaveatEvalInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CaveatEvalInfoMultiError, or nil if none found.

type CaveatEvalInfoMultiError

type CaveatEvalInfoMultiError []error

CaveatEvalInfoMultiError is an error wrapping multiple validation errors returned by CaveatEvalInfo.ValidateAll() if the designated constraints aren't met.

func (CaveatEvalInfoMultiError) AllErrors

func (m CaveatEvalInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CaveatEvalInfoMultiError) Error

func (m CaveatEvalInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CaveatEvalInfoValidationError

type CaveatEvalInfoValidationError struct {
	// contains filtered or unexported fields
}

CaveatEvalInfoValidationError is the validation error returned by CaveatEvalInfo.Validate if the designated constraints aren't met.

func (CaveatEvalInfoValidationError) Cause

Cause function returns cause value.

func (CaveatEvalInfoValidationError) Error

Error satisfies the builtin error interface

func (CaveatEvalInfoValidationError) ErrorName

func (e CaveatEvalInfoValidationError) ErrorName() string

ErrorName returns error name.

func (CaveatEvalInfoValidationError) Field

Field function returns field value.

func (CaveatEvalInfoValidationError) Key

Key function returns key value.

func (CaveatEvalInfoValidationError) Reason

Reason function returns reason value.

type CaveatEvalInfo_Result

type CaveatEvalInfo_Result int32
const (
	CaveatEvalInfo_RESULT_UNSPECIFIED          CaveatEvalInfo_Result = 0
	CaveatEvalInfo_RESULT_UNEVALUATED          CaveatEvalInfo_Result = 1
	CaveatEvalInfo_RESULT_FALSE                CaveatEvalInfo_Result = 2
	CaveatEvalInfo_RESULT_TRUE                 CaveatEvalInfo_Result = 3
	CaveatEvalInfo_RESULT_MISSING_SOME_CONTEXT CaveatEvalInfo_Result = 4
)

func (CaveatEvalInfo_Result) Descriptor

func (CaveatEvalInfo_Result) Enum

func (CaveatEvalInfo_Result) EnumDescriptor deprecated

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

Deprecated: Use CaveatEvalInfo_Result.Descriptor instead.

func (CaveatEvalInfo_Result) Number

func (CaveatEvalInfo_Result) String

func (x CaveatEvalInfo_Result) String() string

func (CaveatEvalInfo_Result) Type

type CheckDebugTrace

type CheckDebugTrace struct {

	// resource holds the resource on which the Check was performed.
	Resource *ObjectReference `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// permission holds the name of the permission or relation on which the Check was performed.
	Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	// permission_type holds information indicating whether it was a permission or relation.
	PermissionType CheckDebugTrace_PermissionType `` /* 155-byte string literal not displayed */
	// subject holds the subject on which the Check was performed. This will be static across all calls within
	// the same Check tree.
	Subject *SubjectReference `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// result holds the result of the Check call.
	Result CheckDebugTrace_Permissionship `protobuf:"varint,5,opt,name=result,proto3,enum=authzed.api.v1.CheckDebugTrace_Permissionship" json:"result,omitempty"`
	// caveat_evaluation_info holds information about the caveat evaluated for this step of the trace.
	CaveatEvaluationInfo *CaveatEvalInfo `protobuf:"bytes,8,opt,name=caveat_evaluation_info,json=caveatEvaluationInfo,proto3" json:"caveat_evaluation_info,omitempty"`
	// duration holds the time spent executing this Check operation.
	Duration *durationpb.Duration `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
	// resolution holds information about how the problem was resolved.
	//
	// Types that are assignable to Resolution:
	//
	//	*CheckDebugTrace_WasCachedResult
	//	*CheckDebugTrace_SubProblems_
	Resolution isCheckDebugTrace_Resolution `protobuf_oneof:"resolution"`
	// contains filtered or unexported fields
}

CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission API call.

func (*CheckDebugTrace) CloneMessageVT

func (m *CheckDebugTrace) CloneMessageVT() proto.Message

func (*CheckDebugTrace) CloneVT

func (m *CheckDebugTrace) CloneVT() *CheckDebugTrace

func (*CheckDebugTrace) Descriptor deprecated

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

Deprecated: Use CheckDebugTrace.ProtoReflect.Descriptor instead.

func (*CheckDebugTrace) EqualMessageVT

func (this *CheckDebugTrace) EqualMessageVT(thatMsg proto.Message) bool

func (*CheckDebugTrace) EqualVT

func (this *CheckDebugTrace) EqualVT(that *CheckDebugTrace) bool

func (*CheckDebugTrace) GetCaveatEvaluationInfo

func (x *CheckDebugTrace) GetCaveatEvaluationInfo() *CaveatEvalInfo

func (*CheckDebugTrace) GetDuration

func (x *CheckDebugTrace) GetDuration() *durationpb.Duration

func (*CheckDebugTrace) GetPermission

func (x *CheckDebugTrace) GetPermission() string

func (*CheckDebugTrace) GetPermissionType

func (x *CheckDebugTrace) GetPermissionType() CheckDebugTrace_PermissionType

func (*CheckDebugTrace) GetResolution

func (m *CheckDebugTrace) GetResolution() isCheckDebugTrace_Resolution

func (*CheckDebugTrace) GetResource

func (x *CheckDebugTrace) GetResource() *ObjectReference

func (*CheckDebugTrace) GetResult

func (*CheckDebugTrace) GetSubProblems

func (x *CheckDebugTrace) GetSubProblems() *CheckDebugTrace_SubProblems

func (*CheckDebugTrace) GetSubject

func (x *CheckDebugTrace) GetSubject() *SubjectReference

func (*CheckDebugTrace) GetWasCachedResult

func (x *CheckDebugTrace) GetWasCachedResult() bool

func (*CheckDebugTrace) MarshalToSizedBufferVT

func (m *CheckDebugTrace) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CheckDebugTrace) MarshalToVT

func (m *CheckDebugTrace) MarshalToVT(dAtA []byte) (int, error)

func (*CheckDebugTrace) MarshalVT

func (m *CheckDebugTrace) MarshalVT() (dAtA []byte, err error)

func (*CheckDebugTrace) ProtoMessage

func (*CheckDebugTrace) ProtoMessage()

func (*CheckDebugTrace) ProtoReflect

func (x *CheckDebugTrace) ProtoReflect() protoreflect.Message

func (*CheckDebugTrace) Reset

func (x *CheckDebugTrace) Reset()

func (*CheckDebugTrace) SizeVT

func (m *CheckDebugTrace) SizeVT() (n int)

func (*CheckDebugTrace) String

func (x *CheckDebugTrace) String() string

func (*CheckDebugTrace) UnmarshalVT

func (m *CheckDebugTrace) UnmarshalVT(dAtA []byte) error

func (*CheckDebugTrace) Validate

func (m *CheckDebugTrace) Validate() error

Validate checks the field values on CheckDebugTrace with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckDebugTrace) ValidateAll

func (m *CheckDebugTrace) ValidateAll() error

ValidateAll checks the field values on CheckDebugTrace with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckDebugTraceMultiError, or nil if none found.

type CheckDebugTraceMultiError

type CheckDebugTraceMultiError []error

CheckDebugTraceMultiError is an error wrapping multiple validation errors returned by CheckDebugTrace.ValidateAll() if the designated constraints aren't met.

func (CheckDebugTraceMultiError) AllErrors

func (m CheckDebugTraceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckDebugTraceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckDebugTraceValidationError

type CheckDebugTraceValidationError struct {
	// contains filtered or unexported fields
}

CheckDebugTraceValidationError is the validation error returned by CheckDebugTrace.Validate if the designated constraints aren't met.

func (CheckDebugTraceValidationError) Cause

Cause function returns cause value.

func (CheckDebugTraceValidationError) Error

Error satisfies the builtin error interface

func (CheckDebugTraceValidationError) ErrorName

func (e CheckDebugTraceValidationError) ErrorName() string

ErrorName returns error name.

func (CheckDebugTraceValidationError) Field

Field function returns field value.

func (CheckDebugTraceValidationError) Key

Key function returns key value.

func (CheckDebugTraceValidationError) Reason

Reason function returns reason value.

type CheckDebugTrace_PermissionType

type CheckDebugTrace_PermissionType int32
const (
	CheckDebugTrace_PERMISSION_TYPE_UNSPECIFIED CheckDebugTrace_PermissionType = 0
	CheckDebugTrace_PERMISSION_TYPE_RELATION    CheckDebugTrace_PermissionType = 1
	CheckDebugTrace_PERMISSION_TYPE_PERMISSION  CheckDebugTrace_PermissionType = 2
)

func (CheckDebugTrace_PermissionType) Descriptor

func (CheckDebugTrace_PermissionType) Enum

func (CheckDebugTrace_PermissionType) EnumDescriptor deprecated

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

Deprecated: Use CheckDebugTrace_PermissionType.Descriptor instead.

func (CheckDebugTrace_PermissionType) Number

func (CheckDebugTrace_PermissionType) String

func (CheckDebugTrace_PermissionType) Type

type CheckDebugTrace_Permissionship

type CheckDebugTrace_Permissionship int32
const (
	CheckDebugTrace_PERMISSIONSHIP_UNSPECIFIED            CheckDebugTrace_Permissionship = 0
	CheckDebugTrace_PERMISSIONSHIP_NO_PERMISSION          CheckDebugTrace_Permissionship = 1
	CheckDebugTrace_PERMISSIONSHIP_HAS_PERMISSION         CheckDebugTrace_Permissionship = 2
	CheckDebugTrace_PERMISSIONSHIP_CONDITIONAL_PERMISSION CheckDebugTrace_Permissionship = 3
)

func (CheckDebugTrace_Permissionship) Descriptor

func (CheckDebugTrace_Permissionship) Enum

func (CheckDebugTrace_Permissionship) EnumDescriptor deprecated

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

Deprecated: Use CheckDebugTrace_Permissionship.Descriptor instead.

func (CheckDebugTrace_Permissionship) Number

func (CheckDebugTrace_Permissionship) String

func (CheckDebugTrace_Permissionship) Type

type CheckDebugTrace_SubProblems

type CheckDebugTrace_SubProblems struct {
	Traces []*CheckDebugTrace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckDebugTrace_SubProblems) CloneMessageVT

func (m *CheckDebugTrace_SubProblems) CloneMessageVT() proto.Message

func (*CheckDebugTrace_SubProblems) CloneVT

func (*CheckDebugTrace_SubProblems) Descriptor deprecated

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

Deprecated: Use CheckDebugTrace_SubProblems.ProtoReflect.Descriptor instead.

func (*CheckDebugTrace_SubProblems) EqualMessageVT

func (this *CheckDebugTrace_SubProblems) EqualMessageVT(thatMsg proto.Message) bool

func (*CheckDebugTrace_SubProblems) EqualVT

func (*CheckDebugTrace_SubProblems) GetTraces

func (x *CheckDebugTrace_SubProblems) GetTraces() []*CheckDebugTrace

func (*CheckDebugTrace_SubProblems) MarshalToSizedBufferVT

func (m *CheckDebugTrace_SubProblems) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_SubProblems) MarshalToVT

func (m *CheckDebugTrace_SubProblems) MarshalToVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_SubProblems) MarshalVT

func (m *CheckDebugTrace_SubProblems) MarshalVT() (dAtA []byte, err error)

func (*CheckDebugTrace_SubProblems) ProtoMessage

func (*CheckDebugTrace_SubProblems) ProtoMessage()

func (*CheckDebugTrace_SubProblems) ProtoReflect

func (*CheckDebugTrace_SubProblems) Reset

func (x *CheckDebugTrace_SubProblems) Reset()

func (*CheckDebugTrace_SubProblems) SizeVT

func (m *CheckDebugTrace_SubProblems) SizeVT() (n int)

func (*CheckDebugTrace_SubProblems) String

func (x *CheckDebugTrace_SubProblems) String() string

func (*CheckDebugTrace_SubProblems) UnmarshalVT

func (m *CheckDebugTrace_SubProblems) UnmarshalVT(dAtA []byte) error

func (*CheckDebugTrace_SubProblems) Validate

func (m *CheckDebugTrace_SubProblems) Validate() error

Validate checks the field values on CheckDebugTrace_SubProblems with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CheckDebugTrace_SubProblems) ValidateAll

func (m *CheckDebugTrace_SubProblems) ValidateAll() error

ValidateAll checks the field values on CheckDebugTrace_SubProblems with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckDebugTrace_SubProblemsMultiError, or nil if none found.

type CheckDebugTrace_SubProblemsMultiError

type CheckDebugTrace_SubProblemsMultiError []error

CheckDebugTrace_SubProblemsMultiError is an error wrapping multiple validation errors returned by CheckDebugTrace_SubProblems.ValidateAll() if the designated constraints aren't met.

func (CheckDebugTrace_SubProblemsMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CheckDebugTrace_SubProblemsMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CheckDebugTrace_SubProblemsValidationError

type CheckDebugTrace_SubProblemsValidationError struct {
	// contains filtered or unexported fields
}

CheckDebugTrace_SubProblemsValidationError is the validation error returned by CheckDebugTrace_SubProblems.Validate if the designated constraints aren't met.

func (CheckDebugTrace_SubProblemsValidationError) Cause

Cause function returns cause value.

func (CheckDebugTrace_SubProblemsValidationError) Error

Error satisfies the builtin error interface

func (CheckDebugTrace_SubProblemsValidationError) ErrorName

ErrorName returns error name.

func (CheckDebugTrace_SubProblemsValidationError) Field

Field function returns field value.

func (CheckDebugTrace_SubProblemsValidationError) Key

Key function returns key value.

func (CheckDebugTrace_SubProblemsValidationError) Reason

Reason function returns reason value.

type CheckDebugTrace_SubProblems_

type CheckDebugTrace_SubProblems_ struct {
	// sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list
	// and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation.
	SubProblems *CheckDebugTrace_SubProblems `protobuf:"bytes,7,opt,name=sub_problems,json=subProblems,proto3,oneof"`
}

func (*CheckDebugTrace_SubProblems_) CloneVT

func (m *CheckDebugTrace_SubProblems_) CloneVT() isCheckDebugTrace_Resolution

func (*CheckDebugTrace_SubProblems_) EqualVT

func (this *CheckDebugTrace_SubProblems_) EqualVT(thatIface isCheckDebugTrace_Resolution) bool

func (*CheckDebugTrace_SubProblems_) MarshalToSizedBufferVT

func (m *CheckDebugTrace_SubProblems_) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_SubProblems_) MarshalToVT

func (m *CheckDebugTrace_SubProblems_) MarshalToVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_SubProblems_) SizeVT

func (m *CheckDebugTrace_SubProblems_) SizeVT() (n int)

type CheckDebugTrace_WasCachedResult

type CheckDebugTrace_WasCachedResult struct {
	// was_cached_result, if true, indicates that the result was found in the cache and returned directly.
	WasCachedResult bool `protobuf:"varint,6,opt,name=was_cached_result,json=wasCachedResult,proto3,oneof"`
}

func (*CheckDebugTrace_WasCachedResult) CloneVT

func (m *CheckDebugTrace_WasCachedResult) CloneVT() isCheckDebugTrace_Resolution

func (*CheckDebugTrace_WasCachedResult) EqualVT

func (this *CheckDebugTrace_WasCachedResult) EqualVT(thatIface isCheckDebugTrace_Resolution) bool

func (*CheckDebugTrace_WasCachedResult) MarshalToSizedBufferVT

func (m *CheckDebugTrace_WasCachedResult) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_WasCachedResult) MarshalToVT

func (m *CheckDebugTrace_WasCachedResult) MarshalToVT(dAtA []byte) (int, error)

func (*CheckDebugTrace_WasCachedResult) SizeVT

func (m *CheckDebugTrace_WasCachedResult) SizeVT() (n int)

type ContextualizedCaveat

type ContextualizedCaveat struct {

	// caveat_name is the name of the caveat expression to use, as defined in the schema
	CaveatName string `protobuf:"bytes,1,opt,name=caveat_name,json=caveatName,proto3" json:"caveat_name,omitempty"`
	// context consists of any named values that are defined at write time for the caveat expression
	Context *structpb.Struct `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships. The context consists of key-value pairs that will be injected at evaluation time. The keys must match the arguments defined on the caveat in the schema.

func (*ContextualizedCaveat) CloneMessageVT

func (m *ContextualizedCaveat) CloneMessageVT() proto.Message

func (*ContextualizedCaveat) CloneVT

func (*ContextualizedCaveat) Descriptor deprecated

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

Deprecated: Use ContextualizedCaveat.ProtoReflect.Descriptor instead.

func (*ContextualizedCaveat) EqualMessageVT

func (this *ContextualizedCaveat) EqualMessageVT(thatMsg proto.Message) bool

func (*ContextualizedCaveat) EqualVT

func (this *ContextualizedCaveat) EqualVT(that *ContextualizedCaveat) bool

func (*ContextualizedCaveat) GetCaveatName

func (x *ContextualizedCaveat) GetCaveatName() string

func (*ContextualizedCaveat) GetContext

func (x *ContextualizedCaveat) GetContext() *structpb.Struct

func (*ContextualizedCaveat) MarshalToSizedBufferVT

func (m *ContextualizedCaveat) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ContextualizedCaveat) MarshalToVT

func (m *ContextualizedCaveat) MarshalToVT(dAtA []byte) (int, error)

func (*ContextualizedCaveat) MarshalVT

func (m *ContextualizedCaveat) MarshalVT() (dAtA []byte, err error)

func (*ContextualizedCaveat) ProtoMessage

func (*ContextualizedCaveat) ProtoMessage()

func (*ContextualizedCaveat) ProtoReflect

func (x *ContextualizedCaveat) ProtoReflect() protoreflect.Message

func (*ContextualizedCaveat) Reset

func (x *ContextualizedCaveat) Reset()

func (*ContextualizedCaveat) SizeVT

func (m *ContextualizedCaveat) SizeVT() (n int)

func (*ContextualizedCaveat) String

func (x *ContextualizedCaveat) String() string

func (*ContextualizedCaveat) UnmarshalVT

func (m *ContextualizedCaveat) UnmarshalVT(dAtA []byte) error

func (*ContextualizedCaveat) Validate

func (m *ContextualizedCaveat) Validate() error

Validate checks the field values on ContextualizedCaveat with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ContextualizedCaveat) ValidateAll

func (m *ContextualizedCaveat) ValidateAll() error

ValidateAll checks the field values on ContextualizedCaveat with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ContextualizedCaveatMultiError, or nil if none found.

type ContextualizedCaveatMultiError

type ContextualizedCaveatMultiError []error

ContextualizedCaveatMultiError is an error wrapping multiple validation errors returned by ContextualizedCaveat.ValidateAll() if the designated constraints aren't met.

func (ContextualizedCaveatMultiError) AllErrors

func (m ContextualizedCaveatMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ContextualizedCaveatMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ContextualizedCaveatValidationError

type ContextualizedCaveatValidationError struct {
	// contains filtered or unexported fields
}

ContextualizedCaveatValidationError is the validation error returned by ContextualizedCaveat.Validate if the designated constraints aren't met.

func (ContextualizedCaveatValidationError) Cause

Cause function returns cause value.

func (ContextualizedCaveatValidationError) Error

Error satisfies the builtin error interface

func (ContextualizedCaveatValidationError) ErrorName

ErrorName returns error name.

func (ContextualizedCaveatValidationError) Field

Field function returns field value.

func (ContextualizedCaveatValidationError) Key

Key function returns key value.

func (ContextualizedCaveatValidationError) Reason

Reason function returns reason value.

type Cursor

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

Cursor is used to provide resumption of listing between calls to APIs such as LookupResources.

func (*Cursor) CloneMessageVT

func (m *Cursor) CloneMessageVT() proto.Message

func (*Cursor) CloneVT

func (m *Cursor) CloneVT() *Cursor

func (*Cursor) Descriptor deprecated

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

Deprecated: Use Cursor.ProtoReflect.Descriptor instead.

func (*Cursor) EqualMessageVT

func (this *Cursor) EqualMessageVT(thatMsg proto.Message) bool

func (*Cursor) EqualVT

func (this *Cursor) EqualVT(that *Cursor) bool

func (*Cursor) GetToken

func (x *Cursor) GetToken() string

func (*Cursor) MarshalToSizedBufferVT

func (m *Cursor) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Cursor) MarshalToVT

func (m *Cursor) MarshalToVT(dAtA []byte) (int, error)

func (*Cursor) MarshalVT

func (m *Cursor) MarshalVT() (dAtA []byte, err error)

func (*Cursor) ProtoMessage

func (*Cursor) ProtoMessage()

func (*Cursor) ProtoReflect

func (x *Cursor) ProtoReflect() protoreflect.Message

func (*Cursor) Reset

func (x *Cursor) Reset()

func (*Cursor) SizeVT

func (m *Cursor) SizeVT() (n int)

func (*Cursor) String

func (x *Cursor) String() string

func (*Cursor) UnmarshalVT

func (m *Cursor) UnmarshalVT(dAtA []byte) error

func (*Cursor) Validate

func (m *Cursor) Validate() error

Validate checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Cursor) ValidateAll

func (m *Cursor) ValidateAll() error

ValidateAll checks the field values on Cursor with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CursorMultiError, or nil if none found.

type CursorMultiError

type CursorMultiError []error

CursorMultiError is an error wrapping multiple validation errors returned by Cursor.ValidateAll() if the designated constraints aren't met.

func (CursorMultiError) AllErrors

func (m CursorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CursorMultiError) Error

func (m CursorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CursorValidationError

type CursorValidationError struct {
	// contains filtered or unexported fields
}

CursorValidationError is the validation error returned by Cursor.Validate if the designated constraints aren't met.

func (CursorValidationError) Cause

func (e CursorValidationError) Cause() error

Cause function returns cause value.

func (CursorValidationError) Error

func (e CursorValidationError) Error() string

Error satisfies the builtin error interface

func (CursorValidationError) ErrorName

func (e CursorValidationError) ErrorName() string

ErrorName returns error name.

func (CursorValidationError) Field

func (e CursorValidationError) Field() string

Field function returns field value.

func (CursorValidationError) Key

func (e CursorValidationError) Key() bool

Key function returns key value.

func (CursorValidationError) Reason

func (e CursorValidationError) Reason() string

Reason function returns reason value.

type DebugInformation

type DebugInformation struct {

	// check holds debug information about a check request.
	Check *CheckDebugTrace `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"`
	// schema_used holds the schema used for the request.
	SchemaUsed string `protobuf:"bytes,2,opt,name=schema_used,json=schemaUsed,proto3" json:"schema_used,omitempty"`
	// contains filtered or unexported fields
}

DebugInformation defines debug information returned by an API call in a footer when requested with a specific debugging header.

The specific debug information returned will depend on the type of the API call made.

See the github.com/authzed/authzed-go project for the specific header and footer names.

func (*DebugInformation) CloneMessageVT

func (m *DebugInformation) CloneMessageVT() proto.Message

func (*DebugInformation) CloneVT

func (m *DebugInformation) CloneVT() *DebugInformation

func (*DebugInformation) Descriptor deprecated

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

Deprecated: Use DebugInformation.ProtoReflect.Descriptor instead.

func (*DebugInformation) EqualMessageVT

func (this *DebugInformation) EqualMessageVT(thatMsg proto.Message) bool

func (*DebugInformation) EqualVT

func (this *DebugInformation) EqualVT(that *DebugInformation) bool

func (*DebugInformation) GetCheck

func (x *DebugInformation) GetCheck() *CheckDebugTrace

func (*DebugInformation) GetSchemaUsed

func (x *DebugInformation) GetSchemaUsed() string

func (*DebugInformation) MarshalToSizedBufferVT

func (m *DebugInformation) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DebugInformation) MarshalToVT

func (m *DebugInformation) MarshalToVT(dAtA []byte) (int, error)

func (*DebugInformation) MarshalVT

func (m *DebugInformation) MarshalVT() (dAtA []byte, err error)

func (*DebugInformation) ProtoMessage

func (*DebugInformation) ProtoMessage()

func (*DebugInformation) ProtoReflect

func (x *DebugInformation) ProtoReflect() protoreflect.Message

func (*DebugInformation) Reset

func (x *DebugInformation) Reset()

func (*DebugInformation) SizeVT

func (m *DebugInformation) SizeVT() (n int)

func (*DebugInformation) String

func (x *DebugInformation) String() string

func (*DebugInformation) UnmarshalVT

func (m *DebugInformation) UnmarshalVT(dAtA []byte) error

func (*DebugInformation) Validate

func (m *DebugInformation) Validate() error

Validate checks the field values on DebugInformation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DebugInformation) ValidateAll

func (m *DebugInformation) ValidateAll() error

ValidateAll checks the field values on DebugInformation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DebugInformationMultiError, or nil if none found.

type DebugInformationMultiError

type DebugInformationMultiError []error

DebugInformationMultiError is an error wrapping multiple validation errors returned by DebugInformation.ValidateAll() if the designated constraints aren't met.

func (DebugInformationMultiError) AllErrors

func (m DebugInformationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DebugInformationMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DebugInformationValidationError

type DebugInformationValidationError struct {
	// contains filtered or unexported fields
}

DebugInformationValidationError is the validation error returned by DebugInformation.Validate if the designated constraints aren't met.

func (DebugInformationValidationError) Cause

Cause function returns cause value.

func (DebugInformationValidationError) Error

Error satisfies the builtin error interface

func (DebugInformationValidationError) ErrorName

ErrorName returns error name.

func (DebugInformationValidationError) Field

Field function returns field value.

func (DebugInformationValidationError) Key

Key function returns key value.

func (DebugInformationValidationError) Reason

Reason function returns reason value.

type DirectSubjectSet

type DirectSubjectSet struct {
	Subjects []*SubjectReference `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// contains filtered or unexported fields
}

DirectSubjectSet is a subject set which is simply a collection of subjects.

func (*DirectSubjectSet) CloneMessageVT

func (m *DirectSubjectSet) CloneMessageVT() proto.Message

func (*DirectSubjectSet) CloneVT

func (m *DirectSubjectSet) CloneVT() *DirectSubjectSet

func (*DirectSubjectSet) Descriptor deprecated

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

Deprecated: Use DirectSubjectSet.ProtoReflect.Descriptor instead.

func (*DirectSubjectSet) EqualMessageVT

func (this *DirectSubjectSet) EqualMessageVT(thatMsg proto.Message) bool

func (*DirectSubjectSet) EqualVT

func (this *DirectSubjectSet) EqualVT(that *DirectSubjectSet) bool

func (*DirectSubjectSet) GetSubjects

func (x *DirectSubjectSet) GetSubjects() []*SubjectReference

func (*DirectSubjectSet) MarshalToSizedBufferVT

func (m *DirectSubjectSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DirectSubjectSet) MarshalToVT

func (m *DirectSubjectSet) MarshalToVT(dAtA []byte) (int, error)

func (*DirectSubjectSet) MarshalVT

func (m *DirectSubjectSet) MarshalVT() (dAtA []byte, err error)

func (*DirectSubjectSet) ProtoMessage

func (*DirectSubjectSet) ProtoMessage()

func (*DirectSubjectSet) ProtoReflect

func (x *DirectSubjectSet) ProtoReflect() protoreflect.Message

func (*DirectSubjectSet) Reset

func (x *DirectSubjectSet) Reset()

func (*DirectSubjectSet) SizeVT

func (m *DirectSubjectSet) SizeVT() (n int)

func (*DirectSubjectSet) String

func (x *DirectSubjectSet) String() string

func (*DirectSubjectSet) UnmarshalVT

func (m *DirectSubjectSet) UnmarshalVT(dAtA []byte) error

func (*DirectSubjectSet) Validate

func (m *DirectSubjectSet) Validate() error

Validate checks the field values on DirectSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DirectSubjectSet) ValidateAll

func (m *DirectSubjectSet) ValidateAll() error

ValidateAll checks the field values on DirectSubjectSet with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DirectSubjectSetMultiError, or nil if none found.

type DirectSubjectSetMultiError

type DirectSubjectSetMultiError []error

DirectSubjectSetMultiError is an error wrapping multiple validation errors returned by DirectSubjectSet.ValidateAll() if the designated constraints aren't met.

func (DirectSubjectSetMultiError) AllErrors

func (m DirectSubjectSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DirectSubjectSetMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DirectSubjectSetValidationError

type DirectSubjectSetValidationError struct {
	// contains filtered or unexported fields
}

DirectSubjectSetValidationError is the validation error returned by DirectSubjectSet.Validate if the designated constraints aren't met.

func (DirectSubjectSetValidationError) Cause

Cause function returns cause value.

func (DirectSubjectSetValidationError) Error

Error satisfies the builtin error interface

func (DirectSubjectSetValidationError) ErrorName

ErrorName returns error name.

func (DirectSubjectSetValidationError) Field

Field function returns field value.

func (DirectSubjectSetValidationError) Key

Key function returns key value.

func (DirectSubjectSetValidationError) Reason

Reason function returns reason value.

type ObjectReference

type ObjectReference struct {
	ObjectType string `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	ObjectId   string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	// contains filtered or unexported fields
}

ObjectReference is used to refer to a specific object in the system.

func (*ObjectReference) CloneMessageVT

func (m *ObjectReference) CloneMessageVT() proto.Message

func (*ObjectReference) CloneVT

func (m *ObjectReference) CloneVT() *ObjectReference

func (*ObjectReference) Descriptor deprecated

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

Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead.

func (*ObjectReference) EqualMessageVT

func (this *ObjectReference) EqualMessageVT(thatMsg proto.Message) bool

func (*ObjectReference) EqualVT

func (this *ObjectReference) EqualVT(that *ObjectReference) bool

func (*ObjectReference) GetObjectId

func (x *ObjectReference) GetObjectId() string

func (*ObjectReference) GetObjectType

func (x *ObjectReference) GetObjectType() string

func (*ObjectReference) MarshalToSizedBufferVT

func (m *ObjectReference) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ObjectReference) MarshalToVT

func (m *ObjectReference) MarshalToVT(dAtA []byte) (int, error)

func (*ObjectReference) MarshalVT

func (m *ObjectReference) MarshalVT() (dAtA []byte, err error)

func (*ObjectReference) ProtoMessage

func (*ObjectReference) ProtoMessage()

func (*ObjectReference) ProtoReflect

func (x *ObjectReference) ProtoReflect() protoreflect.Message

func (*ObjectReference) Reset

func (x *ObjectReference) Reset()

func (*ObjectReference) SizeVT

func (m *ObjectReference) SizeVT() (n int)

func (*ObjectReference) String

func (x *ObjectReference) String() string

func (*ObjectReference) UnmarshalVT

func (m *ObjectReference) UnmarshalVT(dAtA []byte) error

func (*ObjectReference) Validate

func (m *ObjectReference) Validate() error

Validate checks the field values on ObjectReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ObjectReference) ValidateAll

func (m *ObjectReference) ValidateAll() error

ValidateAll checks the field values on ObjectReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ObjectReferenceMultiError, or nil if none found.

type ObjectReferenceMultiError

type ObjectReferenceMultiError []error

ObjectReferenceMultiError is an error wrapping multiple validation errors returned by ObjectReference.ValidateAll() if the designated constraints aren't met.

func (ObjectReferenceMultiError) AllErrors

func (m ObjectReferenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ObjectReferenceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ObjectReferenceValidationError

type ObjectReferenceValidationError struct {
	// contains filtered or unexported fields
}

ObjectReferenceValidationError is the validation error returned by ObjectReference.Validate if the designated constraints aren't met.

func (ObjectReferenceValidationError) Cause

Cause function returns cause value.

func (ObjectReferenceValidationError) Error

Error satisfies the builtin error interface

func (ObjectReferenceValidationError) ErrorName

func (e ObjectReferenceValidationError) ErrorName() string

ErrorName returns error name.

func (ObjectReferenceValidationError) Field

Field function returns field value.

func (ObjectReferenceValidationError) Key

Key function returns key value.

func (ObjectReferenceValidationError) Reason

Reason function returns reason value.

type PartialCaveatInfo

type PartialCaveatInfo struct {

	// missing_required_context is a list of one or more fields that were missing and prevented caveats
	// from being fully evaluated
	MissingRequiredContext []string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

PartialCaveatInfo carries information necessary for the client to take action in the event a response contains a partially evaluated caveat

func (*PartialCaveatInfo) CloneMessageVT

func (m *PartialCaveatInfo) CloneMessageVT() proto.Message

func (*PartialCaveatInfo) CloneVT

func (m *PartialCaveatInfo) CloneVT() *PartialCaveatInfo

func (*PartialCaveatInfo) Descriptor deprecated

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

Deprecated: Use PartialCaveatInfo.ProtoReflect.Descriptor instead.

func (*PartialCaveatInfo) EqualMessageVT

func (this *PartialCaveatInfo) EqualMessageVT(thatMsg proto.Message) bool

func (*PartialCaveatInfo) EqualVT

func (this *PartialCaveatInfo) EqualVT(that *PartialCaveatInfo) bool

func (*PartialCaveatInfo) GetMissingRequiredContext

func (x *PartialCaveatInfo) GetMissingRequiredContext() []string

func (*PartialCaveatInfo) MarshalToSizedBufferVT

func (m *PartialCaveatInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PartialCaveatInfo) MarshalToVT

func (m *PartialCaveatInfo) MarshalToVT(dAtA []byte) (int, error)

func (*PartialCaveatInfo) MarshalVT

func (m *PartialCaveatInfo) MarshalVT() (dAtA []byte, err error)

func (*PartialCaveatInfo) ProtoMessage

func (*PartialCaveatInfo) ProtoMessage()

func (*PartialCaveatInfo) ProtoReflect

func (x *PartialCaveatInfo) ProtoReflect() protoreflect.Message

func (*PartialCaveatInfo) Reset

func (x *PartialCaveatInfo) Reset()

func (*PartialCaveatInfo) SizeVT

func (m *PartialCaveatInfo) SizeVT() (n int)

func (*PartialCaveatInfo) String

func (x *PartialCaveatInfo) String() string

func (*PartialCaveatInfo) UnmarshalVT

func (m *PartialCaveatInfo) UnmarshalVT(dAtA []byte) error

func (*PartialCaveatInfo) Validate

func (m *PartialCaveatInfo) Validate() error

Validate checks the field values on PartialCaveatInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PartialCaveatInfo) ValidateAll

func (m *PartialCaveatInfo) ValidateAll() error

ValidateAll checks the field values on PartialCaveatInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PartialCaveatInfoMultiError, or nil if none found.

type PartialCaveatInfoMultiError

type PartialCaveatInfoMultiError []error

PartialCaveatInfoMultiError is an error wrapping multiple validation errors returned by PartialCaveatInfo.ValidateAll() if the designated constraints aren't met.

func (PartialCaveatInfoMultiError) AllErrors

func (m PartialCaveatInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PartialCaveatInfoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PartialCaveatInfoValidationError

type PartialCaveatInfoValidationError struct {
	// contains filtered or unexported fields
}

PartialCaveatInfoValidationError is the validation error returned by PartialCaveatInfo.Validate if the designated constraints aren't met.

func (PartialCaveatInfoValidationError) Cause

Cause function returns cause value.

func (PartialCaveatInfoValidationError) Error

Error satisfies the builtin error interface

func (PartialCaveatInfoValidationError) ErrorName

ErrorName returns error name.

func (PartialCaveatInfoValidationError) Field

Field function returns field value.

func (PartialCaveatInfoValidationError) Key

Key function returns key value.

func (PartialCaveatInfoValidationError) Reason

Reason function returns reason value.

type PermissionRelationshipTree

type PermissionRelationshipTree struct {

	// Types that are assignable to TreeType:
	//
	//	*PermissionRelationshipTree_Intermediate
	//	*PermissionRelationshipTree_Leaf
	TreeType         isPermissionRelationshipTree_TreeType `protobuf_oneof:"tree_type"`
	ExpandedObject   *ObjectReference                      `protobuf:"bytes,3,opt,name=expanded_object,json=expandedObject,proto3" json:"expanded_object,omitempty"`
	ExpandedRelation string                                `protobuf:"bytes,4,opt,name=expanded_relation,json=expandedRelation,proto3" json:"expanded_relation,omitempty"`
	// contains filtered or unexported fields
}

PermissionRelationshipTree is used for representing a tree of a resource and its permission relationships with other objects.

func (*PermissionRelationshipTree) CloneMessageVT

func (m *PermissionRelationshipTree) CloneMessageVT() proto.Message

func (*PermissionRelationshipTree) CloneVT

func (*PermissionRelationshipTree) Descriptor deprecated

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

Deprecated: Use PermissionRelationshipTree.ProtoReflect.Descriptor instead.

func (*PermissionRelationshipTree) EqualMessageVT

func (this *PermissionRelationshipTree) EqualMessageVT(thatMsg proto.Message) bool

func (*PermissionRelationshipTree) EqualVT

func (*PermissionRelationshipTree) GetExpandedObject

func (x *PermissionRelationshipTree) GetExpandedObject() *ObjectReference

func (*PermissionRelationshipTree) GetExpandedRelation

func (x *PermissionRelationshipTree) GetExpandedRelation() string

func (*PermissionRelationshipTree) GetIntermediate

func (x *PermissionRelationshipTree) GetIntermediate() *AlgebraicSubjectSet

func (*PermissionRelationshipTree) GetLeaf

func (*PermissionRelationshipTree) GetTreeType

func (m *PermissionRelationshipTree) GetTreeType() isPermissionRelationshipTree_TreeType

func (*PermissionRelationshipTree) MarshalToSizedBufferVT

func (m *PermissionRelationshipTree) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree) MarshalToVT

func (m *PermissionRelationshipTree) MarshalToVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree) MarshalVT

func (m *PermissionRelationshipTree) MarshalVT() (dAtA []byte, err error)

func (*PermissionRelationshipTree) ProtoMessage

func (*PermissionRelationshipTree) ProtoMessage()

func (*PermissionRelationshipTree) ProtoReflect

func (*PermissionRelationshipTree) Reset

func (x *PermissionRelationshipTree) Reset()

func (*PermissionRelationshipTree) SizeVT

func (m *PermissionRelationshipTree) SizeVT() (n int)

func (*PermissionRelationshipTree) String

func (x *PermissionRelationshipTree) String() string

func (*PermissionRelationshipTree) UnmarshalVT

func (m *PermissionRelationshipTree) UnmarshalVT(dAtA []byte) error

func (*PermissionRelationshipTree) Validate

func (m *PermissionRelationshipTree) Validate() error

Validate checks the field values on PermissionRelationshipTree with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PermissionRelationshipTree) ValidateAll

func (m *PermissionRelationshipTree) ValidateAll() error

ValidateAll checks the field values on PermissionRelationshipTree with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionRelationshipTreeMultiError, or nil if none found.

type PermissionRelationshipTreeMultiError

type PermissionRelationshipTreeMultiError []error

PermissionRelationshipTreeMultiError is an error wrapping multiple validation errors returned by PermissionRelationshipTree.ValidateAll() if the designated constraints aren't met.

func (PermissionRelationshipTreeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PermissionRelationshipTreeMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PermissionRelationshipTreeValidationError

type PermissionRelationshipTreeValidationError struct {
	// contains filtered or unexported fields
}

PermissionRelationshipTreeValidationError is the validation error returned by PermissionRelationshipTree.Validate if the designated constraints aren't met.

func (PermissionRelationshipTreeValidationError) Cause

Cause function returns cause value.

func (PermissionRelationshipTreeValidationError) Error

Error satisfies the builtin error interface

func (PermissionRelationshipTreeValidationError) ErrorName

ErrorName returns error name.

func (PermissionRelationshipTreeValidationError) Field

Field function returns field value.

func (PermissionRelationshipTreeValidationError) Key

Key function returns key value.

func (PermissionRelationshipTreeValidationError) Reason

Reason function returns reason value.

type PermissionRelationshipTree_Intermediate

type PermissionRelationshipTree_Intermediate struct {
	Intermediate *AlgebraicSubjectSet `protobuf:"bytes,1,opt,name=intermediate,proto3,oneof"`
}

func (*PermissionRelationshipTree_Intermediate) CloneVT

func (m *PermissionRelationshipTree_Intermediate) CloneVT() isPermissionRelationshipTree_TreeType

func (*PermissionRelationshipTree_Intermediate) EqualVT

func (this *PermissionRelationshipTree_Intermediate) EqualVT(thatIface isPermissionRelationshipTree_TreeType) bool

func (*PermissionRelationshipTree_Intermediate) MarshalToSizedBufferVT

func (m *PermissionRelationshipTree_Intermediate) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree_Intermediate) MarshalToVT

func (m *PermissionRelationshipTree_Intermediate) MarshalToVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree_Intermediate) SizeVT

type PermissionRelationshipTree_Leaf

type PermissionRelationshipTree_Leaf struct {
	Leaf *DirectSubjectSet `protobuf:"bytes,2,opt,name=leaf,proto3,oneof"`
}

func (*PermissionRelationshipTree_Leaf) CloneVT

func (m *PermissionRelationshipTree_Leaf) CloneVT() isPermissionRelationshipTree_TreeType

func (*PermissionRelationshipTree_Leaf) EqualVT

func (this *PermissionRelationshipTree_Leaf) EqualVT(thatIface isPermissionRelationshipTree_TreeType) bool

func (*PermissionRelationshipTree_Leaf) MarshalToSizedBufferVT

func (m *PermissionRelationshipTree_Leaf) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree_Leaf) MarshalToVT

func (m *PermissionRelationshipTree_Leaf) MarshalToVT(dAtA []byte) (int, error)

func (*PermissionRelationshipTree_Leaf) SizeVT

func (m *PermissionRelationshipTree_Leaf) SizeVT() (n int)

type Relationship

type Relationship struct {

	// resource is the resource to which the subject is related, in some manner
	Resource *ObjectReference `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// relation is how the resource and subject are related.
	Relation string `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// subject is the subject to which the resource is related, in some manner.
	Subject *SubjectReference `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// optional_caveat is a reference to a the caveat that must be enforced over the relationship
	OptionalCaveat      *ContextualizedCaveat `protobuf:"bytes,4,opt,name=optional_caveat,json=optionalCaveat,proto3" json:"optional_caveat,omitempty"`
	OptionalDescription *string               `protobuf:"bytes,5,opt,name=optional_description,json=optionalDescription,proto3,oneof" json:"optional_description,omitempty"` // [ (validate.rules).string.ignore_empty = true ];
	OptionalComment     *string               `protobuf:"bytes,6,opt,name=optional_comment,json=optionalComment,proto3,oneof" json:"optional_comment,omitempty"`             // [ (validate.rules).string.ignore_empty = true ];
	// contains filtered or unexported fields
}

Relationship specifies how a resource relates to a subject. Relationships form the data for the graph over which all permissions questions are answered.

func (*Relationship) CloneMessageVT

func (m *Relationship) CloneMessageVT() proto.Message

func (*Relationship) CloneVT

func (m *Relationship) CloneVT() *Relationship

func (*Relationship) Descriptor deprecated

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

Deprecated: Use Relationship.ProtoReflect.Descriptor instead.

func (*Relationship) EqualMessageVT

func (this *Relationship) EqualMessageVT(thatMsg proto.Message) bool

func (*Relationship) EqualVT

func (this *Relationship) EqualVT(that *Relationship) bool

func (*Relationship) GetOptionalCaveat

func (x *Relationship) GetOptionalCaveat() *ContextualizedCaveat

func (*Relationship) GetOptionalComment

func (x *Relationship) GetOptionalComment() string

func (*Relationship) GetOptionalDescription

func (x *Relationship) GetOptionalDescription() string

func (*Relationship) GetRelation

func (x *Relationship) GetRelation() string

func (*Relationship) GetResource

func (x *Relationship) GetResource() *ObjectReference

func (*Relationship) GetSubject

func (x *Relationship) GetSubject() *SubjectReference

func (*Relationship) MarshalToSizedBufferVT

func (m *Relationship) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Relationship) MarshalToVT

func (m *Relationship) MarshalToVT(dAtA []byte) (int, error)

func (*Relationship) MarshalVT

func (m *Relationship) MarshalVT() (dAtA []byte, err error)

func (*Relationship) ProtoMessage

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect

func (x *Relationship) ProtoReflect() protoreflect.Message

func (*Relationship) Reset

func (x *Relationship) Reset()

func (*Relationship) SizeVT

func (m *Relationship) SizeVT() (n int)

func (*Relationship) String

func (x *Relationship) String() string

func (*Relationship) UnmarshalVT

func (m *Relationship) UnmarshalVT(dAtA []byte) error

func (*Relationship) Validate

func (m *Relationship) Validate() error

Validate checks the field values on Relationship with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Relationship) ValidateAll

func (m *Relationship) ValidateAll() error

ValidateAll checks the field values on Relationship with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipMultiError, or nil if none found.

type RelationshipMultiError

type RelationshipMultiError []error

RelationshipMultiError is an error wrapping multiple validation errors returned by Relationship.ValidateAll() if the designated constraints aren't met.

func (RelationshipMultiError) AllErrors

func (m RelationshipMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipMultiError) Error

func (m RelationshipMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RelationshipUpdate

type RelationshipUpdate struct {
	Operation    RelationshipUpdate_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=authzed.api.v1.RelationshipUpdate_Operation" json:"operation,omitempty"`
	Relationship *Relationship                `protobuf:"bytes,2,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

RelationshipUpdate is used for mutating a single relationship within the service.

CREATE will create the relationship only if it doesn't exist, and error otherwise.

TOUCH will upsert the relationship, and will not error if it already exists.

DELETE will delete the relationship. If the relationship does not exist, this operation will no-op.

func (*RelationshipUpdate) CloneMessageVT

func (m *RelationshipUpdate) CloneMessageVT() proto.Message

func (*RelationshipUpdate) CloneVT

func (m *RelationshipUpdate) CloneVT() *RelationshipUpdate

func (*RelationshipUpdate) Descriptor deprecated

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

Deprecated: Use RelationshipUpdate.ProtoReflect.Descriptor instead.

func (*RelationshipUpdate) EqualMessageVT

func (this *RelationshipUpdate) EqualMessageVT(thatMsg proto.Message) bool

func (*RelationshipUpdate) EqualVT

func (this *RelationshipUpdate) EqualVT(that *RelationshipUpdate) bool

func (*RelationshipUpdate) GetOperation

func (*RelationshipUpdate) GetRelationship

func (x *RelationshipUpdate) GetRelationship() *Relationship

func (*RelationshipUpdate) MarshalToSizedBufferVT

func (m *RelationshipUpdate) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RelationshipUpdate) MarshalToVT

func (m *RelationshipUpdate) MarshalToVT(dAtA []byte) (int, error)

func (*RelationshipUpdate) MarshalVT

func (m *RelationshipUpdate) MarshalVT() (dAtA []byte, err error)

func (*RelationshipUpdate) ProtoMessage

func (*RelationshipUpdate) ProtoMessage()

func (*RelationshipUpdate) ProtoReflect

func (x *RelationshipUpdate) ProtoReflect() protoreflect.Message

func (*RelationshipUpdate) Reset

func (x *RelationshipUpdate) Reset()

func (*RelationshipUpdate) SizeVT

func (m *RelationshipUpdate) SizeVT() (n int)

func (*RelationshipUpdate) String

func (x *RelationshipUpdate) String() string

func (*RelationshipUpdate) UnmarshalVT

func (m *RelationshipUpdate) UnmarshalVT(dAtA []byte) error

func (*RelationshipUpdate) Validate

func (m *RelationshipUpdate) Validate() error

Validate checks the field values on RelationshipUpdate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RelationshipUpdate) ValidateAll

func (m *RelationshipUpdate) ValidateAll() error

ValidateAll checks the field values on RelationshipUpdate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationshipUpdateMultiError, or nil if none found.

type RelationshipUpdateMultiError

type RelationshipUpdateMultiError []error

RelationshipUpdateMultiError is an error wrapping multiple validation errors returned by RelationshipUpdate.ValidateAll() if the designated constraints aren't met.

func (RelationshipUpdateMultiError) AllErrors

func (m RelationshipUpdateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RelationshipUpdateMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RelationshipUpdateValidationError

type RelationshipUpdateValidationError struct {
	// contains filtered or unexported fields
}

RelationshipUpdateValidationError is the validation error returned by RelationshipUpdate.Validate if the designated constraints aren't met.

func (RelationshipUpdateValidationError) Cause

Cause function returns cause value.

func (RelationshipUpdateValidationError) Error

Error satisfies the builtin error interface

func (RelationshipUpdateValidationError) ErrorName

ErrorName returns error name.

func (RelationshipUpdateValidationError) Field

Field function returns field value.

func (RelationshipUpdateValidationError) Key

Key function returns key value.

func (RelationshipUpdateValidationError) Reason

Reason function returns reason value.

type RelationshipUpdate_Operation

type RelationshipUpdate_Operation int32
const (
	RelationshipUpdate_OPERATION_UNSPECIFIED RelationshipUpdate_Operation = 0
	RelationshipUpdate_OPERATION_CREATE      RelationshipUpdate_Operation = 1
	RelationshipUpdate_OPERATION_TOUCH       RelationshipUpdate_Operation = 2
	RelationshipUpdate_OPERATION_DELETE      RelationshipUpdate_Operation = 3
)

func (RelationshipUpdate_Operation) Descriptor

func (RelationshipUpdate_Operation) Enum

func (RelationshipUpdate_Operation) EnumDescriptor deprecated

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

Deprecated: Use RelationshipUpdate_Operation.Descriptor instead.

func (RelationshipUpdate_Operation) Number

func (RelationshipUpdate_Operation) String

func (RelationshipUpdate_Operation) Type

type RelationshipValidationError

type RelationshipValidationError struct {
	// contains filtered or unexported fields
}

RelationshipValidationError is the validation error returned by Relationship.Validate if the designated constraints aren't met.

func (RelationshipValidationError) Cause

Cause function returns cause value.

func (RelationshipValidationError) Error

Error satisfies the builtin error interface

func (RelationshipValidationError) ErrorName

func (e RelationshipValidationError) ErrorName() string

ErrorName returns error name.

func (RelationshipValidationError) Field

Field function returns field value.

func (RelationshipValidationError) Key

Key function returns key value.

func (RelationshipValidationError) Reason

Reason function returns reason value.

type SubjectReference

type SubjectReference struct {
	Object           *ObjectReference `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	OptionalRelation string           `protobuf:"bytes,2,opt,name=optional_relation,json=optionalRelation,proto3" json:"optional_relation,omitempty"`
	// contains filtered or unexported fields
}

SubjectReference is used for referring to the subject portion of a Relationship. The relation component is optional and is used for defining a sub-relation on the subject, e.g. group:123#members

func (*SubjectReference) CloneMessageVT

func (m *SubjectReference) CloneMessageVT() proto.Message

func (*SubjectReference) CloneVT

func (m *SubjectReference) CloneVT() *SubjectReference

func (*SubjectReference) Descriptor deprecated

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

Deprecated: Use SubjectReference.ProtoReflect.Descriptor instead.

func (*SubjectReference) EqualMessageVT

func (this *SubjectReference) EqualMessageVT(thatMsg proto.Message) bool

func (*SubjectReference) EqualVT

func (this *SubjectReference) EqualVT(that *SubjectReference) bool

func (*SubjectReference) GetObject

func (x *SubjectReference) GetObject() *ObjectReference

func (*SubjectReference) GetOptionalRelation

func (x *SubjectReference) GetOptionalRelation() string

func (*SubjectReference) MarshalToSizedBufferVT

func (m *SubjectReference) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SubjectReference) MarshalToVT

func (m *SubjectReference) MarshalToVT(dAtA []byte) (int, error)

func (*SubjectReference) MarshalVT

func (m *SubjectReference) MarshalVT() (dAtA []byte, err error)

func (*SubjectReference) ProtoMessage

func (*SubjectReference) ProtoMessage()

func (*SubjectReference) ProtoReflect

func (x *SubjectReference) ProtoReflect() protoreflect.Message

func (*SubjectReference) Reset

func (x *SubjectReference) Reset()

func (*SubjectReference) SizeVT

func (m *SubjectReference) SizeVT() (n int)

func (*SubjectReference) String

func (x *SubjectReference) String() string

func (*SubjectReference) UnmarshalVT

func (m *SubjectReference) UnmarshalVT(dAtA []byte) error

func (*SubjectReference) Validate

func (m *SubjectReference) Validate() error

Validate checks the field values on SubjectReference with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubjectReference) ValidateAll

func (m *SubjectReference) ValidateAll() error

ValidateAll checks the field values on SubjectReference with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubjectReferenceMultiError, or nil if none found.

type SubjectReferenceMultiError

type SubjectReferenceMultiError []error

SubjectReferenceMultiError is an error wrapping multiple validation errors returned by SubjectReference.ValidateAll() if the designated constraints aren't met.

func (SubjectReferenceMultiError) AllErrors

func (m SubjectReferenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubjectReferenceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SubjectReferenceValidationError

type SubjectReferenceValidationError struct {
	// contains filtered or unexported fields
}

SubjectReferenceValidationError is the validation error returned by SubjectReference.Validate if the designated constraints aren't met.

func (SubjectReferenceValidationError) Cause

Cause function returns cause value.

func (SubjectReferenceValidationError) Error

Error satisfies the builtin error interface

func (SubjectReferenceValidationError) ErrorName

ErrorName returns error name.

func (SubjectReferenceValidationError) Field

Field function returns field value.

func (SubjectReferenceValidationError) Key

Key function returns key value.

func (SubjectReferenceValidationError) Reason

Reason function returns reason value.

type ZedToken

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

ZedToken is used to provide causality metadata between Write and Check requests.

See the authzed.api.v1.Consistency message for more information.

func (*ZedToken) CloneMessageVT

func (m *ZedToken) CloneMessageVT() proto.Message

func (*ZedToken) CloneVT

func (m *ZedToken) CloneVT() *ZedToken

func (*ZedToken) Descriptor deprecated

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

Deprecated: Use ZedToken.ProtoReflect.Descriptor instead.

func (*ZedToken) EqualMessageVT

func (this *ZedToken) EqualMessageVT(thatMsg proto.Message) bool

func (*ZedToken) EqualVT

func (this *ZedToken) EqualVT(that *ZedToken) bool

func (*ZedToken) GetToken

func (x *ZedToken) GetToken() string

func (*ZedToken) MarshalToSizedBufferVT

func (m *ZedToken) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ZedToken) MarshalToVT

func (m *ZedToken) MarshalToVT(dAtA []byte) (int, error)

func (*ZedToken) MarshalVT

func (m *ZedToken) MarshalVT() (dAtA []byte, err error)

func (*ZedToken) ProtoMessage

func (*ZedToken) ProtoMessage()

func (*ZedToken) ProtoReflect

func (x *ZedToken) ProtoReflect() protoreflect.Message

func (*ZedToken) Reset

func (x *ZedToken) Reset()

func (*ZedToken) SizeVT

func (m *ZedToken) SizeVT() (n int)

func (*ZedToken) String

func (x *ZedToken) String() string

func (*ZedToken) UnmarshalVT

func (m *ZedToken) UnmarshalVT(dAtA []byte) error

func (*ZedToken) Validate

func (m *ZedToken) Validate() error

Validate checks the field values on ZedToken with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ZedToken) ValidateAll

func (m *ZedToken) ValidateAll() error

ValidateAll checks the field values on ZedToken with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ZedTokenMultiError, or nil if none found.

type ZedTokenMultiError

type ZedTokenMultiError []error

ZedTokenMultiError is an error wrapping multiple validation errors returned by ZedToken.ValidateAll() if the designated constraints aren't met.

func (ZedTokenMultiError) AllErrors

func (m ZedTokenMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ZedTokenMultiError) Error

func (m ZedTokenMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ZedTokenValidationError

type ZedTokenValidationError struct {
	// contains filtered or unexported fields
}

ZedTokenValidationError is the validation error returned by ZedToken.Validate if the designated constraints aren't met.

func (ZedTokenValidationError) Cause

func (e ZedTokenValidationError) Cause() error

Cause function returns cause value.

func (ZedTokenValidationError) Error

func (e ZedTokenValidationError) Error() string

Error satisfies the builtin error interface

func (ZedTokenValidationError) ErrorName

func (e ZedTokenValidationError) ErrorName() string

ErrorName returns error name.

func (ZedTokenValidationError) Field

func (e ZedTokenValidationError) Field() string

Field function returns field value.

func (ZedTokenValidationError) Key

func (e ZedTokenValidationError) Key() bool

Key function returns key value.

func (ZedTokenValidationError) Reason

func (e ZedTokenValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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