policyv1

package
v1.36.12-2026081709252... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Condition_Condition_not_set_case case_Condition_Condition = 0
View Source
const Condition_Match_case case_Condition_Condition = 1
View Source
const Condition_Script_case case_Condition_Condition = 2
View Source
const Match_All_case case_Match_Op = 1
View Source
const Match_Any_case case_Match_Op = 2
View Source
const Match_Expr_case case_Match_Op = 4
View Source
const Match_None_case case_Match_Op = 3
View Source
const Match_Op_not_set_case case_Match_Op = 0
View Source
const Policy_DerivedRoles_case case_Policy_PolicyType = 7
View Source
const Policy_ExportConstants_case case_Policy_PolicyType = 12
View Source
const Policy_ExportVariables_case case_Policy_PolicyType = 10
View Source
const Policy_PolicyType_not_set_case case_Policy_PolicyType = 0
View Source
const Policy_PrincipalPolicy_case case_Policy_PolicyType = 6
View Source
const Policy_ResourcePolicy_case case_Policy_PolicyType = 5
View Source
const Policy_RolePolicy_case case_Policy_PolicyType = 11
View Source
const RolePolicy_PolicyType_not_set_case case_RolePolicy_PolicyType = 0
View Source
const RolePolicy_Role_case case_RolePolicy_PolicyType = 1
View Source
const TestResults_Details_Error_case case_TestResults_Details_Outcome = 3
View Source
const TestResults_Details_Failure_case case_TestResults_Details_Outcome = 2
View Source
const TestResults_Details_Outcome_not_set_case case_TestResults_Details_Outcome = 0
View Source
const TestResults_Details_SkipReason_case case_TestResults_Details_Outcome = 6
View Source
const TestResults_Details_Success_case case_TestResults_Details_Outcome = 5
View Source
const TestResults_OutputFailure_Errored_case case_TestResults_OutputFailure_Outcome = 4
View Source
const TestResults_OutputFailure_Mismatched_case case_TestResults_OutputFailure_Outcome = 2
View Source
const TestResults_OutputFailure_Missing_case case_TestResults_OutputFailure_Outcome = 3
View Source
const TestResults_OutputFailure_Outcome_not_set_case case_TestResults_OutputFailure_Outcome = 0

Variables

View Source
var (
	Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "KIND_DERIVED_ROLES",
		2: "KIND_EXPORT_VARIABLES",
		3: "KIND_PRINCIPAL",
		4: "KIND_RESOURCE",
		5: "KIND_ROLE_POLICY",
		6: "KIND_EXPORT_CONSTANTS",
	}
	Kind_value = map[string]int32{
		"KIND_UNSPECIFIED":      0,
		"KIND_DERIVED_ROLES":    1,
		"KIND_EXPORT_VARIABLES": 2,
		"KIND_PRINCIPAL":        3,
		"KIND_RESOURCE":         4,
		"KIND_ROLE_POLICY":      5,
		"KIND_EXPORT_CONSTANTS": 6,
	}
)

Enum value maps for Kind.

View Source
var (
	ScopePermissions_name = map[int32]string{
		0: "SCOPE_PERMISSIONS_UNSPECIFIED",
		1: "SCOPE_PERMISSIONS_OVERRIDE_PARENT",
		2: "SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS",
	}
	ScopePermissions_value = map[string]int32{
		"SCOPE_PERMISSIONS_UNSPECIFIED":                         0,
		"SCOPE_PERMISSIONS_OVERRIDE_PARENT":                     1,
		"SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS": 2,
	}
)

Enum value maps for ScopePermissions.

View Source
var (
	TestResults_Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_SKIPPED",
		2: "RESULT_PASSED",
		3: "RESULT_FAILED",
		4: "RESULT_ERRORED",
	}
	TestResults_Result_value = map[string]int32{
		"RESULT_UNSPECIFIED": 0,
		"RESULT_SKIPPED":     1,
		"RESULT_PASSED":      2,
		"RESULT_FAILED":      3,
		"RESULT_ERRORED":     4,
	}
)

Enum value maps for TestResults_Result.

View Source
var File_cerbos_policy_v1_policy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Condition

type Condition struct {

	// Types that are valid to be assigned to Condition:
	//
	//	*Condition_Match
	//	*Condition_Script
	Condition isCondition_Condition `protobuf_oneof:"condition"`
	// contains filtered or unexported fields
}

func (*Condition) ClearCondition

func (x *Condition) ClearCondition()

func (*Condition) ClearMatch

func (x *Condition) ClearMatch()

func (*Condition) ClearScript

func (x *Condition) ClearScript()

func (*Condition) GetCondition

func (x *Condition) GetCondition() isCondition_Condition

func (*Condition) GetMatch

func (x *Condition) GetMatch() *Match

func (*Condition) GetScript

func (x *Condition) GetScript() string

func (*Condition) HasCondition

func (x *Condition) HasCondition() bool

func (*Condition) HasMatch

func (x *Condition) HasMatch() bool

func (*Condition) HasScript

func (x *Condition) HasScript() bool

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

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

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) SetMatch

func (x *Condition) SetMatch(v *Match)

func (*Condition) SetScript

func (x *Condition) SetScript(v string)

func (*Condition) String

func (x *Condition) String() string

func (*Condition) WhichCondition

func (x *Condition) WhichCondition() case_Condition_Condition

type Condition_Match

type Condition_Match struct {
	Match *Match `protobuf:"bytes,1,opt,name=match,proto3,oneof"`
}

type Condition_Script

type Condition_Script struct {
	Script string `protobuf:"bytes,2,opt,name=script,proto3,oneof"`
}

type Condition_builder

type Condition_builder struct {

	// Fields of oneof Condition:
	Match  *Match
	Script *string
	// contains filtered or unexported fields
}

func (Condition_builder) Build

func (b0 Condition_builder) Build() *Condition

type Constants

type Constants struct {
	Import []string                   `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"`
	Local  map[string]*structpb.Value `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Constants) GetImport

func (x *Constants) GetImport() []string

func (*Constants) GetLocal

func (x *Constants) GetLocal() map[string]*structpb.Value

func (*Constants) ProtoMessage

func (*Constants) ProtoMessage()

func (*Constants) ProtoReflect

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

func (*Constants) Reset

func (x *Constants) Reset()

func (*Constants) SetImport

func (x *Constants) SetImport(v []string)

func (*Constants) SetLocal

func (x *Constants) SetLocal(v map[string]*structpb.Value)

func (*Constants) String

func (x *Constants) String() string

type Constants_builder

type Constants_builder struct {
	Import []string
	Local  map[string]*structpb.Value
	// contains filtered or unexported fields
}

func (Constants_builder) Build

func (b0 Constants_builder) Build() *Constants

type DerivedRoles

type DerivedRoles struct {
	Name        string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Definitions []*RoleDef `protobuf:"bytes,2,rep,name=definitions,proto3" json:"definitions,omitempty"`
	Variables   *Variables `protobuf:"bytes,3,opt,name=variables,proto3" json:"variables,omitempty"`
	Constants   *Constants `protobuf:"bytes,4,opt,name=constants,proto3" json:"constants,omitempty"`
	// contains filtered or unexported fields
}

func (*DerivedRoles) ClearConstants

func (x *DerivedRoles) ClearConstants()

func (*DerivedRoles) ClearVariables

func (x *DerivedRoles) ClearVariables()

func (*DerivedRoles) GetConstants

func (x *DerivedRoles) GetConstants() *Constants

func (*DerivedRoles) GetDefinitions

func (x *DerivedRoles) GetDefinitions() []*RoleDef

func (*DerivedRoles) GetName

func (x *DerivedRoles) GetName() string

func (*DerivedRoles) GetVariables

func (x *DerivedRoles) GetVariables() *Variables

func (*DerivedRoles) HasConstants

func (x *DerivedRoles) HasConstants() bool

func (*DerivedRoles) HasVariables

func (x *DerivedRoles) HasVariables() bool

func (*DerivedRoles) ProtoMessage

func (*DerivedRoles) ProtoMessage()

func (*DerivedRoles) ProtoReflect

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

func (*DerivedRoles) Reset

func (x *DerivedRoles) Reset()

func (*DerivedRoles) SetConstants

func (x *DerivedRoles) SetConstants(v *Constants)

func (*DerivedRoles) SetDefinitions

func (x *DerivedRoles) SetDefinitions(v []*RoleDef)

func (*DerivedRoles) SetName

func (x *DerivedRoles) SetName(v string)

func (*DerivedRoles) SetVariables

func (x *DerivedRoles) SetVariables(v *Variables)

func (*DerivedRoles) String

func (x *DerivedRoles) String() string

type DerivedRoles_builder

type DerivedRoles_builder struct {
	Name        string
	Definitions []*RoleDef
	Variables   *Variables
	Constants   *Constants
	// contains filtered or unexported fields
}

func (DerivedRoles_builder) Build

func (b0 DerivedRoles_builder) Build() *DerivedRoles

type ExportConstants

type ExportConstants struct {
	Name        string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Definitions map[string]*structpb.Value `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExportConstants) GetDefinitions

func (x *ExportConstants) GetDefinitions() map[string]*structpb.Value

func (*ExportConstants) GetName

func (x *ExportConstants) GetName() string

func (*ExportConstants) ProtoMessage

func (*ExportConstants) ProtoMessage()

func (*ExportConstants) ProtoReflect

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

func (*ExportConstants) Reset

func (x *ExportConstants) Reset()

func (*ExportConstants) SetDefinitions

func (x *ExportConstants) SetDefinitions(v map[string]*structpb.Value)

func (*ExportConstants) SetName

func (x *ExportConstants) SetName(v string)

func (*ExportConstants) String

func (x *ExportConstants) String() string

type ExportConstants_builder

type ExportConstants_builder struct {
	Name        string
	Definitions map[string]*structpb.Value
	// contains filtered or unexported fields
}

func (ExportConstants_builder) Build

type ExportVariables

type ExportVariables struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Definitions map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExportVariables) GetDefinitions

func (x *ExportVariables) GetDefinitions() map[string]string

func (*ExportVariables) GetName

func (x *ExportVariables) GetName() string

func (*ExportVariables) ProtoMessage

func (*ExportVariables) ProtoMessage()

func (*ExportVariables) ProtoReflect

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

func (*ExportVariables) Reset

func (x *ExportVariables) Reset()

func (*ExportVariables) SetDefinitions

func (x *ExportVariables) SetDefinitions(v map[string]string)

func (*ExportVariables) SetName

func (x *ExportVariables) SetName(v string)

func (*ExportVariables) String

func (x *ExportVariables) String() string

type ExportVariables_builder

type ExportVariables_builder struct {
	Name        string
	Definitions map[string]string
	// contains filtered or unexported fields
}

func (ExportVariables_builder) Build

type Kind

type Kind int32
const (
	Kind_KIND_UNSPECIFIED      Kind = 0
	Kind_KIND_DERIVED_ROLES    Kind = 1
	Kind_KIND_EXPORT_VARIABLES Kind = 2
	Kind_KIND_PRINCIPAL        Kind = 3
	Kind_KIND_RESOURCE         Kind = 4
	Kind_KIND_ROLE_POLICY      Kind = 5
	Kind_KIND_EXPORT_CONSTANTS Kind = 6
)

func (Kind) Descriptor

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) Number

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String

func (x Kind) String() string

func (Kind) Type

func (Kind) Type() protoreflect.EnumType

type Match

type Match struct {

	// Types that are valid to be assigned to Op:
	//
	//	*Match_All
	//	*Match_Any
	//	*Match_None
	//	*Match_Expr
	Op isMatch_Op `protobuf_oneof:"op"`
	// contains filtered or unexported fields
}

func (*Match) ClearAll

func (x *Match) ClearAll()

func (*Match) ClearAny

func (x *Match) ClearAny()

func (*Match) ClearExpr

func (x *Match) ClearExpr()

func (*Match) ClearNone

func (x *Match) ClearNone()

func (*Match) ClearOp

func (x *Match) ClearOp()

func (*Match) GetAll

func (x *Match) GetAll() *Match_ExprList

func (*Match) GetAny

func (x *Match) GetAny() *Match_ExprList

func (*Match) GetExpr

func (x *Match) GetExpr() string

func (*Match) GetNone

func (x *Match) GetNone() *Match_ExprList

func (*Match) GetOp

func (x *Match) GetOp() isMatch_Op

func (*Match) HasAll

func (x *Match) HasAll() bool

func (*Match) HasAny

func (x *Match) HasAny() bool

func (*Match) HasExpr

func (x *Match) HasExpr() bool

func (*Match) HasNone

func (x *Match) HasNone() bool

func (*Match) HasOp

func (x *Match) HasOp() bool

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

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

func (*Match) Reset

func (x *Match) Reset()

func (*Match) SetAll

func (x *Match) SetAll(v *Match_ExprList)

func (*Match) SetAny

func (x *Match) SetAny(v *Match_ExprList)

func (*Match) SetExpr

func (x *Match) SetExpr(v string)

func (*Match) SetNone

func (x *Match) SetNone(v *Match_ExprList)

func (*Match) String

func (x *Match) String() string

func (*Match) WhichOp

func (x *Match) WhichOp() case_Match_Op

type Match_All

type Match_All struct {
	All *Match_ExprList `protobuf:"bytes,1,opt,name=all,proto3,oneof"`
}

type Match_Any

type Match_Any struct {
	Any *Match_ExprList `protobuf:"bytes,2,opt,name=any,proto3,oneof"`
}

type Match_Expr

type Match_Expr struct {
	Expr string `protobuf:"bytes,4,opt,name=expr,proto3,oneof"`
}

type Match_ExprList

type Match_ExprList struct {
	Of []*Match `protobuf:"bytes,1,rep,name=of,proto3" json:"of,omitempty"`
	// contains filtered or unexported fields
}

