enginev1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_cerbos_engine_v1_engine_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckInput

type CheckInput struct {
	RequestId string     `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Resource  *Resource  `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	Principal *Principal `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"`
	Actions   []string   `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckInput) Descriptor deprecated

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

Deprecated: Use CheckInput.ProtoReflect.Descriptor instead.

func (*CheckInput) GetActions

func (x *CheckInput) GetActions() []string

func (*CheckInput) GetPrincipal

func (x *CheckInput) GetPrincipal() *Principal

func (*CheckInput) GetRequestId

func (x *CheckInput) GetRequestId() string

func (*CheckInput) GetResource

func (x *CheckInput) GetResource() *Resource

func (*CheckInput) MarshalToSizedBufferVT

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

func (*CheckInput) MarshalToVT

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

func (*CheckInput) MarshalVT

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

func (*CheckInput) ProtoMessage

func (*CheckInput) ProtoMessage()

func (*CheckInput) ProtoReflect

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

func (*CheckInput) Reset

func (x *CheckInput) Reset()

func (*CheckInput) SizeVT

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

func (*CheckInput) String

func (x *CheckInput) String() string

func (*CheckInput) UnmarshalVT

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

func (*CheckInput) Validate

func (m *CheckInput) Validate() error

Validate checks the field values on CheckInput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CheckInputValidationError

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

CheckInputValidationError is the validation error returned by CheckInput.Validate if the designated constraints aren't met.

func (CheckInputValidationError) Cause

func (e CheckInputValidationError) Cause() error

Cause function returns cause value.

func (CheckInputValidationError) Error

Error satisfies the builtin error interface

func (CheckInputValidationError) ErrorName

func (e CheckInputValidationError) ErrorName() string

ErrorName returns error name.

func (CheckInputValidationError) Field

Field function returns field value.

func (CheckInputValidationError) Key

Key function returns key value.

func (CheckInputValidationError) Reason

func (e CheckInputValidationError) Reason() string

Reason function returns reason value.

type CheckOutput

type CheckOutput struct {
	RequestId             string                               `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ResourceId            string                               `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	Actions               map[string]*CheckOutput_ActionEffect `` /* 155-byte string literal not displayed */
	EffectiveDerivedRoles []string                             `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckOutput) Descriptor deprecated

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

Deprecated: Use CheckOutput.ProtoReflect.Descriptor instead.

func (*CheckOutput) GetActions

func (x *CheckOutput) GetActions() map[string]*CheckOutput_ActionEffect

func (*CheckOutput) GetEffectiveDerivedRoles

func (x *CheckOutput) GetEffectiveDerivedRoles() []string

func (*CheckOutput) GetRequestId

func (x *CheckOutput) GetRequestId() string

func (*CheckOutput) GetResourceId

func (x *CheckOutput) GetResourceId() string

func (*CheckOutput) MarshalToSizedBufferVT

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

func (*CheckOutput) MarshalToVT

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

func (*CheckOutput) MarshalVT

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

func (*CheckOutput) ProtoMessage

func (*CheckOutput) ProtoMessage()

func (*CheckOutput) ProtoReflect

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

func (*CheckOutput) Reset

func (x *CheckOutput) Reset()

func (*CheckOutput) SizeVT

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

func (*CheckOutput) String

func (x *CheckOutput) String() string

func (*CheckOutput) UnmarshalVT

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

func (*CheckOutput) Validate

func (m *CheckOutput) Validate() error

Validate checks the field values on CheckOutput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CheckOutputValidationError

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

CheckOutputValidationError is the validation error returned by CheckOutput.Validate if the designated constraints aren't met.

func (CheckOutputValidationError) Cause

Cause function returns cause value.

func (CheckOutputValidationError) Error

Error satisfies the builtin error interface

func (CheckOutputValidationError) ErrorName

func (e CheckOutputValidationError) ErrorName() string

ErrorName returns error name.

func (CheckOutputValidationError) Field

Field function returns field value.

func (CheckOutputValidationError) Key

Key function returns key value.

func (CheckOutputValidationError) Reason

Reason function returns reason value.

type CheckOutput_ActionEffect

type CheckOutput_ActionEffect struct {
	Effect v1.Effect `protobuf:"varint,1,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
	Policy string    `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckOutput_ActionEffect) Descriptor deprecated

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

Deprecated: Use CheckOutput_ActionEffect.ProtoReflect.Descriptor instead.

func (*CheckOutput_ActionEffect) GetEffect

func (x *CheckOutput_ActionEffect) GetEffect() v1.Effect

func (*CheckOutput_ActionEffect) GetPolicy

func (x *CheckOutput_ActionEffect) GetPolicy() string

func (*CheckOutput_ActionEffect) MarshalToSizedBufferVT

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

func (*CheckOutput_ActionEffect) MarshalToVT

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

