authorizationv1beta1

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AuthorizationAPI_IsAuthorized_FullMethodName   = "/indykite.authorization.v1beta1.AuthorizationAPI/IsAuthorized"
	AuthorizationAPI_WhatAuthorized_FullMethodName = "/indykite.authorization.v1beta1.AuthorizationAPI/WhatAuthorized"
	AuthorizationAPI_WhoAuthorized_FullMethodName  = "/indykite.authorization.v1beta1.AuthorizationAPI/WhoAuthorized"
)

Variables

View Source
var AuthorizationAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "indykite.authorization.v1beta1.AuthorizationAPI",
	HandlerType: (*AuthorizationAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IsAuthorized",
			Handler:    _AuthorizationAPI_IsAuthorized_Handler,
		},
		{
			MethodName: "WhatAuthorized",
			Handler:    _AuthorizationAPI_WhatAuthorized_Handler,
		},
		{
			MethodName: "WhoAuthorized",
			Handler:    _AuthorizationAPI_WhoAuthorized_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "indykite/authorization/v1beta1/authorization_service.proto",
}

AuthorizationAPI_ServiceDesc is the grpc.ServiceDesc for AuthorizationAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_indykite_authorization_v1beta1_authorization_service_proto protoreflect.FileDescriptor
View Source
var File_indykite_authorization_v1beta1_model_proto protoreflect.FileDescriptor

Functions

func RegisterAuthorizationAPIServer

func RegisterAuthorizationAPIServer(s grpc.ServiceRegistrar, srv AuthorizationAPIServer)

Types

type AuthorizationAPIClient