func (*Match_ExprList) GetOf

func (x *Match_ExprList) GetOf() []*Match

func (*Match_ExprList) ProtoMessage

func (*Match_ExprList) ProtoMessage()

func (*Match_ExprList) ProtoReflect

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

func (*Match_ExprList) Reset

func (x *Match_ExprList) Reset()

func (*Match_ExprList) SetOf

func (x *Match_ExprList) SetOf(v []*Match)

func (*Match_ExprList) String

func (x *Match_ExprList) String() string

type Match_ExprList_builder

type Match_ExprList_builder struct {
	Of []*Match
	// contains filtered or unexported fields
}

func (Match_ExprList_builder) Build

type Match_None

type Match_None struct {
	None *Match_ExprList `protobuf:"bytes,3,opt,name=none,proto3,oneof"`
}

type Match_builder

type Match_builder struct {

	// Fields of oneof Op:
	All  *Match_ExprList
	Any  *Match_ExprList
	None *Match_ExprList
	Expr *string
	// contains filtered or unexported fields
}

func (Match_builder) Build

func (b0 Match_builder) Build() *Match

type Metadata

type Metadata struct {
	SourceFile  string                  `protobuf:"bytes,1,opt,name=source_file,json=sourceFile,proto3" json:"source_file,omitempty"`
	Annotations map[string]string       `` /* 149-byte string literal not displayed */
	Hash        *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	StoreIdentifer   string            `protobuf:"bytes,4,opt,name=store_identifer,json=storeIdentifer,proto3" json:"store_identifer,omitempty"`
	StoreIdentifier  string            `protobuf:"bytes,5,opt,name=store_identifier,json=storeIdentifier,proto3" json:"store_identifier,omitempty"`
	SourceAttributes *SourceAttributes `protobuf:"bytes,6,opt,name=source_attributes,json=sourceAttributes,proto3" json:"source_attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) ClearHash

func (x *Metadata) ClearHash()

func (*Metadata) ClearSourceAttributes

func (x *Metadata) ClearSourceAttributes()

func (*Metadata) GetAnnotations

func (x *Metadata) GetAnnotations() map[string]string

func (*Metadata) GetHash

func (x *Metadata) GetHash() *wrapperspb.UInt64Value

func (*Metadata) GetSourceAttributes

func (x *Metadata) GetSourceAttributes() *SourceAttributes

func (*Metadata) GetSourceFile

func (x *Metadata) GetSourceFile() string

func (*Metadata) GetStoreIdentifer deprecated

func (x *Metadata) GetStoreIdentifer() string

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Metadata) GetStoreIdentifier

func (x *Metadata) GetStoreIdentifier() string

func (*Metadata) HasHash

func (x *Metadata) HasHash() bool

func (*Metadata) HasSourceAttributes

func (x *Metadata) HasSourceAttributes() bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SetAnnotations

func (x *Metadata) SetAnnotations(v map[string]string)

func (*Metadata) SetHash

func (x *Metadata) SetHash(v *wrapperspb.UInt64Value)

func (*Metadata) SetSourceAttributes

func (x *Metadata) SetSourceAttributes(v *SourceAttributes)

func (*Metadata) SetSourceFile

func (x *Metadata) SetSourceFile(v string)

func (*Metadata) SetStoreIdentifer deprecated

func (x *Metadata) SetStoreIdentifer(v string)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Metadata) SetStoreIdentifier

func (x *Metadata) SetStoreIdentifier(v string)

func (*Metadata) String

func (x *Metadata) String() string

type Metadata_builder

type Metadata_builder struct {
	SourceFile  string
	Annotations map[string]string
	Hash        *wrapperspb.UInt64Value
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	StoreIdentifer   string
	StoreIdentifier  string
	SourceAttributes *SourceAttributes
	// contains filtered or unexported fields
}

func (Metadata_builder) Build

func (b0 Metadata_builder) Build() *Metadata

type Output

type Output struct {

	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Expr string       `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	When *Output_When `protobuf:"bytes,2,opt,name=when,proto3" json:"when,omitempty"`
	// contains filtered or unexported fields
}

func (*Output) ClearWhen

func (x *Output) ClearWhen()

func (*Output) GetExpr deprecated

func (x *Output) GetExpr() string

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Output) GetWhen

func (x *Output) GetWhen() *Output_When

func (*Output) HasWhen

func (x *Output) HasWhen() bool

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

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

func (*Output) Reset

func (x *Output) Reset()

func (*Output) SetExpr deprecated

func (x *Output) SetExpr(v string)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Output) SetWhen

func (x *Output) SetWhen(v *Output_When)

func (*Output) String

func (x *Output) String() string

type Output_When

type Output_When struct {
	RuleActivated   string `protobuf:"bytes,1,opt,name=rule_activated,json=ruleActivated,proto3" json:"rule_activated,omitempty"`
	ConditionNotMet string `protobuf:"bytes,2,opt,name=condition_not_met,json=conditionNotMet,proto3" json:"condition_not_met,omitempty"`
	// contains filtered or unexported fields
}

func (*Output_When) GetConditionNotMet

func (x *Output_When) GetConditionNotMet() string

func (*Output_When) GetRuleActivated

func (x *Output_When) GetRuleActivated() string

func (*Output_When) ProtoMessage

func (*Output_When) ProtoMessage()

func (*Output_When) ProtoReflect

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

func (*Output_When) Reset

func (x *Output_When) Reset()

func (*Output_When) SetConditionNotMet

func (x *Output_When) SetConditionNotMet(v string)

func (*Output_When) SetRuleActivated

func (x *Output_When) SetRuleActivated(v string)

func (*Output_When) String

func (x *Output_When) String() string

type Output_When_builder

type Output_When_builder struct {
	RuleActivated   string
	ConditionNotMet string
	// contains filtered or unexported fields
}

func (Output_When_builder) Build

func (b0 Output_When_builder) Build() *Output_When

type Output_builder

type Output_builder struct {

	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Expr string
	When *Output_When
	// contains filtered or unexported fields
}

func (Output_builder) Build

func (b0 Output_builder) Build() *Output

type Policy

type Policy struct {
	ApiVersion  string    `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	Disabled    bool      `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Description string    `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Types that are valid to be assigned to PolicyType:
	//
	//	*Policy_ResourcePolicy
	//	*Policy_PrincipalPolicy
	//	*Policy_DerivedRoles
	//	*Policy_ExportVariables
	//	*Policy_RolePolicy
	//	*Policy_ExportConstants
	PolicyType isPolicy_PolicyType `protobuf_oneof:"policy_type"`
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Variables  map[string]string `` /* 145-byte string literal not displayed */
	JsonSchema string            `protobuf:"bytes,9,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) ClearDerivedRoles

func (x *Policy) ClearDerivedRoles()

func (*Policy) ClearExportConstants

func (x *Policy) ClearExportConstants()

func (*Policy) ClearExportVariables

func (x *Policy) ClearExportVariables()

func (*Policy) ClearMetadata

func (x *Policy) ClearMetadata()

func (*Policy) ClearPolicyType

func (x *Policy) ClearPolicyType()

func (*Policy) ClearPrincipalPolicy

func (x *Policy) ClearPrincipalPolicy()

func (*Policy) ClearResourcePolicy

func (x *Policy) ClearResourcePolicy()

func (*Policy) ClearRolePolicy

func (x *Policy) ClearRolePolicy()

func (*Policy) GetApiVersion

func (x *Policy) GetApiVersion() string

func (*Policy) GetDerivedRoles

func (x *Policy) GetDerivedRoles() *DerivedRoles

func (*Policy) GetDescription

func (x *Policy) GetDescription() string

func (*Policy) GetDisabled

func (x *Policy) GetDisabled() bool

func (*Policy) GetExportConstants

func (x *Policy) GetExportConstants() *ExportConstants

func (*Policy) GetExportVariables

func (x *Policy) GetExportVariables() *ExportVariables

func (*Policy) GetJsonSchema

func (x *Policy) GetJsonSchema() string

func (*Policy) GetMetadata

func (x *Policy) GetMetadata() *Metadata

func (*Policy) GetPolicyType

func (x *Policy) GetPolicyType() isPolicy_PolicyType

func (*Policy) GetPrincipalPolicy

func (x *Policy) GetPrincipalPolicy() *PrincipalPolicy

func (*Policy) GetResourcePolicy

func (x *Policy) GetResourcePolicy() *ResourcePolicy

func (*Policy) GetRolePolicy

func (x *Policy) GetRolePolicy() *RolePolicy

func (*Policy) GetVariables deprecated

func (x *Policy) GetVariables() map[string]string

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Policy) HasDerivedRoles

func (x *Policy) HasDerivedRoles() bool

func (*Policy) HasExportConstants

func (x *Policy) HasExportConstants() bool

func (*Policy) HasExportVariables

func (x *Policy) HasExportVariables() bool

func (*Policy) HasMetadata

func (x *Policy) HasMetadata() bool

func (*Policy) HasPolicyType

func (x *Policy) HasPolicyType() bool

func (*Policy) HasPrincipalPolicy

func (x *Policy) HasPrincipalPolicy() bool

func (*Policy) HasResourcePolicy

func (x *Policy) HasResourcePolicy() bool

func (*Policy) HasRolePolicy

func (x *Policy) HasRolePolicy() bool

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) SetApiVersion

func (x *Policy) SetApiVersion(v string)

func (*Policy) SetDerivedRoles

func (x *Policy) SetDerivedRoles(v *DerivedRoles)

func (*Policy) SetDescription

func (x *Policy) SetDescription(v string)

func (*Policy) SetDisabled

func (x *Policy) SetDisabled(v bool)

func (*Policy) SetExportConstants

func (x *Policy) SetExportConstants(v *ExportConstants)

func (*Policy) SetExportVariables

func (x *Policy) SetExportVariables(v *ExportVariables)

func (*Policy) SetJsonSchema

func (x *Policy) SetJsonSchema(v string)

func (*Policy) SetMetadata

func (x *Policy) SetMetadata(v *Metadata)

func (*Policy) SetPrincipalPolicy

func (x *Policy) SetPrincipalPolicy(v *PrincipalPolicy)

func (*Policy) SetResourcePolicy

func (x *Policy) SetResourcePolicy(v *ResourcePolicy)

func (*Policy) SetRolePolicy

func (x *Policy) SetRolePolicy(v *RolePolicy)

func (*Policy) SetVariables deprecated

func (x *Policy) SetVariables(v map[string]string)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*Policy) String

func (x *Policy) String() string

func (*Policy) WhichPolicyType

func (x *Policy) WhichPolicyType() case_Policy_PolicyType

type Policy_DerivedRoles

type Policy_DerivedRoles struct {
	DerivedRoles *DerivedRoles `protobuf:"bytes,7,opt,name=derived_roles,json=derivedRoles,proto3,oneof"`
}

type Policy_ExportConstants

type Policy_ExportConstants struct {
	ExportConstants *ExportConstants `protobuf:"bytes,12,opt,name=export_constants,json=exportConstants,proto3,oneof"`
}

type Policy_ExportVariables

type Policy_ExportVariables struct {
	ExportVariables *ExportVariables `protobuf:"bytes,10,opt,name=export_variables,json=exportVariables,proto3,oneof"`
}

type Policy_PrincipalPolicy

type Policy_PrincipalPolicy struct {
	PrincipalPolicy *PrincipalPolicy `protobuf:"bytes,6,opt,name=principal_policy,json=principalPolicy,proto3,oneof"`
}

type Policy_ResourcePolicy

type Policy_ResourcePolicy struct {
	ResourcePolicy *ResourcePolicy `protobuf:"bytes,5,opt,name=resource_policy,json=resourcePolicy,proto3,oneof"`
}

type Policy_RolePolicy

type Policy_RolePolicy struct {
	RolePolicy *RolePolicy `protobuf:"bytes,11,opt,name=role_policy,json=rolePolicy,proto3,oneof"`
}

type Policy_builder

type Policy_builder struct {
	ApiVersion  string
	Disabled    bool
	Description string
	Metadata    *Metadata
	// Fields of oneof PolicyType:
	ResourcePolicy  *ResourcePolicy
	PrincipalPolicy *PrincipalPolicy
	DerivedRoles    *DerivedRoles
	ExportVariables *ExportVariables
	RolePolicy      *RolePolicy
	ExportConstants *ExportConstants
	// -- end of PolicyType
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Variables  map[string]string
	JsonSchema string
	// contains filtered or unexported fields
}

func (Policy_builder) Build

func (b0 Policy_builder) Build() *Policy

type PrincipalPolicy