func (*CheckOutput_ActionEffect) MarshalVT

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

func (*CheckOutput_ActionEffect) ProtoMessage

func (*CheckOutput_ActionEffect) ProtoMessage()

func (*CheckOutput_ActionEffect) ProtoReflect

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

func (*CheckOutput_ActionEffect) Reset

func (x *CheckOutput_ActionEffect) Reset()

func (*CheckOutput_ActionEffect) SizeVT

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

func (*CheckOutput_ActionEffect) String

func (x *CheckOutput_ActionEffect) String() string

func (*CheckOutput_ActionEffect) UnmarshalVT

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

func (*CheckOutput_ActionEffect) Validate

func (m *CheckOutput_ActionEffect) Validate() error

Validate checks the field values on CheckOutput_ActionEffect with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CheckOutput_ActionEffectValidationError

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

CheckOutput_ActionEffectValidationError is the validation error returned by CheckOutput_ActionEffect.Validate if the designated constraints aren't met.

func (CheckOutput_ActionEffectValidationError) Cause

Cause function returns cause value.

func (CheckOutput_ActionEffectValidationError) Error

Error satisfies the builtin error interface

func (CheckOutput_ActionEffectValidationError) ErrorName

ErrorName returns error name.

func (CheckOutput_ActionEffectValidationError) Field

Field function returns field value.

func (CheckOutput_ActionEffectValidationError) Key

Key function returns key value.

func (CheckOutput_ActionEffectValidationError) Reason

Reason function returns reason value.

type Principal

type Principal struct {
	Id            string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PolicyVersion string                     `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
	Roles         []string                   `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
	Attr          map[string]*structpb.Value `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Principal) Descriptor deprecated

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

Deprecated: Use Principal.ProtoReflect.Descriptor instead.

func (*Principal) GetAttr

func (x *Principal) GetAttr() map[string]*structpb.Value

func (*Principal) GetId

func (x *Principal) GetId() string

func (*Principal) GetPolicyVersion

func (x *Principal) GetPolicyVersion() string

func (*Principal) GetRoles

func (x *Principal) GetRoles() []string

func (*Principal) MarshalToSizedBufferVT

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

func (*Principal) MarshalToVT

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

func (*Principal) MarshalVT

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

func (*Principal) ProtoMessage

func (*Principal) ProtoMessage()

func (*Principal) ProtoReflect

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

func (*Principal) Reset

func (x *Principal) Reset()

func (*Principal) SizeVT

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

func (*Principal) String

func (x *Principal) String() string

func (*Principal) UnmarshalVT

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

func (*Principal) Validate

func (m *Principal) Validate() error

Validate checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PrincipalValidationError

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

PrincipalValidationError is the validation error returned by Principal.Validate if the designated constraints aren't met.

func (PrincipalValidationError) Cause

func (e PrincipalValidationError) Cause() error

Cause function returns cause value.

func (PrincipalValidationError) Error

func (e PrincipalValidationError) Error() string

Error satisfies the builtin error interface

func (PrincipalValidationError) ErrorName

func (e PrincipalValidationError) ErrorName() string

ErrorName returns error name.

func (PrincipalValidationError) Field

func (e PrincipalValidationError) Field() string

Field function returns field value.

func (PrincipalValidationError) Key

Key function returns key value.

func (PrincipalValidationError) Reason

func (e PrincipalValidationError) Reason() string

Reason function returns reason value.

type Resource

type Resource struct {
	Kind          string                     `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	PolicyVersion string                     `protobuf:"bytes,2,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
	Id            string                     `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Attr          map[string]*structpb.Value `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetAttr

func (x *Resource) GetAttr() map[string]*structpb.Value

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetKind

func (x *Resource) GetKind() string

func (*Resource) GetPolicyVersion

func (x *Resource) GetPolicyVersion() string

func (*Resource) MarshalToSizedBufferVT

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

func (*Resource) MarshalToVT

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

func (*Resource) MarshalVT

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

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) SizeVT

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

func (*Resource) String

func (x *Resource) String() string

func (*Resource) UnmarshalVT

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

func (*Resource) Validate

func (m *Resource) Validate() error

Validate checks the field values on Resource with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ResourceValidationError

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

ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.

func (ResourceValidationError) Cause

func (e ResourceValidationError) Cause() error

Cause function returns cause value.

func (ResourceValidationError) Error

func (e ResourceValidationError) Error() string

Error satisfies the builtin error interface

func (ResourceValidationError) ErrorName

func (e ResourceValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceValidationError) Field

func (e ResourceValidationError) Field() string

Field function returns field value.

func (ResourceValidationError) Key

func (e ResourceValidationError) Key() bool

Key function returns key value.

func (ResourceValidationError) Reason

func (e ResourceValidationError) 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