acp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName              = "/sourcehub.acp.Query/Params"
	Query_Policy_FullMethodName              = "/sourcehub.acp.Query/Policy"
	Query_PolicyIds_FullMethodName           = "/sourcehub.acp.Query/PolicyIds"
	Query_FilterRelationships_FullMethodName = "/sourcehub.acp.Query/FilterRelationships"
	Query_VerifyAccessRequest_FullMethodName = "/sourcehub.acp.Query/VerifyAccessRequest"
	Query_ValidatePolicy_FullMethodName      = "/sourcehub.acp.Query/ValidatePolicy"
	Query_AccessDecision_FullMethodName      = "/sourcehub.acp.Query/AccessDecision"
)
View Source
const (
	Msg_UpdateParams_FullMethodName       = "/sourcehub.acp.Msg/UpdateParams"
	Msg_CreatePolicy_FullMethodName       = "/sourcehub.acp.Msg/CreatePolicy"
	Msg_SetRelationship_FullMethodName    = "/sourcehub.acp.Msg/SetRelationship"
	Msg_DeleteRelationship_FullMethodName = "/sourcehub.acp.Msg/DeleteRelationship"
	Msg_RegisterObject_FullMethodName     = "/sourcehub.acp.Msg/RegisterObject"
	Msg_UnregisterObject_FullMethodName   = "/sourcehub.acp.Msg/UnregisterObject"
	Msg_CheckAccess_FullMethodName        = "/sourcehub.acp.Msg/CheckAccess"
)

Variables

View Source
var (
	PolicyMarshalingType_name = map[int32]string{
		0: "UNKNOWN",
		1: "SHORT_YAML",
		2: "SHORT_JSON",
	}
	PolicyMarshalingType_value = map[string]int32{
		"UNKNOWN":    0,
		"SHORT_YAML": 1,
		"SHORT_JSON": 2,
	}
)

Enum value maps for PolicyMarshalingType.

View Source
var (
	RegistrationResult_name = map[int32]string{
		0: "NoOp",
		1: "Registered",
		2: "Unarchived",
	}
	RegistrationResult_value = map[string]int32{
		"NoOp":       0,
		"Registered": 1,
		"Unarchived": 2,
	}
)

Enum value maps for RegistrationResult.

