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
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type AccessDecision
- func (*AccessDecision) Descriptor() ([]byte, []int)deprecated
- func (x *AccessDecision) GetActor() string
- func (x *AccessDecision) GetActorDid() string
- func (x *AccessDecision) GetCreationTime() *timestamppb.Timestamp
- func (x *AccessDecision) GetCreator() string
- func (x *AccessDecision) GetCreatorAccSequence() uint64
- func (x *AccessDecision) GetId() string
- func (x *AccessDecision) GetIssuedHeight() uint64
- func (x *AccessDecision) GetOperations() []*Operation
- func (x *AccessDecision) GetParams() *DecisionParams
- func (x *AccessDecision) GetPolicyId() string
- func (*AccessDecision) ProtoMessage()
- func (x *AccessDecision) ProtoReflect() protoreflect.Message
- func (x *AccessDecision) Reset()
- func (x *AccessDecision) String() string
- type AccessRequest
- func (*AccessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccessRequest) GetActor() *Actor
- func (x *AccessRequest) GetOperations() []*Operation
- func (*AccessRequest) ProtoMessage()
- func (x *AccessRequest) ProtoReflect() protoreflect.Message
- func (x *AccessRequest) Reset()
- func (x *AccessRequest) String() string
- type AccessTicket
- func (*AccessTicket) Descriptor() ([]byte, []int)deprecated
- func (x *AccessTicket) GetDecision() *AccessDecision
- func (x *AccessTicket) GetDecisionId() string
- func (x *AccessTicket) GetDecisionProof() []byte
- func (x *AccessTicket) GetSignature() []byte
- func (x *AccessTicket) GetVersionDenominator() string
- func (*AccessTicket) ProtoMessage()
- func (x *AccessTicket) ProtoReflect() protoreflect.Message
- func (x *AccessTicket) Reset()
- func (x *AccessTicket) String() string
- type Actor
- type ActorResource
- func (*ActorResource) Descriptor() ([]byte, []int)deprecated
- func (x *ActorResource) GetDoc() string
- func (x *ActorResource) GetName() string
- func (x *ActorResource) GetRelations() []*Relation
- func (*ActorResource) ProtoMessage()
- func (x *ActorResource) ProtoReflect() protoreflect.Message
- func (x *ActorResource) Reset()
- func (x *ActorResource) String() string
- type ActorSet
- type AllActors
- type DecisionParams
- func (*DecisionParams) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionParams) GetDecisionExpirationDelta() uint64
- func (x *DecisionParams) GetProofExpirationDelta() uint64
- func (x *DecisionParams) GetTicketExpirationDelta() uint64
- func (*DecisionParams) ProtoMessage()
- func (x *DecisionParams) ProtoReflect() protoreflect.Message
- func (x *DecisionParams) Reset()
- func (x *DecisionParams) String() string
- type EventAccessDecisionCreated
- func (*EventAccessDecisionCreated) Descriptor() ([]byte, []int)deprecated
- func (x *EventAccessDecisionCreated) GetActor() string
- func (x *EventAccessDecisionCreated) GetActorDid() string
- func (x *EventAccessDecisionCreated) GetCreator() string
- func (x *EventAccessDecisionCreated) GetDecisionId() string
- func (x *EventAccessDecisionCreated) GetPolicyId() string
- func (*EventAccessDecisionCreated) ProtoMessage()
- func (x *EventAccessDecisionCreated) ProtoReflect() protoreflect.Message
- func (x *EventAccessDecisionCreated) Reset()
- func (x *EventAccessDecisionCreated) String() string
- type EventPolicyCreated
- func (*EventPolicyCreated) Descriptor() ([]byte, []int)deprecated
- func (x *EventPolicyCreated) GetCreator() string
- func (x *EventPolicyCreated) GetPolicyId() string
- func (x *EventPolicyCreated) GetPolicyName() string
- func (*EventPolicyCreated) ProtoMessage()
- func (x *EventPolicyCreated) ProtoReflect() protoreflect.Message
- func (x *EventPolicyCreated) Reset()
- func (x *EventPolicyCreated) String() string
- type GenesisState
- type ManagementGraph
- func (*ManagementGraph) Descriptor() ([]byte, []int)deprecated
- func (x *ManagementGraph) GetBackwardEdges() map[string]*ManagerEdges
- func (x *ManagementGraph) GetForwardEdges() map[string]*ManagerEdges
- func (x *ManagementGraph) GetNodes() map[string]*ManagerNode
- func (*ManagementGraph) ProtoMessage()
- func (x *ManagementGraph) ProtoReflect() protoreflect.Message
- func (x *ManagementGraph) Reset()
- func (x *ManagementGraph) String() string
- type ManagerEdges
- type ManagerNode
- type MarshaledPolicy
- func (*MarshaledPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *MarshaledPolicy) GetPolicy() string
- func (x *MarshaledPolicy) GetType_() PolicyMarshalingType
- func (*MarshaledPolicy) ProtoMessage()
- func (x *MarshaledPolicy) ProtoReflect() protoreflect.Message
- func (x *MarshaledPolicy) Reset()
- func (x *MarshaledPolicy) String() string
- type MsgCheckAccess
- func (*MsgCheckAccess) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCheckAccess) GetAccessRequest() *AccessRequest
- func (x *MsgCheckAccess) GetCreationTime() *timestamppb.Timestamp
- func (x *MsgCheckAccess) GetCreator() string
- func (x *MsgCheckAccess) GetPolicyId() string
- func (*MsgCheckAccess) ProtoMessage()
- func (x *MsgCheckAccess) ProtoReflect() protoreflect.Message
- func (x *MsgCheckAccess) Reset()
- func (x *MsgCheckAccess) String() string
- type MsgCheckAccessResponse
- func (*MsgCheckAccessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCheckAccessResponse) GetDecision() *AccessDecision
- func (*MsgCheckAccessResponse) ProtoMessage()
- func (x *MsgCheckAccessResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCheckAccessResponse) Reset()
- func (x *MsgCheckAccessResponse) String() string
- type MsgClient
- type MsgCreatePolicy
- func (*MsgCreatePolicy) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreatePolicy) GetCreationTime() *timestamppb.Timestamp
- func (x *MsgCreatePolicy) GetCreator() string
- func (x *MsgCreatePolicy) GetMarshalType() PolicyMarshalingType
- func (x *MsgCreatePolicy) GetPolicy() string
- func (*MsgCreatePolicy) ProtoMessage()
- func (x *MsgCreatePolicy) ProtoReflect() protoreflect.Message
- func (x *MsgCreatePolicy) Reset()
- func (x *MsgCreatePolicy) String() string
- type MsgCreatePolicyResponse
- func (*MsgCreatePolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreatePolicyResponse) GetPolicy() *Policy
- func (*MsgCreatePolicyResponse) ProtoMessage()
- func (x *MsgCreatePolicyResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreatePolicyResponse) Reset()
- func (x *MsgCreatePolicyResponse) String() string
- type MsgDeleteRelationship
- func (*MsgDeleteRelationship) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeleteRelationship) GetCreator() string
- func (x *MsgDeleteRelationship) GetPolicyId() string
- func (x *MsgDeleteRelationship) GetRelationship() *Relationship
- func (*MsgDeleteRelationship) ProtoMessage()
- func (x *MsgDeleteRelationship) ProtoReflect() protoreflect.Message
- func (x *MsgDeleteRelationship) Reset()
- func (x *MsgDeleteRelationship) String() string
- type MsgDeleteRelationshipResponse
- func (*MsgDeleteRelationshipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgDeleteRelationshipResponse) GetRecordFound() bool
- func (*MsgDeleteRelationshipResponse) ProtoMessage()
- func (x *MsgDeleteRelationshipResponse) ProtoReflect() protoreflect.Message
- func (x *MsgDeleteRelationshipResponse) Reset()
- func (x *MsgDeleteRelationshipResponse) String() string
- type MsgRegisterObject
- func (*MsgRegisterObject) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterObject) GetCreationTime() *timestamppb.Timestamp
- func (x *MsgRegisterObject) GetCreator() string
- func (x *MsgRegisterObject) GetObject() *Object
- func (x *MsgRegisterObject) GetPolicyId() string
- func (*MsgRegisterObject) ProtoMessage()
- func (x *MsgRegisterObject) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterObject) Reset()
- func (x *MsgRegisterObject) String() string
- type MsgRegisterObjectResponse
- func (*MsgRegisterObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterObjectResponse) GetResult() RegistrationResult
- func (*MsgRegisterObjectResponse) ProtoMessage()
- func (x *MsgRegisterObjectResponse) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterObjectResponse) Reset()
- func (x *MsgRegisterObjectResponse) String() string
- type MsgServer
- type MsgSetRelationship
- func (*MsgSetRelationship) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSetRelationship) GetCreationTime() *timestamppb.Timestamp
- func (x *MsgSetRelationship) GetCreator() string
- func (x *MsgSetRelationship) GetPolicyId() string
- func (x *MsgSetRelationship) GetRelationship() *Relationship
- func (*MsgSetRelationship) ProtoMessage()
- func (x *MsgSetRelationship) ProtoReflect() protoreflect.Message
- func (x *MsgSetRelationship) Reset()
- func (x *MsgSetRelationship) String() string
- type MsgSetRelationshipResponse
- func (*MsgSetRelationshipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSetRelationshipResponse) GetRecordExisted() bool
- func (*MsgSetRelationshipResponse) ProtoMessage()
- func (x *MsgSetRelationshipResponse) ProtoReflect() protoreflect.Message
- func (x *MsgSetRelationshipResponse) Reset()
- func (x *MsgSetRelationshipResponse) String() string
- type MsgUnregisterObject
- func (*MsgUnregisterObject) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUnregisterObject) GetCreator() string
- func (x *MsgUnregisterObject) GetObject() *Object
- func (x *MsgUnregisterObject) GetPolicyId() string
- func (*MsgUnregisterObject) ProtoMessage()
- func (x *MsgUnregisterObject) ProtoReflect() protoreflect.Message
- func (x *MsgUnregisterObject) Reset()
- func (x *MsgUnregisterObject) String() string
- type MsgUnregisterObjectResponse
- func (*MsgUnregisterObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUnregisterObjectResponse) GetFound() bool
- func (*MsgUnregisterObjectResponse) ProtoMessage()
- func (x *MsgUnregisterObjectResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUnregisterObjectResponse) Reset()
- func (x *MsgUnregisterObjectResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Object
- type ObjectSelector
- func (*ObjectSelector) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectSelector) GetObject() *Object
- func (x *ObjectSelector) GetSelector() isObjectSelector_Selector
- func (x *ObjectSelector) GetWildcard() *WildcardSelector
- func (*ObjectSelector) ProtoMessage()
- func (x *ObjectSelector) ProtoReflect() protoreflect.Message
- func (x *ObjectSelector) Reset()
- func (x *ObjectSelector) String() string
- type ObjectSelector_Object
- type ObjectSelector_Wildcard
- type Operation
- type Params
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetDoc() string
- func (x *Permission) GetExpression() string
- func (x *Permission) GetName() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type PermissionShort
- func (*PermissionShort) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionShort) GetDoc() string
- func (x *PermissionShort) GetExpr() string
- func (*PermissionShort) ProtoMessage()
- func (x *PermissionShort) ProtoReflect() protoreflect.Message
- func (x *PermissionShort) Reset()
- func (x *PermissionShort) String() string
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetActorResource() *ActorResource
- func (x *Policy) GetAttributes() map[string]string
- func (x *Policy) GetCreationTime() *timestamppb.Timestamp
- func (x *Policy) GetCreator() string
- func (x *Policy) GetDescription() string
- func (x *Policy) GetId() string
- func (x *Policy) GetName() string
- func (x *Policy) GetResources() []*Resource
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type PolicyDefinition
- func (*PolicyDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyDefinition) GetDefinition() isPolicyDefinition_Definition
- func (x *PolicyDefinition) GetMarshaledPolicy() *MarshaledPolicy
- func (x *PolicyDefinition) GetPolicy() *Policy
- func (*PolicyDefinition) ProtoMessage()
- func (x *PolicyDefinition) ProtoReflect() protoreflect.Message
- func (x *PolicyDefinition) Reset()
- func (x *PolicyDefinition) String() string
- type PolicyDefinition_MarshaledPolicy
- type PolicyDefinition_Policy
- type PolicyMarshalingType
- func (PolicyMarshalingType) Descriptor() protoreflect.EnumDescriptor
- func (x PolicyMarshalingType) Enum() *PolicyMarshalingType
- func (PolicyMarshalingType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PolicyMarshalingType) Number() protoreflect.EnumNumber
- func (x PolicyMarshalingType) String() string
- func (PolicyMarshalingType) Type() protoreflect.EnumType
- type PolicyRecord
- func (*PolicyRecord) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRecord) GetManagementGraph() *ManagementGraph
- func (x *PolicyRecord) GetPolicy() *Policy
- func (*PolicyRecord) ProtoMessage()
- func (x *PolicyRecord) ProtoReflect() protoreflect.Message
- func (x *PolicyRecord) Reset()
- func (x *PolicyRecord) String() string
- type PolicyShort
- func (*PolicyShort) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyShort) GetActor() *ActorResource
- func (x *PolicyShort) GetDescription() string
- func (x *PolicyShort) GetMeta() map[string]string
- func (x *PolicyShort) GetName() string
- func (x *PolicyShort) GetResources() map[string]*ResourceShort
- func (x *PolicyShort) GetVersion() string
- func (*PolicyShort) ProtoMessage()
- func (x *PolicyShort) ProtoReflect() protoreflect.Message
- func (x *PolicyShort) Reset()
- func (x *PolicyShort) String() string
- type QueryAccessDecisionRequest
- func (*QueryAccessDecisionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAccessDecisionRequest) GetId() string
- func (*QueryAccessDecisionRequest) ProtoMessage()
- func (x *QueryAccessDecisionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAccessDecisionRequest) Reset()
- func (x *QueryAccessDecisionRequest) String() string
- type QueryAccessDecisionResponse
- func (*QueryAccessDecisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAccessDecisionResponse) GetDecision() *AccessDecision
- func (*QueryAccessDecisionResponse) ProtoMessage()
- func (x *QueryAccessDecisionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAccessDecisionResponse) Reset()
- func (x *QueryAccessDecisionResponse) String() string
- type QueryClient
- type QueryFilterRelationshipsRequest
- func (*QueryFilterRelationshipsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFilterRelationshipsRequest) GetPolicyId() string
- func (x *QueryFilterRelationshipsRequest) GetSelector() *RelationshipSelector
- func (*QueryFilterRelationshipsRequest) ProtoMessage()
- func (x *QueryFilterRelationshipsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryFilterRelationshipsRequest) Reset()
- func (x *QueryFilterRelationshipsRequest) String() string
- type QueryFilterRelationshipsResponse
- func (*QueryFilterRelationshipsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFilterRelationshipsResponse) GetRecords() []*RelationshipRecord
- func (*QueryFilterRelationshipsResponse) ProtoMessage()
- func (x *QueryFilterRelationshipsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFilterRelationshipsResponse) Reset()
- func (x *QueryFilterRelationshipsResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryPolicyIdsRequest
- type QueryPolicyIdsResponse
- func (*QueryPolicyIdsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPolicyIdsResponse) GetIds() []string
- func (*QueryPolicyIdsResponse) ProtoMessage()
- func (x *QueryPolicyIdsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPolicyIdsResponse) Reset()
- func (x *QueryPolicyIdsResponse) String() string
- type QueryPolicyRequest
- type QueryPolicyResponse
- func (*QueryPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPolicyResponse) GetPolicy() *Policy
- func (*QueryPolicyResponse) ProtoMessage()
- func (x *QueryPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPolicyResponse) Reset()
- func (x *QueryPolicyResponse) String() string
- type QueryServer
- type QueryValidatePolicyRequest
- func (*QueryValidatePolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatePolicyRequest) GetMarshalType() PolicyMarshalingType
- func (x *QueryValidatePolicyRequest) GetPolicy() string
- func (*QueryValidatePolicyRequest) ProtoMessage()
- func (x *QueryValidatePolicyRequest) ProtoReflect() protoreflect.Message
- func (x *QueryValidatePolicyRequest) Reset()
- func (x *QueryValidatePolicyRequest) String() string
- type QueryValidatePolicyResponse
- func (*QueryValidatePolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatePolicyResponse) GetValid() bool
- func (*QueryValidatePolicyResponse) ProtoMessage()
- func (x *QueryValidatePolicyResponse) ProtoReflect() protoreflect.Message
- func (x *QueryValidatePolicyResponse) Reset()
- func (x *QueryValidatePolicyResponse) String() string
- type QueryVerifyAccessRequestRequest
- func (*QueryVerifyAccessRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVerifyAccessRequestRequest) GetAccessRequest() *AccessRequest
- func (x *QueryVerifyAccessRequestRequest) GetPolicyId() string
- func (*QueryVerifyAccessRequestRequest) ProtoMessage()
- func (x *QueryVerifyAccessRequestRequest) ProtoReflect() protoreflect.Message
- func (x *QueryVerifyAccessRequestRequest) Reset()
- func (x *QueryVerifyAccessRequestRequest) String() string
- type QueryVerifyAccessRequestResponse
- func (*QueryVerifyAccessRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVerifyAccessRequestResponse) GetValid() bool
- func (*QueryVerifyAccessRequestResponse) ProtoMessage()
- func (x *QueryVerifyAccessRequestResponse) ProtoReflect() protoreflect.Message
- func (x *QueryVerifyAccessRequestResponse) Reset()
- func (x *QueryVerifyAccessRequestResponse) String() string
- type Registration
- func (*Registration) Descriptor() ([]byte, []int)deprecated
- func (x *Registration) GetActor() *Actor
- func (x *Registration) GetObject() *Object
- func (*Registration) ProtoMessage()
- func (x *Registration) ProtoReflect() protoreflect.Message
- func (x *Registration) Reset()
- func (x *Registration) String() string
- type RegistrationResult
- func (RegistrationResult) Descriptor() protoreflect.EnumDescriptor
- func (x RegistrationResult) Enum() *RegistrationResult
- func (RegistrationResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegistrationResult) Number() protoreflect.EnumNumber
- func (x RegistrationResult) String() string
- func (RegistrationResult) Type() protoreflect.EnumType
- type Relation
- func (*Relation) Descriptor() ([]byte, []int)deprecated
- func (x *Relation) GetDoc() string
- func (x *Relation) GetManages() []string
- func (x *Relation) GetName() string
- func (x *Relation) GetVrTypes() []*Restriction
- func (*Relation) ProtoMessage()
- func (x *Relation) ProtoReflect() protoreflect.Message
- func (x *Relation) Reset()
- func (x *Relation) String() string
- type RelationSelector
- func (*RelationSelector) Descriptor() ([]byte, []int)deprecated
- func (x *RelationSelector) GetRelation() string
- func (x *RelationSelector) GetSelector() isRelationSelector_Selector
- func (x *RelationSelector) GetWildcard() *WildcardSelector
- func (*RelationSelector) ProtoMessage()
- func (x *RelationSelector) ProtoReflect() protoreflect.Message
- func (x *RelationSelector) Reset()
- func (x *RelationSelector) String() string
- type RelationSelector_Relation
- type RelationSelector_Wildcard
- type RelationShort
- func (*RelationShort) Descriptor() ([]byte, []int)deprecated
- func (x *RelationShort) GetDoc() string
- func (x *RelationShort) GetManages() []string
- func (x *RelationShort) GetTypes() []string
- func (*RelationShort) ProtoMessage()
- func (x *RelationShort) ProtoReflect() protoreflect.Message
- func (x *RelationShort) Reset()
- func (x *RelationShort) String() string
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)deprecated
- func (x *Relationship) GetObject() *Object
- func (x *Relationship) GetRelation() string
- func (x *Relationship) GetSubject() *Subject
- func (*Relationship) ProtoMessage()
- func (x *Relationship) ProtoReflect() protoreflect.Message
- func (x *Relationship) Reset()
- func (x *Relationship) String() string
- type RelationshipRecord
- func (*RelationshipRecord) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipRecord) GetArchived() bool
- func (x *RelationshipRecord) GetCreationTime() *timestamppb.Timestamp
- func (x *RelationshipRecord) GetCreator() string
- func (x *RelationshipRecord) GetPolicyId() string
- func (x *RelationshipRecord) GetRelationship() *Relationship
- func (*RelationshipRecord) ProtoMessage()
- func (x *RelationshipRecord) ProtoReflect() protoreflect.Message
- func (x *RelationshipRecord) Reset()
- func (x *RelationshipRecord) String() string
- type RelationshipSelector
- func (*RelationshipSelector) Descriptor() ([]byte, []int)deprecated
- func (x *RelationshipSelector) GetObjectSelector() *ObjectSelector
- func (x *RelationshipSelector) GetRelationSelector() *RelationSelector
- func (x *RelationshipSelector) GetSubjectSelector() *SubjectSelector
- func (*RelationshipSelector) ProtoMessage()
- func (x *RelationshipSelector) ProtoReflect() protoreflect.Message
- func (x *RelationshipSelector) Reset()
- func (x *RelationshipSelector) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetDoc() string
- func (x *Resource) GetName() string
- func (x *Resource) GetPermissions() []*Permission
- func (x *Resource) GetRelations() []*Relation
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceShort
- func (*ResourceShort) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceShort) GetDoc() string
- func (x *ResourceShort) GetPermissions() map[string]*PermissionShort
- func (x *ResourceShort) GetRelations() map[string]*RelationShort
- func (*ResourceShort) ProtoMessage()
- func (x *ResourceShort) ProtoReflect() protoreflect.Message
- func (x *ResourceShort) Reset()
- func (x *ResourceShort) String() string
- type Restriction
- func (*Restriction) Descriptor() ([]byte, []int)deprecated
- func (x *Restriction) GetRelationName() string
- func (x *Restriction) GetResourceName() string
- func (*Restriction) ProtoMessage()
- func (x *Restriction) ProtoReflect() protoreflect.Message
- func (x *Restriction) Reset()
- func (x *Restriction) String() string
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)deprecated
- func (x *Subject) GetActor() *Actor
- func (x *Subject) GetActorSet() *ActorSet
- func (x *Subject) GetAllActors() *AllActors
- func (x *Subject) GetObject() *Object
- func (x *Subject) GetSubject() isSubject_Subject
- func (*Subject) ProtoMessage()
- func (x *Subject) ProtoReflect() protoreflect.Message
- func (x *Subject) Reset()
- func (x *Subject) String() string
- type SubjectSelector
- func (*SubjectSelector) Descriptor() ([]byte, []int)deprecated
- func (x *SubjectSelector) GetSelector() isSubjectSelector_Selector
- func (x *SubjectSelector) GetSubject() *Subject
- func (x *SubjectSelector) GetWildcard() *WildcardSelector
- func (*SubjectSelector) ProtoMessage()
- func (x *SubjectSelector) ProtoReflect() protoreflect.Message
- func (x *SubjectSelector) Reset()
- func (x *SubjectSelector) String() string
- type SubjectSelector_Subject
- type SubjectSelector_Wildcard
- type Subject_Actor
- type Subject_ActorSet
- type Subject_AllActors
- type Subject_Object
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CheckAccess(context.Context, *MsgCheckAccess) (*MsgCheckAccessResponse, error)
- func (UnimplementedMsgServer) CreatePolicy(context.Context, *MsgCreatePolicy) (*MsgCreatePolicyResponse, error)
- func (UnimplementedMsgServer) DeleteRelationship(context.Context, *MsgDeleteRelationship) (*MsgDeleteRelationshipResponse, error)
- func (UnimplementedMsgServer) RegisterObject(context.Context, *MsgRegisterObject) (*MsgRegisterObjectResponse, error)
- func (UnimplementedMsgServer) SetRelationship(context.Context, *MsgSetRelationship) (*MsgSetRelationshipResponse, error)
- func (UnimplementedMsgServer) UnregisterObject(context.Context, *MsgUnregisterObject) (*MsgUnregisterObjectResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AccessDecision(context.Context, *QueryAccessDecisionRequest) (*QueryAccessDecisionResponse, error)
- func (UnimplementedQueryServer) FilterRelationships(context.Context, *QueryFilterRelationshipsRequest) (*QueryFilterRelationshipsResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Policy(context.Context, *QueryPolicyRequest) (*QueryPolicyResponse, error)
- func (UnimplementedQueryServer) PolicyIds(context.Context, *QueryPolicyIdsRequest) (*QueryPolicyIdsResponse, error)
- func (UnimplementedQueryServer) ValidatePolicy(context.Context, *QueryValidatePolicyRequest) (*QueryValidatePolicyResponse, error)
- func (UnimplementedQueryServer) VerifyAccessRequest(context.Context, *QueryVerifyAccessRequestRequest) (*QueryVerifyAccessRequestResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type WildcardSelector
Constants ¶
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" )
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 ¶
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.
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.
var File_sourcehub_acp_access_decision_proto protoreflect.FileDescriptor
var File_sourcehub_acp_access_ticket_proto protoreflect.FileDescriptor
var File_sourcehub_acp_event_proto protoreflect.FileDescriptor
var File_sourcehub_acp_genesis_proto protoreflect.FileDescriptor
var File_sourcehub_acp_params_proto protoreflect.FileDescriptor
var File_sourcehub_acp_policy_definition_proto protoreflect.FileDescriptor
var File_sourcehub_acp_policy_proto protoreflect.FileDescriptor
var File_sourcehub_acp_policy_record_proto protoreflect.FileDescriptor
var File_sourcehub_acp_policy_short_proto protoreflect.FileDescriptor
var File_sourcehub_acp_query_proto protoreflect.FileDescriptor
var File_sourcehub_acp_relationship_proto protoreflect.FileDescriptor
var File_sourcehub_acp_relationship_selector_proto protoreflect.FileDescriptor
var File_sourcehub_acp_tx_proto protoreflect.FileDescriptor
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)
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) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) ProtoReflect ¶
func (x *Actor) ProtoReflect() protoreflect.Message
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) GetRelation ¶
func (*ActorSet) ProtoMessage ¶
func (*ActorSet) ProtoMessage()
func (*ActorSet) ProtoReflect ¶
func (x *ActorSet) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*AllActors) ProtoMessage()
func (*AllActors) ProtoReflect ¶
func (x *AllActors) ProtoReflect() protoreflect.Message
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 (x *EventAccessDecisionCreated) ProtoReflect() protoreflect.Message
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 (x *MsgDeleteRelationshipResponse) ProtoReflect() protoreflect.Message
func (*MsgDeleteRelationshipResponse) Reset ¶
func (x *MsgDeleteRelationshipResponse) Reset()
func (*MsgDeleteRelationshipResponse) String ¶
func (x *MsgDeleteRelationshipResponse) String() 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 (x *MsgRegisterObjectResponse) GetResult() RegistrationResult
func (*MsgRegisterObjectResponse) ProtoMessage ¶
func (*MsgRegisterObjectResponse) ProtoMessage()
func (*MsgRegisterObjectResponse) ProtoReflect ¶
func (x *MsgRegisterObjectResponse) ProtoReflect() protoreflect.Message
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 (x *MsgSetRelationshipResponse) ProtoReflect() protoreflect.Message
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 (x *MsgUnregisterObjectResponse) ProtoReflect() protoreflect.Message
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) GetResource ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
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) GetPermission ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶
func (x *Operation) ProtoReflect() protoreflect.Message
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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) GetActorResource ¶
func (x *Policy) GetActorResource() *ActorResource
func (*Policy) GetAttributes ¶
func (*Policy) GetCreationTime ¶
func (x *Policy) GetCreationTime() *timestamppb.Timestamp
func (*Policy) GetCreator ¶
func (*Policy) GetDescription ¶
func (*Policy) GetResources ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (PolicyMarshalingType) Enum ¶
func (x PolicyMarshalingType) Enum() *PolicyMarshalingType
func (PolicyMarshalingType) EnumDescriptor
deprecated
func (PolicyMarshalingType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PolicyMarshalingType.Descriptor instead.
func (PolicyMarshalingType) Number ¶
func (x PolicyMarshalingType) Number() protoreflect.EnumNumber
func (PolicyMarshalingType) String ¶
func (x PolicyMarshalingType) String() string
func (PolicyMarshalingType) Type ¶
func (PolicyMarshalingType) Type() protoreflect.EnumType
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 (x *QueryAccessDecisionRequest) GetId() string
func (*QueryAccessDecisionRequest) ProtoMessage ¶
func (*QueryAccessDecisionRequest) ProtoMessage()
func (*QueryAccessDecisionRequest) ProtoReflect ¶
func (x *QueryAccessDecisionRequest) ProtoReflect() protoreflect.Message
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 (x *QueryAccessDecisionResponse) ProtoReflect() protoreflect.Message
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 (x *QueryFilterRelationshipsRequest) GetSelector() *RelationshipSelector
func (*QueryFilterRelationshipsRequest) ProtoMessage ¶
func (*QueryFilterRelationshipsRequest) ProtoMessage()
func (*QueryFilterRelationshipsRequest) ProtoReflect ¶
func (x *QueryFilterRelationshipsRequest) ProtoReflect() protoreflect.Message
func (*QueryFilterRelationshipsRequest) Reset ¶
func (x *QueryFilterRelationshipsRequest) Reset()
func (*QueryFilterRelationshipsRequest) String ¶
func (x *QueryFilterRelationshipsRequest) String() 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 (x *QueryFilterRelationshipsResponse) GetRecords() []*RelationshipRecord
func (*QueryFilterRelationshipsResponse) ProtoMessage ¶
func (*QueryFilterRelationshipsResponse) ProtoMessage()
func (*QueryFilterRelationshipsResponse) ProtoReflect ¶
func (x *QueryFilterRelationshipsResponse) ProtoReflect() protoreflect.Message
func (*QueryFilterRelationshipsResponse) Reset ¶
func (x *QueryFilterRelationshipsResponse) Reset()
func (*QueryFilterRelationshipsResponse) String ¶
func (x *QueryFilterRelationshipsResponse) String() 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 (x *QueryValidatePolicyRequest) GetMarshalType() PolicyMarshalingType
func (*QueryValidatePolicyRequest) GetPolicy ¶
func (x *QueryValidatePolicyRequest) GetPolicy() string
func (*QueryValidatePolicyRequest) ProtoMessage ¶
func (*QueryValidatePolicyRequest) ProtoMessage()
func (*QueryValidatePolicyRequest) ProtoReflect ¶
func (x *QueryValidatePolicyRequest) ProtoReflect() protoreflect.Message
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 (x *QueryValidatePolicyResponse) ProtoReflect() protoreflect.Message
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 (x *QueryVerifyAccessRequestRequest) ProtoReflect() protoreflect.Message
func (*QueryVerifyAccessRequestRequest) Reset ¶
func (x *QueryVerifyAccessRequestRequest) Reset()
func (*QueryVerifyAccessRequestRequest) String ¶
func (x *QueryVerifyAccessRequestRequest) String() 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 (x *QueryVerifyAccessRequestResponse) ProtoReflect() protoreflect.Message
func (*QueryVerifyAccessRequestResponse) Reset ¶
func (x *QueryVerifyAccessRequestResponse) Reset()
func (*QueryVerifyAccessRequestResponse) String ¶
func (x *QueryVerifyAccessRequestResponse) String() 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) Descriptor() protoreflect.EnumDescriptor
func (RegistrationResult) Enum ¶
func (x RegistrationResult) Enum() *RegistrationResult
func (RegistrationResult) EnumDescriptor
deprecated
func (RegistrationResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegistrationResult.Descriptor instead.
func (RegistrationResult) Number ¶
func (x RegistrationResult) Number() protoreflect.EnumNumber
func (RegistrationResult) String ¶
func (x RegistrationResult) String() string
func (RegistrationResult) Type ¶
func (RegistrationResult) Type() protoreflect.EnumType
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) GetManages ¶
func (*Relation) GetVrTypes ¶
func (x *Relation) GetVrTypes() []*Restriction
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
func (*Relation) ProtoReflect ¶
func (x *Relation) ProtoReflect() protoreflect.Message
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) GetPermissions ¶
func (x *Resource) GetPermissions() []*Permission
func (*Resource) GetRelations ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
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) GetActorSet ¶
func (*Subject) GetAllActors ¶
func (*Subject) GetSubject ¶
func (x *Subject) GetSubject() isSubject_Subject
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) ProtoReflect ¶
func (x *Subject) ProtoReflect() protoreflect.Message
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) CheckAccess(context.Context, *MsgCheckAccess) (*MsgCheckAccessResponse, error)
func (UnimplementedMsgServer) CreatePolicy ¶
func (UnimplementedMsgServer) CreatePolicy(context.Context, *MsgCreatePolicy) (*MsgCreatePolicyResponse, error)
func (UnimplementedMsgServer) DeleteRelationship ¶
func (UnimplementedMsgServer) DeleteRelationship(context.Context, *MsgDeleteRelationship) (*MsgDeleteRelationshipResponse, error)
func (UnimplementedMsgServer) RegisterObject ¶
func (UnimplementedMsgServer) RegisterObject(context.Context, *MsgRegisterObject) (*MsgRegisterObjectResponse, error)
func (UnimplementedMsgServer) SetRelationship ¶
func (UnimplementedMsgServer) SetRelationship(context.Context, *MsgSetRelationship) (*MsgSetRelationshipResponse, error)
func (UnimplementedMsgServer) UnregisterObject ¶
func (UnimplementedMsgServer) UnregisterObject(context.Context, *MsgUnregisterObject) (*MsgUnregisterObjectResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) AccessDecision ¶
func (UnimplementedQueryServer) AccessDecision(context.Context, *QueryAccessDecisionRequest) (*QueryAccessDecisionResponse, error)
func (UnimplementedQueryServer) FilterRelationships ¶
func (UnimplementedQueryServer) FilterRelationships(context.Context, *QueryFilterRelationshipsRequest) (*QueryFilterRelationshipsResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Policy ¶
func (UnimplementedQueryServer) Policy(context.Context, *QueryPolicyRequest) (*QueryPolicyResponse, error)
func (UnimplementedQueryServer) PolicyIds ¶
func (UnimplementedQueryServer) PolicyIds(context.Context, *QueryPolicyIdsRequest) (*QueryPolicyIdsResponse, error)
func (UnimplementedQueryServer) ValidatePolicy ¶
func (UnimplementedQueryServer) ValidatePolicy(context.Context, *QueryValidatePolicyRequest) (*QueryValidatePolicyResponse, error)
func (UnimplementedQueryServer) VerifyAccessRequest ¶
func (UnimplementedQueryServer) VerifyAccessRequest(context.Context, *QueryVerifyAccessRequestRequest) (*QueryVerifyAccessRequestResponse, error)
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
Source Files ¶
- access_decision.pulsar.go
- access_ticket.pulsar.go
- event.pulsar.go
- genesis.pulsar.go
- params.pulsar.go
- policy.pulsar.go
- policy_definition.pulsar.go
- policy_record.pulsar.go
- policy_short.pulsar.go
- query.pulsar.go
- query_grpc.pb.go
- relationship.pulsar.go
- relationship_selector.pulsar.go
- tx.pulsar.go
- tx_grpc.pb.go