type PrincipalPolicy struct {
	Principal        string           `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	Version          string           `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Rules            []*PrincipalRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
	Scope            string           `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
	Variables        *Variables       `protobuf:"bytes,5,opt,name=variables,proto3" json:"variables,omitempty"`
	ScopePermissions ScopePermissions `` /* 149-byte string literal not displayed */
	Constants        *Constants       `protobuf:"bytes,7,opt,name=constants,proto3" json:"constants,omitempty"`
	// contains filtered or unexported fields
}

func (*PrincipalPolicy) ClearConstants

func (x *PrincipalPolicy) ClearConstants()

func (*PrincipalPolicy) ClearVariables

func (x *PrincipalPolicy) ClearVariables()

func (*PrincipalPolicy) GetConstants

func (x *PrincipalPolicy) GetConstants() *Constants

func (*PrincipalPolicy) GetPrincipal

func (x *PrincipalPolicy) GetPrincipal() string

func (*PrincipalPolicy) GetRules

func (x *PrincipalPolicy) GetRules() []*PrincipalRule

func (*PrincipalPolicy) GetScope

func (x *PrincipalPolicy) GetScope() string

func (*PrincipalPolicy) GetScopePermissions

func (x *PrincipalPolicy) GetScopePermissions() ScopePermissions

func (*PrincipalPolicy) GetVariables

func (x *PrincipalPolicy) GetVariables() *Variables

func (*PrincipalPolicy) GetVersion

func (x *PrincipalPolicy) GetVersion() string

func (*PrincipalPolicy) HasConstants

func (x *PrincipalPolicy) HasConstants() bool

func (*PrincipalPolicy) HasVariables

func (x *PrincipalPolicy) HasVariables() bool

func (*PrincipalPolicy) ProtoMessage

func (*PrincipalPolicy) ProtoMessage()

func (*PrincipalPolicy) ProtoReflect

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

func (*PrincipalPolicy) Reset

func (x *PrincipalPolicy) Reset()

func (*PrincipalPolicy) SetConstants

func (x *PrincipalPolicy) SetConstants(v *Constants)

func (*PrincipalPolicy) SetPrincipal

func (x *PrincipalPolicy) SetPrincipal(v string)

func (*PrincipalPolicy) SetRules

func (x *PrincipalPolicy) SetRules(v []*PrincipalRule)

func (*PrincipalPolicy) SetScope

func (x *PrincipalPolicy) SetScope(v string)

func (*PrincipalPolicy) SetScopePermissions

func (x *PrincipalPolicy) SetScopePermissions(v ScopePermissions)

func (*PrincipalPolicy) SetVariables

func (x *PrincipalPolicy) SetVariables(v *Variables)

func (*PrincipalPolicy) SetVersion

func (x *PrincipalPolicy) SetVersion(v string)

func (*PrincipalPolicy) String

func (x *PrincipalPolicy) String() string

type PrincipalPolicy_builder

type PrincipalPolicy_builder struct {
	Principal        string
	Version          string
	Rules            []*PrincipalRule
	Scope            string
	Variables        *Variables
	ScopePermissions ScopePermissions
	Constants        *Constants
	// contains filtered or unexported fields
}

func (PrincipalPolicy_builder) Build

type PrincipalRule

type PrincipalRule struct {
	Resource string                  `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Actions  []*PrincipalRule_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*PrincipalRule) GetActions

func (x *PrincipalRule) GetActions() []*PrincipalRule_Action

func (*PrincipalRule) GetResource

func (x *PrincipalRule) GetResource() string

func (*PrincipalRule) ProtoMessage

func (*PrincipalRule) ProtoMessage()

func (*PrincipalRule) ProtoReflect

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

func (*PrincipalRule) Reset

func (x *PrincipalRule) Reset()

func (*PrincipalRule) SetActions

func (x *PrincipalRule) SetActions(v []*PrincipalRule_Action)

func (*PrincipalRule) SetResource

func (x *PrincipalRule) SetResource(v string)

func (*PrincipalRule) String

func (x *PrincipalRule) String() string

type PrincipalRule_Action

type PrincipalRule_Action struct {
	Action    string     `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Condition *Condition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	Effect    v1.Effect  `protobuf:"varint,3,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
	Name      string     `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Output    *Output    `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*PrincipalRule_Action) ClearCondition

func (x *PrincipalRule_Action) ClearCondition()

func (*PrincipalRule_Action) ClearOutput

func (x *PrincipalRule_Action) ClearOutput()

func (*PrincipalRule_Action) GetAction

func (x *PrincipalRule_Action) GetAction() string

func (*PrincipalRule_Action) GetCondition

func (x *PrincipalRule_Action) GetCondition() *Condition

func (*PrincipalRule_Action) GetEffect

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

func (*PrincipalRule_Action) GetName

func (x *PrincipalRule_Action) GetName() string

func (*PrincipalRule_Action) GetOutput

func (x *PrincipalRule_Action) GetOutput() *Output

func (*PrincipalRule_Action) HasCondition

func (x *PrincipalRule_Action) HasCondition() bool

func (*PrincipalRule_Action) HasOutput

func (x *PrincipalRule_Action) HasOutput() bool

func (*PrincipalRule_Action) ProtoMessage

func (*PrincipalRule_Action) ProtoMessage()

func (*PrincipalRule_Action) ProtoReflect

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

func (*PrincipalRule_Action) Reset

func (x *PrincipalRule_Action) Reset()

func (*PrincipalRule_Action) SetAction

func (x *PrincipalRule_Action) SetAction(v string)

func (*PrincipalRule_Action) SetCondition

func (x *PrincipalRule_Action) SetCondition(v *Condition)

func (*PrincipalRule_Action) SetEffect

func (x *PrincipalRule_Action) SetEffect(v v1.Effect)

func (*PrincipalRule_Action) SetName

func (x *PrincipalRule_Action) SetName(v string)

func (*PrincipalRule_Action) SetOutput

func (x *PrincipalRule_Action) SetOutput(v *Output)

func (*PrincipalRule_Action) String

func (x *PrincipalRule_Action) String() string

type PrincipalRule_Action_builder

type PrincipalRule_Action_builder struct {
	Action    string
	Condition *Condition
	Effect    v1.Effect
	Name      string
	Output    *Output
	// contains filtered or unexported fields
}

func (PrincipalRule_Action_builder) Build

type PrincipalRule_builder

type PrincipalRule_builder struct {
	Resource string
	Actions  []*PrincipalRule_Action
	// contains filtered or unexported fields
}

func (PrincipalRule_builder) Build

type ResourcePolicy

type ResourcePolicy struct {
	Resource           string           `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Version            string           `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	ImportDerivedRoles []string         `protobuf:"bytes,3,rep,name=import_derived_roles,json=importDerivedRoles,proto3" json:"import_derived_roles,omitempty"`
	Rules              []*ResourceRule  `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"`
	Scope              string           `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
	Schemas            *Schemas         `protobuf:"bytes,6,opt,name=schemas,proto3" json:"schemas,omitempty"`
	Variables          *Variables       `protobuf:"bytes,7,opt,name=variables,proto3" json:"variables,omitempty"`
	ScopePermissions   ScopePermissions `` /* 149-byte string literal not displayed */
	Constants          *Constants       `protobuf:"bytes,9,opt,name=constants,proto3" json:"constants,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourcePolicy) ClearConstants

func (x *ResourcePolicy) ClearConstants()

func (*ResourcePolicy) ClearSchemas

func (x *ResourcePolicy) ClearSchemas()

func (*ResourcePolicy) ClearVariables

func (x *ResourcePolicy) ClearVariables()

func (*ResourcePolicy) GetConstants

func (x *ResourcePolicy) GetConstants() *Constants

func (*ResourcePolicy) GetImportDerivedRoles

func (x *ResourcePolicy) GetImportDerivedRoles() []string

func (*ResourcePolicy) GetResource

func (x *ResourcePolicy) GetResource() string

func (*ResourcePolicy) GetRules

func (x *ResourcePolicy) GetRules() []*ResourceRule

func (*ResourcePolicy) GetSchemas

func (x *ResourcePolicy) GetSchemas() *Schemas

func (*ResourcePolicy) GetScope

func (x *ResourcePolicy) GetScope() string

func (*ResourcePolicy) GetScopePermissions

func (x *ResourcePolicy) GetScopePermissions() ScopePermissions

func (*ResourcePolicy) GetVariables

func (x *ResourcePolicy) GetVariables() *Variables

func (*ResourcePolicy) GetVersion

func (x *ResourcePolicy) GetVersion() string

func (*ResourcePolicy) HasConstants

func (x *ResourcePolicy) HasConstants() bool

func (*ResourcePolicy) HasSchemas

func (x *ResourcePolicy) HasSchemas() bool

func (*ResourcePolicy) HasVariables

func (x *ResourcePolicy) HasVariables() bool

func (*ResourcePolicy) ProtoMessage

func (*ResourcePolicy) ProtoMessage()

func (*ResourcePolicy) ProtoReflect

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

func (*ResourcePolicy) Reset

func (x *ResourcePolicy) Reset()

func (*ResourcePolicy) SetConstants

func (x *ResourcePolicy) SetConstants(v *Constants)

func (*ResourcePolicy) SetImportDerivedRoles

func (x *ResourcePolicy) SetImportDerivedRoles(v []string)

func (*ResourcePolicy) SetResource

func (x *ResourcePolicy) SetResource(v string)

func (*ResourcePolicy) SetRules

func (x *ResourcePolicy) SetRules(v []*ResourceRule)

func (*ResourcePolicy) SetSchemas

func (x *ResourcePolicy) SetSchemas(v *Schemas)

func (*ResourcePolicy) SetScope

func (x *ResourcePolicy) SetScope(v string)

func (*ResourcePolicy) SetScopePermissions

func (x *ResourcePolicy) SetScopePermissions(v ScopePermissions)

func (*ResourcePolicy) SetVariables

func (x *ResourcePolicy) SetVariables(v *Variables)

func (*ResourcePolicy) SetVersion

func (x *ResourcePolicy) SetVersion(v string)

func (*ResourcePolicy) String

func (x *ResourcePolicy) String() string

type ResourcePolicy_builder

type ResourcePolicy_builder struct {
	Resource           string
	Version            string
	ImportDerivedRoles []string
	Rules              []*ResourceRule
	Scope              string
	Schemas            *Schemas
	Variables          *Variables
	ScopePermissions   ScopePermissions
	Constants          *Constants
	// contains filtered or unexported fields
}

func (ResourcePolicy_builder) Build

type ResourceRule

type ResourceRule struct {
	Actions      []string   `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	DerivedRoles []string   `protobuf:"bytes,2,rep,name=derived_roles,json=derivedRoles,proto3" json:"derived_roles,omitempty"`
	Roles        []string   `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
	Condition    *Condition `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"`
	Effect       v1.Effect  `protobuf:"varint,5,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
	Name         string     `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	Output       *Output    `protobuf:"bytes,7,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceRule) ClearCondition

func (x *ResourceRule) ClearCondition()

func (*ResourceRule) ClearOutput

func (x *ResourceRule) ClearOutput()

func (*ResourceRule) GetActions

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

func (*ResourceRule) GetCondition

func (x *ResourceRule) GetCondition() *Condition

func (*ResourceRule) GetDerivedRoles

func (x *ResourceRule) GetDerivedRoles() []string

func (*ResourceRule) GetEffect

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

func (*ResourceRule) GetName

func (x *ResourceRule) GetName() string

func (*ResourceRule) GetOutput

func (x *ResourceRule) GetOutput() *Output

func (*ResourceRule) GetRoles

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

func (*ResourceRule) HasCondition

func (x *ResourceRule) HasCondition() bool

func (*ResourceRule) HasOutput

func (x *ResourceRule) HasOutput() bool

func (*ResourceRule) ProtoMessage

func (*ResourceRule) ProtoMessage()

func (*ResourceRule) ProtoReflect

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

func (*ResourceRule) Reset

func (x *ResourceRule) Reset()

func (*ResourceRule) SetActions

func (x *ResourceRule) SetActions(v []string)

func (*ResourceRule) SetCondition

func (x *ResourceRule) SetCondition(v *Condition)

func (*ResourceRule) SetDerivedRoles

func (x *ResourceRule) SetDerivedRoles(v []string)

func (*ResourceRule) SetEffect

func (x *ResourceRule) SetEffect(v v1.Effect)

func (*ResourceRule) SetName

func (x *ResourceRule) SetName(v string)

func (*ResourceRule) SetOutput

func (x *ResourceRule) SetOutput(v *Output)

func (*ResourceRule) SetRoles

func (x *ResourceRule) SetRoles(v []string)

func (*ResourceRule) String

func (x *ResourceRule) String() string

type ResourceRule_builder

type ResourceRule_builder struct {
	Actions      []string
	DerivedRoles []string
	Roles        []string
	Condition    *Condition
	Effect       v1.Effect
	Name         string
	Output       *Output
	// contains filtered or unexported fields
}

func (ResourceRule_builder) Build

func (b0 ResourceRule_builder) Build() *ResourceRule

type RoleDef

type RoleDef struct {
	Name        string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ParentRoles []string   `protobuf:"bytes,2,rep,name=parent_roles,json=parentRoles,proto3" json:"parent_roles,omitempty"`
	Condition   *Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleDef) ClearCondition

func (x *RoleDef) ClearCondition()

func (*RoleDef) GetCondition

func (x *RoleDef) GetCondition() *Condition

func (*RoleDef) GetName

func (x *RoleDef) GetName() string

func (*RoleDef) GetParentRoles

func (x *RoleDef) GetParentRoles() []string

func (*RoleDef) HasCondition

func (x *RoleDef) HasCondition() bool

func (*RoleDef) ProtoMessage

func (*RoleDef) ProtoMessage()

func (*RoleDef) ProtoReflect

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

func (*RoleDef) Reset

func (x *RoleDef) Reset()

func (*RoleDef) SetCondition

func (x *RoleDef) SetCondition(v *Condition)

func (*RoleDef) SetName

func (x *RoleDef) SetName(v string)

func (*RoleDef) SetParentRoles

func (x *RoleDef) SetParentRoles(v []string)

func (*RoleDef) String

func (x *RoleDef) String() string

type RoleDef_builder

type RoleDef_builder struct {
	Name        string
	ParentRoles []string
	Condition   *Condition
	// contains filtered or unexported fields
}

func (RoleDef_builder) Build

func (b0 RoleDef_builder) Build() *RoleDef

type RolePolicy

type RolePolicy struct {

	// Types that are valid to be assigned to PolicyType:
	//
	//	*RolePolicy_Role
	PolicyType  isRolePolicy_PolicyType `protobuf_oneof:"policy_type"`
	Version     string                  `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	ParentRoles []string                `protobuf:"bytes,5,rep,name=parent_roles,json=parentRoles,proto3" json:"parent_roles,omitempty"`
	Scope       string                  `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
	Rules       []*RoleRule             `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
	// Deprecated: no-op.
	//
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	ScopePermissions ScopePermissions `` /* 149-byte string literal not displayed */
	Variables        *Variables       `protobuf:"bytes,7,opt,name=variables,proto3" json:"variables,omitempty"`
	Constants        *Constants       `protobuf:"bytes,8,opt,name=constants,proto3" json:"constants,omitempty"`
	// contains filtered or unexported fields
}

func (*RolePolicy) ClearConstants

func (x *RolePolicy) ClearConstants()

func (*RolePolicy) ClearPolicyType

func (x *RolePolicy) ClearPolicyType()

func (*RolePolicy) ClearRole

func (x *RolePolicy) ClearRole()

func (*RolePolicy) ClearVariables

func (x *RolePolicy) ClearVariables()

func (*RolePolicy) GetConstants

func (x *RolePolicy) GetConstants() *Constants

func (*RolePolicy) GetParentRoles

func (x *RolePolicy) GetParentRoles() []string

func (*RolePolicy) GetPolicyType

func (x *RolePolicy) GetPolicyType() isRolePolicy_PolicyType

func (*RolePolicy) GetRole

func (x *RolePolicy) GetRole() string

func (*RolePolicy) GetRules

func (x *RolePolicy) GetRules() []*RoleRule

func (*RolePolicy) GetScope

func (x *RolePolicy) GetScope() string

func (*RolePolicy) GetScopePermissions deprecated

func (x *RolePolicy) GetScopePermissions() ScopePermissions

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*RolePolicy) GetVariables