View Source
var File_sourcehub_acp_access_decision_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_access_ticket_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_event_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_genesis_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_params_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_policy_definition_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_policy_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_policy_record_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_policy_short_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_query_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_relationship_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_relationship_selector_proto protoreflect.FileDescriptor
View Source
var File_sourcehub_acp_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sourcehub.acp.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "CreatePolicy",
			Handler:    _Msg_CreatePolicy_Handler,
		},
		{
			MethodName: "SetRelationship",
			Handler:    _Msg_SetRelationship_Handler,
		},
		{
			MethodName: "DeleteRelationship",
			Handler:    _Msg_DeleteRelationship_Handler,
		},
		{
			MethodName: "RegisterObject",
			Handler:    _Msg_RegisterObject_Handler,
		},
		{
			MethodName: "UnregisterObject",
			Handler:    _Msg_UnregisterObject_Handler,
		},
		{
			MethodName: "CheckAccess",
			Handler:    _Msg_CheckAccess_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sourcehub/acp/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg 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 Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sourcehub.acp.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Policy",
			Handler:    _Query_Policy_Handler,
		},
		{
			MethodName: "PolicyIds",
			Handler:    _Query_PolicyIds_Handler,
		},
		{
			MethodName: "FilterRelationships",
			Handler:    _Query_FilterRelationships_Handler,
		},
		{
			MethodName: "VerifyAccessRequest",
			Handler:    _Query_VerifyAccessRequest_Handler,
		},
		{
			MethodName: "ValidatePolicy",
			Handler:    _Query_ValidatePolicy_Handler,
		},
		{
			MethodName: "AccessDecision",
			Handler:    _Query_AccessDecision_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sourcehub/acp/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type AccessDecision

type AccessDecision struct {
	Id                 string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PolicyId           string                 `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`                                  // used as part of id generation
	Creator            string                 `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`                                                    // used as part of id generation
	CreatorAccSequence uint64                 `protobuf:"varint,4,opt,name=creator_acc_sequence,json=creatorAccSequence,proto3" json:"creator_acc_sequence,omitempty"` // used as part of id generation
	Operations         []*Operation           `protobuf:"bytes,5,rep,name=operations,proto3" json:"operations,omitempty"`                                              // used as part of id generation
	ActorDid           string                 `protobuf:"bytes,6,opt,name=actor_did,json=actorDid,proto3" json:"actor_did,omitempty"`                                  // used as part of id generation
	Actor              string                 `protobuf:"bytes,7,opt,name=actor,proto3" json:"actor,omitempty"`                                                        // used as part of id generation
	Params             *DecisionParams        `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"`                                                      // used as part of id generation
	CreationTime       *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// issued_height stores the block height when the Decision was evaluated
	IssuedHeight uint64 `protobuf:"varint,10,opt,name=issued_height,json=issuedHeight,proto3" json:"issued_height,omitempty"`
	// contains filtered or unexported fields
}

AccessDecision models the result of evaluating a set of AccessRequests for an Actor

func (*AccessDecision) Descriptor deprecated

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

Deprecated: Use AccessDecision.ProtoReflect.Descriptor instead.

func (*AccessDecision) GetActor

func (x *AccessDecision) GetActor() string

func (*AccessDecision) GetActorDid

func (x *AccessDecision) GetActorDid() string

func (*AccessDecision) GetCreationTime

func (x *AccessDecision) GetCreationTime() *timestamppb.Timestamp

func (*AccessDecision) GetCreator

func (x *AccessDecision) GetCreator() string

func (*AccessDecision) GetCreatorAccSequence

func (x *AccessDecision) GetCreatorAccSequence() uint64

func (*AccessDecision) GetId

func (x *AccessDecision) GetId() string

func (*AccessDecision) GetIssuedHeight

func (x *AccessDecision) GetIssuedHeight() uint64

func (*AccessDecision) GetOperations

func (x *AccessDecision) GetOperations() []*Operation

func (*AccessDecision) GetParams

func (x *AccessDecision) GetParams() *DecisionParams

func (*AccessDecision) GetPolicyId

func (x *AccessDecision) GetPolicyId() string

func (*AccessDecision) ProtoMessage

func (*AccessDecision) ProtoMessage()

func (*AccessDecision) ProtoReflect

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

func (*AccessDecision) Reset

func (x *AccessDecision) Reset()

func (*AccessDecision) String

func (x *AccessDecision) String() string

type AccessRequest

type AccessRequest struct {
	Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// actor requesting operations
	Actor *Actor `protobuf:"bytes,2,opt,name=actor,proto3" json:"actor,omitempty"`
	// contains filtered or unexported fields
}

AccessRequest represents the wish to perform a set of operations by an actor

func (*AccessRequest) Descriptor deprecated

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

Deprecated: Use AccessRequest.ProtoReflect.Descriptor instead.

func (*AccessRequest) GetActor

func (x *AccessRequest) GetActor() *Actor

func (*AccessRequest) GetOperations

func (x *AccessRequest) GetOperations() []*Operation

func (*AccessRequest) ProtoMessage

func (*AccessRequest) ProtoMessage()

func (*AccessRequest) ProtoReflect

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

func (*AccessRequest) Reset

func (x *AccessRequest) Reset()

func (*AccessRequest) String

func (x *AccessRequest) String() string

type AccessTicket

type AccessTicket struct {

	// identified the ticket version
	VersionDenominator string          `protobuf:"bytes,1,opt,name=version_denominator,json=versionDenominator,proto3" json:"version_denominator,omitempty"`
	DecisionId         string          `protobuf:"bytes,2,opt,name=decision_id,json=decisionId,proto3" json:"decision_id,omitempty"`
	Decision           *AccessDecision `protobuf:"bytes,3,opt,name=decision,proto3" json:"decision,omitempty"`
	// proof of existance that the given decision exists in the chain
	// validation strategy is dependent on ticket version
	DecisionProof []byte `protobuf:"bytes,4,opt,name=decision_proof,json=decisionProof,proto3" json:"decision_proof,omitempty"`
	// signature of ticket which must match actor pkey in the access decision
	Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Represents a Capability token containing an opaque proof and a set of Operations the Actor is allowed to perform. Tickets should be verified by a Reference Monitor before granting access to the requested operations.

func (*AccessTicket) Descriptor deprecated

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

Deprecated: Use AccessTicket.ProtoReflect.Descriptor instead.

func (*AccessTicket) GetDecision

func (x *AccessTicket) GetDecision() *AccessDecision

func (*AccessTicket) GetDecisionId

func (x *AccessTicket) GetDecisionId() string

func (*AccessTicket) GetDecisionProof

func (x *AccessTicket) GetDecisionProof() []byte

func (*AccessTicket) GetSignature

func (x *AccessTicket) GetSignature() []byte

func (*AccessTicket) GetVersionDenominator

func (x *AccessTicket) GetVersionDenominator() string

func (*AccessTicket) ProtoMessage

func (*AccessTicket) ProtoMessage()

func (*AccessTicket) ProtoReflect

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

func (*AccessTicket) Reset

func (x *AccessTicket) Reset()

func (*AccessTicket) String

func (x *AccessTicket) String() string

type Actor

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

Actor represents an entity which makes access requests to a Policy.

func (*Actor) Descriptor deprecated

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

Deprecated: Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetId

func (x *Actor) GetId() string

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

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

func (*Actor) Reset

func (x *Actor) Reset()

func (*Actor) String

func (x *Actor) String() string

type ActorResource

type ActorResource struct {
	Name      string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Doc       string      `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"`
	Relations []*Relation `protobuf:"bytes,3,rep,name=relations,proto3" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

ActorResource represents a special Resource which is reserved for Policy actors.

func (*ActorResource) Descriptor deprecated

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

Deprecated: Use ActorResource.ProtoReflect.Descriptor instead.

func (*ActorResource) GetDoc

func (x *ActorResource) GetDoc() string

func (*ActorResource) GetName

func (x *ActorResource) GetName() string

func (*ActorResource) GetRelations

func (x *ActorResource) GetRelations() []*Relation

func (*ActorResource) ProtoMessage

func (*ActorResource) ProtoMessage()

func (*ActorResource) ProtoReflect

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

func (*ActorResource) Reset

func (x *ActorResource) Reset()

func (*ActorResource) String

func (x *ActorResource) String() string

type ActorSet

type ActorSet struct {
	Object   *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Relation string  `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// contains filtered or unexported fields
}

ActorSet represents a set of Actors in a Policy. It is specified through an Object, Relation pair, which represents all actors which have a relationship with given obj-rel pair. This expansion is recursive.

func (*ActorSet) Descriptor deprecated

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

Deprecated: Use ActorSet.ProtoReflect.Descriptor instead.

func (*ActorSet) GetObject

func (x *ActorSet) GetObject() *Object

func (*ActorSet) GetRelation

func (x *ActorSet) GetRelation() string

func (*ActorSet) ProtoMessage

func (*ActorSet) ProtoMessage()

func (*ActorSet) ProtoReflect

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

func (*ActorSet) Reset

func (x *ActorSet) Reset()

func (*ActorSet) String

func (x *ActorSet) String() string

type AllActors

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

AllActors models a special Relationship Subject which indicates that all Actors in the Policy are included.

func (*AllActors) Descriptor deprecated

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

Deprecated: Use AllActors.ProtoReflect.Descriptor instead.

func (*AllActors) ProtoMessage

func (*AllActors) ProtoMessage()

func (*AllActors) ProtoReflect

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

func (*AllActors) Reset

func (x *AllActors) Reset()

func (*AllActors) String

func (x *AllActors) String() string

type DecisionParams

type DecisionParams struct {

	// number of blocks a Decision is valid for
	DecisionExpirationDelta uint64 `` /* 133-byte string literal not displayed */
	// number of blocks a DecisionProof is valid for
	ProofExpirationDelta uint64 `protobuf:"varint,2,opt,name=proof_expiration_delta,json=proofExpirationDelta,proto3" json:"proof_expiration_delta,omitempty"`
	// number of blocks an AccessTicket is valid for
	TicketExpirationDelta uint64 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

DecisionParams stores auxiliary information regarding the validity of a decision

func (*DecisionParams) Descriptor deprecated

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

Deprecated: Use DecisionParams.ProtoReflect.Descriptor instead.

func (*DecisionParams) GetDecisionExpirationDelta

func (x *DecisionParams) GetDecisionExpirationDelta() uint64

func (*DecisionParams) GetProofExpirationDelta

func (x *DecisionParams) GetProofExpirationDelta() uint64

func (*DecisionParams) GetTicketExpirationDelta

func (x *DecisionParams) GetTicketExpirationDelta() uint64

func (*DecisionParams) ProtoMessage

func (*DecisionParams) ProtoMessage()

func (*DecisionParams) ProtoReflect

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

func (*DecisionParams) Reset

func (x *DecisionParams) Reset()

func (*DecisionParams) String

func (x *DecisionParams) String() string

type EventAccessDecisionCreated

type EventAccessDecisionCreated struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId   string `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	DecisionId string `protobuf:"bytes,3,opt,name=decision_id,json=decisionId,proto3" json:"decision_id,omitempty"`
	Actor      string `protobuf:"bytes,4,opt,name=actor,proto3" json:"actor,omitempty"`
	ActorDid   string `protobuf:"bytes,5,opt,name=actor_did,json=actorDid,proto3" json:"actor_did,omitempty"`
	// contains filtered or unexported fields
}

func (*EventAccessDecisionCreated) Descriptor deprecated

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

Deprecated: Use EventAccessDecisionCreated.ProtoReflect.Descriptor instead.

func (*EventAccessDecisionCreated) GetActor

func (x *EventAccessDecisionCreated) GetActor() string

func (*EventAccessDecisionCreated) GetActorDid

func (x *EventAccessDecisionCreated) GetActorDid() string

func (*EventAccessDecisionCreated) GetCreator

func (x *EventAccessDecisionCreated) GetCreator() string

func (*EventAccessDecisionCreated) GetDecisionId

func (x *EventAccessDecisionCreated) GetDecisionId() string

func (*EventAccessDecisionCreated) GetPolicyId

func (x *EventAccessDecisionCreated) GetPolicyId() string

func (*EventAccessDecisionCreated) ProtoMessage

func (*EventAccessDecisionCreated) ProtoMessage()

func (*EventAccessDecisionCreated) ProtoReflect

func (*EventAccessDecisionCreated) Reset

func (x *EventAccessDecisionCreated) Reset()

func (*EventAccessDecisionCreated) String

func (x *EventAccessDecisionCreated) String() string

type EventPolicyCreated

type EventPolicyCreated struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId   string `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	PolicyName string `protobuf:"bytes,3,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventPolicyCreated) Descriptor deprecated

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

Deprecated: Use EventPolicyCreated.ProtoReflect.Descriptor instead.

func (*EventPolicyCreated) GetCreator

func (x *EventPolicyCreated) GetCreator() string

func (*EventPolicyCreated) GetPolicyId

func (x *EventPolicyCreated) GetPolicyId() string

func (*EventPolicyCreated) GetPolicyName

func (x *EventPolicyCreated) GetPolicyName() string

func (*EventPolicyCreated) ProtoMessage

func (*EventPolicyCreated) ProtoMessage()

func (*EventPolicyCreated) ProtoReflect

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

func (*EventPolicyCreated) Reset

func (x *EventPolicyCreated) Reset()

func (*EventPolicyCreated) String

func (x *EventPolicyCreated) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the acp module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type ManagementGraph

type ManagementGraph struct {

	// map of node id to node definition
	Nodes map[string]*ManagerNode `` /* 151-byte string literal not displayed */
	// stores all edges leaving a node
	ForwardEdges map[string]*ManagerEdges `` /* 185-byte string literal not displayed */
	// stores all edges pointing to a node
	BackwardEdges map[string]*ManagerEdges `` /* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

ManagementGraph represents a Policy's Relation Management Graph.

The ManagementGraph is a directed graph which expresses the notion of Relation Management Authority. Relation Management Authority is the idea that a certain set of relationships with relation R will be managed by an actor with relation RM. Thus we can say RM manages R, meaning that if an actor A has a relationship 'actor {A} is a {RM} for {O}' where O is an object, then Actor A can create relationships 'actor {S} is a {R} for {O}' for any actor S.

Nodes in the Graph are Relations in a Policy. Edges point from one Relation to another.

NOTE: This proto definition should be treated as an *abstract data type*, meaning that the fields should not be manually editted.

func (*ManagementGraph) Descriptor deprecated

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

Deprecated: Use ManagementGraph.ProtoReflect.Descriptor instead.

func (*ManagementGraph) GetBackwardEdges

func (x *ManagementGraph) GetBackwardEdges() map[string]*ManagerEdges

func (*ManagementGraph) GetForwardEdges

func (x *ManagementGraph) GetForwardEdges() map[string]*ManagerEdges

func (*ManagementGraph) GetNodes

func (x *ManagementGraph) GetNodes() map[string]*ManagerNode

func (*ManagementGraph) ProtoMessage

func (*ManagementGraph) ProtoMessage()

func (*ManagementGraph) ProtoReflect

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

func (*ManagementGraph) Reset

func (x *ManagementGraph) Reset()

func (*ManagementGraph) String

func (x *ManagementGraph) String() string

type ManagerEdges

type ManagerEdges struct {
	Edges map[string]bool `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ManagerEdges) Descriptor deprecated

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

Deprecated: Use ManagerEdges.ProtoReflect.Descriptor instead.

func (*ManagerEdges) GetEdges

func (x *ManagerEdges) GetEdges() map[string]bool

func (*ManagerEdges) ProtoMessage

func (*ManagerEdges) ProtoMessage()

func (*ManagerEdges) ProtoReflect

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

func (*ManagerEdges) Reset

func (x *ManagerEdges) Reset()

func (*ManagerEdges) String

func (x *ManagerEdges) String() string

type ManagerNode

type ManagerNode struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagerNode) Descriptor deprecated

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

Deprecated: Use ManagerNode.ProtoReflect.Descriptor instead.

func (*ManagerNode) GetId

func (x *ManagerNode) GetId() string

func (*ManagerNode) GetText

func (x *ManagerNode) GetText() string

func (*ManagerNode) ProtoMessage

func (*ManagerNode) ProtoMessage()

func (*ManagerNode) ProtoReflect

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

func (*ManagerNode) Reset

func (x *ManagerNode) Reset()

func (*ManagerNode) String

func (x *ManagerNode) String() string

type MarshaledPolicy

type MarshaledPolicy struct {
	Policy string               `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	Type_  PolicyMarshalingType `protobuf:"varint,2,opt,name=type,proto3,enum=sourcehub.acp.PolicyMarshalingType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

MarshaledPolicy represents a PolicyShort object marshaled to a known encoding format

func (*MarshaledPolicy) Descriptor deprecated

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

Deprecated: Use MarshaledPolicy.ProtoReflect.Descriptor instead.

func (*MarshaledPolicy) GetPolicy

func (x *MarshaledPolicy) GetPolicy() string

func (*MarshaledPolicy) GetType_

func (x *MarshaledPolicy) GetType_() PolicyMarshalingType

func (*MarshaledPolicy) ProtoMessage

func (*MarshaledPolicy) ProtoMessage()

func (*MarshaledPolicy) ProtoReflect

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

func (*MarshaledPolicy) Reset

func (x *MarshaledPolicy) Reset()

func (*MarshaledPolicy) String

func (x *MarshaledPolicy) String() string

type MsgCheckAccess

type MsgCheckAccess struct {
	Creator       string                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId      string                 `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	CreationTime  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	AccessRequest *AccessRequest         `protobuf:"bytes,4,opt,name=access_request,json=accessRequest,proto3" json:"access_request,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCheckAccess) Descriptor deprecated

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

Deprecated: Use MsgCheckAccess.ProtoReflect.Descriptor instead.

func (*MsgCheckAccess) GetAccessRequest

func (x *MsgCheckAccess) GetAccessRequest() *AccessRequest

func (*MsgCheckAccess) GetCreationTime

func (x *MsgCheckAccess) GetCreationTime() *timestamppb.Timestamp

func (*MsgCheckAccess) GetCreator

func (x *MsgCheckAccess) GetCreator() string

func (*MsgCheckAccess) GetPolicyId

func (x *MsgCheckAccess) GetPolicyId() string

func (*MsgCheckAccess) ProtoMessage

func (*MsgCheckAccess) ProtoMessage()

func (*MsgCheckAccess) ProtoReflect

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

func (*MsgCheckAccess) Reset

func (x *MsgCheckAccess) Reset()

func (*MsgCheckAccess) String

func (x *MsgCheckAccess) String() string

type MsgCheckAccessResponse

type MsgCheckAccessResponse struct {
	Decision *AccessDecision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCheckAccessResponse) Descriptor deprecated

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

Deprecated: Use MsgCheckAccessResponse.ProtoReflect.Descriptor instead.

func (*MsgCheckAccessResponse) GetDecision

func (x *MsgCheckAccessResponse) GetDecision() *AccessDecision

func (*MsgCheckAccessResponse) ProtoMessage

func (*MsgCheckAccessResponse) ProtoMessage()

func (*MsgCheckAccessResponse) ProtoReflect

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

func (*MsgCheckAccessResponse) Reset

func (x *MsgCheckAccessResponse) Reset()

func (*MsgCheckAccessResponse) String

func (x *MsgCheckAccessResponse) String() string

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// CreatePolicy adds a new Policy to SourceHub.
	// The Policy models an aplication's high level access control rules.
	CreatePolicy(ctx context.Context, in *MsgCreatePolicy, opts ...grpc.CallOption) (*MsgCreatePolicyResponse, error)
	// SetRelationship creates or updates a Relationship within a Policy
	// A Relationship is a statement which ties together an object and a subjecto with a "relation",
	// which means the set of high level rules defined in the Policy will apply to these entities.
	SetRelationship(ctx context.Context, in *MsgSetRelationship, opts ...grpc.CallOption) (*MsgSetRelationshipResponse, error)
	// DelereRelationship removes a Relationship from a Policy.
	// If the Relationship was not found in a Policy, this Msg is a no-op.
	DeleteRelationship(ctx context.Context, in *MsgDeleteRelationship, opts ...grpc.CallOption) (*MsgDeleteRelationshipResponse, error)
	// RegisterObject creates a special kind of Relationship within a Policy which ties
	// the msg's Actor as the owner of the msg's Object.
	// The Owner has complete control over the set of subjects that are related to their Object,
	// giving them autonomy to share the object and revoke acces to the object,
	// much like owners in a Discretionary Access Control model.
	//
	// Attempting to register a previously registered Object is an error,
	// Object IDs are therefore assumed to be unique within a Policy.
	RegisterObject(ctx context.Context, in *MsgRegisterObject, opts ...grpc.CallOption) (*MsgRegisterObjectResponse, error)
	// UnregisterObject let's an Object's Owner effectively "unshare" their Object.
	// This method wipes all Relationships referencing the given Object.
	//
	// A caveat is that after removing the Relationships, a record of the original Object owner
	// is maintained to prevent an "ownership hijack" attack.
	//
	// Suppose Bob owns object Foo, which is shared with Bob but not Eve.
	// Eve wants to access Foo but was not given permission to, they could "hijack" Bob's object by waiting for Bob to Unregister Foo,
	// then submitting a RegisterObject Msg, effectively becoming Foo's new owner.
	// If Charlie has a copy of the object, Eve could convince Charlie to share his copy, granting Eve access to Foo.
	// The previous scenario where an unauthorized user is able to claim ownership to data previously unaccessible to them
	// is an "ownership hijack".
	UnregisterObject(ctx context.Context, in *MsgUnregisterObject, opts ...grpc.CallOption) (*MsgUnregisterObjectResponse, error)
	// CheckAccess executes an Access Request for an User and stores the result of the evaluation in SourceHub.
	//
	// The resulting evaluation is used to generate a cryptographic proof that the given Access Request
	// was valid at a particular block height.
	CheckAccess(ctx context.Context, in *MsgCheckAccess, opts ...grpc.CallOption) (*MsgCheckAccessResponse, error)
}

MsgClient is the client API for Msg 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.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreatePolicy

type MsgCreatePolicy struct {
	Creator      string                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Policy       string                 `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	MarshalType  PolicyMarshalingType   `` /* 135-byte string literal not displayed */
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCreatePolicy) Descriptor deprecated

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

Deprecated: Use MsgCreatePolicy.ProtoReflect.Descriptor instead.

func (*MsgCreatePolicy) GetCreationTime

func (x *MsgCreatePolicy) GetCreationTime() *timestamppb.Timestamp

func (*MsgCreatePolicy) GetCreator

func (x *MsgCreatePolicy) GetCreator() string

func (*MsgCreatePolicy) GetMarshalType

func (x *MsgCreatePolicy) GetMarshalType() PolicyMarshalingType

func (*MsgCreatePolicy) GetPolicy

func (x *MsgCreatePolicy) GetPolicy() string

func (*MsgCreatePolicy) ProtoMessage

func (*MsgCreatePolicy) ProtoMessage()

func (*MsgCreatePolicy) ProtoReflect

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

func (*MsgCreatePolicy) Reset

func (x *MsgCreatePolicy) Reset()

func (*MsgCreatePolicy) String

func (x *MsgCreatePolicy) String() string

type MsgCreatePolicyResponse

type MsgCreatePolicyResponse struct {
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCreatePolicyResponse) Descriptor deprecated

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

Deprecated: Use MsgCreatePolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgCreatePolicyResponse) GetPolicy

func (x *MsgCreatePolicyResponse) GetPolicy() *Policy

func (*MsgCreatePolicyResponse) ProtoMessage

func (*MsgCreatePolicyResponse) ProtoMessage()

func (*MsgCreatePolicyResponse) ProtoReflect

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

func (*MsgCreatePolicyResponse) Reset

func (x *MsgCreatePolicyResponse) Reset()

func (*MsgCreatePolicyResponse) String

func (x *MsgCreatePolicyResponse) String() string

type MsgDeleteRelationship

type MsgDeleteRelationship struct {
	Creator      string        `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId     string        `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Relationship *Relationship `protobuf:"bytes,3,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgDeleteRelationship) Descriptor deprecated

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

Deprecated: Use MsgDeleteRelationship.ProtoReflect.Descriptor instead.

func (*MsgDeleteRelationship) GetCreator

func (x *MsgDeleteRelationship) GetCreator() string

func (*MsgDeleteRelationship) GetPolicyId

func (x *MsgDeleteRelationship) GetPolicyId() string

func (*MsgDeleteRelationship) GetRelationship

func (x *MsgDeleteRelationship) GetRelationship() *Relationship

func (*MsgDeleteRelationship) ProtoMessage

func (*MsgDeleteRelationship) ProtoMessage()

func (*MsgDeleteRelationship) ProtoReflect

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

func (*MsgDeleteRelationship) Reset

func (x *MsgDeleteRelationship) Reset()

func (*MsgDeleteRelationship) String

func (x *MsgDeleteRelationship) String() string

type MsgDeleteRelationshipResponse

type MsgDeleteRelationshipResponse struct {
	RecordFound bool `protobuf:"varint,1,opt,name=record_found,json=recordFound,proto3" json:"record_found,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgDeleteRelationshipResponse) Descriptor deprecated

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

Deprecated: Use MsgDeleteRelationshipResponse.ProtoReflect.Descriptor instead.

func (*MsgDeleteRelationshipResponse) GetRecordFound

func (x *MsgDeleteRelationshipResponse) GetRecordFound() bool

func (*MsgDeleteRelationshipResponse) ProtoMessage

func (*MsgDeleteRelationshipResponse) ProtoMessage()

func (*MsgDeleteRelationshipResponse) ProtoReflect

func (*MsgDeleteRelationshipResponse) Reset

func (x *MsgDeleteRelationshipResponse) Reset()

func (*MsgDeleteRelationshipResponse) String

type MsgRegisterObject

type MsgRegisterObject struct {
	Creator      string                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId     string                 `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Object       *Object                `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgRegisterObject) Descriptor deprecated

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

Deprecated: Use MsgRegisterObject.ProtoReflect.Descriptor instead.

func (*MsgRegisterObject) GetCreationTime

func (x *MsgRegisterObject) GetCreationTime() *timestamppb.Timestamp

func (*MsgRegisterObject) GetCreator

func (x *MsgRegisterObject) GetCreator() string

func (*MsgRegisterObject) GetObject

func (x *MsgRegisterObject) GetObject() *Object

func (*MsgRegisterObject) GetPolicyId

func (x *MsgRegisterObject) GetPolicyId() string

func (*MsgRegisterObject) ProtoMessage

func (*MsgRegisterObject) ProtoMessage()

func (*MsgRegisterObject) ProtoReflect

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

func (*MsgRegisterObject) Reset

func (x *MsgRegisterObject) Reset()

func (*MsgRegisterObject) String

func (x *MsgRegisterObject) String() string

type MsgRegisterObjectResponse

type MsgRegisterObjectResponse struct {
	Result RegistrationResult `protobuf:"varint,1,opt,name=result,proto3,enum=sourcehub.acp.RegistrationResult" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgRegisterObjectResponse) Descriptor deprecated

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

Deprecated: Use MsgRegisterObjectResponse.ProtoReflect.Descriptor instead.

func (*MsgRegisterObjectResponse) GetResult

func (*MsgRegisterObjectResponse) ProtoMessage

func (*MsgRegisterObjectResponse) ProtoMessage()

func (*MsgRegisterObjectResponse) ProtoReflect

func (*MsgRegisterObjectResponse) Reset

func (x *MsgRegisterObjectResponse) Reset()

func (*MsgRegisterObjectResponse) String

func (x *MsgRegisterObjectResponse) String() string

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// CreatePolicy adds a new Policy to SourceHub.
	// The Policy models an aplication's high level access control rules.
	CreatePolicy(context.Context, *MsgCreatePolicy) (*MsgCreatePolicyResponse, error)
	// SetRelationship creates or updates a Relationship within a Policy
	// A Relationship is a statement which ties together an object and a subjecto with a "relation",
	// which means the set of high level rules defined in the Policy will apply to these entities.
	SetRelationship(context.Context, *MsgSetRelationship) (*MsgSetRelationshipResponse, error)
	// DelereRelationship removes a Relationship from a Policy.
	// If the Relationship was not found in a Policy, this Msg is a no-op.
	DeleteRelationship(context.Context, *MsgDeleteRelationship) (*MsgDeleteRelationshipResponse, error)
	// RegisterObject creates a special kind of Relationship within a Policy which ties
	// the msg's Actor as the owner of the msg's Object.
	// The Owner has complete control over the set of subjects that are related to their Object,
	// giving them autonomy to share the object and revoke acces to the object,
	// much like owners in a Discretionary Access Control model.
	//
	// Attempting to register a previously registered Object is an error,
	// Object IDs are therefore assumed to be unique within a Policy.
	RegisterObject(context.Context, *MsgRegisterObject) (*MsgRegisterObjectResponse, error)
	// UnregisterObject let's an Object's Owner effectively "unshare" their Object.
	// This method wipes all Relationships referencing the given Object.
	//
	// A caveat is that after removing the Relationships, a record of the original Object owner
	// is maintained to prevent an "ownership hijack" attack.
	//
	// Suppose Bob owns object Foo, which is shared with Bob but not Eve.
	// Eve wants to access Foo but was not given permission to, they could "hijack" Bob's object by waiting for Bob to Unregister Foo,
	// then submitting a RegisterObject Msg, effectively becoming Foo's new owner.
	// If Charlie has a copy of the object, Eve could convince Charlie to share his copy, granting Eve access to Foo.
	// The previous scenario where an unauthorized user is able to claim ownership to data previously unaccessible to them
	// is an "ownership hijack".
	UnregisterObject(context.Context, *MsgUnregisterObject) (*MsgUnregisterObjectResponse, error)
	// CheckAccess executes an Access Request for an User and stores the result of the evaluation in SourceHub.
	//
	// The resulting evaluation is used to generate a cryptographic proof that the given Access Request
	// was valid at a particular block height.
	CheckAccess(context.Context, *MsgCheckAccess) (*MsgCheckAccessResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSetRelationship

type MsgSetRelationship struct {
	Creator      string                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId     string                 `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	Relationship *Relationship          `protobuf:"bytes,4,opt,name=relationship,proto3" json:"relationship,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgSetRelationship) Descriptor deprecated

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

Deprecated: Use MsgSetRelationship.ProtoReflect.Descriptor instead.

func (*MsgSetRelationship) GetCreationTime

func (x *MsgSetRelationship) GetCreationTime() *timestamppb.Timestamp

func (*MsgSetRelationship) GetCreator

func (x *MsgSetRelationship) GetCreator() string

func (*MsgSetRelationship) GetPolicyId

func (x *MsgSetRelationship) GetPolicyId() string

func (*MsgSetRelationship) GetRelationship

func (x *MsgSetRelationship) GetRelationship() *Relationship

func (*MsgSetRelationship) ProtoMessage

func (*MsgSetRelationship) ProtoMessage()

func (*MsgSetRelationship) ProtoReflect

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

func (*MsgSetRelationship) Reset

func (x *MsgSetRelationship) Reset()

func (*MsgSetRelationship) String

func (x *MsgSetRelationship) String() string

type MsgSetRelationshipResponse

type MsgSetRelationshipResponse struct {

	// Indicates whether the given Relationship previously existed, ie the Tx was a no op
	RecordExisted bool `protobuf:"varint,1,opt,name=record_existed,json=recordExisted,proto3" json:"record_existed,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgSetRelationshipResponse) Descriptor deprecated

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

Deprecated: Use MsgSetRelationshipResponse.ProtoReflect.Descriptor instead.

func (*MsgSetRelationshipResponse) GetRecordExisted

func (x *MsgSetRelationshipResponse) GetRecordExisted() bool

func (*MsgSetRelationshipResponse) ProtoMessage

func (*MsgSetRelationshipResponse) ProtoMessage()

func (*MsgSetRelationshipResponse) ProtoReflect

func (*MsgSetRelationshipResponse) Reset

func (x *MsgSetRelationshipResponse) Reset()

func (*MsgSetRelationshipResponse) String

func (x *MsgSetRelationshipResponse) String() string

type MsgUnregisterObject

type MsgUnregisterObject struct {
	Creator  string  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId string  `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Object   *Object `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUnregisterObject) Descriptor deprecated

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

Deprecated: Use MsgUnregisterObject.ProtoReflect.Descriptor instead.

func (*MsgUnregisterObject) GetCreator

func (x *MsgUnregisterObject) GetCreator() string

func (*MsgUnregisterObject) GetObject

func (x *MsgUnregisterObject) GetObject() *Object

func (*MsgUnregisterObject) GetPolicyId

func (x *MsgUnregisterObject) GetPolicyId() string

func (*MsgUnregisterObject) ProtoMessage

func (*MsgUnregisterObject) ProtoMessage()

func (*MsgUnregisterObject) ProtoReflect

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

func (*MsgUnregisterObject) Reset

func (x *MsgUnregisterObject) Reset()

func (*MsgUnregisterObject) String

func (x *MsgUnregisterObject) String() string

type MsgUnregisterObjectResponse

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

func (*MsgUnregisterObjectResponse) Descriptor deprecated

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

Deprecated: Use MsgUnregisterObjectResponse.ProtoReflect.Descriptor instead.

func (*MsgUnregisterObjectResponse) GetFound

func (x *MsgUnregisterObjectResponse) GetFound() bool

func (*MsgUnregisterObjectResponse) ProtoMessage

func (*MsgUnregisterObjectResponse) ProtoMessage()

func (*MsgUnregisterObjectResponse) ProtoReflect

func (*MsgUnregisterObjectResponse) Reset

func (x *MsgUnregisterObjectResponse) Reset()

func (*MsgUnregisterObjectResponse) String

func (x *MsgUnregisterObjectResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Object

type Object struct {
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Object represents an entity which must be access controlled within a Policy.

func (*Object) Descriptor deprecated

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

Deprecated: Use Object.ProtoReflect.Descriptor instead.

func (*Object) GetId

func (x *Object) GetId() string

func (*Object) GetResource

func (x *Object) GetResource() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) ProtoReflect

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

func (*Object) Reset

func (x *Object) Reset()

func (*Object) String

func (x *Object) String() string

type ObjectSelector

type ObjectSelector struct {

	// Types that are assignable to Selector:
	//
	//	*ObjectSelector_Object
	//	*ObjectSelector_Wildcard
	Selector isObjectSelector_Selector `protobuf_oneof:"selector"`
	// contains filtered or unexported fields
}

ObjectSelector models a filter for Relationship Objects

func (*ObjectSelector) Descriptor deprecated

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

Deprecated: Use ObjectSelector.ProtoReflect.Descriptor instead.

func (*ObjectSelector) GetObject

func (x *ObjectSelector) GetObject() *Object

func (*ObjectSelector) GetSelector

func (x *ObjectSelector) GetSelector() isObjectSelector_Selector

func (*ObjectSelector) GetWildcard

func (x *ObjectSelector) GetWildcard() *WildcardSelector

func (*ObjectSelector) ProtoMessage

func (*ObjectSelector) ProtoMessage()

func (*ObjectSelector) ProtoReflect

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

func (*ObjectSelector) Reset

func (x *ObjectSelector) Reset()

func (*ObjectSelector) String

func (x *ObjectSelector) String() string

type ObjectSelector_Object

type ObjectSelector_Object struct {
	// object specifies an object which the Relationship must contain
	Object *Object `protobuf:"bytes,1,opt,name=object,proto3,oneof"`
}

type ObjectSelector_Wildcard

type ObjectSelector_Wildcard struct {
	// wildcard matches any object
	Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof"`
}

type Operation

type Operation struct {

	// target object for operation
	Object *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	// permission required to perform operation
	Permission string `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

Operation represents an action over an object.

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetObject

func (x *Operation) GetObject() *Object

func (*Operation) GetPermission

func (x *Operation) GetPermission() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

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

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type Params

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

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Permission

type Permission struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Doc        string `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"`
	Expression string `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

Permission models a special type of Relation which is evaluated at runtime. A permission often maps to an operation defined for a resource which an actor may attempt.

func (*Permission) Descriptor deprecated

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

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetDoc

func (x *Permission) GetDoc() string

func (*Permission) GetExpression

func (x *Permission) GetExpression() string

func (*Permission) GetName

func (x *Permission) GetName() string

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

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

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) String

func (x *Permission) String() string

type PermissionShort

type PermissionShort struct {
	Doc  string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"`
	Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionShort) Descriptor deprecated

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

Deprecated: Use PermissionShort.ProtoReflect.Descriptor instead.

func (*PermissionShort) GetDoc

func (x *PermissionShort) GetDoc() string

func (*PermissionShort) GetExpr

func (x *PermissionShort) GetExpr() string

func (*PermissionShort) ProtoMessage

func (*PermissionShort) ProtoMessage()

func (*PermissionShort) ProtoReflect

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

func (*PermissionShort) Reset

func (x *PermissionShort) Reset()

func (*PermissionShort) String

func (x *PermissionShort) String() string

type Policy

type Policy struct {
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description   string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	CreationTime  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	Attributes    map[string]string      `` /* 161-byte string literal not displayed */
	Resources     []*Resource            `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
	ActorResource *ActorResource         `protobuf:"bytes,7,opt,name=actor_resource,json=actorResource,proto3" json:"actor_resource,omitempty"`
	Creator       string                 `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

Policy represents an ACP module Policy definition. Each Policy defines a set of high level rules over how the acces control system should behave.

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetActorResource

func (x *Policy) GetActorResource() *ActorResource

func (*Policy) GetAttributes

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

func (*Policy) GetCreationTime

func (x *Policy) GetCreationTime() *timestamppb.Timestamp

func (*Policy) GetCreator

func (x *Policy) GetCreator() string

func (*Policy) GetDescription

func (x *Policy) GetDescription() string

func (*Policy) GetId

func (x *Policy) GetId() string

func (*Policy) GetName

func (x *Policy) GetName() string

func (*Policy) GetResources

func (x *Policy) GetResources() []*Resource

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

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

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type PolicyDefinition

type PolicyDefinition struct {

	// Types that are assignable to Definition:
	//
	//	*PolicyDefinition_MarshaledPolicy
	//	*PolicyDefinition_Policy
	Definition isPolicyDefinition_Definition `protobuf_oneof:"definition"`
	// contains filtered or unexported fields
}

PolicyDefinition represents a Policy defined either as a raw Policy type or a shortened and marshaled version

func (*PolicyDefinition) Descriptor deprecated

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

Deprecated: Use PolicyDefinition.ProtoReflect.Descriptor instead.

func (*PolicyDefinition) GetDefinition

func (x *PolicyDefinition) GetDefinition() isPolicyDefinition_Definition

func (*PolicyDefinition) GetMarshaledPolicy

func (x *PolicyDefinition) GetMarshaledPolicy() *MarshaledPolicy

func (*PolicyDefinition) GetPolicy

func (x *PolicyDefinition) GetPolicy() *Policy

func (*PolicyDefinition) ProtoMessage

func (*PolicyDefinition) ProtoMessage()

func (*PolicyDefinition) ProtoReflect

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

func (*PolicyDefinition) Reset

func (x *PolicyDefinition) Reset()

func (*PolicyDefinition) String

func (x *PolicyDefinition) String() string

type PolicyDefinition_MarshaledPolicy

type PolicyDefinition_MarshaledPolicy struct {
	MarshaledPolicy *MarshaledPolicy `protobuf:"bytes,1,opt,name=marshaled_policy,json=marshaledPolicy,proto3,oneof"`
}

type PolicyDefinition_Policy

type PolicyDefinition_Policy struct {
	Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3,oneof"`
}

type PolicyMarshalingType

type PolicyMarshalingType int32

PolicyEncodingType enumerates supported marshaling types for policies.

const (
	// Fallback value for a missing Marshaling Type
	PolicyMarshalingType_UNKNOWN PolicyMarshalingType = 0
	// Policy Marshaled as a YAML Short Policy definition
	PolicyMarshalingType_SHORT_YAML PolicyMarshalingType = 1
	// Policy Marshaled as a JSON Short Policy definition
	PolicyMarshalingType_SHORT_JSON PolicyMarshalingType = 2
)

func (PolicyMarshalingType) Descriptor

func (PolicyMarshalingType) Enum

func (PolicyMarshalingType) EnumDescriptor deprecated

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

Deprecated: Use PolicyMarshalingType.Descriptor instead.

func (PolicyMarshalingType) Number

func (PolicyMarshalingType) String

func (x PolicyMarshalingType) String() string

func (PolicyMarshalingType) Type

type PolicyRecord

type PolicyRecord struct {
	Policy          *Policy          `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	ManagementGraph *ManagementGraph `protobuf:"bytes,2,opt,name=management_graph,json=managementGraph,proto3" json:"management_graph,omitempty"`
	// contains filtered or unexported fields
}

PolicyRecord represents a the Policy Document which will be persisted in the data layer

func (*PolicyRecord) Descriptor deprecated

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

Deprecated: Use PolicyRecord.ProtoReflect.Descriptor instead.

func (*PolicyRecord) GetManagementGraph

func (x *PolicyRecord) GetManagementGraph() *ManagementGraph

func (*PolicyRecord) GetPolicy

func (x *PolicyRecord) GetPolicy() *Policy

func (*PolicyRecord) ProtoMessage

func (*PolicyRecord) ProtoMessage()

func (*PolicyRecord) ProtoReflect

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

func (*PolicyRecord) Reset

func (x *PolicyRecord) Reset()

func (*PolicyRecord) String

func (x *PolicyRecord) String() string

type PolicyShort

type PolicyShort 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"`
	// meta field stores arbitrary key-values from users
	Meta map[string]string `` /* 149-byte string literal not displayed */
	// resources defines resources within a policy.
	// map keys define the name for a resource
	Resources map[string]*ResourceShort `` /* 159-byte string literal not displayed */
	// actor resource defines the actor resource for the policy
	// optional.
	Actor *ActorResource `protobuf:"bytes,6,opt,name=actor,proto3" json:"actor,omitempty"`
	// specify the policy version
	Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

PolicyShort is a compact Policy definition which is conveniently expressed as JSON or YAML. The shorthand format is used created a Policy.

func (*PolicyShort) Descriptor deprecated

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

Deprecated: Use PolicyShort.ProtoReflect.Descriptor instead.

func (*PolicyShort) GetActor

func (x *PolicyShort) GetActor() *ActorResource

func (*PolicyShort) GetDescription

func (x *PolicyShort) GetDescription() string

func (*PolicyShort) GetMeta

func (x *PolicyShort) GetMeta() map[string]string

func (*PolicyShort) GetName

func (x *PolicyShort) GetName() string

func (*PolicyShort) GetResources

func (x *PolicyShort) GetResources() map[string]*ResourceShort

func (*PolicyShort) GetVersion

func (x *PolicyShort) GetVersion() string

func (*PolicyShort) ProtoMessage

func (*PolicyShort) ProtoMessage()

func (*PolicyShort) ProtoReflect

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

func (*PolicyShort) Reset

func (x *PolicyShort) Reset()

func (*PolicyShort) String

func (x *PolicyShort) String() string

type QueryAccessDecisionRequest

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

func (*QueryAccessDecisionRequest) Descriptor deprecated

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

Deprecated: Use QueryAccessDecisionRequest.ProtoReflect.Descriptor instead.

func (*QueryAccessDecisionRequest) GetId

func (*QueryAccessDecisionRequest) ProtoMessage

func (*QueryAccessDecisionRequest) ProtoMessage()

func (*QueryAccessDecisionRequest) ProtoReflect

func (*QueryAccessDecisionRequest) Reset

func (x *QueryAccessDecisionRequest) Reset()

func (*QueryAccessDecisionRequest) String

func (x *QueryAccessDecisionRequest) String() string

type QueryAccessDecisionResponse

type QueryAccessDecisionResponse struct {
	Decision *AccessDecision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAccessDecisionResponse) Descriptor deprecated

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

Deprecated: Use QueryAccessDecisionResponse.ProtoReflect.Descriptor instead.

func (*QueryAccessDecisionResponse) GetDecision

func (x *QueryAccessDecisionResponse) GetDecision() *AccessDecision

func (*QueryAccessDecisionResponse) ProtoMessage

func (*QueryAccessDecisionResponse) ProtoMessage()

func (*QueryAccessDecisionResponse) ProtoReflect

func (*QueryAccessDecisionResponse) Reset

func (x *QueryAccessDecisionResponse) Reset()

func (*QueryAccessDecisionResponse) String

func (x *QueryAccessDecisionResponse) String() string

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Policy items.
	Policy(ctx context.Context, in *QueryPolicyRequest, opts ...grpc.CallOption) (*QueryPolicyResponse, error)
	// Queries a list of PolicyIds items.
	PolicyIds(ctx context.Context, in *QueryPolicyIdsRequest, opts ...grpc.CallOption) (*QueryPolicyIdsResponse, error)
	// Queries a list of FilterRelationships items.
	FilterRelationships(ctx context.Context, in *QueryFilterRelationshipsRequest, opts ...grpc.CallOption) (*QueryFilterRelationshipsResponse, error)
	// Queries a list of VerifyAccessRequest items.
	VerifyAccessRequest(ctx context.Context, in *QueryVerifyAccessRequestRequest, opts ...grpc.CallOption) (*QueryVerifyAccessRequestResponse, error)
	// Queries a list of ValidatePolicy items.
	ValidatePolicy(ctx context.Context, in *QueryValidatePolicyRequest, opts ...grpc.CallOption) (*QueryValidatePolicyResponse, error)
	// Queries a list of AccessDecision items.
	AccessDecision(ctx context.Context, in *QueryAccessDecisionRequest, opts ...grpc.CallOption) (*QueryAccessDecisionResponse, error)
}

QueryClient is the client API for Query 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.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryFilterRelationshipsRequest

type QueryFilterRelationshipsRequest struct {
	PolicyId string                `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Selector *RelationshipSelector `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryFilterRelationshipsRequest) Descriptor deprecated

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

Deprecated: Use QueryFilterRelationshipsRequest.ProtoReflect.Descriptor instead.

func (*QueryFilterRelationshipsRequest) GetPolicyId

func (x *QueryFilterRelationshipsRequest) GetPolicyId() string

func (*QueryFilterRelationshipsRequest) GetSelector

func (*QueryFilterRelationshipsRequest) ProtoMessage

func (*QueryFilterRelationshipsRequest) ProtoMessage()

func (*QueryFilterRelationshipsRequest) ProtoReflect

func (*QueryFilterRelationshipsRequest) Reset

func (*QueryFilterRelationshipsRequest) String

type QueryFilterRelationshipsResponse

type QueryFilterRelationshipsResponse struct {
	Records []*RelationshipRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryFilterRelationshipsResponse) Descriptor deprecated

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

Deprecated: Use QueryFilterRelationshipsResponse.ProtoReflect.Descriptor instead.

func (*QueryFilterRelationshipsResponse) GetRecords

func (*QueryFilterRelationshipsResponse) ProtoMessage

func (*QueryFilterRelationshipsResponse) ProtoMessage()

func (*QueryFilterRelationshipsResponse) ProtoReflect

func (*QueryFilterRelationshipsResponse) Reset

func (*QueryFilterRelationshipsResponse) String

type QueryParamsRequest

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

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryPolicyIdsRequest

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

func (*QueryPolicyIdsRequest) Descriptor deprecated

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

Deprecated: Use QueryPolicyIdsRequest.ProtoReflect.Descriptor instead.

func (*QueryPolicyIdsRequest) ProtoMessage

func (*QueryPolicyIdsRequest) ProtoMessage()

func (*QueryPolicyIdsRequest) ProtoReflect

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

func (*QueryPolicyIdsRequest) Reset

func (x *QueryPolicyIdsRequest) Reset()

func (*QueryPolicyIdsRequest) String

func (x *QueryPolicyIdsRequest) String() string

type QueryPolicyIdsResponse

type QueryPolicyIdsResponse struct {

	// cosmos.base.query.v1beta1.PageResponse pagination = 1;
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryPolicyIdsResponse) Descriptor deprecated

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

Deprecated: Use QueryPolicyIdsResponse.ProtoReflect.Descriptor instead.

func (*QueryPolicyIdsResponse) GetIds

func (x *QueryPolicyIdsResponse) GetIds() []string

func (*QueryPolicyIdsResponse) ProtoMessage

func (*QueryPolicyIdsResponse) ProtoMessage()

func (*QueryPolicyIdsResponse) ProtoReflect

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

func (*QueryPolicyIdsResponse) Reset

func (x *QueryPolicyIdsResponse) Reset()

func (*QueryPolicyIdsResponse) String

func (x *QueryPolicyIdsResponse) String() string

type QueryPolicyRequest

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

func (*QueryPolicyRequest) Descriptor deprecated

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

Deprecated: Use QueryPolicyRequest.ProtoReflect.Descriptor instead.

func (*QueryPolicyRequest) GetId

func (x *QueryPolicyRequest) GetId() string

func (*QueryPolicyRequest) ProtoMessage

func (*QueryPolicyRequest) ProtoMessage()

func (*QueryPolicyRequest) ProtoReflect

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

func (*QueryPolicyRequest) Reset

func (x *QueryPolicyRequest) Reset()

func (*QueryPolicyRequest) String

func (x *QueryPolicyRequest) String() string

type QueryPolicyResponse

type QueryPolicyResponse struct {
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryPolicyResponse) Descriptor deprecated

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

Deprecated: Use QueryPolicyResponse.ProtoReflect.Descriptor instead.

func (*QueryPolicyResponse) GetPolicy

func (x *QueryPolicyResponse) GetPolicy() *Policy

func (*QueryPolicyResponse) ProtoMessage

func (*QueryPolicyResponse) ProtoMessage()

func (*QueryPolicyResponse) ProtoReflect

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

func (*QueryPolicyResponse) Reset

func (x *QueryPolicyResponse) Reset()

func (*QueryPolicyResponse) String

func (x *QueryPolicyResponse) String() string

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Policy items.
	Policy(context.Context, *QueryPolicyRequest) (*QueryPolicyResponse, error)
	// Queries a list of PolicyIds items.
	PolicyIds(context.Context, *QueryPolicyIdsRequest) (*QueryPolicyIdsResponse, error)
	// Queries a list of FilterRelationships items.
	FilterRelationships(context.Context, *QueryFilterRelationshipsRequest) (*QueryFilterRelationshipsResponse, error)
	// Queries a list of VerifyAccessRequest items.
	VerifyAccessRequest(context.Context, *QueryVerifyAccessRequestRequest) (*QueryVerifyAccessRequestResponse, error)
	// Queries a list of ValidatePolicy items.
	ValidatePolicy(context.Context, *QueryValidatePolicyRequest) (*QueryValidatePolicyResponse, error)
	// Queries a list of AccessDecision items.
	AccessDecision(context.Context, *QueryAccessDecisionRequest) (*QueryAccessDecisionResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryValidatePolicyRequest

type QueryValidatePolicyRequest struct {
	Policy      string               `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
	MarshalType PolicyMarshalingType `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryValidatePolicyRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatePolicyRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatePolicyRequest) GetMarshalType

func (*QueryValidatePolicyRequest) GetPolicy

func (x *QueryValidatePolicyRequest) GetPolicy() string

func (*QueryValidatePolicyRequest) ProtoMessage

func (*QueryValidatePolicyRequest) ProtoMessage()

func (*QueryValidatePolicyRequest) ProtoReflect

func (*QueryValidatePolicyRequest) Reset

func (x *QueryValidatePolicyRequest) Reset()

func (*QueryValidatePolicyRequest) String

func (x *QueryValidatePolicyRequest) String() string

type QueryValidatePolicyResponse

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

func (*QueryValidatePolicyResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatePolicyResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatePolicyResponse) GetValid

func (x *QueryValidatePolicyResponse) GetValid() bool

func (*QueryValidatePolicyResponse) ProtoMessage

func (*QueryValidatePolicyResponse) ProtoMessage()

func (*QueryValidatePolicyResponse) ProtoReflect

func (*QueryValidatePolicyResponse) Reset

func (x *QueryValidatePolicyResponse) Reset()

func (*QueryValidatePolicyResponse) String

func (x *QueryValidatePolicyResponse) String() string

type QueryVerifyAccessRequestRequest

type QueryVerifyAccessRequestRequest struct {
	PolicyId      string         `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	AccessRequest *AccessRequest `protobuf:"bytes,2,opt,name=access_request,json=accessRequest,proto3" json:"access_request,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryVerifyAccessRequestRequest) Descriptor deprecated

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

Deprecated: Use QueryVerifyAccessRequestRequest.ProtoReflect.Descriptor instead.

func (*QueryVerifyAccessRequestRequest) GetAccessRequest

func (x *QueryVerifyAccessRequestRequest) GetAccessRequest() *AccessRequest

func (*QueryVerifyAccessRequestRequest) GetPolicyId

func (x *QueryVerifyAccessRequestRequest) GetPolicyId() string

func (*QueryVerifyAccessRequestRequest) ProtoMessage

func (*QueryVerifyAccessRequestRequest) ProtoMessage()

func (*QueryVerifyAccessRequestRequest) ProtoReflect

func (*QueryVerifyAccessRequestRequest) Reset

func (*QueryVerifyAccessRequestRequest) String

type QueryVerifyAccessRequestResponse

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

func (*QueryVerifyAccessRequestResponse) Descriptor deprecated

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

Deprecated: Use QueryVerifyAccessRequestResponse.ProtoReflect.Descriptor instead.

func (*QueryVerifyAccessRequestResponse) GetValid

func (x *QueryVerifyAccessRequestResponse) GetValid() bool

func (*QueryVerifyAccessRequestResponse) ProtoMessage

func (*QueryVerifyAccessRequestResponse) ProtoMessage()

func (*QueryVerifyAccessRequestResponse) ProtoReflect

func (*QueryVerifyAccessRequestResponse) Reset

func (*QueryVerifyAccessRequestResponse) String

type Registration

type Registration struct {
	Object *Object `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
	Actor  *Actor  `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"`
	// contains filtered or unexported fields
}

Registration represents a record assigning an Object as being owned by an Actor

func (*Registration) Descriptor deprecated

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

Deprecated: Use Registration.ProtoReflect.Descriptor instead.

func (*Registration) GetActor

func (x *Registration) GetActor() *Actor

func (*Registration) GetObject

func (x *Registration) GetObject() *Object

func (*Registration) ProtoMessage

func (*Registration) ProtoMessage()

func (*Registration) ProtoReflect

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

func (*Registration) Reset

func (x *Registration) Reset()

func (*Registration) String

func (x *Registration) String() string

type RegistrationResult

type RegistrationResult int32

RegistrationResult encodes the possible result set from Registering an Object

const (
	// NoOp indicates no action was take. The operation failed or the Object already existed and was active
	RegistrationResult_NoOp RegistrationResult = 0
	// Registered indicates the Object was sucessfuly registered to the Actor.
	RegistrationResult_Registered RegistrationResult = 1
	// Unarchived indicates that a previously deleted Object is active again.
	// Only the original owners can Unarchive an object.
	RegistrationResult_Unarchived RegistrationResult = 2
)

func (RegistrationResult) Descriptor

func (RegistrationResult) Enum

func (RegistrationResult) EnumDescriptor deprecated

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

Deprecated: Use RegistrationResult.Descriptor instead.

func (RegistrationResult) Number

func (RegistrationResult) String

func (x RegistrationResult) String() string

func (RegistrationResult) Type

type Relation

type Relation struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Doc  string `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"`
	// list of relations managed by the current relation
	Manages []string `protobuf:"bytes,3,rep,name=manages,proto3" json:"manages,omitempty"`
	// value restriction types
	VrTypes []*Restriction `protobuf:"bytes,4,rep,name=vr_types,json=vrTypes,proto3" json:"vr_types,omitempty"`
	// contains filtered or unexported fields
}

func (*Relation) Descriptor deprecated

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

Deprecated: Use Relation.ProtoReflect.Descriptor instead.

func (*Relation) GetDoc

func (x *Relation) GetDoc() string

func (*Relation) GetManages

func (x *Relation) GetManages() []string

func (*Relation) GetName

func (x *Relation) GetName() string

func (*Relation) GetVrTypes

func (x *Relation) GetVrTypes() []*Restriction

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) ProtoReflect

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

func (*Relation) Reset

func (x *Relation) Reset()

func (*Relation) String

func (x *Relation) String() string

type RelationSelector

type RelationSelector struct {

	// Types that are assignable to Selector:
	//
	//	*RelationSelector_Relation
	//	*RelationSelector_Wildcard
	Selector isRelationSelector_Selector `protobuf_oneof:"selector"`
	// contains filtered or unexported fields
}

RelationsSelector models a filter for Relationship Relations

func (*RelationSelector) Descriptor deprecated

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

Deprecated: Use RelationSelector.ProtoReflect.Descriptor instead.

func (*RelationSelector) GetRelation

func (x *RelationSelector) GetRelation() string

func (*RelationSelector) GetSelector

func (x *RelationSelector) GetSelector() isRelationSelector_Selector

func (*RelationSelector) GetWildcard

func (x *RelationSelector) GetWildcard() *WildcardSelector

func (*RelationSelector) ProtoMessage

func (*RelationSelector) ProtoMessage()

func (*RelationSelector) ProtoReflect

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

func (*RelationSelector) Reset

func (x *RelationSelector) Reset()

func (*RelationSelector) String

func (x *RelationSelector) String() string

type RelationSelector_Relation

type RelationSelector_Relation struct {
	// relation specifies a relation name which must exactly match the Relationship's
	Relation string `protobuf:"bytes,1,opt,name=relation,proto3,oneof"`
}

type RelationSelector_Wildcard

type RelationSelector_Wildcard struct {
	// wildcard matches any relation
	Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof"`
}

type RelationShort

type RelationShort struct {
	Doc string `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"`
	// list of relations managed by the current relation
	Manages []string `protobuf:"bytes,2,rep,name=manages,proto3" json:"manages,omitempty"`
	// types define a list of target types the current relation can point to.
	// Each type restriction points to a a resource's relation.
	// The syntax for a type restriction is "{resource}->{relation}", where relation is optional.
	// An empty relation means the relationship can only point to an object node, as opposed to an userset.
	Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*RelationShort) Descriptor deprecated

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

Deprecated: Use RelationShort.ProtoReflect.Descriptor instead.

func (*RelationShort) GetDoc

func (x *RelationShort) GetDoc() string

func (*RelationShort) GetManages

func (x *RelationShort) GetManages() []string

func (*RelationShort) GetTypes

func (x *RelationShort) GetTypes() []string

func (*RelationShort) ProtoMessage

func (*RelationShort) ProtoMessage()

func (*RelationShort) ProtoReflect

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

func (*RelationShort) Reset

func (x *RelationShort) Reset()

func (*RelationShort) String

func (x *RelationShort) String() string

type Relationship

type Relationship struct {
	Object   *Object  `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Relation string   `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	Subject  *Subject `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

Relationship models an access control rule. It states that the given subject has relation with object.

func (*Relationship) Descriptor deprecated

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

Deprecated: Use Relationship.ProtoReflect.Descriptor instead.

func (*Relationship) GetObject

func (x *Relationship) GetObject() *Object

func (*Relationship) GetRelation

func (x *Relationship) GetRelation() string

func (*Relationship) GetSubject

func (x *Relationship) GetSubject() *Subject

func (*Relationship) ProtoMessage

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect

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

func (*Relationship) Reset

func (x *Relationship) Reset()

func (*Relationship) String

func (x *Relationship) String() string

type RelationshipRecord

type RelationshipRecord struct {
	CreationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
	Creator      string                 `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	PolicyId     string                 `protobuf:"bytes,3,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	Relationship *Relationship          `protobuf:"bytes,4,opt,name=relationship,proto3" json:"relationship,omitempty"`
	Archived     bool                   `protobuf:"varint,5,opt,name=archived,proto3" json:"archived,omitempty"`
	// contains filtered or unexported fields
}

RelationshipRecord represents a document contained a Relationship and additional data.

func (*RelationshipRecord) Descriptor deprecated

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

Deprecated: Use RelationshipRecord.ProtoReflect.Descriptor instead.

func (*RelationshipRecord) GetArchived

func (x *RelationshipRecord) GetArchived() bool

func (*RelationshipRecord) GetCreationTime

func (x *RelationshipRecord) GetCreationTime() *timestamppb.Timestamp

func (*RelationshipRecord) GetCreator

func (x *RelationshipRecord) GetCreator() string

func (*RelationshipRecord) GetPolicyId

func (x *RelationshipRecord) GetPolicyId() string

func (*RelationshipRecord) GetRelationship

func (x *RelationshipRecord) GetRelationship() *Relationship

func (*RelationshipRecord) ProtoMessage

func (*RelationshipRecord) ProtoMessage()

func (*RelationshipRecord) ProtoReflect

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

func (*RelationshipRecord) Reset

func (x *RelationshipRecord) Reset()

func (*RelationshipRecord) String

func (x *RelationshipRecord) String() string

type RelationshipSelector

type RelationshipSelector struct {
	ObjectSelector   *ObjectSelector   `protobuf:"bytes,1,opt,name=object_selector,json=objectSelector,proto3" json:"object_selector,omitempty"`
	RelationSelector *RelationSelector `protobuf:"bytes,2,opt,name=relation_selector,json=relationSelector,proto3" json:"relation_selector,omitempty"`
	SubjectSelector  *SubjectSelector  `protobuf:"bytes,3,opt,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
	// contains filtered or unexported fields
}

RelationshipSelector models a set of predicates which are used to filter through Relationships in a Policy.

func (*RelationshipSelector) Descriptor deprecated

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

Deprecated: Use RelationshipSelector.ProtoReflect.Descriptor instead.

func (*RelationshipSelector) GetObjectSelector

func (x *RelationshipSelector) GetObjectSelector() *ObjectSelector

func (*RelationshipSelector) GetRelationSelector

func (x *RelationshipSelector) GetRelationSelector() *RelationSelector

func (*RelationshipSelector) GetSubjectSelector

func (x *RelationshipSelector) GetSubjectSelector() *SubjectSelector

func (*RelationshipSelector) ProtoMessage

func (*RelationshipSelector) ProtoMessage()

func (*RelationshipSelector) ProtoReflect

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

func (*RelationshipSelector) Reset

func (x *RelationshipSelector) Reset()

func (*RelationshipSelector) String

func (x *RelationshipSelector) String() string

type Resource

type Resource struct {
	Name        string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Doc         string        `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"`
	Permissions []*Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Relations   []*Relation   `protobuf:"bytes,4,rep,name=relations,proto3" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

Resource models a namespace for objects in a Policy. Appications will have multiple entities which they must manage such as files or groups. A Resource represents a set of entities of a certain type.

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetDoc

func (x *Resource) GetDoc() string

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetPermissions

func (x *Resource) GetPermissions() []*Permission

func (*Resource) GetRelations

func (x *Resource) GetRelations() []*Relation

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type ResourceShort

type ResourceShort struct {
	Doc         string                      `protobuf:"bytes,1,opt,name=doc,proto3" json:"doc,omitempty"`
	Permissions map[string]*PermissionShort `` /* 163-byte string literal not displayed */
	Relations   map[string]*RelationShort   `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResourceShort) Descriptor deprecated

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

Deprecated: Use ResourceShort.ProtoReflect.Descriptor instead.

func (*ResourceShort) GetDoc

func (x *ResourceShort) GetDoc() string

func (*ResourceShort) GetPermissions

func (x *ResourceShort) GetPermissions() map[string]*PermissionShort

func (*ResourceShort) GetRelations

func (x *ResourceShort) GetRelations() map[string]*RelationShort

func (*ResourceShort) ProtoMessage

func (*ResourceShort) ProtoMessage()

func (*ResourceShort) ProtoReflect

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

func (*ResourceShort) Reset

func (x *ResourceShort) Reset()

func (*ResourceShort) String

func (x *ResourceShort) String() string

type Restriction

type Restriction struct {

	// resource_name scopes permissible actors resource
	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// relation_name scopes permissible actors relation
	RelationName string `protobuf:"bytes,2,opt,name=relation_name,json=relationName,proto3" json:"relation_name,omitempty"`
	// contains filtered or unexported fields
}

Restriction models a specification which a Relationship's actor should meet.

func (*Restriction) Descriptor deprecated

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

Deprecated: Use Restriction.ProtoReflect.Descriptor instead.

func (*Restriction) GetRelationName

func (x *Restriction) GetRelationName() string

func (*Restriction) GetResourceName

func (x *Restriction) GetResourceName() string

func (*Restriction) ProtoMessage

func (*Restriction) ProtoMessage()

func (*Restriction) ProtoReflect

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

func (*Restriction) Reset

func (x *Restriction) Reset()

func (*Restriction) String

func (x *Restriction) String() string

type Subject

type Subject struct {

	// Types that are assignable to Subject:
	//
	//	*Subject_Actor
	//	*Subject_ActorSet
	//	*Subject_AllActors
	//	*Subject_Object
	Subject isSubject_Subject `protobuf_oneof:"subject"`
	// contains filtered or unexported fields
}

Subject specifies the target of a Relationship.

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetActor

func (x *Subject) GetActor() *Actor

func (*Subject) GetActorSet

func (x *Subject) GetActorSet() *ActorSet

func (*Subject) GetAllActors

func (x *Subject) GetAllActors() *AllActors

func (*Subject) GetObject

func (x *Subject) GetObject() *Object

func (*Subject) GetSubject

func (x *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

type SubjectSelector

type SubjectSelector struct {

	// Types that are assignable to Selector:
	//
	//	*SubjectSelector_Subject
	//	*SubjectSelector_Wildcard
	Selector isSubjectSelector_Selector `protobuf_oneof:"selector"`
	// contains filtered or unexported fields
}

SubjectSelector models a filter for Relationship Subjects

func (*SubjectSelector) Descriptor deprecated

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

Deprecated: Use SubjectSelector.ProtoReflect.Descriptor instead.

func (*SubjectSelector) GetSelector

func (x *SubjectSelector) GetSelector() isSubjectSelector_Selector

func (*SubjectSelector) GetSubject

func (x *SubjectSelector) GetSubject() *Subject

func (*SubjectSelector) GetWildcard

func (x *SubjectSelector) GetWildcard() *WildcardSelector

func (*SubjectSelector) ProtoMessage

func (*SubjectSelector) ProtoMessage()

func (*SubjectSelector) ProtoReflect

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

func (*SubjectSelector) Reset

func (x *SubjectSelector) Reset()

func (*SubjectSelector) String

func (x *SubjectSelector) String() string

type SubjectSelector_Subject

type SubjectSelector_Subject struct {
	// subject requires an exact match between the given subject and a Relationship's subject
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3,oneof"`
}

type SubjectSelector_Wildcard

type SubjectSelector_Wildcard struct {
	// wildcard matches any subject in a Relationship
	Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof"`
}

type Subject_Actor

type Subject_Actor struct {
	Actor *Actor `protobuf:"bytes,1,opt,name=actor,proto3,oneof"`
}

type Subject_ActorSet

type Subject_ActorSet struct {
	ActorSet *ActorSet `protobuf:"bytes,2,opt,name=actor_set,json=actorSet,proto3,oneof"`
}

type Subject_AllActors

type Subject_AllActors struct {
	AllActors *AllActors `protobuf:"bytes,3,opt,name=all_actors,json=allActors,proto3,oneof"`
}

type Subject_Object

type Subject_Object struct {
	Object *Object `protobuf:"bytes,4,opt,name=object,proto3,oneof"`
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CheckAccess

func (UnimplementedMsgServer) CreatePolicy

func (UnimplementedMsgServer) RegisterObject

func (UnimplementedMsgServer) SetRelationship

func (UnimplementedMsgServer) UnregisterObject

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Policy

func (UnimplementedQueryServer) PolicyIds

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

type WildcardSelector

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

WildcardSelector matches anything in a context

func (*WildcardSelector) Descriptor deprecated

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

Deprecated: Use WildcardSelector.ProtoReflect.Descriptor instead.

func (*WildcardSelector) ProtoMessage

func (*WildcardSelector) ProtoMessage()

func (*WildcardSelector) ProtoReflect

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

func (*WildcardSelector) Reset

func (x *WildcardSelector) Reset()

func (*WildcardSelector) String

func (x *WildcardSelector) String() string

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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