type AuthorizationAPIClient interface {
	IsAuthorized(ctx context.Context, in *IsAuthorizedRequest, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
	WhatAuthorized(ctx context.Context, in *WhatAuthorizedRequest, opts ...grpc.CallOption) (*WhatAuthorizedResponse, error)
	WhoAuthorized(ctx context.Context, in *WhoAuthorizedRequest, opts ...grpc.CallOption) (*WhoAuthorizedResponse, error)
}

AuthorizationAPIClient is the client API for AuthorizationAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthorizationAPIServer

type AuthorizationAPIServer interface {
	IsAuthorized(context.Context, *IsAuthorizedRequest) (*IsAuthorizedResponse, error)
	WhatAuthorized(context.Context, *WhatAuthorizedRequest) (*WhatAuthorizedResponse, error)
	WhoAuthorized(context.Context, *WhoAuthorizedRequest) (*WhoAuthorizedResponse, error)
}

AuthorizationAPIServer is the server API for AuthorizationAPI service. All implementations should embed UnimplementedAuthorizationAPIServer for forward compatibility

type DigitalTwin added in v0.17.0

type DigitalTwin struct {

	// Id the unique credential identifier.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DigitalTwin represents a digital entity.

func (*DigitalTwin) Descriptor deprecated added in v0.17.0

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

Deprecated: Use DigitalTwin.ProtoReflect.Descriptor instead.

func (*DigitalTwin) GetId added in v0.17.0

func (x *DigitalTwin) GetId() string

func (*DigitalTwin) ProtoMessage added in v0.17.0

func (*DigitalTwin) ProtoMessage()

func (*DigitalTwin) ProtoReflect added in v0.17.0

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

func (*DigitalTwin) Reset added in v0.17.0

func (x *DigitalTwin) Reset()

func (*DigitalTwin) String added in v0.17.0

func (x *DigitalTwin) String() string

func (*DigitalTwin) Validate added in v0.17.0

func (m *DigitalTwin) Validate() error

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

func (*DigitalTwin) ValidateAll added in v0.17.0

func (m *DigitalTwin) ValidateAll() error

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

type DigitalTwinMultiError added in v0.17.0

type DigitalTwinMultiError []error

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

func (DigitalTwinMultiError) AllErrors added in v0.17.0

func (m DigitalTwinMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DigitalTwinMultiError) Error added in v0.17.0

func (m DigitalTwinMultiError) Error() string

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

type DigitalTwinValidationError added in v0.17.0

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

DigitalTwinValidationError is the validation error returned by DigitalTwin.Validate if the designated constraints aren't met.

func (DigitalTwinValidationError) Cause added in v0.17.0

Cause function returns cause value.

func (DigitalTwinValidationError) Error added in v0.17.0

Error satisfies the builtin error interface

func (DigitalTwinValidationError) ErrorName added in v0.17.0

func (e DigitalTwinValidationError) ErrorName() string

ErrorName returns error name.

func (DigitalTwinValidationError) Field added in v0.17.0

Field function returns field value.

func (DigitalTwinValidationError) Key added in v0.17.0

Key function returns key value.

func (DigitalTwinValidationError) Reason added in v0.17.0

Reason function returns reason value.

type ExternalID added in v0.20.0

type ExternalID struct {
	Type       string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalID) Descriptor deprecated added in v0.20.0

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

Deprecated: Use ExternalID.ProtoReflect.Descriptor instead.

func (*ExternalID) GetExternalId added in v0.20.0

func (x *ExternalID) GetExternalId() string

func (*ExternalID) GetType added in v0.20.0

func (x *ExternalID) GetType() string

func (*ExternalID) ProtoMessage added in v0.20.0

func (*ExternalID) ProtoMessage()

func (*ExternalID) ProtoReflect added in v0.20.0

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

func (*ExternalID) Reset added in v0.20.0

func (x *ExternalID) Reset()

func (*ExternalID) String added in v0.20.0

func (x *ExternalID) String() string

func (*ExternalID) Validate added in v0.20.0

func (m *ExternalID) Validate() error

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

func (*ExternalID) ValidateAll added in v0.20.0

func (m *ExternalID) ValidateAll() error

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

type ExternalIDMultiError added in v0.20.0

type ExternalIDMultiError []error

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

func (ExternalIDMultiError) AllErrors added in v0.20.0

func (m ExternalIDMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExternalIDMultiError) Error added in v0.20.0

func (m ExternalIDMultiError) Error() string

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

type ExternalIDValidationError added in v0.20.0

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

ExternalIDValidationError is the validation error returned by ExternalID.Validate if the designated constraints aren't met.

func (ExternalIDValidationError) Cause added in v0.20.0

func (e ExternalIDValidationError) Cause() error

Cause function returns cause value.

func (ExternalIDValidationError) Error added in v0.20.0

Error satisfies the builtin error interface

func (ExternalIDValidationError) ErrorName added in v0.20.0

func (e ExternalIDValidationError) ErrorName() string

ErrorName returns error name.

func (ExternalIDValidationError) Field added in v0.20.0

Field function returns field value.

func (ExternalIDValidationError) Key added in v0.20.0

Key function returns key value.

func (ExternalIDValidationError) Reason added in v0.20.0

func (e ExternalIDValidationError) Reason() string

Reason function returns reason value.

type InputParam

type InputParam struct {

	// Types that are assignable to Value:
	//
	//	*InputParam_StringValue
	//	*InputParam_BoolValue
	//	*InputParam_IntegerValue
	//	*InputParam_DoubleValue
	Value isInputParam_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*InputParam) Descriptor deprecated

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

Deprecated: Use InputParam.ProtoReflect.Descriptor instead.

func (*InputParam) GetBoolValue

func (x *InputParam) GetBoolValue() bool

func (*InputParam) GetDoubleValue

func (x *InputParam) GetDoubleValue() float64

func (*InputParam) GetIntegerValue

func (x *InputParam) GetIntegerValue() int64

func (*InputParam) GetStringValue

func (x *InputParam) GetStringValue() string

func (*InputParam) GetValue

func (m *InputParam) GetValue() isInputParam_Value

func (*InputParam) ProtoMessage

func (*InputParam) ProtoMessage()

func (*InputParam) ProtoReflect

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

func (*InputParam) Reset

func (x *InputParam) Reset()

func (*InputParam) String

func (x *InputParam) String() string

func (*InputParam) Validate

func (m *InputParam) Validate() error

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

func (*InputParam) ValidateAll

func (m *InputParam) ValidateAll() error

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

type InputParamMultiError

type InputParamMultiError []error

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

func (InputParamMultiError) AllErrors

func (m InputParamMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InputParamMultiError) Error

func (m InputParamMultiError) Error() string

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

type InputParamValidationError

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

InputParamValidationError is the validation error returned by InputParam.Validate if the designated constraints aren't met.

func (InputParamValidationError) Cause

func (e InputParamValidationError) Cause() error

Cause function returns cause value.

func (InputParamValidationError) Error

Error satisfies the builtin error interface

func (InputParamValidationError) ErrorName

func (e InputParamValidationError) ErrorName() string

ErrorName returns error name.

func (InputParamValidationError) Field

Field function returns field value.

func (InputParamValidationError) Key

Key function returns key value.

func (InputParamValidationError) Reason

func (e InputParamValidationError) Reason() string

Reason function returns reason value.

type InputParam_BoolValue

type InputParam_BoolValue struct {
	// A boolean value.
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type InputParam_DoubleValue

type InputParam_DoubleValue struct {
	// A double value.
	DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type InputParam_IntegerValue

type InputParam_IntegerValue struct {
	// An integer value.
	IntegerValue int64 `protobuf:"varint,3,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type InputParam_StringValue

type InputParam_StringValue struct {
	// A string value.
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type IsAuthorizedRequest

type IsAuthorizedRequest struct {

	// Subject to check if is authorized to perform given actions.
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// A list of resources to authorize against.
	Resources []*IsAuthorizedRequest_Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// Policy input params
	InputParams map[string]*InputParam `` /* 182-byte string literal not displayed */
	// Only evaluate polices containing provided tags
	PolicyTags []string `protobuf:"bytes,4,rep,name=policy_tags,json=policyTags,proto3" json:"policy_tags,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedRequest) Descriptor deprecated

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

Deprecated: Use IsAuthorizedRequest.ProtoReflect.Descriptor instead.

func (*IsAuthorizedRequest) GetInputParams

func (x *IsAuthorizedRequest) GetInputParams() map[string]*InputParam

func (*IsAuthorizedRequest) GetPolicyTags

func (x *IsAuthorizedRequest) GetPolicyTags() []string

func (*IsAuthorizedRequest) GetResources

func (*IsAuthorizedRequest) GetSubject

func (x *IsAuthorizedRequest) GetSubject() *Subject

func (*IsAuthorizedRequest) ProtoMessage

func (*IsAuthorizedRequest) ProtoMessage()

func (*IsAuthorizedRequest) ProtoReflect

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

func (*IsAuthorizedRequest) Reset

func (x *IsAuthorizedRequest) Reset()

func (*IsAuthorizedRequest) String

func (x *IsAuthorizedRequest) String() string

func (*IsAuthorizedRequest) Validate

func (m *IsAuthorizedRequest) Validate() error

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

func (*IsAuthorizedRequest) ValidateAll

func (m *IsAuthorizedRequest) ValidateAll() error

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

type IsAuthorizedRequestMultiError

type IsAuthorizedRequestMultiError []error

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

func (IsAuthorizedRequestMultiError) AllErrors

func (m IsAuthorizedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsAuthorizedRequestMultiError) Error

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

type IsAuthorizedRequestValidationError

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

IsAuthorizedRequestValidationError is the validation error returned by IsAuthorizedRequest.Validate if the designated constraints aren't met.

func (IsAuthorizedRequestValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedRequestValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedRequestValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedRequestValidationError) Field

Field function returns field value.

func (IsAuthorizedRequestValidationError) Key

Key function returns key value.

func (IsAuthorizedRequestValidationError) Reason

Reason function returns reason value.

type IsAuthorizedRequest_Resource

type IsAuthorizedRequest_Resource struct {

	// Resource external id.
	ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// Resource type.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// A list of actions the subject want to perform.
	Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

Resource to authorize against.

func (*IsAuthorizedRequest_Resource) Descriptor deprecated

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

Deprecated: Use IsAuthorizedRequest_Resource.ProtoReflect.Descriptor instead.

func (*IsAuthorizedRequest_Resource) GetActions

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

func (*IsAuthorizedRequest_Resource) GetExternalId added in v0.17.1

func (x *IsAuthorizedRequest_Resource) GetExternalId() string

func (*IsAuthorizedRequest_Resource) GetType

func (x *IsAuthorizedRequest_Resource) GetType() string

func (*IsAuthorizedRequest_Resource) ProtoMessage

func (*IsAuthorizedRequest_Resource) ProtoMessage()

func (*IsAuthorizedRequest_Resource) ProtoReflect

func (*IsAuthorizedRequest_Resource) Reset

func (x *IsAuthorizedRequest_Resource) Reset()

func (*IsAuthorizedRequest_Resource) String

func (*IsAuthorizedRequest_Resource) Validate

func (m *IsAuthorizedRequest_Resource) Validate() error

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

func (*IsAuthorizedRequest_Resource) ValidateAll

func (m *IsAuthorizedRequest_Resource) ValidateAll() error

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

type IsAuthorizedRequest_ResourceMultiError

type IsAuthorizedRequest_ResourceMultiError []error

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

func (IsAuthorizedRequest_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (IsAuthorizedRequest_ResourceMultiError) Error

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

type IsAuthorizedRequest_ResourceValidationError

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

IsAuthorizedRequest_ResourceValidationError is the validation error returned by IsAuthorizedRequest_Resource.Validate if the designated constraints aren't met.

func (IsAuthorizedRequest_ResourceValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedRequest_ResourceValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedRequest_ResourceValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedRequest_ResourceValidationError) Field

Field function returns field value.

func (IsAuthorizedRequest_ResourceValidationError) Key

Key function returns key value.

func (IsAuthorizedRequest_ResourceValidationError) Reason

Reason function returns reason value.

type IsAuthorizedResponse

type IsAuthorizedResponse struct {

	// Time the decision was made.
	DecisionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=decision_time,json=decisionTime,proto3" json:"decision_time,omitempty"`
	// Map with resource type as key.
	Decisions map[string]*IsAuthorizedResponse_ResourceType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse) GetDecisionTime

func (x *IsAuthorizedResponse) GetDecisionTime() *timestamppb.Timestamp

func (*IsAuthorizedResponse) GetDecisions

func (*IsAuthorizedResponse) ProtoMessage

func (*IsAuthorizedResponse) ProtoMessage()

func (*IsAuthorizedResponse) ProtoReflect

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

func (*IsAuthorizedResponse) Reset

func (x *IsAuthorizedResponse) Reset()

func (*IsAuthorizedResponse) String

func (x *IsAuthorizedResponse) String() string

func (*IsAuthorizedResponse) Validate

func (m *IsAuthorizedResponse) Validate() error

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

func (*IsAuthorizedResponse) ValidateAll

func (m *IsAuthorizedResponse) ValidateAll() error

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

type IsAuthorizedResponseMultiError

type IsAuthorizedResponseMultiError []error

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

func (IsAuthorizedResponseMultiError) AllErrors

func (m IsAuthorizedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsAuthorizedResponseMultiError) Error

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

type IsAuthorizedResponseValidationError

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

IsAuthorizedResponseValidationError is the validation error returned by IsAuthorizedResponse.Validate if the designated constraints aren't met.

func (IsAuthorizedResponseValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedResponseValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedResponseValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedResponseValidationError) Field

Field function returns field value.

func (IsAuthorizedResponseValidationError) Key

Key function returns key value.

func (IsAuthorizedResponseValidationError) Reason

Reason function returns reason value.

type IsAuthorizedResponse_Action

type IsAuthorizedResponse_Action struct {
	Allow bool `protobuf:"varint,1,opt,name=allow,proto3" json:"allow,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse_Action) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse_Action.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse_Action) GetAllow

func (x *IsAuthorizedResponse_Action) GetAllow() bool

func (*IsAuthorizedResponse_Action) ProtoMessage

func (*IsAuthorizedResponse_Action) ProtoMessage()

func (*IsAuthorizedResponse_Action) ProtoReflect

func (*IsAuthorizedResponse_Action) Reset

func (x *IsAuthorizedResponse_Action) Reset()

func (*IsAuthorizedResponse_Action) String

func (x *IsAuthorizedResponse_Action) String() string

func (*IsAuthorizedResponse_Action) Validate

func (m *IsAuthorizedResponse_Action) Validate() error

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

func (*IsAuthorizedResponse_Action) ValidateAll

func (m *IsAuthorizedResponse_Action) ValidateAll() error

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

type IsAuthorizedResponse_ActionMultiError

type IsAuthorizedResponse_ActionMultiError []error

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

func (IsAuthorizedResponse_ActionMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (IsAuthorizedResponse_ActionMultiError) Error

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

type IsAuthorizedResponse_ActionValidationError

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

IsAuthorizedResponse_ActionValidationError is the validation error returned by IsAuthorizedResponse_Action.Validate if the designated constraints aren't met.

func (IsAuthorizedResponse_ActionValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedResponse_ActionValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedResponse_ActionValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedResponse_ActionValidationError) Field

Field function returns field value.

func (IsAuthorizedResponse_ActionValidationError) Key

Key function returns key value.

func (IsAuthorizedResponse_ActionValidationError) Reason

Reason function returns reason value.

type IsAuthorizedResponse_Resource

type IsAuthorizedResponse_Resource struct {

	// Map with action as key.
	Actions map[string]*IsAuthorizedResponse_Action `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse_Resource) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse_Resource.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse_Resource) GetActions

func (*IsAuthorizedResponse_Resource) ProtoMessage

func (*IsAuthorizedResponse_Resource) ProtoMessage()

func (*IsAuthorizedResponse_Resource) ProtoReflect

func (*IsAuthorizedResponse_Resource) Reset

func (x *IsAuthorizedResponse_Resource) Reset()

func (*IsAuthorizedResponse_Resource) String

func (*IsAuthorizedResponse_Resource) Validate

func (m *IsAuthorizedResponse_Resource) Validate() error

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

func (*IsAuthorizedResponse_Resource) ValidateAll

func (m *IsAuthorizedResponse_Resource) ValidateAll() error

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

type IsAuthorizedResponse_ResourceMultiError

type IsAuthorizedResponse_ResourceMultiError []error

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

func (IsAuthorizedResponse_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (IsAuthorizedResponse_ResourceMultiError) Error

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

type IsAuthorizedResponse_ResourceType

type IsAuthorizedResponse_ResourceType struct {

	// Map with resource external id as key.
	Resources map[string]*IsAuthorizedResponse_Resource `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse_ResourceType) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse_ResourceType.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse_ResourceType) GetResources

func (*IsAuthorizedResponse_ResourceType) ProtoMessage

func (*IsAuthorizedResponse_ResourceType) ProtoMessage()

func (*IsAuthorizedResponse_ResourceType) ProtoReflect

func (*IsAuthorizedResponse_ResourceType) Reset

func (*IsAuthorizedResponse_ResourceType) String

func (*IsAuthorizedResponse_ResourceType) Validate

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

func (*IsAuthorizedResponse_ResourceType) ValidateAll

func (m *IsAuthorizedResponse_ResourceType) ValidateAll() error

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

type IsAuthorizedResponse_ResourceTypeMultiError

type IsAuthorizedResponse_ResourceTypeMultiError []error

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

func (IsAuthorizedResponse_ResourceTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (IsAuthorizedResponse_ResourceTypeMultiError) Error

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

type IsAuthorizedResponse_ResourceTypeValidationError

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

IsAuthorizedResponse_ResourceTypeValidationError is the validation error returned by IsAuthorizedResponse_ResourceType.Validate if the designated constraints aren't met.

func (IsAuthorizedResponse_ResourceTypeValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedResponse_ResourceTypeValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedResponse_ResourceTypeValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedResponse_ResourceTypeValidationError) Field

Field function returns field value.

func (IsAuthorizedResponse_ResourceTypeValidationError) Key

Key function returns key value.

func (IsAuthorizedResponse_ResourceTypeValidationError) Reason

Reason function returns reason value.

type IsAuthorizedResponse_ResourceValidationError

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

IsAuthorizedResponse_ResourceValidationError is the validation error returned by IsAuthorizedResponse_Resource.Validate if the designated constraints aren't met.

func (IsAuthorizedResponse_ResourceValidationError) Cause

Cause function returns cause value.

func (IsAuthorizedResponse_ResourceValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedResponse_ResourceValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedResponse_ResourceValidationError) Field

Field function returns field value.

func (IsAuthorizedResponse_ResourceValidationError) Key

Key function returns key value.

func (IsAuthorizedResponse_ResourceValidationError) Reason

Reason function returns reason value.

type Property added in v0.17.0

type Property struct {
	Type  string         `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value *v1beta1.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated added in v0.17.0

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetType added in v0.17.0

func (x *Property) GetType() string

func (*Property) GetValue added in v0.17.0

func (x *Property) GetValue() *v1beta1.Value

func (*Property) ProtoMessage added in v0.17.0

func (*Property) ProtoMessage()

func (*Property) ProtoReflect added in v0.17.0

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

func (*Property) Reset added in v0.17.0

func (x *Property) Reset()

func (*Property) String added in v0.17.0

func (x *Property) String() string

func (*Property) Validate added in v0.17.0

func (m *Property) Validate() error

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

func (*Property) ValidateAll added in v0.17.0

func (m *Property) ValidateAll() error

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

type PropertyMultiError added in v0.17.0

type PropertyMultiError []error

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

func (PropertyMultiError) AllErrors added in v0.17.0

func (m PropertyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertyMultiError) Error added in v0.17.0

func (m PropertyMultiError) Error() string

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

type PropertyValidationError added in v0.17.0

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

PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.

func (PropertyValidationError) Cause added in v0.17.0

func (e PropertyValidationError) Cause() error

Cause function returns cause value.

func (PropertyValidationError) Error added in v0.17.0

func (e PropertyValidationError) Error() string

Error satisfies the builtin error interface

func (PropertyValidationError) ErrorName added in v0.17.0

func (e PropertyValidationError) ErrorName() string

ErrorName returns error name.

func (PropertyValidationError) Field added in v0.17.0

func (e PropertyValidationError) Field() string

Field function returns field value.

func (PropertyValidationError) Key added in v0.17.0

func (e PropertyValidationError) Key() bool

Key function returns key value.

func (PropertyValidationError) Reason added in v0.17.0

func (e PropertyValidationError) Reason() string

Reason function returns reason value.

type Subject

type Subject struct {

	// Types that are assignable to Subject:
	//
	//	*Subject_DigitalTwinIdentifier
	//	*Subject_DigitalTwinId
	//	*Subject_DigitalTwinProperty
	//	*Subject_IndykiteAccessToken
	//	*Subject_ExternalId
	Subject isSubject_Subject `protobuf_oneof:"subject"`
	// contains filtered or unexported fields
}

Subject to check if is authorized.

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetDigitalTwinId added in v0.17.0

func (x *Subject) GetDigitalTwinId() *DigitalTwin

func (*Subject) GetDigitalTwinIdentifier deprecated

func (x *Subject) GetDigitalTwinIdentifier() *v1beta2.DigitalTwinIdentifier

Deprecated: Marked as deprecated in indykite/authorization/v1beta1/model.proto.

func (*Subject) GetDigitalTwinProperty added in v0.17.0

func (x *Subject) GetDigitalTwinProperty() *Property

func (*Subject) GetExternalId added in v0.20.0

func (x *Subject) GetExternalId() *ExternalID

func (*Subject) GetIndykiteAccessToken added in v0.17.0

func (x *Subject) GetIndykiteAccessToken() string

func (*Subject) GetSubject

func (m *Subject) GetSubject() isSubject_Subject

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

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

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) String

func (x *Subject) String() string

func (*Subject) Validate

func (m *Subject) Validate() error

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

func (*Subject) ValidateAll

func (m *Subject) ValidateAll() error

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

type SubjectMultiError

type SubjectMultiError []error

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

func (SubjectMultiError) AllErrors

func (m SubjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubjectMultiError) Error

func (m SubjectMultiError) Error() string

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

type SubjectValidationError

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

SubjectValidationError is the validation error returned by Subject.Validate if the designated constraints aren't met.

func (SubjectValidationError) Cause

func (e SubjectValidationError) Cause() error

Cause function returns cause value.

func (SubjectValidationError) Error

func (e SubjectValidationError) Error() string

Error satisfies the builtin error interface

func (SubjectValidationError) ErrorName

func (e SubjectValidationError) ErrorName() string

ErrorName returns error name.

func (SubjectValidationError) Field

func (e SubjectValidationError) Field() string

Field function returns field value.

func (SubjectValidationError) Key

func (e SubjectValidationError) Key() bool

Key function returns key value.

func (SubjectValidationError) Reason

func (e SubjectValidationError) Reason() string

Reason function returns reason value.

type Subject_DigitalTwinId added in v0.17.0

type Subject_DigitalTwinId struct {
	DigitalTwinId *DigitalTwin `protobuf:"bytes,2,opt,name=digital_twin_id,json=digitalTwinId,proto3,oneof"`
}

type Subject_DigitalTwinIdentifier

type Subject_DigitalTwinIdentifier struct {
	// Deprecated: Marked as deprecated in indykite/authorization/v1beta1/model.proto.
	DigitalTwinIdentifier *v1beta2.DigitalTwinIdentifier `protobuf:"bytes,1,opt,name=digital_twin_identifier,json=digitalTwinIdentifier,proto3,oneof"`
}

type Subject_DigitalTwinProperty added in v0.17.0

type Subject_DigitalTwinProperty struct {
	DigitalTwinProperty *Property `protobuf:"bytes,3,opt,name=digital_twin_property,json=digitalTwinProperty,proto3,oneof"`
}

type Subject_ExternalId added in v0.20.0

type Subject_ExternalId struct {
	ExternalId *ExternalID `protobuf:"bytes,5,opt,name=external_id,json=externalId,proto3,oneof"`
}

type Subject_IndykiteAccessToken added in v0.17.0

type Subject_IndykiteAccessToken struct {
	IndykiteAccessToken string `protobuf:"bytes,4,opt,name=indykite_access_token,json=indykiteAccessToken,proto3,oneof"`
}

type UnimplementedAuthorizationAPIServer

type UnimplementedAuthorizationAPIServer struct {
}

UnimplementedAuthorizationAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationAPIServer) IsAuthorized

func (UnimplementedAuthorizationAPIServer) WhatAuthorized

func (UnimplementedAuthorizationAPIServer) WhoAuthorized

type UnsafeAuthorizationAPIServer

type UnsafeAuthorizationAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthorizationAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationAPIServer will result in compilation errors.

type WhatAuthorizedRequest

type WhatAuthorizedRequest struct {

	// Subject to check if is authorized to perform given actions.
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// A list of resources types that should be checked against.
	ResourceTypes []*WhatAuthorizedRequest_ResourceType `protobuf:"bytes,2,rep,name=resource_types,json=resourceTypes,proto3" json:"resource_types,omitempty"`
	// Policy input params
	InputParams map[string]*InputParam `` /* 182-byte string literal not displayed */
	// Only evaluate polices containing provided tags
	PolicyTags []string `protobuf:"bytes,4,rep,name=policy_tags,json=policyTags,proto3" json:"policy_tags,omitempty"`
	// contains filtered or unexported fields
}

func (*WhatAuthorizedRequest) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedRequest.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedRequest) GetInputParams

func (x *WhatAuthorizedRequest) GetInputParams() map[string]*InputParam

func (*WhatAuthorizedRequest) GetPolicyTags

func (x *WhatAuthorizedRequest) GetPolicyTags() []string

func (*WhatAuthorizedRequest) GetResourceTypes

func (*WhatAuthorizedRequest) GetSubject

func (x *WhatAuthorizedRequest) GetSubject() *Subject

func (*WhatAuthorizedRequest) ProtoMessage

func (*WhatAuthorizedRequest) ProtoMessage()

func (*WhatAuthorizedRequest) ProtoReflect

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

func (*WhatAuthorizedRequest) Reset

func (x *WhatAuthorizedRequest) Reset()

func (*WhatAuthorizedRequest) String

func (x *WhatAuthorizedRequest) String() string

func (*WhatAuthorizedRequest) Validate

func (m *WhatAuthorizedRequest) Validate() error

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

func (*WhatAuthorizedRequest) ValidateAll

func (m *WhatAuthorizedRequest) ValidateAll() error

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

type WhatAuthorizedRequestMultiError

type WhatAuthorizedRequestMultiError []error

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

func (WhatAuthorizedRequestMultiError) AllErrors

func (m WhatAuthorizedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedRequestMultiError) Error

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

type WhatAuthorizedRequestValidationError

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

WhatAuthorizedRequestValidationError is the validation error returned by WhatAuthorizedRequest.Validate if the designated constraints aren't met.

func (WhatAuthorizedRequestValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedRequestValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedRequestValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedRequestValidationError) Field

Field function returns field value.

func (WhatAuthorizedRequestValidationError) Key

Key function returns key value.

func (WhatAuthorizedRequestValidationError) Reason

Reason function returns reason value.

type WhatAuthorizedRequest_ResourceType

type WhatAuthorizedRequest_ResourceType struct {

	// Resource type
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Optional - A list of actions the subject want to perform.
	Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

Resource type to authorize against.

func (*WhatAuthorizedRequest_ResourceType) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedRequest_ResourceType.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedRequest_ResourceType) GetActions

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

func (*WhatAuthorizedRequest_ResourceType) GetType

func (*WhatAuthorizedRequest_ResourceType) ProtoMessage

func (*WhatAuthorizedRequest_ResourceType) ProtoMessage()

func (*WhatAuthorizedRequest_ResourceType) ProtoReflect

func (*WhatAuthorizedRequest_ResourceType) Reset

func (*WhatAuthorizedRequest_ResourceType) String

func (*WhatAuthorizedRequest_ResourceType) Validate

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

func (*WhatAuthorizedRequest_ResourceType) ValidateAll

func (m *WhatAuthorizedRequest_ResourceType) ValidateAll() error

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

type WhatAuthorizedRequest_ResourceTypeMultiError

type WhatAuthorizedRequest_ResourceTypeMultiError []error

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

func (WhatAuthorizedRequest_ResourceTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedRequest_ResourceTypeMultiError) Error

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

type WhatAuthorizedRequest_ResourceTypeValidationError

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

WhatAuthorizedRequest_ResourceTypeValidationError is the validation error returned by WhatAuthorizedRequest_ResourceType.Validate if the designated constraints aren't met.

func (WhatAuthorizedRequest_ResourceTypeValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedRequest_ResourceTypeValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedRequest_ResourceTypeValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedRequest_ResourceTypeValidationError) Field

Field function returns field value.

func (WhatAuthorizedRequest_ResourceTypeValidationError) Key

Key function returns key value.

func (WhatAuthorizedRequest_ResourceTypeValidationError) Reason

Reason function returns reason value.

type WhatAuthorizedResponse

type WhatAuthorizedResponse struct {

	// Time the decision was made
	DecisionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=decision_time,json=decisionTime,proto3" json:"decision_time,omitempty"`
	// Map with resource type as key
	Decisions map[string]*WhatAuthorizedResponse_ResourceType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhatAuthorizedResponse) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedResponse) GetDecisionTime

func (x *WhatAuthorizedResponse) GetDecisionTime() *timestamppb.Timestamp

func (*WhatAuthorizedResponse) GetDecisions

func (*WhatAuthorizedResponse) ProtoMessage

func (*WhatAuthorizedResponse) ProtoMessage()

func (*WhatAuthorizedResponse) ProtoReflect

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

func (*WhatAuthorizedResponse) Reset

func (x *WhatAuthorizedResponse) Reset()

func (*WhatAuthorizedResponse) String

func (x *WhatAuthorizedResponse) String() string

func (*WhatAuthorizedResponse) Validate

func (m *WhatAuthorizedResponse) Validate() error

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

func (*WhatAuthorizedResponse) ValidateAll

func (m *WhatAuthorizedResponse) ValidateAll() error

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

type WhatAuthorizedResponseMultiError

type WhatAuthorizedResponseMultiError []error

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

func (WhatAuthorizedResponseMultiError) AllErrors

func (m WhatAuthorizedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedResponseMultiError) Error

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

type WhatAuthorizedResponseValidationError

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

WhatAuthorizedResponseValidationError is the validation error returned by WhatAuthorizedResponse.Validate if the designated constraints aren't met.

func (WhatAuthorizedResponseValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedResponseValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedResponseValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedResponseValidationError) Field

Field function returns field value.

func (WhatAuthorizedResponseValidationError) Key

Key function returns key value.

func (WhatAuthorizedResponseValidationError) Reason

Reason function returns reason value.

type WhatAuthorizedResponse_Action

type WhatAuthorizedResponse_Action struct {

	// List of resources
	Resources []*WhatAuthorizedResponse_Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*WhatAuthorizedResponse_Action) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedResponse_Action.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedResponse_Action) GetResources

func (*WhatAuthorizedResponse_Action) ProtoMessage

func (*WhatAuthorizedResponse_Action) ProtoMessage()

func (*WhatAuthorizedResponse_Action) ProtoReflect

func (*WhatAuthorizedResponse_Action) Reset

func (x *WhatAuthorizedResponse_Action) Reset()

func (*WhatAuthorizedResponse_Action) String

func (*WhatAuthorizedResponse_Action) Validate

func (m *WhatAuthorizedResponse_Action) Validate() error

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

func (*WhatAuthorizedResponse_Action) ValidateAll

func (m *WhatAuthorizedResponse_Action) ValidateAll() error

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

type WhatAuthorizedResponse_ActionMultiError

type WhatAuthorizedResponse_ActionMultiError []error

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

func (WhatAuthorizedResponse_ActionMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedResponse_ActionMultiError) Error

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

type WhatAuthorizedResponse_ActionValidationError

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

WhatAuthorizedResponse_ActionValidationError is the validation error returned by WhatAuthorizedResponse_Action.Validate if the designated constraints aren't met.

func (WhatAuthorizedResponse_ActionValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedResponse_ActionValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedResponse_ActionValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedResponse_ActionValidationError) Field

Field function returns field value.

func (WhatAuthorizedResponse_ActionValidationError) Key

Key function returns key value.

func (WhatAuthorizedResponse_ActionValidationError) Reason

Reason function returns reason value.

type WhatAuthorizedResponse_Resource

type WhatAuthorizedResponse_Resource struct {

	// Resource external identifier
	ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WhatAuthorizedResponse_Resource) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedResponse_Resource.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedResponse_Resource) GetExternalId

func (x *WhatAuthorizedResponse_Resource) GetExternalId() string

func (*WhatAuthorizedResponse_Resource) ProtoMessage

func (*WhatAuthorizedResponse_Resource) ProtoMessage()

func (*WhatAuthorizedResponse_Resource) ProtoReflect

func (*WhatAuthorizedResponse_Resource) Reset

func (*WhatAuthorizedResponse_Resource) String

func (*WhatAuthorizedResponse_Resource) Validate

func (m *WhatAuthorizedResponse_Resource) Validate() error

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

func (*WhatAuthorizedResponse_Resource) ValidateAll

func (m *WhatAuthorizedResponse_Resource) ValidateAll() error

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

type WhatAuthorizedResponse_ResourceMultiError

type WhatAuthorizedResponse_ResourceMultiError []error

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

func (WhatAuthorizedResponse_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedResponse_ResourceMultiError) Error

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

type WhatAuthorizedResponse_ResourceType

type WhatAuthorizedResponse_ResourceType struct {

	// Map with action as key
	Actions map[string]*WhatAuthorizedResponse_Action `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhatAuthorizedResponse_ResourceType) Descriptor deprecated

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

Deprecated: Use WhatAuthorizedResponse_ResourceType.ProtoReflect.Descriptor instead.

func (*WhatAuthorizedResponse_ResourceType) GetActions

func (*WhatAuthorizedResponse_ResourceType) ProtoMessage

func (*WhatAuthorizedResponse_ResourceType) ProtoMessage()

func (*WhatAuthorizedResponse_ResourceType) ProtoReflect

func (*WhatAuthorizedResponse_ResourceType) Reset

func (*WhatAuthorizedResponse_ResourceType) String

func (*WhatAuthorizedResponse_ResourceType) Validate

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

func (*WhatAuthorizedResponse_ResourceType) ValidateAll

func (m *WhatAuthorizedResponse_ResourceType) ValidateAll() error

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

type WhatAuthorizedResponse_ResourceTypeMultiError

type WhatAuthorizedResponse_ResourceTypeMultiError []error

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

func (WhatAuthorizedResponse_ResourceTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhatAuthorizedResponse_ResourceTypeMultiError) Error

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

type WhatAuthorizedResponse_ResourceTypeValidationError

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

WhatAuthorizedResponse_ResourceTypeValidationError is the validation error returned by WhatAuthorizedResponse_ResourceType.Validate if the designated constraints aren't met.

func (WhatAuthorizedResponse_ResourceTypeValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedResponse_ResourceTypeValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedResponse_ResourceTypeValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedResponse_ResourceTypeValidationError) Field

Field function returns field value.

func (WhatAuthorizedResponse_ResourceTypeValidationError) Key

Key function returns key value.

func (WhatAuthorizedResponse_ResourceTypeValidationError) Reason

Reason function returns reason value.

type WhatAuthorizedResponse_ResourceValidationError

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

WhatAuthorizedResponse_ResourceValidationError is the validation error returned by WhatAuthorizedResponse_Resource.Validate if the designated constraints aren't met.

func (WhatAuthorizedResponse_ResourceValidationError) Cause

Cause function returns cause value.

func (WhatAuthorizedResponse_ResourceValidationError) Error

Error satisfies the builtin error interface

func (WhatAuthorizedResponse_ResourceValidationError) ErrorName

ErrorName returns error name.

func (WhatAuthorizedResponse_ResourceValidationError) Field

Field function returns field value.

func (WhatAuthorizedResponse_ResourceValidationError) Key

Key function returns key value.

func (WhatAuthorizedResponse_ResourceValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedRequest

type WhoAuthorizedRequest struct {

	// A list of resources to authorize against.
	Resources []*WhoAuthorizedRequest_Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// Policy input params
	InputParams map[string]*InputParam `` /* 182-byte string literal not displayed */
	// Only evaluate polices containing provided tags
	PolicyTags []string `protobuf:"bytes,3,rep,name=policy_tags,json=policyTags,proto3" json:"policy_tags,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoAuthorizedRequest) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedRequest.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedRequest) GetInputParams

func (x *WhoAuthorizedRequest) GetInputParams() map[string]*InputParam

func (*WhoAuthorizedRequest) GetPolicyTags

func (x *WhoAuthorizedRequest) GetPolicyTags() []string

func (*WhoAuthorizedRequest) GetResources

func (*WhoAuthorizedRequest) ProtoMessage

func (*WhoAuthorizedRequest) ProtoMessage()

func (*WhoAuthorizedRequest) ProtoReflect

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

func (*WhoAuthorizedRequest) Reset

func (x *WhoAuthorizedRequest) Reset()

func (*WhoAuthorizedRequest) String

func (x *WhoAuthorizedRequest) String() string

func (*WhoAuthorizedRequest) Validate

func (m *WhoAuthorizedRequest) Validate() error

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

func (*WhoAuthorizedRequest) ValidateAll

func (m *WhoAuthorizedRequest) ValidateAll() error

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

type WhoAuthorizedRequestMultiError

type WhoAuthorizedRequestMultiError []error

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

func (WhoAuthorizedRequestMultiError) AllErrors

func (m WhoAuthorizedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedRequestMultiError) Error

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

type WhoAuthorizedRequestValidationError

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

WhoAuthorizedRequestValidationError is the validation error returned by WhoAuthorizedRequest.Validate if the designated constraints aren't met.

func (WhoAuthorizedRequestValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedRequestValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedRequestValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedRequestValidationError) Field

Field function returns field value.

func (WhoAuthorizedRequestValidationError) Key

Key function returns key value.

func (WhoAuthorizedRequestValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedRequest_Resource

type WhoAuthorizedRequest_Resource struct {

	// Resource external id.
	ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// Resource type.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// A list of actions the subject want to perform.
	Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

Resource to authorize against.

func (*WhoAuthorizedRequest_Resource) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedRequest_Resource.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedRequest_Resource) GetActions

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

func (*WhoAuthorizedRequest_Resource) GetExternalId added in v0.17.1

func (x *WhoAuthorizedRequest_Resource) GetExternalId() string

func (*WhoAuthorizedRequest_Resource) GetType

func (*WhoAuthorizedRequest_Resource) ProtoMessage

func (*WhoAuthorizedRequest_Resource) ProtoMessage()

func (*WhoAuthorizedRequest_Resource) ProtoReflect

func (*WhoAuthorizedRequest_Resource) Reset

func (x *WhoAuthorizedRequest_Resource) Reset()

func (*WhoAuthorizedRequest_Resource) String

func (*WhoAuthorizedRequest_Resource) Validate

func (m *WhoAuthorizedRequest_Resource) Validate() error

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

func (*WhoAuthorizedRequest_Resource) ValidateAll

func (m *WhoAuthorizedRequest_Resource) ValidateAll() error

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

type WhoAuthorizedRequest_ResourceMultiError

type WhoAuthorizedRequest_ResourceMultiError []error

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

func (WhoAuthorizedRequest_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedRequest_ResourceMultiError) Error

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

type WhoAuthorizedRequest_ResourceValidationError

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

WhoAuthorizedRequest_ResourceValidationError is the validation error returned by WhoAuthorizedRequest_Resource.Validate if the designated constraints aren't met.

func (WhoAuthorizedRequest_ResourceValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedRequest_ResourceValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedRequest_ResourceValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedRequest_ResourceValidationError) Field

Field function returns field value.

func (WhoAuthorizedRequest_ResourceValidationError) Key

Key function returns key value.

func (WhoAuthorizedRequest_ResourceValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedResponse

type WhoAuthorizedResponse struct {

	// Time the decision was made.
	DecisionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=decision_time,json=decisionTime,proto3" json:"decision_time,omitempty"`
	// Map with resource type as key.
	Decisions map[string]*WhoAuthorizedResponse_ResourceType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhoAuthorizedResponse) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedResponse) GetDecisionTime

func (x *WhoAuthorizedResponse) GetDecisionTime() *timestamppb.Timestamp

func (*WhoAuthorizedResponse) GetDecisions

func (*WhoAuthorizedResponse) ProtoMessage

func (*WhoAuthorizedResponse) ProtoMessage()

func (*WhoAuthorizedResponse) ProtoReflect

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

func (*WhoAuthorizedResponse) Reset

func (x *WhoAuthorizedResponse) Reset()

func (*WhoAuthorizedResponse) String

func (x *WhoAuthorizedResponse) String() string

func (*WhoAuthorizedResponse) Validate

func (m *WhoAuthorizedResponse) Validate() error

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

func (*WhoAuthorizedResponse) ValidateAll

func (m *WhoAuthorizedResponse) ValidateAll() error

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

type WhoAuthorizedResponseMultiError

type WhoAuthorizedResponseMultiError []error

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

func (WhoAuthorizedResponseMultiError) AllErrors

func (m WhoAuthorizedResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedResponseMultiError) Error

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

type WhoAuthorizedResponseValidationError

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

WhoAuthorizedResponseValidationError is the validation error returned by WhoAuthorizedResponse.Validate if the designated constraints aren't met.

func (WhoAuthorizedResponseValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedResponseValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedResponseValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedResponseValidationError) Field

Field function returns field value.

func (WhoAuthorizedResponseValidationError) Key

Key function returns key value.

func (WhoAuthorizedResponseValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedResponse_Action

type WhoAuthorizedResponse_Action struct {

	// List of subjects.
	Subjects []*WhoAuthorizedResponse_Subject `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoAuthorizedResponse_Action) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedResponse_Action.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedResponse_Action) GetSubjects

func (*WhoAuthorizedResponse_Action) ProtoMessage

func (*WhoAuthorizedResponse_Action) ProtoMessage()

func (*WhoAuthorizedResponse_Action) ProtoReflect

func (*WhoAuthorizedResponse_Action) Reset

func (x *WhoAuthorizedResponse_Action) Reset()

func (*WhoAuthorizedResponse_Action) String

func (*WhoAuthorizedResponse_Action) Validate

func (m *WhoAuthorizedResponse_Action) Validate() error

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

func (*WhoAuthorizedResponse_Action) ValidateAll

func (m *WhoAuthorizedResponse_Action) ValidateAll() error

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

type WhoAuthorizedResponse_ActionMultiError

type WhoAuthorizedResponse_ActionMultiError []error

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

func (WhoAuthorizedResponse_ActionMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedResponse_ActionMultiError) Error

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

type WhoAuthorizedResponse_ActionValidationError

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

WhoAuthorizedResponse_ActionValidationError is the validation error returned by WhoAuthorizedResponse_Action.Validate if the designated constraints aren't met.

func (WhoAuthorizedResponse_ActionValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedResponse_ActionValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedResponse_ActionValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedResponse_ActionValidationError) Field

Field function returns field value.

func (WhoAuthorizedResponse_ActionValidationError) Key

Key function returns key value.

func (WhoAuthorizedResponse_ActionValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedResponse_Resource

type WhoAuthorizedResponse_Resource struct {

	// Map with actions as key.
	Actions map[string]*WhoAuthorizedResponse_Action `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhoAuthorizedResponse_Resource) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedResponse_Resource.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedResponse_Resource) GetActions

func (*WhoAuthorizedResponse_Resource) ProtoMessage

func (*WhoAuthorizedResponse_Resource) ProtoMessage()

func (*WhoAuthorizedResponse_Resource) ProtoReflect

func (*WhoAuthorizedResponse_Resource) Reset

func (x *WhoAuthorizedResponse_Resource) Reset()

func (*WhoAuthorizedResponse_Resource) String

func (*WhoAuthorizedResponse_Resource) Validate

func (m *WhoAuthorizedResponse_Resource) Validate() error

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

func (*WhoAuthorizedResponse_Resource) ValidateAll

func (m *WhoAuthorizedResponse_Resource) ValidateAll() error

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

type WhoAuthorizedResponse_ResourceMultiError

type WhoAuthorizedResponse_ResourceMultiError []error

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

func (WhoAuthorizedResponse_ResourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedResponse_ResourceMultiError) Error

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

type WhoAuthorizedResponse_ResourceType

type WhoAuthorizedResponse_ResourceType struct {

	// Map with resource external id as key.
	Resources map[string]*WhoAuthorizedResponse_Resource `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhoAuthorizedResponse_ResourceType) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedResponse_ResourceType.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedResponse_ResourceType) GetResources

func (*WhoAuthorizedResponse_ResourceType) ProtoMessage

func (*WhoAuthorizedResponse_ResourceType) ProtoMessage()

func (*WhoAuthorizedResponse_ResourceType) ProtoReflect

func (*WhoAuthorizedResponse_ResourceType) Reset

func (*WhoAuthorizedResponse_ResourceType) String

func (*WhoAuthorizedResponse_ResourceType) Validate

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

func (*WhoAuthorizedResponse_ResourceType) ValidateAll

func (m *WhoAuthorizedResponse_ResourceType) ValidateAll() error

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

type WhoAuthorizedResponse_ResourceTypeMultiError

type WhoAuthorizedResponse_ResourceTypeMultiError []error

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

func (WhoAuthorizedResponse_ResourceTypeMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedResponse_ResourceTypeMultiError) Error

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

type WhoAuthorizedResponse_ResourceTypeValidationError

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

WhoAuthorizedResponse_ResourceTypeValidationError is the validation error returned by WhoAuthorizedResponse_ResourceType.Validate if the designated constraints aren't met.

func (WhoAuthorizedResponse_ResourceTypeValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedResponse_ResourceTypeValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedResponse_ResourceTypeValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedResponse_ResourceTypeValidationError) Field

Field function returns field value.

func (WhoAuthorizedResponse_ResourceTypeValidationError) Key

Key function returns key value.

func (WhoAuthorizedResponse_ResourceTypeValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedResponse_ResourceValidationError

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

WhoAuthorizedResponse_ResourceValidationError is the validation error returned by WhoAuthorizedResponse_Resource.Validate if the designated constraints aren't met.

func (WhoAuthorizedResponse_ResourceValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedResponse_ResourceValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedResponse_ResourceValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedResponse_ResourceValidationError) Field

Field function returns field value.

func (WhoAuthorizedResponse_ResourceValidationError) Key

Key function returns key value.

func (WhoAuthorizedResponse_ResourceValidationError) Reason

Reason function returns reason value.

type WhoAuthorizedResponse_Subject

type WhoAuthorizedResponse_Subject struct {

	// Resource external identifier.
	ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoAuthorizedResponse_Subject) Descriptor deprecated

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

Deprecated: Use WhoAuthorizedResponse_Subject.ProtoReflect.Descriptor instead.

func (*WhoAuthorizedResponse_Subject) GetExternalId

func (x *WhoAuthorizedResponse_Subject) GetExternalId() string

func (*WhoAuthorizedResponse_Subject) ProtoMessage

func (*WhoAuthorizedResponse_Subject) ProtoMessage()

func (*WhoAuthorizedResponse_Subject) ProtoReflect

func (*WhoAuthorizedResponse_Subject) Reset

func (x *WhoAuthorizedResponse_Subject) Reset()

func (*WhoAuthorizedResponse_Subject) String

func (*WhoAuthorizedResponse_Subject) Validate

func (m *WhoAuthorizedResponse_Subject) Validate() error

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

func (*WhoAuthorizedResponse_Subject) ValidateAll

func (m *WhoAuthorizedResponse_Subject) ValidateAll() error

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

type WhoAuthorizedResponse_SubjectMultiError

type WhoAuthorizedResponse_SubjectMultiError []error

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

func (WhoAuthorizedResponse_SubjectMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WhoAuthorizedResponse_SubjectMultiError) Error

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

type WhoAuthorizedResponse_SubjectValidationError

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

WhoAuthorizedResponse_SubjectValidationError is the validation error returned by WhoAuthorizedResponse_Subject.Validate if the designated constraints aren't met.

func (WhoAuthorizedResponse_SubjectValidationError) Cause

Cause function returns cause value.

func (WhoAuthorizedResponse_SubjectValidationError) Error

Error satisfies the builtin error interface

func (WhoAuthorizedResponse_SubjectValidationError) ErrorName

ErrorName returns error name.

func (WhoAuthorizedResponse_SubjectValidationError) Field

Field function returns field value.

func (WhoAuthorizedResponse_SubjectValidationError) Key

Key function returns key value.

func (WhoAuthorizedResponse_SubjectValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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