func (x *RolePolicy) GetVariables() *Variables

func (*RolePolicy) GetVersion

func (x *RolePolicy) GetVersion() string

func (*RolePolicy) HasConstants

func (x *RolePolicy) HasConstants() bool

func (*RolePolicy) HasPolicyType

func (x *RolePolicy) HasPolicyType() bool

func (*RolePolicy) HasRole

func (x *RolePolicy) HasRole() bool

func (*RolePolicy) HasVariables

func (x *RolePolicy) HasVariables() bool

func (*RolePolicy) ProtoMessage

func (*RolePolicy) ProtoMessage()

func (*RolePolicy) ProtoReflect

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

func (*RolePolicy) Reset

func (x *RolePolicy) Reset()

func (*RolePolicy) SetConstants

func (x *RolePolicy) SetConstants(v *Constants)

func (*RolePolicy) SetParentRoles

func (x *RolePolicy) SetParentRoles(v []string)

func (*RolePolicy) SetRole

func (x *RolePolicy) SetRole(v string)

func (*RolePolicy) SetRules

func (x *RolePolicy) SetRules(v []*RoleRule)

func (*RolePolicy) SetScope

func (x *RolePolicy) SetScope(v string)

func (*RolePolicy) SetScopePermissions deprecated

func (x *RolePolicy) SetScopePermissions(v ScopePermissions)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*RolePolicy) SetVariables

func (x *RolePolicy) SetVariables(v *Variables)

func (*RolePolicy) SetVersion

func (x *RolePolicy) SetVersion(v string)

func (*RolePolicy) String

func (x *RolePolicy) String() string

func (*RolePolicy) WhichPolicyType

func (x *RolePolicy) WhichPolicyType() case_RolePolicy_PolicyType

type RolePolicy_Role

type RolePolicy_Role struct {
	Role string `protobuf:"bytes,1,opt,name=role,proto3,oneof"`
}

type RolePolicy_builder

type RolePolicy_builder struct {

	// Fields of oneof PolicyType:
	Role *string
	// -- end of PolicyType
	Version     string
	ParentRoles []string
	Scope       string
	Rules       []*RoleRule
	// Deprecated: no-op.
	//
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	ScopePermissions ScopePermissions
	Variables        *Variables
	Constants        *Constants
	// contains filtered or unexported fields
}

func (RolePolicy_builder) Build

func (b0 RolePolicy_builder) Build() *RolePolicy

type RoleRule

type RoleRule struct {
	Resource     string     `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	AllowActions []string   `protobuf:"bytes,2,rep,name=allow_actions,json=allowActions,proto3" json:"allow_actions,omitempty"`
	Condition    *Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
	Name         string     `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Output       *Output    `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleRule) ClearCondition

func (x *RoleRule) ClearCondition()

func (*RoleRule) ClearOutput

func (x *RoleRule) ClearOutput()

func (*RoleRule) GetAllowActions

func (x *RoleRule) GetAllowActions() []string

func (*RoleRule) GetCondition

func (x *RoleRule) GetCondition() *Condition

func (*RoleRule) GetName

func (x *RoleRule) GetName() string

func (*RoleRule) GetOutput

func (x *RoleRule) GetOutput() *Output

func (*RoleRule) GetResource

func (x *RoleRule) GetResource() string

func (*RoleRule) HasCondition

func (x *RoleRule) HasCondition() bool

func (*RoleRule) HasOutput

func (x *RoleRule) HasOutput() bool

func (*RoleRule) ProtoMessage

func (*RoleRule) ProtoMessage()

func (*RoleRule) ProtoReflect

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

func (*RoleRule) Reset

func (x *RoleRule) Reset()

func (*RoleRule) SetAllowActions

func (x *RoleRule) SetAllowActions(v []string)

func (*RoleRule) SetCondition

func (x *RoleRule) SetCondition(v *Condition)

func (*RoleRule) SetName

func (x *RoleRule) SetName(v string)

func (*RoleRule) SetOutput

func (x *RoleRule) SetOutput(v *Output)

func (*RoleRule) SetResource

func (x *RoleRule) SetResource(v string)

func (*RoleRule) String

func (x *RoleRule) String() string

type RoleRule_builder

type RoleRule_builder struct {
	Resource     string
	AllowActions []string
	Condition    *Condition
	Name         string
	Output       *Output
	// contains filtered or unexported fields
}

func (RoleRule_builder) Build

func (b0 RoleRule_builder) Build() *RoleRule

type Schemas

type Schemas struct {
	PrincipalSchema *Schemas_Schema `protobuf:"bytes,1,opt,name=principal_schema,json=principalSchema,proto3" json:"principal_schema,omitempty"`
	ResourceSchema  *Schemas_Schema `protobuf:"bytes,2,opt,name=resource_schema,json=resourceSchema,proto3" json:"resource_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*Schemas) ClearPrincipalSchema

func (x *Schemas) ClearPrincipalSchema()

func (*Schemas) ClearResourceSchema

func (x *Schemas) ClearResourceSchema()

func (*Schemas) GetPrincipalSchema

func (x *Schemas) GetPrincipalSchema() *Schemas_Schema

func (*Schemas) GetResourceSchema

func (x *Schemas) GetResourceSchema() *Schemas_Schema

func (*Schemas) HasPrincipalSchema

func (x *Schemas) HasPrincipalSchema() bool

func (*Schemas) HasResourceSchema

func (x *Schemas) HasResourceSchema() bool

func (*Schemas) ProtoMessage

func (*Schemas) ProtoMessage()

func (*Schemas) ProtoReflect

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

func (*Schemas) Reset

func (x *Schemas) Reset()

func (*Schemas) SetPrincipalSchema

func (x *Schemas) SetPrincipalSchema(v *Schemas_Schema)

func (*Schemas) SetResourceSchema

func (x *Schemas) SetResourceSchema(v *Schemas_Schema)

func (*Schemas) String

func (x *Schemas) String() string

type Schemas_IgnoreWhen

type Schemas_IgnoreWhen struct {
	Actions []string `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*Schemas_IgnoreWhen) GetActions

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

func (*Schemas_IgnoreWhen) ProtoMessage

func (*Schemas_IgnoreWhen) ProtoMessage()

func (*Schemas_IgnoreWhen) ProtoReflect

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

func (*Schemas_IgnoreWhen) Reset

func (x *Schemas_IgnoreWhen) Reset()

func (*Schemas_IgnoreWhen) SetActions

func (x *Schemas_IgnoreWhen) SetActions(v []string)

func (*Schemas_IgnoreWhen) String

func (x *Schemas_IgnoreWhen) String() string

type Schemas_IgnoreWhen_builder

type Schemas_IgnoreWhen_builder struct {
	Actions []string
	// contains filtered or unexported fields
}

func (Schemas_IgnoreWhen_builder) Build

type Schemas_Schema

type Schemas_Schema struct {
	Ref        string              `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	IgnoreWhen *Schemas_IgnoreWhen `protobuf:"bytes,2,opt,name=ignore_when,json=ignoreWhen,proto3" json:"ignore_when,omitempty"`
	// contains filtered or unexported fields
}

func (*Schemas_Schema) ClearIgnoreWhen

func (x *Schemas_Schema) ClearIgnoreWhen()

func (*Schemas_Schema) GetIgnoreWhen

func (x *Schemas_Schema) GetIgnoreWhen() *Schemas_IgnoreWhen

func (*Schemas_Schema) GetRef

func (x *Schemas_Schema) GetRef() string

func (*Schemas_Schema) HasIgnoreWhen

func (x *Schemas_Schema) HasIgnoreWhen() bool

func (*Schemas_Schema) ProtoMessage

func (*Schemas_Schema) ProtoMessage()

func (*Schemas_Schema) ProtoReflect

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

func (*Schemas_Schema) Reset

func (x *Schemas_Schema) Reset()

func (*Schemas_Schema) SetIgnoreWhen

func (x *Schemas_Schema) SetIgnoreWhen(v *Schemas_IgnoreWhen)

func (*Schemas_Schema) SetRef

func (x *Schemas_Schema) SetRef(v string)

func (*Schemas_Schema) String

func (x *Schemas_Schema) String() string

type Schemas_Schema_builder

type Schemas_Schema_builder struct {
	Ref        string
	IgnoreWhen *Schemas_IgnoreWhen
	// contains filtered or unexported fields
}

func (Schemas_Schema_builder) Build

type Schemas_builder

type Schemas_builder struct {
	PrincipalSchema *Schemas_Schema
	ResourceSchema  *Schemas_Schema
	// contains filtered or unexported fields
}

func (Schemas_builder) Build

func (b0 Schemas_builder) Build() *Schemas

type ScopePermissions

type ScopePermissions int32
const (
	ScopePermissions_SCOPE_PERMISSIONS_UNSPECIFIED                         ScopePermissions = 0
	ScopePermissions_SCOPE_PERMISSIONS_OVERRIDE_PARENT                     ScopePermissions = 1
	ScopePermissions_SCOPE_PERMISSIONS_REQUIRE_PARENTAL_CONSENT_FOR_ALLOWS ScopePermissions = 2
)

func (ScopePermissions) Descriptor

func (ScopePermissions) Enum

func (ScopePermissions) Number

func (ScopePermissions) String

func (x ScopePermissions) String() string

func (ScopePermissions) Type

type SourceAttributes

type SourceAttributes struct {
	Attributes map[string]*structpb.Value `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SourceAttributes) GetAttributes

func (x *SourceAttributes) GetAttributes() map[string]*structpb.Value

func (*SourceAttributes) ProtoMessage

func (*SourceAttributes) ProtoMessage()

func (*SourceAttributes) ProtoReflect

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

func (*SourceAttributes) Reset

func (x *SourceAttributes) Reset()

func (*SourceAttributes) SetAttributes

func (x *SourceAttributes) SetAttributes(v map[string]*structpb.Value)

func (*SourceAttributes) String

func (x *SourceAttributes) String() string

type SourceAttributes_builder

type SourceAttributes_builder struct {
	Attributes map[string]*structpb.Value
	// contains filtered or unexported fields
}

func (SourceAttributes_builder) Build

type Test

type Test struct {
	Name            *Test_TestName                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description     string                         `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Skip            bool                           `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
	SkipReason      string                         `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
	Input           *v11.CheckInput                `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
	Expected        map[string]v1.Effect           `` /* 173-byte string literal not displayed */
	Options         *TestOptions                   `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
	ExpectedOutputs map[string]*Test_OutputEntries `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Test) ClearInput

func (x *Test) ClearInput()

func (*Test) ClearName

func (x *Test) ClearName()

func (*Test) ClearOptions

func (x *Test) ClearOptions()

func (*Test) GetDescription

func (x *Test) GetDescription() string

func (*Test) GetExpected

func (x *Test) GetExpected() map[string]v1.Effect

func (*Test) GetExpectedOutputs

func (x *Test) GetExpectedOutputs() map[string]*Test_OutputEntries

func (*Test) GetInput

func (x *Test) GetInput() *v11.CheckInput

func (*Test) GetName

func (x *Test) GetName() *Test_TestName

func (*Test) GetOptions

func (x *Test) GetOptions() *TestOptions

func (*Test) GetSkip

func (x *Test) GetSkip() bool

func (*Test) GetSkipReason

func (x *Test) GetSkipReason() string

func (*Test) HasInput

func (x *Test) HasInput() bool

func (*Test) HasName

func (x *Test) HasName() bool

func (*Test) HasOptions

func (x *Test) HasOptions() bool

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) SetDescription

func (x *Test) SetDescription(v string)

func (*Test) SetExpected

func (x *Test) SetExpected(v map[string]v1.Effect)

func (*Test) SetExpectedOutputs

func (x *Test) SetExpectedOutputs(v map[string]*Test_OutputEntries)

func (*Test) SetInput

func (x *Test) SetInput(v *v11.CheckInput)

func (*Test) SetName

func (x *Test) SetName(v *Test_TestName)

func (*Test) SetOptions

func (x *Test) SetOptions(v *TestOptions)

func (*Test) SetSkip

func (x *Test) SetSkip(v bool)

func (*Test) SetSkipReason

func (x *Test) SetSkipReason(v string)

func (*Test) String

func (x *Test) String() string

type TestFixture

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

func (*TestFixture) ProtoMessage

func (*TestFixture) ProtoMessage()

func (*TestFixture) ProtoReflect

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

func (*TestFixture) Reset

func (x *TestFixture) Reset()

func (*TestFixture) String

func (x *TestFixture) String() string

type TestFixtureGroup

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

func (*TestFixtureGroup) ProtoMessage

func (*TestFixtureGroup) ProtoMessage()

func (*TestFixtureGroup) ProtoReflect

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

func (*TestFixtureGroup) Reset

func (x *TestFixtureGroup) Reset()

func (*TestFixtureGroup) String

func (x *TestFixtureGroup) String() string

type TestFixtureGroup_Principals

type TestFixtureGroup_Principals struct {
	Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
	// contains filtered or unexported fields
}

func (*TestFixtureGroup_Principals) GetPrincipals

func (x *TestFixtureGroup_Principals) GetPrincipals() []string

func (*TestFixtureGroup_Principals) ProtoMessage

func (*TestFixtureGroup_Principals) ProtoMessage()

func (*TestFixtureGroup_Principals) ProtoReflect

func (*TestFixtureGroup_Principals) Reset

func (x *TestFixtureGroup_Principals) Reset()

func (*TestFixtureGroup_Principals) SetPrincipals

func (x *TestFixtureGroup_Principals) SetPrincipals(v []string)

func (*TestFixtureGroup_Principals) String

func (x *TestFixtureGroup_Principals) String() string

type TestFixtureGroup_Principals_builder

type TestFixtureGroup_Principals_builder struct {
	Principals []string
	// contains filtered or unexported fields
}

func (TestFixtureGroup_Principals_builder) Build

type TestFixtureGroup_Resources

type TestFixtureGroup_Resources struct {
	Resources []string `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*TestFixtureGroup_Resources) GetResources

func (x *TestFixtureGroup_Resources) GetResources() []string

func (*TestFixtureGroup_Resources) ProtoMessage

func (*TestFixtureGroup_Resources) ProtoMessage()

func (*TestFixtureGroup_Resources) ProtoReflect

func (*TestFixtureGroup_Resources) Reset

func (x *TestFixtureGroup_Resources) Reset()

func (*TestFixtureGroup_Resources) SetResources

func (x *TestFixtureGroup_Resources) SetResources(v []string)

func (*TestFixtureGroup_Resources) String

func (x *TestFixtureGroup_Resources) String() string

type TestFixtureGroup_Resources_builder

type TestFixtureGroup_Resources_builder struct {
	Resources []string
	// contains filtered or unexported fields
}

func (TestFixtureGroup_Resources_builder) Build

type TestFixtureGroup_builder

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

func (TestFixtureGroup_builder) Build

type TestFixture_AuxData

type TestFixture_AuxData struct {
	AuxData    map[string]*v11.AuxData `` /* 156-byte string literal not displayed */
	JsonSchema string                  `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*TestFixture_AuxData) GetAuxData

func (x *TestFixture_AuxData) GetAuxData() map[string]*v11.AuxData

func (*TestFixture_AuxData) GetJsonSchema

func (x *TestFixture_AuxData) GetJsonSchema() string

func (*TestFixture_AuxData) ProtoMessage

func (*TestFixture_AuxData) ProtoMessage()

func (*TestFixture_AuxData) ProtoReflect

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

func (*TestFixture_AuxData) Reset

func (x *TestFixture_AuxData) Reset()

func (*TestFixture_AuxData) SetAuxData

func (x *TestFixture_AuxData) SetAuxData(v map[string]*v11.AuxData)

func (*TestFixture_AuxData) SetJsonSchema

func (x *TestFixture_AuxData) SetJsonSchema(v string)

func (*TestFixture_AuxData) String

func (x *TestFixture_AuxData) String() string

type TestFixture_AuxData_builder

type TestFixture_AuxData_builder struct {
	AuxData    map[string]*v11.AuxData
	JsonSchema string
	// contains filtered or unexported fields
}

func (TestFixture_AuxData_builder) Build

type TestFixture_Principals

type TestFixture_Principals struct {
	Principals      map[string]*v11.Principal               `` /* 147-byte string literal not displayed */
	JsonSchema      string                                  `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
	PrincipalGroups map[string]*TestFixtureGroup_Principals `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestFixture_Principals) GetJsonSchema

func (x *TestFixture_Principals) GetJsonSchema() string

func (*TestFixture_Principals) GetPrincipalGroups

func (x *TestFixture_Principals) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals

func (*TestFixture_Principals) GetPrincipals

func (x *TestFixture_Principals) GetPrincipals() map[string]*v11.Principal

func (*TestFixture_Principals) ProtoMessage

func (*TestFixture_Principals) ProtoMessage()

func (*TestFixture_Principals) ProtoReflect

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

func (*TestFixture_Principals) Reset

func (x *TestFixture_Principals) Reset()

func (*TestFixture_Principals) SetJsonSchema

func (x *TestFixture_Principals) SetJsonSchema(v string)

func (*TestFixture_Principals) SetPrincipalGroups

func (x *TestFixture_Principals) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)

func (*TestFixture_Principals) SetPrincipals

func (x *TestFixture_Principals) SetPrincipals(v map[string]*v11.Principal)

func (*TestFixture_Principals) String

func (x *TestFixture_Principals) String() string

type TestFixture_Principals_builder

type TestFixture_Principals_builder struct {
	Principals      map[string]*v11.Principal
	JsonSchema      string
	PrincipalGroups map[string]*TestFixtureGroup_Principals
	// contains filtered or unexported fields
}

func (TestFixture_Principals_builder) Build

type TestFixture_Resources

type TestFixture_Resources struct {
	Resources      map[string]*v11.Resource               `` /* 145-byte string literal not displayed */
	JsonSchema     string                                 `protobuf:"bytes,2,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
	ResourceGroups map[string]*TestFixtureGroup_Resources `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestFixture_Resources) GetJsonSchema

func (x *TestFixture_Resources) GetJsonSchema() string

func (*TestFixture_Resources) GetResourceGroups

func (x *TestFixture_Resources) GetResourceGroups() map[string]*TestFixtureGroup_Resources

func (*TestFixture_Resources) GetResources

func (x *TestFixture_Resources) GetResources() map[string]*v11.Resource

func (*TestFixture_Resources) ProtoMessage

func (*TestFixture_Resources) ProtoMessage()

func (*TestFixture_Resources) ProtoReflect

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

func (*TestFixture_Resources) Reset

func (x *TestFixture_Resources) Reset()

func (*TestFixture_Resources) SetJsonSchema

func (x *TestFixture_Resources) SetJsonSchema(v string)

func (*TestFixture_Resources) SetResourceGroups

func (x *TestFixture_Resources) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)

func (*TestFixture_Resources) SetResources

func (x *TestFixture_Resources) SetResources(v map[string]*v11.Resource)

func (*TestFixture_Resources) String

func (x *TestFixture_Resources) String() string

type TestFixture_Resources_builder

type TestFixture_Resources_builder struct {
	Resources      map[string]*v11.Resource
	JsonSchema     string
	ResourceGroups map[string]*TestFixtureGroup_Resources
	// contains filtered or unexported fields
}

func (TestFixture_Resources_builder) Build

type TestFixture_builder

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

func (TestFixture_builder) Build

func (b0 TestFixture_builder) Build() *TestFixture

type TestOptions

type TestOptions struct {
	Now                  *timestamppb.Timestamp     `protobuf:"bytes,1,opt,name=now,proto3" json:"now,omitempty"`
	LenientScopeSearch   bool                       `protobuf:"varint,2,opt,name=lenient_scope_search,json=lenientScopeSearch,proto3" json:"lenient_scope_search,omitempty"`
	Globals              map[string]*structpb.Value `` /* 141-byte string literal not displayed */
	DefaultPolicyVersion string                     `protobuf:"bytes,4,opt,name=default_policy_version,json=defaultPolicyVersion,proto3" json:"default_policy_version,omitempty"`
	DefaultScope         string                     `protobuf:"bytes,5,opt,name=default_scope,json=defaultScope,proto3" json:"default_scope,omitempty"`
	StrictEvaluation     bool                       `protobuf:"varint,6,opt,name=strict_evaluation,json=strictEvaluation,proto3" json:"strict_evaluation,omitempty"`
	// contains filtered or unexported fields
}

func (*TestOptions) ClearNow

func (x *TestOptions) ClearNow()

func (*TestOptions) GetDefaultPolicyVersion

func (x *TestOptions) GetDefaultPolicyVersion() string

func (*TestOptions) GetDefaultScope

func (x *TestOptions) GetDefaultScope() string

func (*TestOptions) GetGlobals

func (x *TestOptions) GetGlobals() map[string]*structpb.Value

func (*TestOptions) GetLenientScopeSearch

func (x *TestOptions) GetLenientScopeSearch() bool

func (*TestOptions) GetNow

func (x *TestOptions) GetNow() *timestamppb.Timestamp

func (*TestOptions) GetStrictEvaluation

func (x *TestOptions) GetStrictEvaluation() bool

func (*TestOptions) HasNow

func (x *TestOptions) HasNow() bool

func (*TestOptions) ProtoMessage

func (*TestOptions) ProtoMessage()

func (*TestOptions) ProtoReflect

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

func (*TestOptions) Reset

func (x *TestOptions) Reset()

func (*TestOptions) SetDefaultPolicyVersion

func (x *TestOptions) SetDefaultPolicyVersion(v string)

func (*TestOptions) SetDefaultScope

func (x *TestOptions) SetDefaultScope(v string)

func (*TestOptions) SetGlobals

func (x *TestOptions) SetGlobals(v map[string]*structpb.Value)

func (*TestOptions) SetLenientScopeSearch

func (x *TestOptions) SetLenientScopeSearch(v bool)

func (*TestOptions) SetNow

func (x *TestOptions) SetNow(v *timestamppb.Timestamp)

func (*TestOptions) SetStrictEvaluation

func (x *TestOptions) SetStrictEvaluation(v bool)

func (*TestOptions) String

func (x *TestOptions) String() string

type TestOptions_builder

type TestOptions_builder struct {
	Now                  *timestamppb.Timestamp
	LenientScopeSearch   bool
	Globals              map[string]*structpb.Value
	DefaultPolicyVersion string
	DefaultScope         string
	StrictEvaluation     bool
	// contains filtered or unexported fields
}

func (TestOptions_builder) Build

func (b0 TestOptions_builder) Build() *TestOptions

type TestResults

type TestResults struct {
	Suites  []*TestResults_Suite `protobuf:"bytes,1,rep,name=suites,proto3" json:"suites,omitempty"`
	Summary *TestResults_Summary `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults) ClearSummary

func (x *TestResults) ClearSummary()

func (*TestResults) GetSuites

func (x *TestResults) GetSuites() []*TestResults_Suite

func (*TestResults) GetSummary

func (x *TestResults) GetSummary() *TestResults_Summary

func (*TestResults) HasSummary

func (x *TestResults) HasSummary() bool

func (*TestResults) ProtoMessage

func (*TestResults) ProtoMessage()

func (*TestResults) ProtoReflect

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

func (*TestResults) Reset

func (x *TestResults) Reset()

func (*TestResults) SetSuites

func (x *TestResults) SetSuites(v []*TestResults_Suite)

func (*TestResults) SetSummary

func (x *TestResults) SetSummary(v *TestResults_Summary)

func (*TestResults) String

func (x *TestResults) String() string

type TestResults_Action

type TestResults_Action struct {
	Name    string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Details *TestResults_Details `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Action) ClearDetails

func (x *TestResults_Action) ClearDetails()

func (*TestResults_Action) GetDetails

func (x *TestResults_Action) GetDetails() *TestResults_Details

func (*TestResults_Action) GetName

func (x *TestResults_Action) GetName() string

func (*TestResults_Action) HasDetails

func (x *TestResults_Action) HasDetails() bool

func (*TestResults_Action) ProtoMessage

func (*TestResults_Action) ProtoMessage()

func (*TestResults_Action) ProtoReflect

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

func (*TestResults_Action) Reset

func (x *TestResults_Action) Reset()

func (*TestResults_Action) SetDetails

func (x *TestResults_Action) SetDetails(v *TestResults_Details)

func (*TestResults_Action) SetName

func (x *TestResults_Action) SetName(v string)

func (*TestResults_Action) String

func (x *TestResults_Action) String() string

type TestResults_Action_builder

type TestResults_Action_builder struct {
	Name    string
	Details *TestResults_Details
	// contains filtered or unexported fields
}

func (TestResults_Action_builder) Build

type TestResults_Details

type TestResults_Details struct {
	Result TestResults_Result `protobuf:"varint,1,opt,name=result,proto3,enum=cerbos.policy.v1.TestResults_Result" json:"result,omitempty"`
	// Types that are valid to be assigned to Outcome:
	//
	//	*TestResults_Details_Failure
	//	*TestResults_Details_Error
	//	*TestResults_Details_Success
	//	*TestResults_Details_SkipReason
	Outcome isTestResults_Details_Outcome `protobuf_oneof:"outcome"`
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	EngineTrace      []*v11.Trace    `protobuf:"bytes,4,rep,name=engine_trace,json=engineTrace,proto3" json:"engine_trace,omitempty"`
	EngineTraceBatch *v11.TraceBatch `protobuf:"bytes,7,opt,name=engine_trace_batch,json=engineTraceBatch,proto3" json:"engine_trace_batch,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Details) ClearEngineTraceBatch

func (x *TestResults_Details) ClearEngineTraceBatch()

func (*TestResults_Details) ClearError

func (x *TestResults_Details) ClearError()

func (*TestResults_Details) ClearFailure

func (x *TestResults_Details) ClearFailure()

func (*TestResults_Details) ClearOutcome

func (x *TestResults_Details) ClearOutcome()

func (*TestResults_Details) ClearSkipReason

func (x *TestResults_Details) ClearSkipReason()

func (*TestResults_Details) ClearSuccess

func (x *TestResults_Details) ClearSuccess()

func (*TestResults_Details) GetEngineTrace deprecated

func (x *TestResults_Details) GetEngineTrace() []*v11.Trace

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*TestResults_Details) GetEngineTraceBatch

func (x *TestResults_Details) GetEngineTraceBatch() *v11.TraceBatch

func (*TestResults_Details) GetError

func (x *TestResults_Details) GetError() string

func (*TestResults_Details) GetFailure

func (x *TestResults_Details) GetFailure() *TestResults_Failure

func (*TestResults_Details) GetOutcome

func (x *TestResults_Details) GetOutcome() isTestResults_Details_Outcome

func (*TestResults_Details) GetResult

func (x *TestResults_Details) GetResult() TestResults_Result

func (*TestResults_Details) GetSkipReason

func (x *TestResults_Details) GetSkipReason() string

func (*TestResults_Details) GetSuccess

func (x *TestResults_Details) GetSuccess() *TestResults_Success

func (*TestResults_Details) HasEngineTraceBatch

func (x *TestResults_Details) HasEngineTraceBatch() bool

func (*TestResults_Details) HasError

func (x *TestResults_Details) HasError() bool

func (*TestResults_Details) HasFailure

func (x *TestResults_Details) HasFailure() bool

func (*TestResults_Details) HasOutcome

func (x *TestResults_Details) HasOutcome() bool

func (*TestResults_Details) HasSkipReason

func (x *TestResults_Details) HasSkipReason() bool

func (*TestResults_Details) HasSuccess

func (x *TestResults_Details) HasSuccess() bool

func (*TestResults_Details) ProtoMessage

func (*TestResults_Details) ProtoMessage()

func (*TestResults_Details) ProtoReflect

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

func (*TestResults_Details) Reset

func (x *TestResults_Details) Reset()

func (*TestResults_Details) SetEngineTrace deprecated

func (x *TestResults_Details) SetEngineTrace(v []*v11.Trace)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*TestResults_Details) SetEngineTraceBatch

func (x *TestResults_Details) SetEngineTraceBatch(v *v11.TraceBatch)

func (*TestResults_Details) SetError

func (x *TestResults_Details) SetError(v string)

func (*TestResults_Details) SetFailure

func (x *TestResults_Details) SetFailure(v *TestResults_Failure)

func (*TestResults_Details) SetResult

func (x *TestResults_Details) SetResult(v TestResults_Result)

func (*TestResults_Details) SetSkipReason

func (x *TestResults_Details) SetSkipReason(v string)

func (*TestResults_Details) SetSuccess

func (x *TestResults_Details) SetSuccess(v *TestResults_Success)

func (*TestResults_Details) String

func (x *TestResults_Details) String() string

func (*TestResults_Details) WhichOutcome

func (x *TestResults_Details) WhichOutcome() case_TestResults_Details_Outcome

type TestResults_Details_Error

type TestResults_Details_Error struct {
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type TestResults_Details_Failure

type TestResults_Details_Failure struct {
	Failure *TestResults_Failure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"`
}

type TestResults_Details_SkipReason

type TestResults_Details_SkipReason struct {
	SkipReason string `protobuf:"bytes,6,opt,name=skip_reason,json=skipReason,proto3,oneof"`
}

type TestResults_Details_Success

type TestResults_Details_Success struct {
	Success *TestResults_Success `protobuf:"bytes,5,opt,name=success,proto3,oneof"`
}

type TestResults_Details_builder

type TestResults_Details_builder struct {
	Result TestResults_Result
	// Fields of oneof Outcome:
	Failure    *TestResults_Failure
	Error      *string
	Success    *TestResults_Success
	SkipReason *string
	// -- end of Outcome
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	EngineTrace      []*v11.Trace
	EngineTraceBatch *v11.TraceBatch
	// contains filtered or unexported fields
}

func (TestResults_Details_builder) Build

type TestResults_Failure

type TestResults_Failure struct {
	Expected v1.Effect                    `protobuf:"varint,1,opt,name=expected,proto3,enum=cerbos.effect.v1.Effect" json:"expected,omitempty"`
	Actual   v1.Effect                    `protobuf:"varint,2,opt,name=actual,proto3,enum=cerbos.effect.v1.Effect" json:"actual,omitempty"`
	Outputs  []*TestResults_OutputFailure `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Failure) GetActual

func (x *TestResults_Failure) GetActual() v1.Effect

func (*TestResults_Failure) GetExpected

func (x *TestResults_Failure) GetExpected() v1.Effect

func (*TestResults_Failure) GetOutputs

func (*TestResults_Failure) ProtoMessage

func (*TestResults_Failure) ProtoMessage()

func (*TestResults_Failure) ProtoReflect

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

func (*TestResults_Failure) Reset

func (x *TestResults_Failure) Reset()

func (*TestResults_Failure) SetActual

func (x *TestResults_Failure) SetActual(v v1.Effect)

func (*TestResults_Failure) SetExpected

func (x *TestResults_Failure) SetExpected(v v1.Effect)

func (*TestResults_Failure) SetOutputs

func (x *TestResults_Failure) SetOutputs(v []*TestResults_OutputFailure)

func (*TestResults_Failure) String

func (x *TestResults_Failure) String() string

type TestResults_Failure_builder

type TestResults_Failure_builder struct {
	Expected v1.Effect
	Actual   v1.Effect
	Outputs  []*TestResults_OutputFailure
	// contains filtered or unexported fields
}

func (TestResults_Failure_builder) Build

type TestResults_OutputFailure

type TestResults_OutputFailure struct {
	Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	// Types that are valid to be assigned to Outcome:
	//
	//	*TestResults_OutputFailure_Mismatched
	//	*TestResults_OutputFailure_Missing
	//	*TestResults_OutputFailure_Errored
	Outcome isTestResults_OutputFailure_Outcome `protobuf_oneof:"outcome"`
	// contains filtered or unexported fields
}

func (*TestResults_OutputFailure) ClearErrored

func (x *TestResults_OutputFailure) ClearErrored()

func (*TestResults_OutputFailure) ClearMismatched

func (x *TestResults_OutputFailure) ClearMismatched()

func (*TestResults_OutputFailure) ClearMissing

func (x *TestResults_OutputFailure) ClearMissing()

func (*TestResults_OutputFailure) ClearOutcome

func (x *TestResults_OutputFailure) ClearOutcome()

func (*TestResults_OutputFailure) GetErrored

func (*TestResults_OutputFailure) GetMismatched

func (*TestResults_OutputFailure) GetMissing

func (*TestResults_OutputFailure) GetOutcome

func (x *TestResults_OutputFailure) GetOutcome() isTestResults_OutputFailure_Outcome

func (*TestResults_OutputFailure) GetSrc

func (x *TestResults_OutputFailure) GetSrc() string

func (*TestResults_OutputFailure) HasErrored

func (x *TestResults_OutputFailure) HasErrored() bool

func (*TestResults_OutputFailure) HasMismatched

func (x *TestResults_OutputFailure) HasMismatched() bool

func (*TestResults_OutputFailure) HasMissing

func (x *TestResults_OutputFailure) HasMissing() bool

func (*TestResults_OutputFailure) HasOutcome

func (x *TestResults_OutputFailure) HasOutcome() bool

func (*TestResults_OutputFailure) ProtoMessage

func (*TestResults_OutputFailure) ProtoMessage()

func (*TestResults_OutputFailure) ProtoReflect

func (*TestResults_OutputFailure) Reset

func (x *TestResults_OutputFailure) Reset()

func (*TestResults_OutputFailure) SetErrored

func (*TestResults_OutputFailure) SetMismatched

func (*TestResults_OutputFailure) SetMissing

func (*TestResults_OutputFailure) SetSrc

func (x *TestResults_OutputFailure) SetSrc(v string)

func (*TestResults_OutputFailure) String

func (x *TestResults_OutputFailure) String() string

func (*TestResults_OutputFailure) WhichOutcome

func (x *TestResults_OutputFailure) WhichOutcome() case_TestResults_OutputFailure_Outcome

type TestResults_OutputFailure_Errored

type TestResults_OutputFailure_Errored struct {
	Errored *TestResults_OutputFailure_EvaluationError `protobuf:"bytes,4,opt,name=errored,proto3,oneof"`
}

type TestResults_OutputFailure_EvaluationError

type TestResults_OutputFailure_EvaluationError struct {
	Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
	Error    string          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_OutputFailure_EvaluationError) ClearExpected

func (x *TestResults_OutputFailure_EvaluationError) ClearExpected()

func (*TestResults_OutputFailure_EvaluationError) GetError

func (*TestResults_OutputFailure_EvaluationError) GetExpected

func (*TestResults_OutputFailure_EvaluationError) HasExpected

func (*TestResults_OutputFailure_EvaluationError) ProtoMessage

func (*TestResults_OutputFailure_EvaluationError) ProtoReflect

func (*TestResults_OutputFailure_EvaluationError) Reset

func (*TestResults_OutputFailure_EvaluationError) SetError

func (*TestResults_OutputFailure_EvaluationError) SetExpected

func (*TestResults_OutputFailure_EvaluationError) String

type TestResults_OutputFailure_EvaluationError_builder

type TestResults_OutputFailure_EvaluationError_builder struct {
	Expected *structpb.Value
	Error    string
	// contains filtered or unexported fields
}

func (TestResults_OutputFailure_EvaluationError_builder) Build

type TestResults_OutputFailure_Mismatched

type TestResults_OutputFailure_Mismatched struct {
	Mismatched *TestResults_OutputFailure_MismatchedValue `protobuf:"bytes,2,opt,name=mismatched,proto3,oneof"`
}

type TestResults_OutputFailure_MismatchedValue

type TestResults_OutputFailure_MismatchedValue struct {
	Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
	Actual   *structpb.Value `protobuf:"bytes,2,opt,name=actual,proto3" json:"actual,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_OutputFailure_MismatchedValue) ClearActual

func (*TestResults_OutputFailure_MismatchedValue) ClearExpected

func (x *TestResults_OutputFailure_MismatchedValue) ClearExpected()

func (*TestResults_OutputFailure_MismatchedValue) GetActual

func (*TestResults_OutputFailure_MismatchedValue) GetExpected

func (*TestResults_OutputFailure_MismatchedValue) HasActual

func (*TestResults_OutputFailure_MismatchedValue) HasExpected

func (*TestResults_OutputFailure_MismatchedValue) ProtoMessage

func (*TestResults_OutputFailure_MismatchedValue) ProtoReflect

func (*TestResults_OutputFailure_MismatchedValue) Reset

func (*TestResults_OutputFailure_MismatchedValue) SetActual

func (*TestResults_OutputFailure_MismatchedValue) SetExpected

func (*TestResults_OutputFailure_MismatchedValue) String

type TestResults_OutputFailure_MismatchedValue_builder

type TestResults_OutputFailure_MismatchedValue_builder struct {
	Expected *structpb.Value
	Actual   *structpb.Value
	// contains filtered or unexported fields
}

func (TestResults_OutputFailure_MismatchedValue_builder) Build

type TestResults_OutputFailure_Missing

type TestResults_OutputFailure_Missing struct {
	Missing *TestResults_OutputFailure_MissingValue `protobuf:"bytes,3,opt,name=missing,proto3,oneof"`
}

type TestResults_OutputFailure_MissingValue

type TestResults_OutputFailure_MissingValue struct {
	Expected *structpb.Value `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_OutputFailure_MissingValue) ClearExpected

func (x *TestResults_OutputFailure_MissingValue) ClearExpected()

func (*TestResults_OutputFailure_MissingValue) GetExpected

func (*TestResults_OutputFailure_MissingValue) HasExpected

func (*TestResults_OutputFailure_MissingValue) ProtoMessage

func (*TestResults_OutputFailure_MissingValue) ProtoReflect

func (*TestResults_OutputFailure_MissingValue) Reset

func (*TestResults_OutputFailure_MissingValue) SetExpected

func (*TestResults_OutputFailure_MissingValue) String

type TestResults_OutputFailure_MissingValue_builder

type TestResults_OutputFailure_MissingValue_builder struct {
	Expected *structpb.Value
	// contains filtered or unexported fields
}

func (TestResults_OutputFailure_MissingValue_builder) Build

type TestResults_OutputFailure_builder

type TestResults_OutputFailure_builder struct {
	Src string
	// Fields of oneof Outcome:
	Mismatched *TestResults_OutputFailure_MismatchedValue
	Missing    *TestResults_OutputFailure_MissingValue
	Errored    *TestResults_OutputFailure_EvaluationError
	// contains filtered or unexported fields
}

func (TestResults_OutputFailure_builder) Build

type TestResults_Principal

type TestResults_Principal struct {
	Name      string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Resources []*TestResults_Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Principal) GetName

func (x *TestResults_Principal) GetName() string

func (*TestResults_Principal) GetResources

func (x *TestResults_Principal) GetResources() []*TestResults_Resource

func (*TestResults_Principal) ProtoMessage

func (*TestResults_Principal) ProtoMessage()

func (*TestResults_Principal) ProtoReflect

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

func (*TestResults_Principal) Reset

func (x *TestResults_Principal) Reset()

func (*TestResults_Principal) SetName

func (x *TestResults_Principal) SetName(v string)

func (*TestResults_Principal) SetResources

func (x *TestResults_Principal) SetResources(v []*TestResults_Resource)

func (*TestResults_Principal) String

func (x *TestResults_Principal) String() string

type TestResults_Principal_builder

type TestResults_Principal_builder struct {
	Name      string
	Resources []*TestResults_Resource
	// contains filtered or unexported fields
}

func (TestResults_Principal_builder) Build

type TestResults_Resource

type TestResults_Resource struct {
	Name    string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Actions []*TestResults_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Resource) GetActions

func (x *TestResults_Resource) GetActions() []*TestResults_Action

func (*TestResults_Resource) GetName

func (x *TestResults_Resource) GetName() string

func (*TestResults_Resource) ProtoMessage

func (*TestResults_Resource) ProtoMessage()

func (*TestResults_Resource) ProtoReflect

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

func (*TestResults_Resource) Reset

func (x *TestResults_Resource) Reset()

func (*TestResults_Resource) SetActions

func (x *TestResults_Resource) SetActions(v []*TestResults_Action)

func (*TestResults_Resource) SetName

func (x *TestResults_Resource) SetName(v string)

func (*TestResults_Resource) String

func (x *TestResults_Resource) String() string

type TestResults_Resource_builder

type TestResults_Resource_builder struct {
	Name    string
	Actions []*TestResults_Action
	// contains filtered or unexported fields
}

func (TestResults_Resource_builder) Build

type TestResults_Result

type TestResults_Result int32
const (
	TestResults_RESULT_UNSPECIFIED TestResults_Result = 0
	TestResults_RESULT_SKIPPED     TestResults_Result = 1
	TestResults_RESULT_PASSED      TestResults_Result = 2
	TestResults_RESULT_FAILED      TestResults_Result = 3
	TestResults_RESULT_ERRORED     TestResults_Result = 4
)

func (TestResults_Result) Descriptor

func (TestResults_Result) Enum

func (TestResults_Result) Number

func (TestResults_Result) String

func (x TestResults_Result) String() string

func (TestResults_Result) Type

type TestResults_Success

type TestResults_Success struct {
	Effect  v1.Effect          `protobuf:"varint,1,opt,name=effect,proto3,enum=cerbos.effect.v1.Effect" json:"effect,omitempty"`
	Outputs []*v11.OutputEntry `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Success) GetEffect

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

func (*TestResults_Success) GetOutputs

func (x *TestResults_Success) GetOutputs() []*v11.OutputEntry

func (*TestResults_Success) ProtoMessage

func (*TestResults_Success) ProtoMessage()

func (*TestResults_Success) ProtoReflect

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

func (*TestResults_Success) Reset

func (x *TestResults_Success) Reset()

func (*TestResults_Success) SetEffect

func (x *TestResults_Success) SetEffect(v v1.Effect)

func (*TestResults_Success) SetOutputs

func (x *TestResults_Success) SetOutputs(v []*v11.OutputEntry)

func (*TestResults_Success) String

func (x *TestResults_Success) String() string

type TestResults_Success_builder

type TestResults_Success_builder struct {
	Effect  v1.Effect
	Outputs []*v11.OutputEntry
	// contains filtered or unexported fields
}

func (TestResults_Success_builder) Build

type TestResults_Suite

type TestResults_Suite struct {
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Principals  []*TestResults_Principal `protobuf:"bytes,3,rep,name=principals,proto3" json:"principals,omitempty"`
	Summary     *TestResults_Summary     `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
	Error       string                   `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	TestCases   []*TestResults_TestCase  `protobuf:"bytes,6,rep,name=test_cases,json=testCases,proto3" json:"test_cases,omitempty"`
	Description string                   `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	SkipReason  string                   `protobuf:"bytes,8,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Suite) ClearSummary

func (x *TestResults_Suite) ClearSummary()

func (*TestResults_Suite) GetDescription

func (x *TestResults_Suite) GetDescription() string

func (*TestResults_Suite) GetError

func (x *TestResults_Suite) GetError() string

func (*TestResults_Suite) GetFile

func (x *TestResults_Suite) GetFile() string

func (*TestResults_Suite) GetName

func (x *TestResults_Suite) GetName() string

func (*TestResults_Suite) GetPrincipals deprecated

func (x *TestResults_Suite) GetPrincipals() []*TestResults_Principal

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*TestResults_Suite) GetSkipReason

func (x *TestResults_Suite) GetSkipReason() string

func (*TestResults_Suite) GetSummary

func (x *TestResults_Suite) GetSummary() *TestResults_Summary

func (*TestResults_Suite) GetTestCases

func (x *TestResults_Suite) GetTestCases() []*TestResults_TestCase

func (*TestResults_Suite) HasSummary

func (x *TestResults_Suite) HasSummary() bool

func (*TestResults_Suite) ProtoMessage

func (*TestResults_Suite) ProtoMessage()

func (*TestResults_Suite) ProtoReflect

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

func (*TestResults_Suite) Reset

func (x *TestResults_Suite) Reset()

func (*TestResults_Suite) SetDescription

func (x *TestResults_Suite) SetDescription(v string)

func (*TestResults_Suite) SetError

func (x *TestResults_Suite) SetError(v string)

func (*TestResults_Suite) SetFile

func (x *TestResults_Suite) SetFile(v string)

func (*TestResults_Suite) SetName

func (x *TestResults_Suite) SetName(v string)

func (*TestResults_Suite) SetPrincipals deprecated

func (x *TestResults_Suite) SetPrincipals(v []*TestResults_Principal)

Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.

func (*TestResults_Suite) SetSkipReason

func (x *TestResults_Suite) SetSkipReason(v string)

func (*TestResults_Suite) SetSummary

func (x *TestResults_Suite) SetSummary(v *TestResults_Summary)

func (*TestResults_Suite) SetTestCases

func (x *TestResults_Suite) SetTestCases(v []*TestResults_TestCase)

func (*TestResults_Suite) String

func (x *TestResults_Suite) String() string

type TestResults_Suite_builder

type TestResults_Suite_builder struct {
	File string
	Name string
	// Deprecated: Marked as deprecated in cerbos/policy/v1/policy.proto.
	Principals  []*TestResults_Principal
	Summary     *TestResults_Summary
	Error       string
	TestCases   []*TestResults_TestCase
	Description string
	SkipReason  string
	// contains filtered or unexported fields
}

func (TestResults_Suite_builder) Build

type TestResults_Summary

type TestResults_Summary struct {
	OverallResult TestResults_Result   `` /* 142-byte string literal not displayed */
	TestsCount    uint32               `protobuf:"varint,2,opt,name=tests_count,json=testsCount,proto3" json:"tests_count,omitempty"`
	ResultCounts  []*TestResults_Tally `protobuf:"bytes,3,rep,name=result_counts,json=resultCounts,proto3" json:"result_counts,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Summary) GetOverallResult

func (x *TestResults_Summary) GetOverallResult() TestResults_Result

func (*TestResults_Summary) GetResultCounts

func (x *TestResults_Summary) GetResultCounts() []*TestResults_Tally

func (*TestResults_Summary) GetTestsCount

func (x *TestResults_Summary) GetTestsCount() uint32

func (*TestResults_Summary) ProtoMessage

func (*TestResults_Summary) ProtoMessage()

func (*TestResults_Summary) ProtoReflect

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

func (*TestResults_Summary) Reset

func (x *TestResults_Summary) Reset()

func (*TestResults_Summary) SetOverallResult

func (x *TestResults_Summary) SetOverallResult(v TestResults_Result)

func (*TestResults_Summary) SetResultCounts

func (x *TestResults_Summary) SetResultCounts(v []*TestResults_Tally)

func (*TestResults_Summary) SetTestsCount

func (x *TestResults_Summary) SetTestsCount(v uint32)

func (*TestResults_Summary) String

func (x *TestResults_Summary) String() string

type TestResults_Summary_builder

type TestResults_Summary_builder struct {
	OverallResult TestResults_Result
	TestsCount    uint32
	ResultCounts  []*TestResults_Tally
	// contains filtered or unexported fields
}

func (TestResults_Summary_builder) Build

type TestResults_Tally

type TestResults_Tally struct {
	Result TestResults_Result `protobuf:"varint,1,opt,name=result,proto3,enum=cerbos.policy.v1.TestResults_Result" json:"result,omitempty"`
	Count  uint32             `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_Tally) GetCount

func (x *TestResults_Tally) GetCount() uint32

func (*TestResults_Tally) GetResult

func (x *TestResults_Tally) GetResult() TestResults_Result

func (*TestResults_Tally) ProtoMessage

func (*TestResults_Tally) ProtoMessage()

func (*TestResults_Tally) ProtoReflect

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

func (*TestResults_Tally) Reset

func (x *TestResults_Tally) Reset()

func (*TestResults_Tally) SetCount

func (x *TestResults_Tally) SetCount(v uint32)

func (*TestResults_Tally) SetResult

func (x *TestResults_Tally) SetResult(v TestResults_Result)

func (*TestResults_Tally) String

func (x *TestResults_Tally) String() string

type TestResults_Tally_builder

type TestResults_Tally_builder struct {
	Result TestResults_Result
	Count  uint32
	// contains filtered or unexported fields
}

func (TestResults_Tally_builder) Build

type TestResults_TestCase

type TestResults_TestCase struct {
	Name       string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Principals []*TestResults_Principal `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResults_TestCase) GetName

func (x *TestResults_TestCase) GetName() string

func (*TestResults_TestCase) GetPrincipals

func (x *TestResults_TestCase) GetPrincipals() []*TestResults_Principal

func (*TestResults_TestCase) ProtoMessage

func (*TestResults_TestCase) ProtoMessage()

func (*TestResults_TestCase) ProtoReflect

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

func (*TestResults_TestCase) Reset

func (x *TestResults_TestCase) Reset()

func (*TestResults_TestCase) SetName

func (x *TestResults_TestCase) SetName(v string)

func (*TestResults_TestCase) SetPrincipals

func (x *TestResults_TestCase) SetPrincipals(v []*TestResults_Principal)

func (*TestResults_TestCase) String

func (x *TestResults_TestCase) String() string

type TestResults_TestCase_builder

type TestResults_TestCase_builder struct {
	Name       string
	Principals []*TestResults_Principal
	// contains filtered or unexported fields
}

func (TestResults_TestCase_builder) Build

type TestResults_builder

type TestResults_builder struct {
	Suites  []*TestResults_Suite
	Summary *TestResults_Summary
	// contains filtered or unexported fields
}

func (TestResults_builder) Build

func (b0 TestResults_builder) Build() *TestResults

type TestSuite

type TestSuite struct {
	Name            string                                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description     string                                  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Skip            bool                                    `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
	SkipReason      string                                  `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
	Tests           []*TestTable                            `protobuf:"bytes,5,rep,name=tests,proto3" json:"tests,omitempty"`
	Principals      map[string]*v11.Principal               `` /* 147-byte string literal not displayed */
	Resources       map[string]*v11.Resource                `` /* 145-byte string literal not displayed */
	AuxData         map[string]*v11.AuxData                 `` /* 156-byte string literal not displayed */
	Options         *TestOptions                            `protobuf:"bytes,9,opt,name=options,proto3" json:"options,omitempty"`
	JsonSchema      string                                  `protobuf:"bytes,10,opt,name=json_schema,json=$schema,proto3" json:"json_schema,omitempty"`
	PrincipalGroups map[string]*TestFixtureGroup_Principals `` /* 181-byte string literal not displayed */
	ResourceGroups  map[string]*TestFixtureGroup_Resources  `` /* 178-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestSuite) ClearOptions

func (x *TestSuite) ClearOptions()

func (*TestSuite) GetAuxData

func (x *TestSuite) GetAuxData() map[string]*v11.AuxData

func (*TestSuite) GetDescription

func (x *TestSuite) GetDescription() string

func (*TestSuite) GetJsonSchema

func (x *TestSuite) GetJsonSchema() string

func (*TestSuite) GetName

func (x *TestSuite) GetName() string

func (*TestSuite) GetOptions

func (x *TestSuite) GetOptions() *TestOptions

func (*TestSuite) GetPrincipalGroups

func (x *TestSuite) GetPrincipalGroups() map[string]*TestFixtureGroup_Principals

func (*TestSuite) GetPrincipals

func (x *TestSuite) GetPrincipals() map[string]*v11.Principal

func (*TestSuite) GetResourceGroups

func (x *TestSuite) GetResourceGroups() map[string]*TestFixtureGroup_Resources

func (*TestSuite) GetResources

func (x *TestSuite) GetResources() map[string]*v11.Resource

func (*TestSuite) GetSkip

func (x *TestSuite) GetSkip() bool

func (*TestSuite) GetSkipReason

func (x *TestSuite) GetSkipReason() string

func (*TestSuite) GetTests

func (x *TestSuite) GetTests() []*TestTable

func (*TestSuite) HasOptions

func (x *TestSuite) HasOptions() bool

func (*TestSuite) ProtoMessage

func (*TestSuite) ProtoMessage()

func (*TestSuite) ProtoReflect

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

func (*TestSuite) Reset

func (x *TestSuite) Reset()

func (*TestSuite) SetAuxData

func (x *TestSuite) SetAuxData(v map[string]*v11.AuxData)

func (*TestSuite) SetDescription

func (x *TestSuite) SetDescription(v string)

func (*TestSuite) SetJsonSchema

func (x *TestSuite) SetJsonSchema(v string)

func (*TestSuite) SetName

func (x *TestSuite) SetName(v string)

func (*TestSuite) SetOptions

func (x *TestSuite) SetOptions(v *TestOptions)

func (*TestSuite) SetPrincipalGroups

func (x *TestSuite) SetPrincipalGroups(v map[string]*TestFixtureGroup_Principals)

func (*TestSuite) SetPrincipals

func (x *TestSuite) SetPrincipals(v map[string]*v11.Principal)

func (*TestSuite) SetResourceGroups

func (x *TestSuite) SetResourceGroups(v map[string]*TestFixtureGroup_Resources)

func (*TestSuite) SetResources

func (x *TestSuite) SetResources(v map[string]*v11.Resource)

func (*TestSuite) SetSkip

func (x *TestSuite) SetSkip(v bool)

func (*TestSuite) SetSkipReason

func (x *TestSuite) SetSkipReason(v string)

func (*TestSuite) SetTests

func (x *TestSuite) SetTests(v []*TestTable)

func (*TestSuite) String

func (x *TestSuite) String() string

type TestSuite_builder

type TestSuite_builder struct {
	Name            string
	Description     string
	Skip            bool
	SkipReason      string
	Tests           []*TestTable
	Principals      map[string]*v11.Principal
	Resources       map[string]*v11.Resource
	AuxData         map[string]*v11.AuxData
	Options         *TestOptions
	JsonSchema      string
	PrincipalGroups map[string]*TestFixtureGroup_Principals
	ResourceGroups  map[string]*TestFixtureGroup_Resources
	// contains filtered or unexported fields
}

func (TestSuite_builder) Build

func (b0 TestSuite_builder) Build() *TestSuite

type TestTable

type TestTable struct {
	Name        string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string                   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Skip        bool                     `protobuf:"varint,3,opt,name=skip,proto3" json:"skip,omitempty"`
	SkipReason  string                   `protobuf:"bytes,4,opt,name=skip_reason,json=skipReason,proto3" json:"skip_reason,omitempty"`
	Input       *TestTable_Input         `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
	Expected    []*TestTable_Expectation `protobuf:"bytes,6,rep,name=expected,proto3" json:"expected,omitempty"`
	Options     *TestOptions             `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTable) ClearInput

func (x *TestTable) ClearInput()

func (*TestTable) ClearOptions

func (x *TestTable) ClearOptions()

func (*TestTable) GetDescription

func (x *TestTable) GetDescription() string

func (*TestTable) GetExpected

func (x *TestTable) GetExpected() []*TestTable_Expectation

func (*TestTable) GetInput

func (x *TestTable) GetInput() *TestTable_Input

func (*TestTable) GetName

func (x *TestTable) GetName() string

func (*TestTable) GetOptions

func (x *TestTable) GetOptions() *TestOptions

func (*TestTable) GetSkip

func (x *TestTable) GetSkip() bool

func (*TestTable) GetSkipReason

func (x *TestTable) GetSkipReason() string

func (*TestTable) HasInput

func (x *TestTable) HasInput() bool

func (*TestTable) HasOptions

func (x *TestTable) HasOptions() bool

func (*TestTable) ProtoMessage

func (*TestTable) ProtoMessage()

func (*TestTable) ProtoReflect

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

func (*TestTable) Reset

func (x *TestTable) Reset()

func (*TestTable) SetDescription

func (x *TestTable) SetDescription(v string)

func (*TestTable) SetExpected

func (x *TestTable) SetExpected(v []*TestTable_Expectation)

func (*TestTable) SetInput

func (x *TestTable) SetInput(v *TestTable_Input)

func (*TestTable) SetName

func (x *TestTable) SetName(v string)

func (*TestTable) SetOptions

func (x *TestTable) SetOptions(v *TestOptions)

func (*TestTable) SetSkip

func (x *TestTable) SetSkip(v bool)

func (*TestTable) SetSkipReason

func (x *TestTable) SetSkipReason(v string)

func (*TestTable) String

func (x *TestTable) String() string

type TestTable_Expectation

type TestTable_Expectation struct {
	Principal       string                          `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	Resource        string                          `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	Actions         map[string]v1.Effect            `` /* 171-byte string literal not displayed */
	Outputs         []*TestTable_OutputExpectations `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Principals      []string                        `protobuf:"bytes,5,rep,name=principals,proto3" json:"principals,omitempty"`
	Resources       []string                        `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
	PrincipalGroups []string                        `protobuf:"bytes,7,rep,name=principal_groups,json=principalGroups,proto3" json:"principal_groups,omitempty"`
	ResourceGroups  []string                        `protobuf:"bytes,8,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTable_Expectation) GetActions

func (x *TestTable_Expectation) GetActions() map[string]v1.Effect

func (*TestTable_Expectation) GetOutputs

func (*TestTable_Expectation) GetPrincipal

func (x *TestTable_Expectation) GetPrincipal() string

func (*TestTable_Expectation) GetPrincipalGroups

func (x *TestTable_Expectation) GetPrincipalGroups() []string

func (*TestTable_Expectation) GetPrincipals

func (x *TestTable_Expectation) GetPrincipals() []string

func (*TestTable_Expectation) GetResource

func (x *TestTable_Expectation) GetResource() string

func (*TestTable_Expectation) GetResourceGroups

func (x *TestTable_Expectation) GetResourceGroups() []string

func (*TestTable_Expectation) GetResources

func (x *TestTable_Expectation) GetResources() []string

func (*TestTable_Expectation) ProtoMessage

func (*TestTable_Expectation) ProtoMessage()

func (*TestTable_Expectation) ProtoReflect

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

func (*TestTable_Expectation) Reset

func (x *TestTable_Expectation) Reset()

func (*TestTable_Expectation) SetActions

func (x *TestTable_Expectation) SetActions(v map[string]v1.Effect)

func (*TestTable_Expectation) SetOutputs

func (*TestTable_Expectation) SetPrincipal

func (x *TestTable_Expectation) SetPrincipal(v string)

func (*TestTable_Expectation) SetPrincipalGroups

func (x *TestTable_Expectation) SetPrincipalGroups(v []string)

func (*TestTable_Expectation) SetPrincipals

func (x *TestTable_Expectation) SetPrincipals(v []string)

func (*TestTable_Expectation) SetResource

func (x *TestTable_Expectation) SetResource(v string)

func (*TestTable_Expectation) SetResourceGroups

func (x *TestTable_Expectation) SetResourceGroups(v []string)

func (*TestTable_Expectation) SetResources

func (x *TestTable_Expectation) SetResources(v []string)

func (*TestTable_Expectation) String

func (x *TestTable_Expectation) String() string

type TestTable_Expectation_builder

type TestTable_Expectation_builder struct {
	Principal       string
	Resource        string
	Actions         map[string]v1.Effect
	Outputs         []*TestTable_OutputExpectations
	Principals      []string
	Resources       []string
	PrincipalGroups []string
	ResourceGroups  []string
	// contains filtered or unexported fields
}

func (TestTable_Expectation_builder) Build

type TestTable_Input

type TestTable_Input struct {
	Principals      []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
	Resources       []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	Actions         []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	AuxData         string   `protobuf:"bytes,4,opt,name=aux_data,json=auxData,proto3" json:"aux_data,omitempty"`
	PrincipalGroups []string `protobuf:"bytes,5,rep,name=principal_groups,json=principalGroups,proto3" json:"principal_groups,omitempty"`
	ResourceGroups  []string `protobuf:"bytes,6,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTable_Input) GetActions

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

func (*TestTable_Input) GetAuxData

func (x *TestTable_Input) GetAuxData() string

func (*TestTable_Input) GetPrincipalGroups

func (x *TestTable_Input) GetPrincipalGroups() []string

func (*TestTable_Input) GetPrincipals

func (x *TestTable_Input) GetPrincipals() []string

func (*TestTable_Input) GetResourceGroups

func (x *TestTable_Input) GetResourceGroups() []string

func (*TestTable_Input) GetResources

func (x *TestTable_Input) GetResources() []string

func (*TestTable_Input) ProtoMessage

func (*TestTable_Input) ProtoMessage()

func (*TestTable_Input) ProtoReflect

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

func (*TestTable_Input) Reset

func (x *TestTable_Input) Reset()

func (*TestTable_Input) SetActions

func (x *TestTable_Input) SetActions(v []string)

func (*TestTable_Input) SetAuxData

func (x *TestTable_Input) SetAuxData(v string)

func (*TestTable_Input) SetPrincipalGroups

func (x *TestTable_Input) SetPrincipalGroups(v []string)

func (*TestTable_Input) SetPrincipals

func (x *TestTable_Input) SetPrincipals(v []string)

func (*TestTable_Input) SetResourceGroups

func (x *TestTable_Input) SetResourceGroups(v []string)

func (*TestTable_Input) SetResources

func (x *TestTable_Input) SetResources(v []string)

func (*TestTable_Input) String

func (x *TestTable_Input) String() string

type TestTable_Input_builder

type TestTable_Input_builder struct {
	Principals      []string
	Resources       []string
	Actions         []string
	AuxData         string
	PrincipalGroups []string
	ResourceGroups  []string
	// contains filtered or unexported fields
}

func (TestTable_Input_builder) Build

type TestTable_OutputExpectations

type TestTable_OutputExpectations struct {
	Action   string             `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Expected []*v11.OutputEntry `protobuf:"bytes,2,rep,name=expected,proto3" json:"expected,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTable_OutputExpectations) GetAction

func (x *TestTable_OutputExpectations) GetAction() string

func (*TestTable_OutputExpectations) GetExpected

func (x *TestTable_OutputExpectations) GetExpected() []*v11.OutputEntry

func (*TestTable_OutputExpectations) ProtoMessage

func (*TestTable_OutputExpectations) ProtoMessage()

func (*TestTable_OutputExpectations) ProtoReflect

func (*TestTable_OutputExpectations) Reset

func (x *TestTable_OutputExpectations) Reset()

func (*TestTable_OutputExpectations) SetAction

func (x *TestTable_OutputExpectations) SetAction(v string)

func (*TestTable_OutputExpectations) SetExpected

func (x *TestTable_OutputExpectations) SetExpected(v []*v11.OutputEntry)

func (*TestTable_OutputExpectations) String

type TestTable_OutputExpectations_builder

type TestTable_OutputExpectations_builder struct {
	Action   string
	Expected []*v11.OutputEntry
	// contains filtered or unexported fields
}

func (TestTable_OutputExpectations_builder) Build

type TestTable_builder

type TestTable_builder struct {
	Name        string
	Description string
	Skip        bool
	SkipReason  string
	Input       *TestTable_Input
	Expected    []*TestTable_Expectation
	Options     *TestOptions
	// contains filtered or unexported fields
}

func (TestTable_builder) Build

func (b0 TestTable_builder) Build() *TestTable

type Test_OutputEntries

type Test_OutputEntries struct {
	Entries map[string]*structpb.Value `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Test_OutputEntries) GetEntries

func (x *Test_OutputEntries) GetEntries() map[string]*structpb.Value

func (*Test_OutputEntries) ProtoMessage

func (*Test_OutputEntries) ProtoMessage()

func (*Test_OutputEntries) ProtoReflect

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

func (*Test_OutputEntries) Reset

func (x *Test_OutputEntries) Reset()

func (*Test_OutputEntries) SetEntries

func (x *Test_OutputEntries) SetEntries(v map[string]*structpb.Value)

func (*Test_OutputEntries) String

func (x *Test_OutputEntries) String() string

type Test_OutputEntries_builder

type Test_OutputEntries_builder struct {
	Entries map[string]*structpb.Value
	// contains filtered or unexported fields
}

func (Test_OutputEntries_builder) Build

type Test_TestName

type Test_TestName struct {
	TestTableName string `protobuf:"bytes,1,opt,name=test_table_name,json=testTableName,proto3" json:"test_table_name,omitempty"`
	PrincipalKey  string `protobuf:"bytes,2,opt,name=principal_key,json=principalKey,proto3" json:"principal_key,omitempty"`
	ResourceKey   string `protobuf:"bytes,3,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Test_TestName) GetPrincipalKey

func (x *Test_TestName) GetPrincipalKey() string

func (*Test_TestName) GetResourceKey

func (x *Test_TestName) GetResourceKey() string

func (*Test_TestName) GetTestTableName

func (x *Test_TestName) GetTestTableName() string

func (*Test_TestName) ProtoMessage

func (*Test_TestName) ProtoMessage()

func (*Test_TestName) ProtoReflect

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

func (*Test_TestName) Reset

func (x *Test_TestName) Reset()

func (*Test_TestName) SetPrincipalKey

func (x *Test_TestName) SetPrincipalKey(v string)

func (*Test_TestName) SetResourceKey

func (x *Test_TestName) SetResourceKey(v string)

func (*Test_TestName) SetTestTableName

func (x *Test_TestName) SetTestTableName(v string)

func (*Test_TestName) String

func (x *Test_TestName) String() string

type Test_TestName_builder

type Test_TestName_builder struct {
	TestTableName string
	PrincipalKey  string
	ResourceKey   string
	// contains filtered or unexported fields
}

func (Test_TestName_builder) Build

type Test_builder

type Test_builder struct {
	Name            *Test_TestName
	Description     string
	Skip            bool
	SkipReason      string
	Input           *v11.CheckInput
	Expected        map[string]v1.Effect
	Options         *TestOptions
	ExpectedOutputs map[string]*Test_OutputEntries
	// contains filtered or unexported fields
}

func (Test_builder) Build

func (b0 Test_builder) Build() *Test

type Variables

type Variables struct {
	Import []string          `protobuf:"bytes,1,rep,name=import,proto3" json:"import,omitempty"`
	Local  map[string]string `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Variables) GetImport

func (x *Variables) GetImport() []string

func (*Variables) GetLocal

func (x *Variables) GetLocal() map[string]string

func (*Variables) ProtoMessage

func (*Variables) ProtoMessage()

func (*Variables) ProtoReflect

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

func (*Variables) Reset

func (x *Variables) Reset()

func (*Variables) SetImport

func (x *Variables) SetImport(v []string)

func (*Variables) SetLocal

func (x *Variables) SetLocal(v map[string]string)

func (*Variables) String

func (x *Variables) String() string

type Variables_builder

type Variables_builder struct {
	Import []string
	Local  map[string]string
	// contains filtered or unexported fields
}

func (Variables_builder) Build

func (b0 Variables_builder) Build() *Variables

Source Files

  • policy.pb.go

Jump to

Keyboard shortcuts

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