Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccessDecision
- func (*AccessDecision) Descriptor() ([]byte, []int)
- func (m *AccessDecision) GetActor() string
- func (m *AccessDecision) GetActorDid() string
- func (m *AccessDecision) GetCreationTime() *types.Timestamp
- func (m *AccessDecision) GetCreator() string
- func (m *AccessDecision) GetCreatorAccSequence() uint64
- func (m *AccessDecision) GetId() string
- func (m *AccessDecision) GetIssuedHeight() uint64
- func (m *AccessDecision) GetOperations() []*Operation
- func (m *AccessDecision) GetParams() *DecisionParams
- func (m *AccessDecision) GetPolicyId() string
- func (m *AccessDecision) Marshal() (dAtA []byte, err error)
- func (m *AccessDecision) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessDecision) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (d *AccessDecision) ProduceId() string
- func (*AccessDecision) ProtoMessage()
- func (m *AccessDecision) Reset()
- func (m *AccessDecision) Size() (n int)
- func (m *AccessDecision) String() string
- func (m *AccessDecision) Unmarshal(dAtA []byte) error
- func (m *AccessDecision) XXX_DiscardUnknown()
- func (m *AccessDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessDecision) XXX_Merge(src proto.Message)
- func (m *AccessDecision) XXX_Size() int
- func (m *AccessDecision) XXX_Unmarshal(b []byte) error
- type AccessRequest
- func (*AccessRequest) Descriptor() ([]byte, []int)
- func (m *AccessRequest) GetActor() *Actor
- func (m *AccessRequest) GetOperations() []*Operation
- func (m *AccessRequest) Marshal() (dAtA []byte, err error)
- func (m *AccessRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessRequest) ProtoMessage()
- func (m *AccessRequest) Reset()
- func (m *AccessRequest) Size() (n int)
- func (m *AccessRequest) String() string
- func (m *AccessRequest) Unmarshal(dAtA []byte) error
- func (m *AccessRequest) XXX_DiscardUnknown()
- func (m *AccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessRequest) XXX_Merge(src proto.Message)
- func (m *AccessRequest) XXX_Size() int
- func (m *AccessRequest) XXX_Unmarshal(b []byte) error
- type AccessTicket
- func (*AccessTicket) Descriptor() ([]byte, []int)
- func (m *AccessTicket) GetDecision() *AccessDecision
- func (m *AccessTicket) GetDecisionId() string
- func (m *AccessTicket) GetDecisionProof() []byte
- func (m *AccessTicket) GetSignature() []byte
- func (m *AccessTicket) GetVersionDenominator() string
- func (m *AccessTicket) Marshal() (dAtA []byte, err error)
- func (m *AccessTicket) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessTicket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessTicket) ProtoMessage()
- func (m *AccessTicket) Reset()
- func (m *AccessTicket) Size() (n int)
- func (m *AccessTicket) String() string
- func (m *AccessTicket) Unmarshal(dAtA []byte) error
- func (m *AccessTicket) XXX_DiscardUnknown()
- func (m *AccessTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessTicket) XXX_Merge(src proto.Message)
- func (m *AccessTicket) XXX_Size() int
- func (m *AccessTicket) XXX_Unmarshal(b []byte) error
- type AccountKeeper
- type Actor
- func (*Actor) Descriptor() ([]byte, []int)
- func (m *Actor) GetId() string
- func (m *Actor) Marshal() (dAtA []byte, err error)
- func (m *Actor) MarshalTo(dAtA []byte) (int, error)
- func (m *Actor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Actor) ProtoMessage()
- func (m *Actor) Reset()
- func (m *Actor) Size() (n int)
- func (m *Actor) String() string
- func (m *Actor) Unmarshal(dAtA []byte) error
- func (m *Actor) XXX_DiscardUnknown()
- func (m *Actor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Actor) XXX_Merge(src proto.Message)
- func (m *Actor) XXX_Size() int
- func (m *Actor) XXX_Unmarshal(b []byte) error
- type ActorResource
- func (*ActorResource) Descriptor() ([]byte, []int)
- func (m *ActorResource) GetDoc() string
- func (m *ActorResource) GetName() string
- func (m *ActorResource) GetRelations() []*Relation
- func (m *ActorResource) Marshal() (dAtA []byte, err error)
- func (m *ActorResource) MarshalTo(dAtA []byte) (int, error)
- func (m *ActorResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ActorResource) ProtoMessage()
- func (m *ActorResource) Reset()
- func (m *ActorResource) Size() (n int)
- func (m *ActorResource) String() string
- func (m *ActorResource) Unmarshal(dAtA []byte) error
- func (m *ActorResource) XXX_DiscardUnknown()
- func (m *ActorResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActorResource) XXX_Merge(src proto.Message)
- func (m *ActorResource) XXX_Size() int
- func (m *ActorResource) XXX_Unmarshal(b []byte) error
- type ActorSet
- func (*ActorSet) Descriptor() ([]byte, []int)
- func (m *ActorSet) GetObject() *Object
- func (m *ActorSet) GetRelation() string
- func (m *ActorSet) Marshal() (dAtA []byte, err error)
- func (m *ActorSet) MarshalTo(dAtA []byte) (int, error)
- func (m *ActorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ActorSet) ProtoMessage()
- func (m *ActorSet) Reset()
- func (m *ActorSet) Size() (n int)
- func (m *ActorSet) String() string
- func (m *ActorSet) Unmarshal(dAtA []byte) error
- func (m *ActorSet) XXX_DiscardUnknown()
- func (m *ActorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActorSet) XXX_Merge(src proto.Message)
- func (m *ActorSet) XXX_Size() int
- func (m *ActorSet) XXX_Unmarshal(b []byte) error
- type AllActors
- func (*AllActors) Descriptor() ([]byte, []int)
- func (m *AllActors) Marshal() (dAtA []byte, err error)
- func (m *AllActors) MarshalTo(dAtA []byte) (int, error)
- func (m *AllActors) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllActors) ProtoMessage()
- func (m *AllActors) Reset()
- func (m *AllActors) Size() (n int)
- func (m *AllActors) String() string
- func (m *AllActors) Unmarshal(dAtA []byte) error
- func (m *AllActors) XXX_DiscardUnknown()
- func (m *AllActors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllActors) XXX_Merge(src proto.Message)
- func (m *AllActors) XXX_Size() int
- func (m *AllActors) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type DecisionParams
- func (*DecisionParams) Descriptor() ([]byte, []int)
- func (m *DecisionParams) GetDecisionExpirationDelta() uint64
- func (m *DecisionParams) GetProofExpirationDelta() uint64
- func (m *DecisionParams) GetTicketExpirationDelta() uint64
- func (m *DecisionParams) Marshal() (dAtA []byte, err error)
- func (m *DecisionParams) MarshalTo(dAtA []byte) (int, error)
- func (m *DecisionParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecisionParams) ProtoMessage()
- func (m *DecisionParams) Reset()
- func (m *DecisionParams) Size() (n int)
- func (m *DecisionParams) String() string
- func (m *DecisionParams) Unmarshal(dAtA []byte) error
- func (m *DecisionParams) XXX_DiscardUnknown()
- func (m *DecisionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecisionParams) XXX_Merge(src proto.Message)
- func (m *DecisionParams) XXX_Size() int
- func (m *DecisionParams) XXX_Unmarshal(b []byte) error
- type EventAccessDecisionCreated
- func (*EventAccessDecisionCreated) Descriptor() ([]byte, []int)
- func (m *EventAccessDecisionCreated) GetActor() string
- func (m *EventAccessDecisionCreated) GetActorDid() string
- func (m *EventAccessDecisionCreated) GetCreator() string
- func (m *EventAccessDecisionCreated) GetDecisionId() string
- func (m *EventAccessDecisionCreated) GetPolicyId() string
- func (m *EventAccessDecisionCreated) Marshal() (dAtA []byte, err error)
- func (m *EventAccessDecisionCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAccessDecisionCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAccessDecisionCreated) ProtoMessage()
- func (m *EventAccessDecisionCreated) Reset()
- func (m *EventAccessDecisionCreated) Size() (n int)
- func (m *EventAccessDecisionCreated) String() string
- func (m *EventAccessDecisionCreated) Unmarshal(dAtA []byte) error
- func (m *EventAccessDecisionCreated) XXX_DiscardUnknown()
- func (m *EventAccessDecisionCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAccessDecisionCreated) XXX_Merge(src proto.Message)
- func (m *EventAccessDecisionCreated) XXX_Size() int
- func (m *EventAccessDecisionCreated) XXX_Unmarshal(b []byte) error
- type EventPolicyCreated
- func (*EventPolicyCreated) Descriptor() ([]byte, []int)
- func (m *EventPolicyCreated) GetCreator() string
- func (m *EventPolicyCreated) GetPolicyId() string
- func (m *EventPolicyCreated) GetPolicyName() string
- func (m *EventPolicyCreated) Marshal() (dAtA []byte, err error)
- func (m *EventPolicyCreated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPolicyCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPolicyCreated) ProtoMessage()
- func (m *EventPolicyCreated) Reset()
- func (m *EventPolicyCreated) Size() (n int)
- func (m *EventPolicyCreated) String() string
- func (m *EventPolicyCreated) Unmarshal(dAtA []byte) error
- func (m *EventPolicyCreated) XXX_DiscardUnknown()
- func (m *EventPolicyCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPolicyCreated) XXX_Merge(src proto.Message)
- func (m *EventPolicyCreated) XXX_Size() int
- func (m *EventPolicyCreated) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ManagementGraph
- func (*ManagementGraph) Descriptor() ([]byte, []int)
- func (m *ManagementGraph) GetBackwardEdges() map[string]*ManagerEdges
- func (m *ManagementGraph) GetForwardEdges() map[string]*ManagerEdges
- func (g *ManagementGraph) GetManagers(resourceName, relationName string) []string
- func (m *ManagementGraph) GetNodes() map[string]*ManagerNode
- func (g *ManagementGraph) IsWellFormed() error
- func (g *ManagementGraph) LoadFromPolicy(policy *Policy)
- func (m *ManagementGraph) Marshal() (dAtA []byte, err error)
- func (m *ManagementGraph) MarshalTo(dAtA []byte) (int, error)
- func (m *ManagementGraph) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManagementGraph) ProtoMessage()
- func (g *ManagementGraph) RegisterManagedRel(resource, sourceRel, managedRel string)
- func (m *ManagementGraph) Reset()
- func (m *ManagementGraph) Size() (n int)
- func (m *ManagementGraph) String() string
- func (m *ManagementGraph) Unmarshal(dAtA []byte) error
- func (m *ManagementGraph) XXX_DiscardUnknown()
- func (m *ManagementGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManagementGraph) XXX_Merge(src proto.Message)
- func (m *ManagementGraph) XXX_Size() int
- func (m *ManagementGraph) XXX_Unmarshal(b []byte) error
- type ManagerEdges
- func (*ManagerEdges) Descriptor() ([]byte, []int)
- func (m *ManagerEdges) GetEdges() map[string]bool
- func (m *ManagerEdges) Marshal() (dAtA []byte, err error)
- func (m *ManagerEdges) MarshalTo(dAtA []byte) (int, error)
- func (m *ManagerEdges) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManagerEdges) ProtoMessage()
- func (m *ManagerEdges) Reset()
- func (m *ManagerEdges) Size() (n int)
- func (m *ManagerEdges) String() string
- func (m *ManagerEdges) Unmarshal(dAtA []byte) error
- func (m *ManagerEdges) XXX_DiscardUnknown()
- func (m *ManagerEdges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManagerEdges) XXX_Merge(src proto.Message)
- func (m *ManagerEdges) XXX_Size() int
- func (m *ManagerEdges) XXX_Unmarshal(b []byte) error
- type ManagerNode
- func (*ManagerNode) Descriptor() ([]byte, []int)
- func (m *ManagerNode) GetId() string
- func (m *ManagerNode) GetText() string
- func (m *ManagerNode) Marshal() (dAtA []byte, err error)
- func (m *ManagerNode) MarshalTo(dAtA []byte) (int, error)
- func (m *ManagerNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ManagerNode) ProtoMessage()
- func (m *ManagerNode) Reset()
- func (m *ManagerNode) Size() (n int)
- func (m *ManagerNode) String() string
- func (m *ManagerNode) Unmarshal(dAtA []byte) error
- func (m *ManagerNode) XXX_DiscardUnknown()
- func (m *ManagerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManagerNode) XXX_Merge(src proto.Message)
- func (m *ManagerNode) XXX_Size() int
- func (m *ManagerNode) XXX_Unmarshal(b []byte) error
- type MarshaledPolicy
- func (*MarshaledPolicy) Descriptor() ([]byte, []int)
- func (m *MarshaledPolicy) GetPolicy() string
- func (m *MarshaledPolicy) GetType() PolicyMarshalingType
- func (m *MarshaledPolicy) Marshal() (dAtA []byte, err error)
- func (m *MarshaledPolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *MarshaledPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarshaledPolicy) ProtoMessage()
- func (m *MarshaledPolicy) Reset()
- func (m *MarshaledPolicy) Size() (n int)
- func (m *MarshaledPolicy) String() string
- func (m *MarshaledPolicy) Unmarshal(dAtA []byte) error
- func (m *MarshaledPolicy) XXX_DiscardUnknown()
- func (m *MarshaledPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarshaledPolicy) XXX_Merge(src proto.Message)
- func (m *MarshaledPolicy) XXX_Size() int
- func (m *MarshaledPolicy) XXX_Unmarshal(b []byte) error
- type MsgCheckAccess
- func (*MsgCheckAccess) Descriptor() ([]byte, []int)
- func (m *MsgCheckAccess) GetAccessRequest() *AccessRequest
- func (m *MsgCheckAccess) GetCreationTime() *types.Timestamp
- func (m *MsgCheckAccess) GetCreator() string
- func (m *MsgCheckAccess) GetPolicyId() string
- func (m *MsgCheckAccess) Marshal() (dAtA []byte, err error)
- func (m *MsgCheckAccess) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCheckAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCheckAccess) ProtoMessage()
- func (m *MsgCheckAccess) Reset()
- func (m *MsgCheckAccess) Size() (n int)
- func (m *MsgCheckAccess) String() string
- func (m *MsgCheckAccess) Unmarshal(dAtA []byte) error
- func (msg *MsgCheckAccess) ValidateBasic() error
- func (m *MsgCheckAccess) XXX_DiscardUnknown()
- func (m *MsgCheckAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCheckAccess) XXX_Merge(src proto.Message)
- func (m *MsgCheckAccess) XXX_Size() int
- func (m *MsgCheckAccess) XXX_Unmarshal(b []byte) error
- type MsgCheckAccessResponse
- func (*MsgCheckAccessResponse) Descriptor() ([]byte, []int)
- func (m *MsgCheckAccessResponse) GetDecision() *AccessDecision
- func (m *MsgCheckAccessResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCheckAccessResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCheckAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCheckAccessResponse) ProtoMessage()
- func (m *MsgCheckAccessResponse) Reset()
- func (m *MsgCheckAccessResponse) Size() (n int)
- func (m *MsgCheckAccessResponse) String() string
- func (m *MsgCheckAccessResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCheckAccessResponse) XXX_DiscardUnknown()
- func (m *MsgCheckAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCheckAccessResponse) XXX_Merge(src proto.Message)
- func (m *MsgCheckAccessResponse) XXX_Size() int
- func (m *MsgCheckAccessResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePolicy
- func (*MsgCreatePolicy) Descriptor() ([]byte, []int)
- func (m *MsgCreatePolicy) GetCreationTime() *types.Timestamp
- func (m *MsgCreatePolicy) GetCreator() string
- func (m *MsgCreatePolicy) GetMarshalType() PolicyMarshalingType
- func (m *MsgCreatePolicy) GetPolicy() string
- func (m *MsgCreatePolicy) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePolicy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePolicy) ProtoMessage()
- func (m *MsgCreatePolicy) Reset()
- func (m *MsgCreatePolicy) Size() (n int)
- func (m *MsgCreatePolicy) String() string
- func (m *MsgCreatePolicy) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePolicy) ValidateBasic() error
- func (m *MsgCreatePolicy) XXX_DiscardUnknown()
- func (m *MsgCreatePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePolicy) XXX_Merge(src proto.Message)
- func (m *MsgCreatePolicy) XXX_Size() int
- func (m *MsgCreatePolicy) XXX_Unmarshal(b []byte) error
- type MsgCreatePolicyResponse
- func (*MsgCreatePolicyResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePolicyResponse) GetPolicy() *Policy
- func (m *MsgCreatePolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePolicyResponse) ProtoMessage()
- func (m *MsgCreatePolicyResponse) Reset()
- func (m *MsgCreatePolicyResponse) Size() (n int)
- func (m *MsgCreatePolicyResponse) String() string
- func (m *MsgCreatePolicyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePolicyResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePolicyResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePolicyResponse) XXX_Size() int
- func (m *MsgCreatePolicyResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteRelationship
- func (*MsgDeleteRelationship) Descriptor() ([]byte, []int)
- func (m *MsgDeleteRelationship) GetCreator() string
- func (m *MsgDeleteRelationship) GetPolicyId() string
- func (m *MsgDeleteRelationship) GetRelationship() *Relationship
- func (m *MsgDeleteRelationship) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteRelationship) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteRelationship) ProtoMessage()
- func (m *MsgDeleteRelationship) Reset()
- func (m *MsgDeleteRelationship) Size() (n int)
- func (m *MsgDeleteRelationship) String() string
- func (m *MsgDeleteRelationship) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteRelationship) ValidateBasic() error
- func (m *MsgDeleteRelationship) XXX_DiscardUnknown()
- func (m *MsgDeleteRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteRelationship) XXX_Merge(src proto.Message)
- func (m *MsgDeleteRelationship) XXX_Size() int
- func (m *MsgDeleteRelationship) XXX_Unmarshal(b []byte) error
- type MsgDeleteRelationshipResponse
- func (*MsgDeleteRelationshipResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteRelationshipResponse) GetRecordFound() bool
- func (m *MsgDeleteRelationshipResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteRelationshipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteRelationshipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteRelationshipResponse) ProtoMessage()
- func (m *MsgDeleteRelationshipResponse) Reset()
- func (m *MsgDeleteRelationshipResponse) Size() (n int)
- func (m *MsgDeleteRelationshipResponse) String() string
- func (m *MsgDeleteRelationshipResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteRelationshipResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteRelationshipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteRelationshipResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteRelationshipResponse) XXX_Size() int
- func (m *MsgDeleteRelationshipResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterObject
- func (*MsgRegisterObject) Descriptor() ([]byte, []int)
- func (m *MsgRegisterObject) GetCreationTime() *types.Timestamp
- func (m *MsgRegisterObject) GetCreator() string
- func (m *MsgRegisterObject) GetObject() *Object
- func (m *MsgRegisterObject) GetPolicyId() string
- func (m *MsgRegisterObject) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterObject) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterObject) ProtoMessage()
- func (m *MsgRegisterObject) Reset()
- func (m *MsgRegisterObject) Size() (n int)
- func (m *MsgRegisterObject) String() string
- func (m *MsgRegisterObject) Unmarshal(dAtA []byte) error
- func (msg *MsgRegisterObject) ValidateBasic() error
- func (m *MsgRegisterObject) XXX_DiscardUnknown()
- func (m *MsgRegisterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterObject) XXX_Merge(src proto.Message)
- func (m *MsgRegisterObject) XXX_Size() int
- func (m *MsgRegisterObject) XXX_Unmarshal(b []byte) error
- type MsgRegisterObjectResponse
- func (*MsgRegisterObjectResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterObjectResponse) GetResult() RegistrationResult
- func (m *MsgRegisterObjectResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterObjectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterObjectResponse) ProtoMessage()
- func (m *MsgRegisterObjectResponse) Reset()
- func (m *MsgRegisterObjectResponse) Size() (n int)
- func (m *MsgRegisterObjectResponse) String() string
- func (m *MsgRegisterObjectResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterObjectResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterObjectResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterObjectResponse) XXX_Size() int
- func (m *MsgRegisterObjectResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetRelationship
- func (*MsgSetRelationship) Descriptor() ([]byte, []int)
- func (m *MsgSetRelationship) GetCreationTime() *types.Timestamp
- func (m *MsgSetRelationship) GetCreator() string
- func (m *MsgSetRelationship) GetPolicyId() string
- func (m *MsgSetRelationship) GetRelationship() *Relationship
- func (m *MsgSetRelationship) Marshal() (dAtA []byte, err error)
- func (m *MsgSetRelationship) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetRelationship) ProtoMessage()
- func (m *MsgSetRelationship) Reset()
- func (m *MsgSetRelationship) Size() (n int)
- func (m *MsgSetRelationship) String() string
- func (m *MsgSetRelationship) Unmarshal(dAtA []byte) error
- func (msg *MsgSetRelationship) ValidateBasic() error
- func (m *MsgSetRelationship) XXX_DiscardUnknown()
- func (m *MsgSetRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetRelationship) XXX_Merge(src proto.Message)
- func (m *MsgSetRelationship) XXX_Size() int
- func (m *MsgSetRelationship) XXX_Unmarshal(b []byte) error
- type MsgSetRelationshipResponse
- func (*MsgSetRelationshipResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetRelationshipResponse) GetRecordExisted() bool
- func (m *MsgSetRelationshipResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetRelationshipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetRelationshipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetRelationshipResponse) ProtoMessage()
- func (m *MsgSetRelationshipResponse) Reset()
- func (m *MsgSetRelationshipResponse) Size() (n int)
- func (m *MsgSetRelationshipResponse) String() string
- func (m *MsgSetRelationshipResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetRelationshipResponse) XXX_DiscardUnknown()
- func (m *MsgSetRelationshipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetRelationshipResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetRelationshipResponse) XXX_Size() int
- func (m *MsgSetRelationshipResponse) XXX_Unmarshal(b []byte) error
- type MsgUnregisterObject
- func (*MsgUnregisterObject) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterObject) GetCreator() string
- func (m *MsgUnregisterObject) GetObject() *Object
- func (m *MsgUnregisterObject) GetPolicyId() string
- func (m *MsgUnregisterObject) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterObject) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterObject) ProtoMessage()
- func (m *MsgUnregisterObject) Reset()
- func (m *MsgUnregisterObject) Size() (n int)
- func (m *MsgUnregisterObject) String() string
- func (m *MsgUnregisterObject) Unmarshal(dAtA []byte) error
- func (msg *MsgUnregisterObject) ValidateBasic() error
- func (m *MsgUnregisterObject) XXX_DiscardUnknown()
- func (m *MsgUnregisterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterObject) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterObject) XXX_Size() int
- func (m *MsgUnregisterObject) XXX_Unmarshal(b []byte) error
- type MsgUnregisterObjectResponse
- func (*MsgUnregisterObjectResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnregisterObjectResponse) GetFound() bool
- func (m *MsgUnregisterObjectResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnregisterObjectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnregisterObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnregisterObjectResponse) ProtoMessage()
- func (m *MsgUnregisterObjectResponse) Reset()
- func (m *MsgUnregisterObjectResponse) Size() (n int)
- func (m *MsgUnregisterObjectResponse) String() string
- func (m *MsgUnregisterObjectResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnregisterObjectResponse) XXX_DiscardUnknown()
- func (m *MsgUnregisterObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnregisterObjectResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnregisterObjectResponse) XXX_Size() int
- func (m *MsgUnregisterObjectResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Object
- func (*Object) Descriptor() ([]byte, []int)
- func (m *Object) GetId() string
- func (m *Object) GetResource() string
- func (m *Object) Marshal() (dAtA []byte, err error)
- func (m *Object) MarshalTo(dAtA []byte) (int, error)
- func (m *Object) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Object) ProtoMessage()
- func (m *Object) Reset()
- func (m *Object) Size() (n int)
- func (m *Object) String() string
- func (m *Object) Unmarshal(dAtA []byte) error
- func (m *Object) XXX_DiscardUnknown()
- func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Object) XXX_Merge(src proto.Message)
- func (m *Object) XXX_Size() int
- func (m *Object) XXX_Unmarshal(b []byte) error
- type ObjectSelector
- func (*ObjectSelector) Descriptor() ([]byte, []int)
- func (m *ObjectSelector) GetObject() *Object
- func (m *ObjectSelector) GetSelector() isObjectSelector_Selector
- func (m *ObjectSelector) GetWildcard() *WildcardSelector
- func (m *ObjectSelector) Marshal() (dAtA []byte, err error)
- func (m *ObjectSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *ObjectSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ObjectSelector) ProtoMessage()
- func (m *ObjectSelector) Reset()
- func (m *ObjectSelector) Size() (n int)
- func (m *ObjectSelector) String() string
- func (m *ObjectSelector) Unmarshal(dAtA []byte) error
- func (m *ObjectSelector) XXX_DiscardUnknown()
- func (m *ObjectSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ObjectSelector) XXX_Merge(src proto.Message)
- func (*ObjectSelector) XXX_OneofWrappers() []interface{}
- func (m *ObjectSelector) XXX_Size() int
- func (m *ObjectSelector) XXX_Unmarshal(b []byte) error
- type ObjectSelector_Object
- type ObjectSelector_Wildcard
- type Operation
- func (*Operation) Descriptor() ([]byte, []int)
- func (m *Operation) GetObject() *Object
- func (m *Operation) GetPermission() string
- func (m *Operation) Marshal() (dAtA []byte, err error)
- func (m *Operation) MarshalTo(dAtA []byte) (int, error)
- func (m *Operation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Operation) ProtoMessage()
- func (m *Operation) Reset()
- func (m *Operation) Size() (n int)
- func (m *Operation) String() string
- func (m *Operation) Unmarshal(dAtA []byte) error
- func (m *Operation) XXX_DiscardUnknown()
- func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Operation) XXX_Merge(src proto.Message)
- func (m *Operation) XXX_Size() int
- func (m *Operation) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)
- func (m *Permission) GetDoc() string
- func (m *Permission) GetExpression() string
- func (m *Permission) GetName() string
- func (m *Permission) Marshal() (dAtA []byte, err error)
- func (m *Permission) MarshalTo(dAtA []byte) (int, error)
- func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Permission) ProtoMessage()
- func (m *Permission) Reset()
- func (m *Permission) Size() (n int)
- func (m *Permission) String() string
- func (m *Permission) Unmarshal(dAtA []byte) error
- func (m *Permission) XXX_DiscardUnknown()
- func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Permission) XXX_Merge(src proto.Message)
- func (m *Permission) XXX_Size() int
- func (m *Permission) XXX_Unmarshal(b []byte) error
- type PermissionShort
- func (*PermissionShort) Descriptor() ([]byte, []int)
- func (m *PermissionShort) GetDoc() string
- func (m *PermissionShort) GetExpr() string
- func (m *PermissionShort) Marshal() (dAtA []byte, err error)
- func (m *PermissionShort) MarshalTo(dAtA []byte) (int, error)
- func (m *PermissionShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PermissionShort) ProtoMessage()
- func (m *PermissionShort) Reset()
- func (m *PermissionShort) Size() (n int)
- func (m *PermissionShort) String() string
- func (m *PermissionShort) Unmarshal(dAtA []byte) error
- func (m *PermissionShort) XXX_DiscardUnknown()
- func (m *PermissionShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionShort) XXX_Merge(src proto.Message)
- func (m *PermissionShort) XXX_Size() int
- func (m *PermissionShort) XXX_Unmarshal(b []byte) error
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetActorResource() *ActorResource
- func (m *Policy) GetAttributes() map[string]string
- func (m *Policy) GetCreationTime() *types.Timestamp
- func (m *Policy) GetCreator() string
- func (m *Policy) GetDescription() string
- func (m *Policy) GetId() string
- func (pol *Policy) GetManagementPermissionName(relation string) string
- func (m *Policy) GetName() string
- func (m *Policy) GetResources() []*Resource
- func (m *Policy) Marshal() (dAtA []byte, err error)
- func (m *Policy) MarshalTo(dAtA []byte) (int, error)
- func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) Size() (n int)
- func (pol *Policy) Sort()
- func (m *Policy) String() string
- func (m *Policy) Unmarshal(dAtA []byte) error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type PolicyDefinition
- func (*PolicyDefinition) Descriptor() ([]byte, []int)
- func (m *PolicyDefinition) GetDefinition() isPolicyDefinition_Definition
- func (m *PolicyDefinition) GetMarshaledPolicy() *MarshaledPolicy
- func (m *PolicyDefinition) GetPolicy() *Policy
- func (m *PolicyDefinition) Marshal() (dAtA []byte, err error)
- func (m *PolicyDefinition) MarshalTo(dAtA []byte) (int, error)
- func (m *PolicyDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PolicyDefinition) ProtoMessage()
- func (m *PolicyDefinition) Reset()
- func (m *PolicyDefinition) Size() (n int)
- func (m *PolicyDefinition) String() string
- func (m *PolicyDefinition) Unmarshal(dAtA []byte) error
- func (m *PolicyDefinition) XXX_DiscardUnknown()
- func (m *PolicyDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyDefinition) XXX_Merge(src proto.Message)
- func (*PolicyDefinition) XXX_OneofWrappers() []interface{}
- func (m *PolicyDefinition) XXX_Size() int
- func (m *PolicyDefinition) XXX_Unmarshal(b []byte) error
- type PolicyDefinition_MarshaledPolicy
- type PolicyDefinition_Policy
- type PolicyMarshalingType
- type PolicyRecord
- func (*PolicyRecord) Descriptor() ([]byte, []int)
- func (m *PolicyRecord) GetManagementGraph() *ManagementGraph
- func (m *PolicyRecord) GetPolicy() *Policy
- func (m *PolicyRecord) Marshal() (dAtA []byte, err error)
- func (m *PolicyRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *PolicyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PolicyRecord) ProtoMessage()
- func (m *PolicyRecord) Reset()
- func (m *PolicyRecord) Size() (n int)
- func (m *PolicyRecord) String() string
- func (m *PolicyRecord) Unmarshal(dAtA []byte) error
- func (m *PolicyRecord) XXX_DiscardUnknown()
- func (m *PolicyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyRecord) XXX_Merge(src proto.Message)
- func (m *PolicyRecord) XXX_Size() int
- func (m *PolicyRecord) XXX_Unmarshal(b []byte) error
- type PolicyShort
- func (*PolicyShort) Descriptor() ([]byte, []int)
- func (m *PolicyShort) GetActor() *ActorResource
- func (m *PolicyShort) GetDescription() string
- func (m *PolicyShort) GetMeta() map[string]string
- func (m *PolicyShort) GetName() string
- func (m *PolicyShort) GetResources() map[string]*ResourceShort
- func (m *PolicyShort) GetVersion() string
- func (m *PolicyShort) Marshal() (dAtA []byte, err error)
- func (m *PolicyShort) MarshalTo(dAtA []byte) (int, error)
- func (m *PolicyShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PolicyShort) ProtoMessage()
- func (m *PolicyShort) Reset()
- func (m *PolicyShort) Size() (n int)
- func (m *PolicyShort) String() string
- func (m *PolicyShort) Unmarshal(dAtA []byte) error
- func (m *PolicyShort) XXX_DiscardUnknown()
- func (m *PolicyShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyShort) XXX_Merge(src proto.Message)
- func (m *PolicyShort) XXX_Size() int
- func (m *PolicyShort) XXX_Unmarshal(b []byte) error
- type QueryAccessDecisionRequest
- func (*QueryAccessDecisionRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccessDecisionRequest) GetId() string
- func (m *QueryAccessDecisionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccessDecisionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccessDecisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccessDecisionRequest) ProtoMessage()
- func (m *QueryAccessDecisionRequest) Reset()
- func (m *QueryAccessDecisionRequest) Size() (n int)
- func (m *QueryAccessDecisionRequest) String() string
- func (m *QueryAccessDecisionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccessDecisionRequest) XXX_DiscardUnknown()
- func (m *QueryAccessDecisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccessDecisionRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccessDecisionRequest) XXX_Size() int
- func (m *QueryAccessDecisionRequest) XXX_Unmarshal(b []byte) error
- type QueryAccessDecisionResponse
- func (*QueryAccessDecisionResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccessDecisionResponse) GetDecision() *AccessDecision
- func (m *QueryAccessDecisionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccessDecisionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccessDecisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccessDecisionResponse) ProtoMessage()
- func (m *QueryAccessDecisionResponse) Reset()
- func (m *QueryAccessDecisionResponse) Size() (n int)
- func (m *QueryAccessDecisionResponse) String() string
- func (m *QueryAccessDecisionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccessDecisionResponse) XXX_DiscardUnknown()
- func (m *QueryAccessDecisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccessDecisionResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccessDecisionResponse) XXX_Size() int
- func (m *QueryAccessDecisionResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFilterRelationshipsRequest
- func (*QueryFilterRelationshipsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFilterRelationshipsRequest) GetPolicyId() string
- func (m *QueryFilterRelationshipsRequest) GetSelector() *RelationshipSelector
- func (m *QueryFilterRelationshipsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFilterRelationshipsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFilterRelationshipsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFilterRelationshipsRequest) ProtoMessage()
- func (m *QueryFilterRelationshipsRequest) Reset()
- func (m *QueryFilterRelationshipsRequest) Size() (n int)
- func (m *QueryFilterRelationshipsRequest) String() string
- func (m *QueryFilterRelationshipsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFilterRelationshipsRequest) XXX_DiscardUnknown()
- func (m *QueryFilterRelationshipsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFilterRelationshipsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFilterRelationshipsRequest) XXX_Size() int
- func (m *QueryFilterRelationshipsRequest) XXX_Unmarshal(b []byte) error
- type QueryFilterRelationshipsResponse
- func (*QueryFilterRelationshipsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFilterRelationshipsResponse) GetRecords() []*RelationshipRecord
- func (m *QueryFilterRelationshipsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFilterRelationshipsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFilterRelationshipsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFilterRelationshipsResponse) ProtoMessage()
- func (m *QueryFilterRelationshipsResponse) Reset()
- func (m *QueryFilterRelationshipsResponse) Size() (n int)
- func (m *QueryFilterRelationshipsResponse) String() string
- func (m *QueryFilterRelationshipsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFilterRelationshipsResponse) XXX_DiscardUnknown()
- func (m *QueryFilterRelationshipsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFilterRelationshipsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFilterRelationshipsResponse) XXX_Size() int
- func (m *QueryFilterRelationshipsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPolicyIdsRequest
- func (*QueryPolicyIdsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPolicyIdsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPolicyIdsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPolicyIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPolicyIdsRequest) ProtoMessage()
- func (m *QueryPolicyIdsRequest) Reset()
- func (m *QueryPolicyIdsRequest) Size() (n int)
- func (m *QueryPolicyIdsRequest) String() string
- func (m *QueryPolicyIdsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPolicyIdsRequest) XXX_DiscardUnknown()
- func (m *QueryPolicyIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPolicyIdsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPolicyIdsRequest) XXX_Size() int
- func (m *QueryPolicyIdsRequest) XXX_Unmarshal(b []byte) error
- type QueryPolicyIdsResponse
- func (*QueryPolicyIdsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPolicyIdsResponse) GetIds() []string
- func (m *QueryPolicyIdsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPolicyIdsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPolicyIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPolicyIdsResponse) ProtoMessage()
- func (m *QueryPolicyIdsResponse) Reset()
- func (m *QueryPolicyIdsResponse) Size() (n int)
- func (m *QueryPolicyIdsResponse) String() string
- func (m *QueryPolicyIdsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPolicyIdsResponse) XXX_DiscardUnknown()
- func (m *QueryPolicyIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPolicyIdsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPolicyIdsResponse) XXX_Size() int
- func (m *QueryPolicyIdsResponse) XXX_Unmarshal(b []byte) error
- type QueryPolicyRequest
- func (*QueryPolicyRequest) Descriptor() ([]byte, []int)
- func (m *QueryPolicyRequest) GetId() string
- func (m *QueryPolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPolicyRequest) ProtoMessage()
- func (m *QueryPolicyRequest) Reset()
- func (m *QueryPolicyRequest) Size() (n int)
- func (m *QueryPolicyRequest) String() string
- func (m *QueryPolicyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPolicyRequest) XXX_DiscardUnknown()
- func (m *QueryPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPolicyRequest) XXX_Merge(src proto.Message)
- func (m *QueryPolicyRequest) XXX_Size() int
- func (m *QueryPolicyRequest) XXX_Unmarshal(b []byte) error
- type QueryPolicyResponse
- func (*QueryPolicyResponse) Descriptor() ([]byte, []int)
- func (m *QueryPolicyResponse) GetPolicy() *Policy
- func (m *QueryPolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPolicyResponse) ProtoMessage()
- func (m *QueryPolicyResponse) Reset()
- func (m *QueryPolicyResponse) Size() (n int)
- func (m *QueryPolicyResponse) String() string
- func (m *QueryPolicyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPolicyResponse) XXX_DiscardUnknown()
- func (m *QueryPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPolicyResponse) XXX_Merge(src proto.Message)
- func (m *QueryPolicyResponse) XXX_Size() int
- func (m *QueryPolicyResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryValidatePolicyRequest
- func (*QueryValidatePolicyRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatePolicyRequest) GetMarshalType() PolicyMarshalingType
- func (m *QueryValidatePolicyRequest) GetPolicy() string
- func (m *QueryValidatePolicyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatePolicyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatePolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatePolicyRequest) ProtoMessage()
- func (m *QueryValidatePolicyRequest) Reset()
- func (m *QueryValidatePolicyRequest) Size() (n int)
- func (m *QueryValidatePolicyRequest) String() string
- func (m *QueryValidatePolicyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatePolicyRequest) XXX_DiscardUnknown()
- func (m *QueryValidatePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatePolicyRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatePolicyRequest) XXX_Size() int
- func (m *QueryValidatePolicyRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatePolicyResponse
- func (*QueryValidatePolicyResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatePolicyResponse) GetValid() bool
- func (m *QueryValidatePolicyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatePolicyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatePolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatePolicyResponse) ProtoMessage()
- func (m *QueryValidatePolicyResponse) Reset()
- func (m *QueryValidatePolicyResponse) Size() (n int)
- func (m *QueryValidatePolicyResponse) String() string
- func (m *QueryValidatePolicyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatePolicyResponse) XXX_DiscardUnknown()
- func (m *QueryValidatePolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatePolicyResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatePolicyResponse) XXX_Size() int
- func (m *QueryValidatePolicyResponse) XXX_Unmarshal(b []byte) error
- type QueryVerifyAccessRequestRequest
- func (*QueryVerifyAccessRequestRequest) Descriptor() ([]byte, []int)
- func (m *QueryVerifyAccessRequestRequest) GetAccessRequest() *AccessRequest
- func (m *QueryVerifyAccessRequestRequest) GetPolicyId() string
- func (m *QueryVerifyAccessRequestRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVerifyAccessRequestRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVerifyAccessRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVerifyAccessRequestRequest) ProtoMessage()
- func (m *QueryVerifyAccessRequestRequest) Reset()
- func (m *QueryVerifyAccessRequestRequest) Size() (n int)
- func (m *QueryVerifyAccessRequestRequest) String() string
- func (m *QueryVerifyAccessRequestRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVerifyAccessRequestRequest) XXX_DiscardUnknown()
- func (m *QueryVerifyAccessRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVerifyAccessRequestRequest) XXX_Merge(src proto.Message)
- func (m *QueryVerifyAccessRequestRequest) XXX_Size() int
- func (m *QueryVerifyAccessRequestRequest) XXX_Unmarshal(b []byte) error
- type QueryVerifyAccessRequestResponse
- func (*QueryVerifyAccessRequestResponse) Descriptor() ([]byte, []int)
- func (m *QueryVerifyAccessRequestResponse) GetValid() bool
- func (m *QueryVerifyAccessRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVerifyAccessRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVerifyAccessRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVerifyAccessRequestResponse) ProtoMessage()
- func (m *QueryVerifyAccessRequestResponse) Reset()
- func (m *QueryVerifyAccessRequestResponse) Size() (n int)
- func (m *QueryVerifyAccessRequestResponse) String() string
- func (m *QueryVerifyAccessRequestResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVerifyAccessRequestResponse) XXX_DiscardUnknown()
- func (m *QueryVerifyAccessRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVerifyAccessRequestResponse) XXX_Merge(src proto.Message)
- func (m *QueryVerifyAccessRequestResponse) XXX_Size() int
- func (m *QueryVerifyAccessRequestResponse) XXX_Unmarshal(b []byte) error
- type Registration
- func (*Registration) Descriptor() ([]byte, []int)
- func (m *Registration) GetActor() *Actor
- func (m *Registration) GetObject() *Object
- func (m *Registration) Marshal() (dAtA []byte, err error)
- func (m *Registration) MarshalTo(dAtA []byte) (int, error)
- func (m *Registration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Registration) ProtoMessage()
- func (m *Registration) Reset()
- func (m *Registration) Size() (n int)
- func (m *Registration) String() string
- func (m *Registration) Unmarshal(dAtA []byte) error
- func (m *Registration) XXX_DiscardUnknown()
- func (m *Registration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Registration) XXX_Merge(src proto.Message)
- func (m *Registration) XXX_Size() int
- func (m *Registration) XXX_Unmarshal(b []byte) error
- type RegistrationResult
- type Relation
- func (*Relation) Descriptor() ([]byte, []int)
- func (m *Relation) GetDoc() string
- func (m *Relation) GetManages() []string
- func (m *Relation) GetName() string
- func (m *Relation) GetVrTypes() []*Restriction
- func (m *Relation) Marshal() (dAtA []byte, err error)
- func (m *Relation) MarshalTo(dAtA []byte) (int, error)
- func (m *Relation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Relation) ProtoMessage()
- func (m *Relation) Reset()
- func (m *Relation) Size() (n int)
- func (m *Relation) String() string
- func (m *Relation) Unmarshal(dAtA []byte) error
- func (m *Relation) XXX_DiscardUnknown()
- func (m *Relation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relation) XXX_Merge(src proto.Message)
- func (m *Relation) XXX_Size() int
- func (m *Relation) XXX_Unmarshal(b []byte) error
- type RelationSelector
- func (*RelationSelector) Descriptor() ([]byte, []int)
- func (m *RelationSelector) GetRelation() string
- func (m *RelationSelector) GetSelector() isRelationSelector_Selector
- func (m *RelationSelector) GetWildcard() *WildcardSelector
- func (m *RelationSelector) Marshal() (dAtA []byte, err error)
- func (m *RelationSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *RelationSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelationSelector) ProtoMessage()
- func (m *RelationSelector) Reset()
- func (m *RelationSelector) Size() (n int)
- func (m *RelationSelector) String() string
- func (m *RelationSelector) Unmarshal(dAtA []byte) error
- func (m *RelationSelector) XXX_DiscardUnknown()
- func (m *RelationSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelationSelector) XXX_Merge(src proto.Message)
- func (*RelationSelector) XXX_OneofWrappers() []interface{}
- func (m *RelationSelector) XXX_Size() int
- func (m *RelationSelector) XXX_Unmarshal(b []byte) error
- type RelationSelector_Relation
- type RelationSelector_Wildcard
- type RelationShort
- func (*RelationShort) Descriptor() ([]byte, []int)
- func (m *RelationShort) GetDoc() string
- func (m *RelationShort) GetManages() []string
- func (m *RelationShort) GetTypes() []string
- func (m *RelationShort) Marshal() (dAtA []byte, err error)
- func (m *RelationShort) MarshalTo(dAtA []byte) (int, error)
- func (m *RelationShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelationShort) ProtoMessage()
- func (m *RelationShort) Reset()
- func (m *RelationShort) Size() (n int)
- func (m *RelationShort) String() string
- func (m *RelationShort) Unmarshal(dAtA []byte) error
- func (m *RelationShort) XXX_DiscardUnknown()
- func (m *RelationShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelationShort) XXX_Merge(src proto.Message)
- func (m *RelationShort) XXX_Size() int
- func (m *RelationShort) XXX_Unmarshal(b []byte) error
- type Relationship
- func NewActorRelationship(resource, objId, relation, actor string) *Relationship
- func NewActorSetRelationship(resource, objId, relation, subjResource, subjId, subjRel string) *Relationship
- func NewAllActorsRelationship(resource, objId, relation string) *Relationship
- func NewRelationship(resource, objId, relation, subjResource, subjId string) *Relationship
- func (*Relationship) Descriptor() ([]byte, []int)
- func (m *Relationship) GetObject() *Object
- func (m *Relationship) GetRelation() string
- func (m *Relationship) GetSubject() *Subject
- func (m *Relationship) Marshal() (dAtA []byte, err error)
- func (m *Relationship) MarshalTo(dAtA []byte) (int, error)
- func (m *Relationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Relationship) ProtoMessage()
- func (m *Relationship) Reset()
- func (m *Relationship) Size() (n int)
- func (m *Relationship) String() string
- func (m *Relationship) Unmarshal(dAtA []byte) error
- func (m *Relationship) XXX_DiscardUnknown()
- func (m *Relationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relationship) XXX_Merge(src proto.Message)
- func (m *Relationship) XXX_Size() int
- func (m *Relationship) XXX_Unmarshal(b []byte) error
- type RelationshipRecord
- func (*RelationshipRecord) Descriptor() ([]byte, []int)
- func (m *RelationshipRecord) GetArchived() bool
- func (m *RelationshipRecord) GetCreationTime() *types.Timestamp
- func (m *RelationshipRecord) GetCreator() string
- func (m *RelationshipRecord) GetPolicyId() string
- func (m *RelationshipRecord) GetRelationship() *Relationship
- func (m *RelationshipRecord) Marshal() (dAtA []byte, err error)
- func (m *RelationshipRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *RelationshipRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelationshipRecord) ProtoMessage()
- func (m *RelationshipRecord) Reset()
- func (m *RelationshipRecord) Size() (n int)
- func (m *RelationshipRecord) String() string
- func (m *RelationshipRecord) Unmarshal(dAtA []byte) error
- func (m *RelationshipRecord) XXX_DiscardUnknown()
- func (m *RelationshipRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelationshipRecord) XXX_Merge(src proto.Message)
- func (m *RelationshipRecord) XXX_Size() int
- func (m *RelationshipRecord) XXX_Unmarshal(b []byte) error
- type RelationshipSelector
- func (*RelationshipSelector) Descriptor() ([]byte, []int)
- func (m *RelationshipSelector) GetObjectSelector() *ObjectSelector
- func (m *RelationshipSelector) GetRelationSelector() *RelationSelector
- func (m *RelationshipSelector) GetSubjectSelector() *SubjectSelector
- func (m *RelationshipSelector) Marshal() (dAtA []byte, err error)
- func (m *RelationshipSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *RelationshipSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RelationshipSelector) ProtoMessage()
- func (m *RelationshipSelector) Reset()
- func (m *RelationshipSelector) Size() (n int)
- func (m *RelationshipSelector) String() string
- func (m *RelationshipSelector) Unmarshal(dAtA []byte) error
- func (m *RelationshipSelector) XXX_DiscardUnknown()
- func (m *RelationshipSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelationshipSelector) XXX_Merge(src proto.Message)
- func (m *RelationshipSelector) XXX_Size() int
- func (m *RelationshipSelector) XXX_Unmarshal(b []byte) error
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetDoc() string
- func (m *Resource) GetName() string
- func (m *Resource) GetPermissions() []*Permission
- func (m *Resource) GetRelations() []*Relation
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type ResourceShort
- func (*ResourceShort) Descriptor() ([]byte, []int)
- func (m *ResourceShort) GetDoc() string
- func (m *ResourceShort) GetPermissions() map[string]*PermissionShort
- func (m *ResourceShort) GetRelations() map[string]*RelationShort
- func (m *ResourceShort) Marshal() (dAtA []byte, err error)
- func (m *ResourceShort) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceShort) ProtoMessage()
- func (m *ResourceShort) Reset()
- func (m *ResourceShort) Size() (n int)
- func (m *ResourceShort) String() string
- func (m *ResourceShort) Unmarshal(dAtA []byte) error
- func (m *ResourceShort) XXX_DiscardUnknown()
- func (m *ResourceShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceShort) XXX_Merge(src proto.Message)
- func (m *ResourceShort) XXX_Size() int
- func (m *ResourceShort) XXX_Unmarshal(b []byte) error
- type Restriction
- func (*Restriction) Descriptor() ([]byte, []int)
- func (m *Restriction) GetRelationName() string
- func (m *Restriction) GetResourceName() string
- func (m *Restriction) Marshal() (dAtA []byte, err error)
- func (m *Restriction) MarshalTo(dAtA []byte) (int, error)
- func (m *Restriction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Restriction) ProtoMessage()
- func (m *Restriction) Reset()
- func (m *Restriction) Size() (n int)
- func (m *Restriction) String() string
- func (m *Restriction) Unmarshal(dAtA []byte) error
- func (m *Restriction) XXX_DiscardUnknown()
- func (m *Restriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Restriction) XXX_Merge(src proto.Message)
- func (m *Restriction) XXX_Size() int
- func (m *Restriction) XXX_Unmarshal(b []byte) error
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)
- func (m *Subject) GetActor() *Actor
- func (m *Subject) GetActorSet() *ActorSet
- func (m *Subject) GetAllActors() *AllActors
- func (m *Subject) GetObject() *Object
- func (m *Subject) GetSubject() isSubject_Subject
- func (m *Subject) Marshal() (dAtA []byte, err error)
- func (m *Subject) MarshalTo(dAtA []byte) (int, error)
- func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Subject) ProtoMessage()
- func (m *Subject) Reset()
- func (m *Subject) Size() (n int)
- func (m *Subject) String() string
- func (m *Subject) Unmarshal(dAtA []byte) error
- func (m *Subject) XXX_DiscardUnknown()
- func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subject) XXX_Merge(src proto.Message)
- func (*Subject) XXX_OneofWrappers() []interface{}
- func (m *Subject) XXX_Size() int
- func (m *Subject) XXX_Unmarshal(b []byte) error
- type SubjectSelector
- func (*SubjectSelector) Descriptor() ([]byte, []int)
- func (m *SubjectSelector) GetSelector() isSubjectSelector_Selector
- func (m *SubjectSelector) GetSubject() *Subject
- func (m *SubjectSelector) GetWildcard() *WildcardSelector
- func (m *SubjectSelector) Marshal() (dAtA []byte, err error)
- func (m *SubjectSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *SubjectSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubjectSelector) ProtoMessage()
- func (m *SubjectSelector) Reset()
- func (m *SubjectSelector) Size() (n int)
- func (m *SubjectSelector) String() string
- func (m *SubjectSelector) Unmarshal(dAtA []byte) error
- func (m *SubjectSelector) XXX_DiscardUnknown()
- func (m *SubjectSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubjectSelector) XXX_Merge(src proto.Message)
- func (*SubjectSelector) XXX_OneofWrappers() []interface{}
- func (m *SubjectSelector) XXX_Size() int
- func (m *SubjectSelector) XXX_Unmarshal(b []byte) error
- type SubjectSelector_Subject
- type SubjectSelector_Wildcard
- type Subject_Actor
- type Subject_ActorSet
- type Subject_AllActors
- type Subject_Object
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CheckAccess(ctx context.Context, req *MsgCheckAccess) (*MsgCheckAccessResponse, error)
- func (*UnimplementedMsgServer) CreatePolicy(ctx context.Context, req *MsgCreatePolicy) (*MsgCreatePolicyResponse, error)
- func (*UnimplementedMsgServer) DeleteRelationship(ctx context.Context, req *MsgDeleteRelationship) (*MsgDeleteRelationshipResponse, error)
- func (*UnimplementedMsgServer) RegisterObject(ctx context.Context, req *MsgRegisterObject) (*MsgRegisterObjectResponse, error)
- func (*UnimplementedMsgServer) SetRelationship(ctx context.Context, req *MsgSetRelationship) (*MsgSetRelationshipResponse, error)
- func (*UnimplementedMsgServer) UnregisterObject(ctx context.Context, req *MsgUnregisterObject) (*MsgUnregisterObjectResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccessDecision(ctx context.Context, req *QueryAccessDecisionRequest) (*QueryAccessDecisionResponse, error)
- func (*UnimplementedQueryServer) FilterRelationships(ctx context.Context, req *QueryFilterRelationshipsRequest) (*QueryFilterRelationshipsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Policy(ctx context.Context, req *QueryPolicyRequest) (*QueryPolicyResponse, error)
- func (*UnimplementedQueryServer) PolicyIds(ctx context.Context, req *QueryPolicyIdsRequest) (*QueryPolicyIdsResponse, error)
- func (*UnimplementedQueryServer) ValidatePolicy(ctx context.Context, req *QueryValidatePolicyRequest) (*QueryValidatePolicyResponse, error)
- func (*UnimplementedQueryServer) VerifyAccessRequest(ctx context.Context, req *QueryVerifyAccessRequestRequest) (*QueryVerifyAccessRequestResponse, error)
- type WildcardSelector
- func (*WildcardSelector) Descriptor() ([]byte, []int)
- func (m *WildcardSelector) Marshal() (dAtA []byte, err error)
- func (m *WildcardSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *WildcardSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WildcardSelector) ProtoMessage()
- func (m *WildcardSelector) Reset()
- func (m *WildcardSelector) Size() (n int)
- func (m *WildcardSelector) String() string
- func (m *WildcardSelector) Unmarshal(dAtA []byte) error
- func (m *WildcardSelector) XXX_DiscardUnknown()
- func (m *WildcardSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WildcardSelector) XXX_Merge(src proto.Message)
- func (m *WildcardSelector) XXX_Size() int
- func (m *WildcardSelector) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "acp" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_acp" // AccessDecisionRepositoryKey defines the namespace for Access Decisions AccessDecisionRepositoryKey = "access_decision" )
const (
AccessTicketV1 string = "v1"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const ManagementPermissionPrefix string = "_can_manage_"
Variables ¶
var ( ErrInvalidLengthAccessDecision = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccessDecision = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccessDecision = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthAccessTicket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccessTicket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccessTicket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") // ErrAcpInternal is a general base error for IO or unexpected system errors ErrAcpInternal = sdkerrors.Register(ModuleName, 1000, "internal error") // ErrAcpInput is a general base error for input errors ErrAcpInput = sdkerrors.Register(ModuleName, 1001, "input error") // ErrAcpProtocolViolation is a general base error for operations forbidden by the protocol ErrAcpProtocolViolation = sdkerrors.Register(ModuleName, 1002, "acp protocol violation") // ErrAcpInvariantViolation indicates that an important condition of the protocol // has been violated, either by a bug or a successful exploit. // These are bad. ErrAcpInvariantViolation = sdkerrors.Register(ModuleName, 1003, "invariant violation") ErrPolicyNil = ErrAcpInput.Wrapf("policy must not be nil") ErrRelationshipNil = ErrAcpInput.Wrapf("relationship must not be nil") ErrActorNil = ErrAcpInput.Wrapf("actor must not be nil") ErrRegistrationNil = ErrAcpInput.Wrapf("registration must not be nil") ErrAccessRequestNil = ErrAcpInput.Wrapf("AccessRequest must not be nil") ErrInvalidVariant = ErrAcpInput.Wrapf("invalid type variant") ErrObjectNil = ErrAcpInput.Wrapf("object must not be nil") ErrTimestampNil = ErrAcpInput.Wrapf("timestamp must not be nil") ErrAccNotFound = ErrAcpInput.Wrapf("account not found") ErrPolicyNotFound = ErrAcpInput.Wrapf("policy not found") ErrInvalidHeight = ErrAcpInput.Wrapf("invalid block height") ErrInvalidAccAddr = ErrAcpInput.Wrapf("invalid account address") ErrNotAuthorized = ErrAcpProtocolViolation.Wrapf("actor not authorized") )
x/acp module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPolicy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPolicy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPolicyDefinition = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPolicyDefinition = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPolicyDefinition = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPolicyRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPolicyRecord = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPolicyRecord = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPolicyShort = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPolicyShort = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPolicyShort = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRelationship = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelationship = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelationship = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRelationshipSelector = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelationshipSelector = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelationshipSelector = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ParamsKey = []byte("p_acp")
)
var PolicyMarshalingType_name = map[int32]string{
0: "UNKNOWN",
1: "SHORT_YAML",
2: "SHORT_JSON",
}
var PolicyMarshalingType_value = map[string]int32{
"UNKNOWN": 0,
"SHORT_YAML": 1,
"SHORT_JSON": 2,
}
var RegistrationResult_name = map[int32]string{
0: "NoOp",
1: "Registered",
2: "Unarchived",
}
var RegistrationResult_value = map[string]int32{
"NoOp": 0,
"Registered": 1,
"Unarchived": 2,
}
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccessDecision ¶ added in v0.2.0
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"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` CreatorAccSequence uint64 `protobuf:"varint,4,opt,name=creator_acc_sequence,json=creatorAccSequence,proto3" json:"creator_acc_sequence,omitempty"` Operations []*Operation `protobuf:"bytes,5,rep,name=operations,proto3" json:"operations,omitempty"` ActorDid string `protobuf:"bytes,6,opt,name=actor_did,json=actorDid,proto3" json:"actor_did,omitempty"` Actor string `protobuf:"bytes,7,opt,name=actor,proto3" json:"actor,omitempty"` Params *DecisionParams `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"` CreationTime *types.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"` }
AccessDecision models the result of evaluating a set of AccessRequests for an Actor
func (*AccessDecision) Descriptor ¶ added in v0.2.0
func (*AccessDecision) Descriptor() ([]byte, []int)
func (*AccessDecision) GetActor ¶ added in v0.2.0
func (m *AccessDecision) GetActor() string
func (*AccessDecision) GetActorDid ¶ added in v0.2.0
func (m *AccessDecision) GetActorDid() string
func (*AccessDecision) GetCreationTime ¶ added in v0.2.0
func (m *AccessDecision) GetCreationTime() *types.Timestamp
func (*AccessDecision) GetCreator ¶ added in v0.2.0
func (m *AccessDecision) GetCreator() string
func (*AccessDecision) GetCreatorAccSequence ¶ added in v0.2.0
func (m *AccessDecision) GetCreatorAccSequence() uint64
func (*AccessDecision) GetId ¶ added in v0.2.0
func (m *AccessDecision) GetId() string
func (*AccessDecision) GetIssuedHeight ¶ added in v0.2.0
func (m *AccessDecision) GetIssuedHeight() uint64
func (*AccessDecision) GetOperations ¶ added in v0.2.0
func (m *AccessDecision) GetOperations() []*Operation
func (*AccessDecision) GetParams ¶ added in v0.2.0
func (m *AccessDecision) GetParams() *DecisionParams
func (*AccessDecision) GetPolicyId ¶ added in v0.2.0
func (m *AccessDecision) GetPolicyId() string
func (*AccessDecision) Marshal ¶ added in v0.2.0
func (m *AccessDecision) Marshal() (dAtA []byte, err error)
func (*AccessDecision) MarshalTo ¶ added in v0.2.0
func (m *AccessDecision) MarshalTo(dAtA []byte) (int, error)
func (*AccessDecision) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *AccessDecision) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessDecision) ProduceId ¶ added in v0.2.0
func (d *AccessDecision) ProduceId() string
ProduceId uses all fields in an AccessDecision (ignoring the ID) to produce an ID for the Decision.
func (*AccessDecision) ProtoMessage ¶ added in v0.2.0
func (*AccessDecision) ProtoMessage()
func (*AccessDecision) Reset ¶ added in v0.2.0
func (m *AccessDecision) Reset()
func (*AccessDecision) Size ¶ added in v0.2.0
func (m *AccessDecision) Size() (n int)
func (*AccessDecision) String ¶ added in v0.2.0
func (m *AccessDecision) String() string
func (*AccessDecision) Unmarshal ¶ added in v0.2.0
func (m *AccessDecision) Unmarshal(dAtA []byte) error
func (*AccessDecision) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *AccessDecision) XXX_DiscardUnknown()
func (*AccessDecision) XXX_Marshal ¶ added in v0.2.0
func (m *AccessDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessDecision) XXX_Merge ¶ added in v0.2.0
func (m *AccessDecision) XXX_Merge(src proto.Message)
func (*AccessDecision) XXX_Size ¶ added in v0.2.0
func (m *AccessDecision) XXX_Size() int
func (*AccessDecision) XXX_Unmarshal ¶ added in v0.2.0
func (m *AccessDecision) XXX_Unmarshal(b []byte) error
type AccessRequest ¶ added in v0.2.0
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"` }
AccessRequest represents the wish to perform a set of operations by an actor
func (*AccessRequest) Descriptor ¶ added in v0.2.0
func (*AccessRequest) Descriptor() ([]byte, []int)
func (*AccessRequest) GetActor ¶ added in v0.2.0
func (m *AccessRequest) GetActor() *Actor
func (*AccessRequest) GetOperations ¶ added in v0.2.0
func (m *AccessRequest) GetOperations() []*Operation
func (*AccessRequest) Marshal ¶ added in v0.2.0
func (m *AccessRequest) Marshal() (dAtA []byte, err error)
func (*AccessRequest) MarshalTo ¶ added in v0.2.0
func (m *AccessRequest) MarshalTo(dAtA []byte) (int, error)
func (*AccessRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *AccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessRequest) ProtoMessage ¶ added in v0.2.0
func (*AccessRequest) ProtoMessage()
func (*AccessRequest) Reset ¶ added in v0.2.0
func (m *AccessRequest) Reset()
func (*AccessRequest) Size ¶ added in v0.2.0
func (m *AccessRequest) Size() (n int)
func (*AccessRequest) String ¶ added in v0.2.0
func (m *AccessRequest) String() string
func (*AccessRequest) Unmarshal ¶ added in v0.2.0
func (m *AccessRequest) Unmarshal(dAtA []byte) error
func (*AccessRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *AccessRequest) XXX_DiscardUnknown()
func (*AccessRequest) XXX_Marshal ¶ added in v0.2.0
func (m *AccessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessRequest) XXX_Merge ¶ added in v0.2.0
func (m *AccessRequest) XXX_Merge(src proto.Message)
func (*AccessRequest) XXX_Size ¶ added in v0.2.0
func (m *AccessRequest) XXX_Size() int
func (*AccessRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *AccessRequest) XXX_Unmarshal(b []byte) error
type AccessTicket ¶ added in v0.2.0
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"` }
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 ¶ added in v0.2.0
func (*AccessTicket) Descriptor() ([]byte, []int)
func (*AccessTicket) GetDecision ¶ added in v0.2.0
func (m *AccessTicket) GetDecision() *AccessDecision
func (*AccessTicket) GetDecisionId ¶ added in v0.2.0
func (m *AccessTicket) GetDecisionId() string
func (*AccessTicket) GetDecisionProof ¶ added in v0.2.0
func (m *AccessTicket) GetDecisionProof() []byte
func (*AccessTicket) GetSignature ¶ added in v0.2.0
func (m *AccessTicket) GetSignature() []byte
func (*AccessTicket) GetVersionDenominator ¶ added in v0.2.0
func (m *AccessTicket) GetVersionDenominator() string
func (*AccessTicket) Marshal ¶ added in v0.2.0
func (m *AccessTicket) Marshal() (dAtA []byte, err error)
func (*AccessTicket) MarshalTo ¶ added in v0.2.0
func (m *AccessTicket) MarshalTo(dAtA []byte) (int, error)
func (*AccessTicket) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *AccessTicket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessTicket) ProtoMessage ¶ added in v0.2.0
func (*AccessTicket) ProtoMessage()
func (*AccessTicket) Reset ¶ added in v0.2.0
func (m *AccessTicket) Reset()
func (*AccessTicket) Size ¶ added in v0.2.0
func (m *AccessTicket) Size() (n int)
func (*AccessTicket) String ¶ added in v0.2.0
func (m *AccessTicket) String() string
func (*AccessTicket) Unmarshal ¶ added in v0.2.0
func (m *AccessTicket) Unmarshal(dAtA []byte) error
func (*AccessTicket) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *AccessTicket) XXX_DiscardUnknown()
func (*AccessTicket) XXX_Marshal ¶ added in v0.2.0
func (m *AccessTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessTicket) XXX_Merge ¶ added in v0.2.0
func (m *AccessTicket) XXX_Merge(src proto.Message)
func (*AccessTicket) XXX_Size ¶ added in v0.2.0
func (m *AccessTicket) XXX_Size() int
func (*AccessTicket) XXX_Unmarshal ¶ added in v0.2.0
func (m *AccessTicket) XXX_Unmarshal(b []byte) error
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type Actor ¶
type Actor struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
Actor represents an entity which makes access requests to a Policy.
func (*Actor) Descriptor ¶
func (*Actor) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) XXX_DiscardUnknown ¶
func (m *Actor) XXX_DiscardUnknown()
func (*Actor) XXX_Marshal ¶
func (*Actor) XXX_Unmarshal ¶
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"` }
ActorResource represents a special Resource which is reserved for Policy actors.
func (*ActorResource) Descriptor ¶
func (*ActorResource) Descriptor() ([]byte, []int)
func (*ActorResource) GetDoc ¶
func (m *ActorResource) GetDoc() string
func (*ActorResource) GetName ¶
func (m *ActorResource) GetName() string
func (*ActorResource) GetRelations ¶
func (m *ActorResource) GetRelations() []*Relation
func (*ActorResource) Marshal ¶
func (m *ActorResource) Marshal() (dAtA []byte, err error)
func (*ActorResource) MarshalToSizedBuffer ¶
func (m *ActorResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ActorResource) ProtoMessage ¶
func (*ActorResource) ProtoMessage()
func (*ActorResource) Reset ¶
func (m *ActorResource) Reset()
func (*ActorResource) Size ¶
func (m *ActorResource) Size() (n int)
func (*ActorResource) String ¶
func (m *ActorResource) String() string
func (*ActorResource) Unmarshal ¶
func (m *ActorResource) Unmarshal(dAtA []byte) error
func (*ActorResource) XXX_DiscardUnknown ¶
func (m *ActorResource) XXX_DiscardUnknown()
func (*ActorResource) XXX_Marshal ¶
func (m *ActorResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActorResource) XXX_Merge ¶
func (m *ActorResource) XXX_Merge(src proto.Message)
func (*ActorResource) XXX_Size ¶
func (m *ActorResource) XXX_Size() int
func (*ActorResource) XXX_Unmarshal ¶
func (m *ActorResource) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*ActorSet) GetRelation ¶
func (*ActorSet) MarshalToSizedBuffer ¶
func (*ActorSet) ProtoMessage ¶
func (*ActorSet) ProtoMessage()
func (*ActorSet) XXX_DiscardUnknown ¶
func (m *ActorSet) XXX_DiscardUnknown()
func (*ActorSet) XXX_Marshal ¶
func (*ActorSet) XXX_Unmarshal ¶
type AllActors ¶
type AllActors struct { }
AllActors models a special Relationship Subject which indicates that all Actors in the Policy are included.
func (*AllActors) Descriptor ¶
func (*AllActors) MarshalToSizedBuffer ¶
func (*AllActors) ProtoMessage ¶
func (*AllActors) ProtoMessage()
func (*AllActors) XXX_DiscardUnknown ¶
func (m *AllActors) XXX_DiscardUnknown()
func (*AllActors) XXX_Marshal ¶
func (*AllActors) XXX_Unmarshal ¶
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
type DecisionParams ¶ added in v0.2.0
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 */ }
DecisionParams stores auxiliary information regarding the validity of a decision
func (*DecisionParams) Descriptor ¶ added in v0.2.0
func (*DecisionParams) Descriptor() ([]byte, []int)
func (*DecisionParams) GetDecisionExpirationDelta ¶ added in v0.2.0
func (m *DecisionParams) GetDecisionExpirationDelta() uint64
func (*DecisionParams) GetProofExpirationDelta ¶ added in v0.2.0
func (m *DecisionParams) GetProofExpirationDelta() uint64
func (*DecisionParams) GetTicketExpirationDelta ¶ added in v0.2.0
func (m *DecisionParams) GetTicketExpirationDelta() uint64
func (*DecisionParams) Marshal ¶ added in v0.2.0
func (m *DecisionParams) Marshal() (dAtA []byte, err error)
func (*DecisionParams) MarshalTo ¶ added in v0.2.0
func (m *DecisionParams) MarshalTo(dAtA []byte) (int, error)
func (*DecisionParams) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *DecisionParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DecisionParams) ProtoMessage ¶ added in v0.2.0
func (*DecisionParams) ProtoMessage()
func (*DecisionParams) Reset ¶ added in v0.2.0
func (m *DecisionParams) Reset()
func (*DecisionParams) Size ¶ added in v0.2.0
func (m *DecisionParams) Size() (n int)
func (*DecisionParams) String ¶ added in v0.2.0
func (m *DecisionParams) String() string
func (*DecisionParams) Unmarshal ¶ added in v0.2.0
func (m *DecisionParams) Unmarshal(dAtA []byte) error
func (*DecisionParams) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *DecisionParams) XXX_DiscardUnknown()
func (*DecisionParams) XXX_Marshal ¶ added in v0.2.0
func (m *DecisionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecisionParams) XXX_Merge ¶ added in v0.2.0
func (m *DecisionParams) XXX_Merge(src proto.Message)
func (*DecisionParams) XXX_Size ¶ added in v0.2.0
func (m *DecisionParams) XXX_Size() int
func (*DecisionParams) XXX_Unmarshal ¶ added in v0.2.0
func (m *DecisionParams) XXX_Unmarshal(b []byte) error
type EventAccessDecisionCreated ¶ added in v0.2.0
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"` }
func (*EventAccessDecisionCreated) Descriptor ¶ added in v0.2.0
func (*EventAccessDecisionCreated) Descriptor() ([]byte, []int)
func (*EventAccessDecisionCreated) GetActor ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) GetActor() string
func (*EventAccessDecisionCreated) GetActorDid ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) GetActorDid() string
func (*EventAccessDecisionCreated) GetCreator ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) GetCreator() string
func (*EventAccessDecisionCreated) GetDecisionId ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) GetDecisionId() string
func (*EventAccessDecisionCreated) GetPolicyId ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) GetPolicyId() string
func (*EventAccessDecisionCreated) Marshal ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) Marshal() (dAtA []byte, err error)
func (*EventAccessDecisionCreated) MarshalTo ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventAccessDecisionCreated) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAccessDecisionCreated) ProtoMessage ¶ added in v0.2.0
func (*EventAccessDecisionCreated) ProtoMessage()
func (*EventAccessDecisionCreated) Reset ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) Reset()
func (*EventAccessDecisionCreated) Size ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) Size() (n int)
func (*EventAccessDecisionCreated) String ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) String() string
func (*EventAccessDecisionCreated) Unmarshal ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) Unmarshal(dAtA []byte) error
func (*EventAccessDecisionCreated) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) XXX_DiscardUnknown()
func (*EventAccessDecisionCreated) XXX_Marshal ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAccessDecisionCreated) XXX_Merge ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) XXX_Merge(src proto.Message)
func (*EventAccessDecisionCreated) XXX_Size ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) XXX_Size() int
func (*EventAccessDecisionCreated) XXX_Unmarshal ¶ added in v0.2.0
func (m *EventAccessDecisionCreated) XXX_Unmarshal(b []byte) error
type EventPolicyCreated ¶ added in v0.2.0
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"` }
func (*EventPolicyCreated) Descriptor ¶ added in v0.2.0
func (*EventPolicyCreated) Descriptor() ([]byte, []int)
func (*EventPolicyCreated) GetCreator ¶ added in v0.2.0
func (m *EventPolicyCreated) GetCreator() string
func (*EventPolicyCreated) GetPolicyId ¶ added in v0.2.0
func (m *EventPolicyCreated) GetPolicyId() string
func (*EventPolicyCreated) GetPolicyName ¶ added in v0.2.0
func (m *EventPolicyCreated) GetPolicyName() string
func (*EventPolicyCreated) Marshal ¶ added in v0.2.0
func (m *EventPolicyCreated) Marshal() (dAtA []byte, err error)
func (*EventPolicyCreated) MarshalTo ¶ added in v0.2.0
func (m *EventPolicyCreated) MarshalTo(dAtA []byte) (int, error)
func (*EventPolicyCreated) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *EventPolicyCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPolicyCreated) ProtoMessage ¶ added in v0.2.0
func (*EventPolicyCreated) ProtoMessage()
func (*EventPolicyCreated) Reset ¶ added in v0.2.0
func (m *EventPolicyCreated) Reset()
func (*EventPolicyCreated) Size ¶ added in v0.2.0
func (m *EventPolicyCreated) Size() (n int)
func (*EventPolicyCreated) String ¶ added in v0.2.0
func (m *EventPolicyCreated) String() string
func (*EventPolicyCreated) Unmarshal ¶ added in v0.2.0
func (m *EventPolicyCreated) Unmarshal(dAtA []byte) error
func (*EventPolicyCreated) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *EventPolicyCreated) XXX_DiscardUnknown()
func (*EventPolicyCreated) XXX_Marshal ¶ added in v0.2.0
func (m *EventPolicyCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPolicyCreated) XXX_Merge ¶ added in v0.2.0
func (m *EventPolicyCreated) XXX_Merge(src proto.Message)
func (*EventPolicyCreated) XXX_Size ¶ added in v0.2.0
func (m *EventPolicyCreated) XXX_Size() int
func (*EventPolicyCreated) XXX_Unmarshal ¶ added in v0.2.0
func (m *EventPolicyCreated) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the acp module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
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 */ }
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 ¶
func (*ManagementGraph) Descriptor() ([]byte, []int)
func (*ManagementGraph) GetBackwardEdges ¶
func (m *ManagementGraph) GetBackwardEdges() map[string]*ManagerEdges
func (*ManagementGraph) GetForwardEdges ¶
func (m *ManagementGraph) GetForwardEdges() map[string]*ManagerEdges
func (*ManagementGraph) GetManagers ¶
func (g *ManagementGraph) GetManagers(resourceName, relationName string) []string
GetManagers return the list of relations which manages the relationName. Returns nil if relation wasn't found
func (*ManagementGraph) GetNodes ¶
func (m *ManagementGraph) GetNodes() map[string]*ManagerNode
func (*ManagementGraph) IsWellFormed ¶
func (g *ManagementGraph) IsWellFormed() error
IsWellFormed walks through edges in graph and verifies whether the source and destination nodes for the edges are defined. If any edge is not defined, returns an error with the offending edges. If graph is well formed, return nil
func (*ManagementGraph) LoadFromPolicy ¶
func (g *ManagementGraph) LoadFromPolicy(policy *Policy)
BuildManagementGraph builds a Management Graph from a Policy.
func (*ManagementGraph) Marshal ¶
func (m *ManagementGraph) Marshal() (dAtA []byte, err error)
func (*ManagementGraph) MarshalToSizedBuffer ¶
func (m *ManagementGraph) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManagementGraph) ProtoMessage ¶
func (*ManagementGraph) ProtoMessage()
func (*ManagementGraph) RegisterManagedRel ¶ added in v0.2.0
func (g *ManagementGraph) RegisterManagedRel(resource, sourceRel, managedRel string)
RegisterManagement adds a management rule in the Management graph. The registered rule states that for resource sourceRel manages managedRel.
func (*ManagementGraph) Reset ¶
func (m *ManagementGraph) Reset()
func (*ManagementGraph) Size ¶
func (m *ManagementGraph) Size() (n int)
func (*ManagementGraph) String ¶
func (m *ManagementGraph) String() string
func (*ManagementGraph) Unmarshal ¶
func (m *ManagementGraph) Unmarshal(dAtA []byte) error
func (*ManagementGraph) XXX_DiscardUnknown ¶
func (m *ManagementGraph) XXX_DiscardUnknown()
func (*ManagementGraph) XXX_Marshal ¶
func (m *ManagementGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManagementGraph) XXX_Merge ¶
func (m *ManagementGraph) XXX_Merge(src proto.Message)
func (*ManagementGraph) XXX_Size ¶
func (m *ManagementGraph) XXX_Size() int
func (*ManagementGraph) XXX_Unmarshal ¶
func (m *ManagementGraph) XXX_Unmarshal(b []byte) error
type ManagerEdges ¶
func (*ManagerEdges) Descriptor ¶
func (*ManagerEdges) Descriptor() ([]byte, []int)
func (*ManagerEdges) GetEdges ¶
func (m *ManagerEdges) GetEdges() map[string]bool
func (*ManagerEdges) Marshal ¶
func (m *ManagerEdges) Marshal() (dAtA []byte, err error)
func (*ManagerEdges) MarshalToSizedBuffer ¶
func (m *ManagerEdges) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManagerEdges) ProtoMessage ¶
func (*ManagerEdges) ProtoMessage()
func (*ManagerEdges) Reset ¶
func (m *ManagerEdges) Reset()
func (*ManagerEdges) Size ¶
func (m *ManagerEdges) Size() (n int)
func (*ManagerEdges) String ¶
func (m *ManagerEdges) String() string
func (*ManagerEdges) Unmarshal ¶
func (m *ManagerEdges) Unmarshal(dAtA []byte) error
func (*ManagerEdges) XXX_DiscardUnknown ¶
func (m *ManagerEdges) XXX_DiscardUnknown()
func (*ManagerEdges) XXX_Marshal ¶
func (m *ManagerEdges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManagerEdges) XXX_Merge ¶
func (m *ManagerEdges) XXX_Merge(src proto.Message)
func (*ManagerEdges) XXX_Size ¶
func (m *ManagerEdges) XXX_Size() int
func (*ManagerEdges) XXX_Unmarshal ¶
func (m *ManagerEdges) XXX_Unmarshal(b []byte) error
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"` }
func (*ManagerNode) Descriptor ¶
func (*ManagerNode) Descriptor() ([]byte, []int)
func (*ManagerNode) GetId ¶
func (m *ManagerNode) GetId() string
func (*ManagerNode) GetText ¶
func (m *ManagerNode) GetText() string
func (*ManagerNode) Marshal ¶
func (m *ManagerNode) Marshal() (dAtA []byte, err error)
func (*ManagerNode) MarshalToSizedBuffer ¶
func (m *ManagerNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ManagerNode) ProtoMessage ¶
func (*ManagerNode) ProtoMessage()
func (*ManagerNode) Reset ¶
func (m *ManagerNode) Reset()
func (*ManagerNode) Size ¶
func (m *ManagerNode) Size() (n int)
func (*ManagerNode) String ¶
func (m *ManagerNode) String() string
func (*ManagerNode) Unmarshal ¶
func (m *ManagerNode) Unmarshal(dAtA []byte) error
func (*ManagerNode) XXX_DiscardUnknown ¶
func (m *ManagerNode) XXX_DiscardUnknown()
func (*ManagerNode) XXX_Marshal ¶
func (m *ManagerNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManagerNode) XXX_Merge ¶
func (m *ManagerNode) XXX_Merge(src proto.Message)
func (*ManagerNode) XXX_Size ¶
func (m *ManagerNode) XXX_Size() int
func (*ManagerNode) XXX_Unmarshal ¶
func (m *ManagerNode) XXX_Unmarshal(b []byte) error
type MarshaledPolicy ¶ added in v0.2.0
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"` }
MarshaledPolicy represents a PolicyShort object marshaled to a known encoding format
func (*MarshaledPolicy) Descriptor ¶ added in v0.2.0
func (*MarshaledPolicy) Descriptor() ([]byte, []int)
func (*MarshaledPolicy) GetPolicy ¶ added in v0.2.0
func (m *MarshaledPolicy) GetPolicy() string
func (*MarshaledPolicy) GetType ¶ added in v0.2.0
func (m *MarshaledPolicy) GetType() PolicyMarshalingType
func (*MarshaledPolicy) Marshal ¶ added in v0.2.0
func (m *MarshaledPolicy) Marshal() (dAtA []byte, err error)
func (*MarshaledPolicy) MarshalTo ¶ added in v0.2.0
func (m *MarshaledPolicy) MarshalTo(dAtA []byte) (int, error)
func (*MarshaledPolicy) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MarshaledPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarshaledPolicy) ProtoMessage ¶ added in v0.2.0
func (*MarshaledPolicy) ProtoMessage()
func (*MarshaledPolicy) Reset ¶ added in v0.2.0
func (m *MarshaledPolicy) Reset()
func (*MarshaledPolicy) Size ¶ added in v0.2.0
func (m *MarshaledPolicy) Size() (n int)
func (*MarshaledPolicy) String ¶ added in v0.2.0
func (m *MarshaledPolicy) String() string
func (*MarshaledPolicy) Unmarshal ¶ added in v0.2.0
func (m *MarshaledPolicy) Unmarshal(dAtA []byte) error
func (*MarshaledPolicy) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MarshaledPolicy) XXX_DiscardUnknown()
func (*MarshaledPolicy) XXX_Marshal ¶ added in v0.2.0
func (m *MarshaledPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarshaledPolicy) XXX_Merge ¶ added in v0.2.0
func (m *MarshaledPolicy) XXX_Merge(src proto.Message)
func (*MarshaledPolicy) XXX_Size ¶ added in v0.2.0
func (m *MarshaledPolicy) XXX_Size() int
func (*MarshaledPolicy) XXX_Unmarshal ¶ added in v0.2.0
func (m *MarshaledPolicy) XXX_Unmarshal(b []byte) error
type MsgCheckAccess ¶ added in v0.2.0
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 *types.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"` }
func NewMsgCheckAccess ¶ added in v0.2.0
func NewMsgCheckAccess(creator string, policyId string) *MsgCheckAccess
func (*MsgCheckAccess) Descriptor ¶ added in v0.2.0
func (*MsgCheckAccess) Descriptor() ([]byte, []int)
func (*MsgCheckAccess) GetAccessRequest ¶ added in v0.2.0
func (m *MsgCheckAccess) GetAccessRequest() *AccessRequest
func (*MsgCheckAccess) GetCreationTime ¶ added in v0.2.0
func (m *MsgCheckAccess) GetCreationTime() *types.Timestamp
func (*MsgCheckAccess) GetCreator ¶ added in v0.2.0
func (m *MsgCheckAccess) GetCreator() string
func (*MsgCheckAccess) GetPolicyId ¶ added in v0.2.0
func (m *MsgCheckAccess) GetPolicyId() string
func (*MsgCheckAccess) Marshal ¶ added in v0.2.0
func (m *MsgCheckAccess) Marshal() (dAtA []byte, err error)
func (*MsgCheckAccess) MarshalTo ¶ added in v0.2.0
func (m *MsgCheckAccess) MarshalTo(dAtA []byte) (int, error)
func (*MsgCheckAccess) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgCheckAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCheckAccess) ProtoMessage ¶ added in v0.2.0
func (*MsgCheckAccess) ProtoMessage()
func (*MsgCheckAccess) Reset ¶ added in v0.2.0
func (m *MsgCheckAccess) Reset()
func (*MsgCheckAccess) Size ¶ added in v0.2.0
func (m *MsgCheckAccess) Size() (n int)
func (*MsgCheckAccess) String ¶ added in v0.2.0
func (m *MsgCheckAccess) String() string
func (*MsgCheckAccess) Unmarshal ¶ added in v0.2.0
func (m *MsgCheckAccess) Unmarshal(dAtA []byte) error
func (*MsgCheckAccess) ValidateBasic ¶ added in v0.2.0
func (msg *MsgCheckAccess) ValidateBasic() error
func (*MsgCheckAccess) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgCheckAccess) XXX_DiscardUnknown()
func (*MsgCheckAccess) XXX_Marshal ¶ added in v0.2.0
func (m *MsgCheckAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCheckAccess) XXX_Merge ¶ added in v0.2.0
func (m *MsgCheckAccess) XXX_Merge(src proto.Message)
func (*MsgCheckAccess) XXX_Size ¶ added in v0.2.0
func (m *MsgCheckAccess) XXX_Size() int
func (*MsgCheckAccess) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgCheckAccess) XXX_Unmarshal(b []byte) error
type MsgCheckAccessResponse ¶ added in v0.2.0
type MsgCheckAccessResponse struct {
Decision *AccessDecision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"`
}
func (*MsgCheckAccessResponse) Descriptor ¶ added in v0.2.0
func (*MsgCheckAccessResponse) Descriptor() ([]byte, []int)
func (*MsgCheckAccessResponse) GetDecision ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) GetDecision() *AccessDecision
func (*MsgCheckAccessResponse) Marshal ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) Marshal() (dAtA []byte, err error)
func (*MsgCheckAccessResponse) MarshalTo ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCheckAccessResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCheckAccessResponse) ProtoMessage ¶ added in v0.2.0
func (*MsgCheckAccessResponse) ProtoMessage()
func (*MsgCheckAccessResponse) Reset ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) Reset()
func (*MsgCheckAccessResponse) Size ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) Size() (n int)
func (*MsgCheckAccessResponse) String ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) String() string
func (*MsgCheckAccessResponse) Unmarshal ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) Unmarshal(dAtA []byte) error
func (*MsgCheckAccessResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) XXX_DiscardUnknown()
func (*MsgCheckAccessResponse) XXX_Marshal ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCheckAccessResponse) XXX_Merge ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) XXX_Merge(src proto.Message)
func (*MsgCheckAccessResponse) XXX_Size ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) XXX_Size() int
func (*MsgCheckAccessResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgCheckAccessResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) 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 *types.Timestamp `protobuf:"bytes,4,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` }
func NewMsgCreatePolicy ¶
func NewMsgCreatePolicy(creator string, policy string, marshalingType PolicyMarshalingType, creationTime *prototypes.Timestamp) *MsgCreatePolicy
func NewMsgCreatePolicyNow ¶ added in v0.2.0
func NewMsgCreatePolicyNow(creator string, policy string, marshalingType PolicyMarshalingType) *MsgCreatePolicy
NewMsgCreatePolicyNow creates a MsgCreatePolicy with CreatedAt set to the current time
func (*MsgCreatePolicy) Descriptor ¶
func (*MsgCreatePolicy) Descriptor() ([]byte, []int)
func (*MsgCreatePolicy) GetCreationTime ¶
func (m *MsgCreatePolicy) GetCreationTime() *types.Timestamp
func (*MsgCreatePolicy) GetCreator ¶
func (m *MsgCreatePolicy) GetCreator() string
func (*MsgCreatePolicy) GetMarshalType ¶
func (m *MsgCreatePolicy) GetMarshalType() PolicyMarshalingType
func (*MsgCreatePolicy) GetPolicy ¶
func (m *MsgCreatePolicy) GetPolicy() string
func (*MsgCreatePolicy) Marshal ¶
func (m *MsgCreatePolicy) Marshal() (dAtA []byte, err error)
func (*MsgCreatePolicy) MarshalToSizedBuffer ¶
func (m *MsgCreatePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePolicy) ProtoMessage ¶
func (*MsgCreatePolicy) ProtoMessage()
func (*MsgCreatePolicy) Reset ¶
func (m *MsgCreatePolicy) Reset()
func (*MsgCreatePolicy) Size ¶
func (m *MsgCreatePolicy) Size() (n int)
func (*MsgCreatePolicy) String ¶
func (m *MsgCreatePolicy) String() string
func (*MsgCreatePolicy) Unmarshal ¶
func (m *MsgCreatePolicy) Unmarshal(dAtA []byte) error
func (*MsgCreatePolicy) ValidateBasic ¶
func (msg *MsgCreatePolicy) ValidateBasic() error
func (*MsgCreatePolicy) XXX_DiscardUnknown ¶
func (m *MsgCreatePolicy) XXX_DiscardUnknown()
func (*MsgCreatePolicy) XXX_Marshal ¶
func (m *MsgCreatePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePolicy) XXX_Merge ¶
func (m *MsgCreatePolicy) XXX_Merge(src proto.Message)
func (*MsgCreatePolicy) XXX_Size ¶
func (m *MsgCreatePolicy) XXX_Size() int
func (*MsgCreatePolicy) XXX_Unmarshal ¶
func (m *MsgCreatePolicy) XXX_Unmarshal(b []byte) error
type MsgCreatePolicyResponse ¶
type MsgCreatePolicyResponse struct {
Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}
func (*MsgCreatePolicyResponse) Descriptor ¶
func (*MsgCreatePolicyResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePolicyResponse) GetPolicy ¶
func (m *MsgCreatePolicyResponse) GetPolicy() *Policy
func (*MsgCreatePolicyResponse) Marshal ¶
func (m *MsgCreatePolicyResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePolicyResponse) MarshalTo ¶
func (m *MsgCreatePolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePolicyResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePolicyResponse) ProtoMessage ¶
func (*MsgCreatePolicyResponse) ProtoMessage()
func (*MsgCreatePolicyResponse) Reset ¶
func (m *MsgCreatePolicyResponse) Reset()
func (*MsgCreatePolicyResponse) Size ¶
func (m *MsgCreatePolicyResponse) Size() (n int)
func (*MsgCreatePolicyResponse) String ¶
func (m *MsgCreatePolicyResponse) String() string
func (*MsgCreatePolicyResponse) Unmarshal ¶
func (m *MsgCreatePolicyResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePolicyResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePolicyResponse) XXX_DiscardUnknown()
func (*MsgCreatePolicyResponse) XXX_Marshal ¶
func (m *MsgCreatePolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePolicyResponse) XXX_Merge ¶
func (m *MsgCreatePolicyResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePolicyResponse) XXX_Size ¶
func (m *MsgCreatePolicyResponse) XXX_Size() int
func (*MsgCreatePolicyResponse) XXX_Unmarshal ¶
func (m *MsgCreatePolicyResponse) XXX_Unmarshal(b []byte) error
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"` }
func NewMsgDeleteRelationship ¶
func NewMsgDeleteRelationship(creator string, policyId string) *MsgDeleteRelationship
func (*MsgDeleteRelationship) Descriptor ¶
func (*MsgDeleteRelationship) Descriptor() ([]byte, []int)
func (*MsgDeleteRelationship) GetCreator ¶
func (m *MsgDeleteRelationship) GetCreator() string
func (*MsgDeleteRelationship) GetPolicyId ¶
func (m *MsgDeleteRelationship) GetPolicyId() string
func (*MsgDeleteRelationship) GetRelationship ¶ added in v0.2.0
func (m *MsgDeleteRelationship) GetRelationship() *Relationship
func (*MsgDeleteRelationship) Marshal ¶
func (m *MsgDeleteRelationship) Marshal() (dAtA []byte, err error)
func (*MsgDeleteRelationship) MarshalTo ¶
func (m *MsgDeleteRelationship) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteRelationship) MarshalToSizedBuffer ¶
func (m *MsgDeleteRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteRelationship) ProtoMessage ¶
func (*MsgDeleteRelationship) ProtoMessage()
func (*MsgDeleteRelationship) Reset ¶
func (m *MsgDeleteRelationship) Reset()
func (*MsgDeleteRelationship) Size ¶
func (m *MsgDeleteRelationship) Size() (n int)
func (*MsgDeleteRelationship) String ¶
func (m *MsgDeleteRelationship) String() string
func (*MsgDeleteRelationship) Unmarshal ¶
func (m *MsgDeleteRelationship) Unmarshal(dAtA []byte) error
func (*MsgDeleteRelationship) ValidateBasic ¶
func (msg *MsgDeleteRelationship) ValidateBasic() error
func (*MsgDeleteRelationship) XXX_DiscardUnknown ¶
func (m *MsgDeleteRelationship) XXX_DiscardUnknown()
func (*MsgDeleteRelationship) XXX_Marshal ¶
func (m *MsgDeleteRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteRelationship) XXX_Merge ¶
func (m *MsgDeleteRelationship) XXX_Merge(src proto.Message)
func (*MsgDeleteRelationship) XXX_Size ¶
func (m *MsgDeleteRelationship) XXX_Size() int
func (*MsgDeleteRelationship) XXX_Unmarshal ¶
func (m *MsgDeleteRelationship) XXX_Unmarshal(b []byte) error
type MsgDeleteRelationshipResponse ¶
type MsgDeleteRelationshipResponse struct {
RecordFound bool `protobuf:"varint,1,opt,name=record_found,json=recordFound,proto3" json:"record_found,omitempty"`
}
func (*MsgDeleteRelationshipResponse) Descriptor ¶
func (*MsgDeleteRelationshipResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteRelationshipResponse) GetRecordFound ¶
func (m *MsgDeleteRelationshipResponse) GetRecordFound() bool
func (*MsgDeleteRelationshipResponse) Marshal ¶
func (m *MsgDeleteRelationshipResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteRelationshipResponse) MarshalTo ¶
func (m *MsgDeleteRelationshipResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteRelationshipResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteRelationshipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteRelationshipResponse) ProtoMessage ¶
func (*MsgDeleteRelationshipResponse) ProtoMessage()
func (*MsgDeleteRelationshipResponse) Reset ¶
func (m *MsgDeleteRelationshipResponse) Reset()
func (*MsgDeleteRelationshipResponse) Size ¶
func (m *MsgDeleteRelationshipResponse) Size() (n int)
func (*MsgDeleteRelationshipResponse) String ¶
func (m *MsgDeleteRelationshipResponse) String() string
func (*MsgDeleteRelationshipResponse) Unmarshal ¶
func (m *MsgDeleteRelationshipResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteRelationshipResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteRelationshipResponse) XXX_DiscardUnknown()
func (*MsgDeleteRelationshipResponse) XXX_Marshal ¶
func (m *MsgDeleteRelationshipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteRelationshipResponse) XXX_Merge ¶
func (m *MsgDeleteRelationshipResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteRelationshipResponse) XXX_Size ¶
func (m *MsgDeleteRelationshipResponse) XXX_Size() int
func (*MsgDeleteRelationshipResponse) XXX_Unmarshal ¶
func (m *MsgDeleteRelationshipResponse) XXX_Unmarshal(b []byte) error
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 *types.Timestamp `protobuf:"bytes,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` }
func NewMsgRegisterObject ¶
func NewMsgRegisterObject(creator string, policyId string, object *Object, creationTime *prototypes.Timestamp) *MsgRegisterObject
func NewMsgRegisterObjectNow ¶ added in v0.2.0
func NewMsgRegisterObjectNow(creator string, policyId string, object *Object) *MsgRegisterObject
func (*MsgRegisterObject) Descriptor ¶
func (*MsgRegisterObject) Descriptor() ([]byte, []int)
func (*MsgRegisterObject) GetCreationTime ¶
func (m *MsgRegisterObject) GetCreationTime() *types.Timestamp
func (*MsgRegisterObject) GetCreator ¶
func (m *MsgRegisterObject) GetCreator() string
func (*MsgRegisterObject) GetObject ¶ added in v0.2.0
func (m *MsgRegisterObject) GetObject() *Object
func (*MsgRegisterObject) GetPolicyId ¶
func (m *MsgRegisterObject) GetPolicyId() string
func (*MsgRegisterObject) Marshal ¶
func (m *MsgRegisterObject) Marshal() (dAtA []byte, err error)
func (*MsgRegisterObject) MarshalTo ¶
func (m *MsgRegisterObject) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterObject) MarshalToSizedBuffer ¶
func (m *MsgRegisterObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterObject) ProtoMessage ¶
func (*MsgRegisterObject) ProtoMessage()
func (*MsgRegisterObject) Reset ¶
func (m *MsgRegisterObject) Reset()
func (*MsgRegisterObject) Size ¶
func (m *MsgRegisterObject) Size() (n int)
func (*MsgRegisterObject) String ¶
func (m *MsgRegisterObject) String() string
func (*MsgRegisterObject) Unmarshal ¶
func (m *MsgRegisterObject) Unmarshal(dAtA []byte) error
func (*MsgRegisterObject) ValidateBasic ¶
func (msg *MsgRegisterObject) ValidateBasic() error
func (*MsgRegisterObject) XXX_DiscardUnknown ¶
func (m *MsgRegisterObject) XXX_DiscardUnknown()
func (*MsgRegisterObject) XXX_Marshal ¶
func (m *MsgRegisterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterObject) XXX_Merge ¶
func (m *MsgRegisterObject) XXX_Merge(src proto.Message)
func (*MsgRegisterObject) XXX_Size ¶
func (m *MsgRegisterObject) XXX_Size() int
func (*MsgRegisterObject) XXX_Unmarshal ¶
func (m *MsgRegisterObject) XXX_Unmarshal(b []byte) error
type MsgRegisterObjectResponse ¶
type MsgRegisterObjectResponse struct {
Result RegistrationResult `protobuf:"varint,1,opt,name=result,proto3,enum=sourcehub.acp.RegistrationResult" json:"result,omitempty"`
}
func (*MsgRegisterObjectResponse) Descriptor ¶
func (*MsgRegisterObjectResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterObjectResponse) GetResult ¶
func (m *MsgRegisterObjectResponse) GetResult() RegistrationResult
func (*MsgRegisterObjectResponse) Marshal ¶
func (m *MsgRegisterObjectResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterObjectResponse) MarshalTo ¶
func (m *MsgRegisterObjectResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterObjectResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterObjectResponse) ProtoMessage ¶
func (*MsgRegisterObjectResponse) ProtoMessage()
func (*MsgRegisterObjectResponse) Reset ¶
func (m *MsgRegisterObjectResponse) Reset()
func (*MsgRegisterObjectResponse) Size ¶
func (m *MsgRegisterObjectResponse) Size() (n int)
func (*MsgRegisterObjectResponse) String ¶
func (m *MsgRegisterObjectResponse) String() string
func (*MsgRegisterObjectResponse) Unmarshal ¶
func (m *MsgRegisterObjectResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterObjectResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterObjectResponse) XXX_DiscardUnknown()
func (*MsgRegisterObjectResponse) XXX_Marshal ¶
func (m *MsgRegisterObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterObjectResponse) XXX_Merge ¶
func (m *MsgRegisterObjectResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterObjectResponse) XXX_Size ¶
func (m *MsgRegisterObjectResponse) XXX_Size() int
func (*MsgRegisterObjectResponse) XXX_Unmarshal ¶
func (m *MsgRegisterObjectResponse) XXX_Unmarshal(b []byte) error
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) }
MsgServer is the server API for Msg service.
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 *types.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"` }
func NewMsgSetRelationship ¶
func NewMsgSetRelationship(creator string, policyId string, relationship *Relationship, creationTime *prototypes.Timestamp) *MsgSetRelationship
func NewMsgSetRelationshipNow ¶ added in v0.2.0
func NewMsgSetRelationshipNow(creator string, policyId string, relationship *Relationship) *MsgSetRelationship
func (*MsgSetRelationship) Descriptor ¶
func (*MsgSetRelationship) Descriptor() ([]byte, []int)
func (*MsgSetRelationship) GetCreationTime ¶
func (m *MsgSetRelationship) GetCreationTime() *types.Timestamp
func (*MsgSetRelationship) GetCreator ¶
func (m *MsgSetRelationship) GetCreator() string
func (*MsgSetRelationship) GetPolicyId ¶
func (m *MsgSetRelationship) GetPolicyId() string
func (*MsgSetRelationship) GetRelationship ¶
func (m *MsgSetRelationship) GetRelationship() *Relationship
func (*MsgSetRelationship) Marshal ¶
func (m *MsgSetRelationship) Marshal() (dAtA []byte, err error)
func (*MsgSetRelationship) MarshalTo ¶
func (m *MsgSetRelationship) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetRelationship) MarshalToSizedBuffer ¶
func (m *MsgSetRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetRelationship) ProtoMessage ¶
func (*MsgSetRelationship) ProtoMessage()
func (*MsgSetRelationship) Reset ¶
func (m *MsgSetRelationship) Reset()
func (*MsgSetRelationship) Size ¶
func (m *MsgSetRelationship) Size() (n int)
func (*MsgSetRelationship) String ¶
func (m *MsgSetRelationship) String() string
func (*MsgSetRelationship) Unmarshal ¶
func (m *MsgSetRelationship) Unmarshal(dAtA []byte) error
func (*MsgSetRelationship) ValidateBasic ¶
func (msg *MsgSetRelationship) ValidateBasic() error
func (*MsgSetRelationship) XXX_DiscardUnknown ¶
func (m *MsgSetRelationship) XXX_DiscardUnknown()
func (*MsgSetRelationship) XXX_Marshal ¶
func (m *MsgSetRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetRelationship) XXX_Merge ¶
func (m *MsgSetRelationship) XXX_Merge(src proto.Message)
func (*MsgSetRelationship) XXX_Size ¶
func (m *MsgSetRelationship) XXX_Size() int
func (*MsgSetRelationship) XXX_Unmarshal ¶
func (m *MsgSetRelationship) XXX_Unmarshal(b []byte) error
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"` }
func (*MsgSetRelationshipResponse) Descriptor ¶
func (*MsgSetRelationshipResponse) Descriptor() ([]byte, []int)
func (*MsgSetRelationshipResponse) GetRecordExisted ¶ added in v0.2.0
func (m *MsgSetRelationshipResponse) GetRecordExisted() bool
func (*MsgSetRelationshipResponse) Marshal ¶
func (m *MsgSetRelationshipResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetRelationshipResponse) MarshalTo ¶
func (m *MsgSetRelationshipResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetRelationshipResponse) MarshalToSizedBuffer ¶
func (m *MsgSetRelationshipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetRelationshipResponse) ProtoMessage ¶
func (*MsgSetRelationshipResponse) ProtoMessage()
func (*MsgSetRelationshipResponse) Reset ¶
func (m *MsgSetRelationshipResponse) Reset()
func (*MsgSetRelationshipResponse) Size ¶
func (m *MsgSetRelationshipResponse) Size() (n int)
func (*MsgSetRelationshipResponse) String ¶
func (m *MsgSetRelationshipResponse) String() string
func (*MsgSetRelationshipResponse) Unmarshal ¶
func (m *MsgSetRelationshipResponse) Unmarshal(dAtA []byte) error
func (*MsgSetRelationshipResponse) XXX_DiscardUnknown ¶
func (m *MsgSetRelationshipResponse) XXX_DiscardUnknown()
func (*MsgSetRelationshipResponse) XXX_Marshal ¶
func (m *MsgSetRelationshipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetRelationshipResponse) XXX_Merge ¶
func (m *MsgSetRelationshipResponse) XXX_Merge(src proto.Message)
func (*MsgSetRelationshipResponse) XXX_Size ¶
func (m *MsgSetRelationshipResponse) XXX_Size() int
func (*MsgSetRelationshipResponse) XXX_Unmarshal ¶
func (m *MsgSetRelationshipResponse) XXX_Unmarshal(b []byte) error
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"` }
func NewMsgUnregisterObject ¶
func NewMsgUnregisterObject(creator string, policyId string) *MsgUnregisterObject
func (*MsgUnregisterObject) Descriptor ¶
func (*MsgUnregisterObject) Descriptor() ([]byte, []int)
func (*MsgUnregisterObject) GetCreator ¶
func (m *MsgUnregisterObject) GetCreator() string
func (*MsgUnregisterObject) GetObject ¶
func (m *MsgUnregisterObject) GetObject() *Object
func (*MsgUnregisterObject) GetPolicyId ¶
func (m *MsgUnregisterObject) GetPolicyId() string
func (*MsgUnregisterObject) Marshal ¶
func (m *MsgUnregisterObject) Marshal() (dAtA []byte, err error)
func (*MsgUnregisterObject) MarshalTo ¶
func (m *MsgUnregisterObject) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnregisterObject) MarshalToSizedBuffer ¶
func (m *MsgUnregisterObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnregisterObject) ProtoMessage ¶
func (*MsgUnregisterObject) ProtoMessage()
func (*MsgUnregisterObject) Reset ¶
func (m *MsgUnregisterObject) Reset()
func (*MsgUnregisterObject) Size ¶
func (m *MsgUnregisterObject) Size() (n int)
func (*MsgUnregisterObject) String ¶
func (m *MsgUnregisterObject) String() string
func (*MsgUnregisterObject) Unmarshal ¶
func (m *MsgUnregisterObject) Unmarshal(dAtA []byte) error
func (*MsgUnregisterObject) ValidateBasic ¶
func (msg *MsgUnregisterObject) ValidateBasic() error
func (*MsgUnregisterObject) XXX_DiscardUnknown ¶
func (m *MsgUnregisterObject) XXX_DiscardUnknown()
func (*MsgUnregisterObject) XXX_Marshal ¶
func (m *MsgUnregisterObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnregisterObject) XXX_Merge ¶
func (m *MsgUnregisterObject) XXX_Merge(src proto.Message)
func (*MsgUnregisterObject) XXX_Size ¶
func (m *MsgUnregisterObject) XXX_Size() int
func (*MsgUnregisterObject) XXX_Unmarshal ¶
func (m *MsgUnregisterObject) XXX_Unmarshal(b []byte) error
type MsgUnregisterObjectResponse ¶
type MsgUnregisterObjectResponse struct {
Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
}
func (*MsgUnregisterObjectResponse) Descriptor ¶
func (*MsgUnregisterObjectResponse) Descriptor() ([]byte, []int)
func (*MsgUnregisterObjectResponse) GetFound ¶
func (m *MsgUnregisterObjectResponse) GetFound() bool
func (*MsgUnregisterObjectResponse) Marshal ¶
func (m *MsgUnregisterObjectResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnregisterObjectResponse) MarshalTo ¶
func (m *MsgUnregisterObjectResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnregisterObjectResponse) MarshalToSizedBuffer ¶
func (m *MsgUnregisterObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnregisterObjectResponse) ProtoMessage ¶
func (*MsgUnregisterObjectResponse) ProtoMessage()
func (*MsgUnregisterObjectResponse) Reset ¶
func (m *MsgUnregisterObjectResponse) Reset()
func (*MsgUnregisterObjectResponse) Size ¶
func (m *MsgUnregisterObjectResponse) Size() (n int)
func (*MsgUnregisterObjectResponse) String ¶
func (m *MsgUnregisterObjectResponse) String() string
func (*MsgUnregisterObjectResponse) Unmarshal ¶
func (m *MsgUnregisterObjectResponse) Unmarshal(dAtA []byte) error
func (*MsgUnregisterObjectResponse) XXX_DiscardUnknown ¶
func (m *MsgUnregisterObjectResponse) XXX_DiscardUnknown()
func (*MsgUnregisterObjectResponse) XXX_Marshal ¶
func (m *MsgUnregisterObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnregisterObjectResponse) XXX_Merge ¶
func (m *MsgUnregisterObjectResponse) XXX_Merge(src proto.Message)
func (*MsgUnregisterObjectResponse) XXX_Size ¶
func (m *MsgUnregisterObjectResponse) XXX_Size() int
func (*MsgUnregisterObjectResponse) XXX_Unmarshal ¶
func (m *MsgUnregisterObjectResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v0.2.0
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"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶ added in v0.2.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.2.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.2.0
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.2.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.2.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.2.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.2.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.2.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.2.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.2.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v0.2.0
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.2.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.2.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.2.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.2.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.2.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.2.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
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"` }
Object represents an entity which must be access controlled within a Policy.
func (*Object) Descriptor ¶
func (*Object) GetResource ¶
func (*Object) MarshalToSizedBuffer ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) XXX_DiscardUnknown ¶
func (m *Object) XXX_DiscardUnknown()
func (*Object) XXX_Marshal ¶
func (*Object) XXX_Unmarshal ¶
type ObjectSelector ¶
type ObjectSelector struct { // Types that are valid to be assigned to Selector: // *ObjectSelector_Object // *ObjectSelector_Wildcard Selector isObjectSelector_Selector `protobuf_oneof:"selector"` }
ObjectSelector models a filter for Relationship Objects
func (*ObjectSelector) Descriptor ¶
func (*ObjectSelector) Descriptor() ([]byte, []int)
func (*ObjectSelector) GetObject ¶
func (m *ObjectSelector) GetObject() *Object
func (*ObjectSelector) GetSelector ¶
func (m *ObjectSelector) GetSelector() isObjectSelector_Selector
func (*ObjectSelector) GetWildcard ¶
func (m *ObjectSelector) GetWildcard() *WildcardSelector
func (*ObjectSelector) Marshal ¶
func (m *ObjectSelector) Marshal() (dAtA []byte, err error)
func (*ObjectSelector) MarshalToSizedBuffer ¶
func (m *ObjectSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ObjectSelector) ProtoMessage ¶
func (*ObjectSelector) ProtoMessage()
func (*ObjectSelector) Reset ¶
func (m *ObjectSelector) Reset()
func (*ObjectSelector) Size ¶
func (m *ObjectSelector) Size() (n int)
func (*ObjectSelector) String ¶
func (m *ObjectSelector) String() string
func (*ObjectSelector) Unmarshal ¶
func (m *ObjectSelector) Unmarshal(dAtA []byte) error
func (*ObjectSelector) XXX_DiscardUnknown ¶
func (m *ObjectSelector) XXX_DiscardUnknown()
func (*ObjectSelector) XXX_Marshal ¶
func (m *ObjectSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ObjectSelector) XXX_Merge ¶
func (m *ObjectSelector) XXX_Merge(src proto.Message)
func (*ObjectSelector) XXX_OneofWrappers ¶
func (*ObjectSelector) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ObjectSelector) XXX_Size ¶
func (m *ObjectSelector) XXX_Size() int
func (*ObjectSelector) XXX_Unmarshal ¶
func (m *ObjectSelector) XXX_Unmarshal(b []byte) error
type ObjectSelector_Object ¶
type ObjectSelector_Object struct {
Object *Object `protobuf:"bytes,1,opt,name=object,proto3,oneof" json:"object,omitempty"`
}
func (*ObjectSelector_Object) MarshalTo ¶
func (m *ObjectSelector_Object) MarshalTo(dAtA []byte) (int, error)
func (*ObjectSelector_Object) MarshalToSizedBuffer ¶
func (m *ObjectSelector_Object) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ObjectSelector_Object) Size ¶
func (m *ObjectSelector_Object) Size() (n int)
type ObjectSelector_Wildcard ¶
type ObjectSelector_Wildcard struct {
Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof" json:"wildcard,omitempty"`
}
func (*ObjectSelector_Wildcard) MarshalTo ¶
func (m *ObjectSelector_Wildcard) MarshalTo(dAtA []byte) (int, error)
func (*ObjectSelector_Wildcard) MarshalToSizedBuffer ¶
func (m *ObjectSelector_Wildcard) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ObjectSelector_Wildcard) Size ¶
func (m *ObjectSelector_Wildcard) Size() (n int)
type Operation ¶ added in v0.2.0
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"` }
Operation represents an action over an object.
func (*Operation) Descriptor ¶ added in v0.2.0
func (*Operation) GetPermission ¶ added in v0.2.0
func (*Operation) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Operation) ProtoMessage ¶ added in v0.2.0
func (*Operation) ProtoMessage()
func (*Operation) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Operation) XXX_DiscardUnknown()
func (*Operation) XXX_Marshal ¶ added in v0.2.0
func (*Operation) XXX_Unmarshal ¶ added in v0.2.0
type ParamSubspace ¶ added in v0.2.0
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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"` }
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 ¶
func (*Permission) Descriptor() ([]byte, []int)
func (*Permission) GetDoc ¶
func (m *Permission) GetDoc() string
func (*Permission) GetExpression ¶
func (m *Permission) GetExpression() string
func (*Permission) GetName ¶
func (m *Permission) GetName() string
func (*Permission) Marshal ¶
func (m *Permission) Marshal() (dAtA []byte, err error)
func (*Permission) MarshalToSizedBuffer ¶
func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) Reset ¶
func (m *Permission) Reset()
func (*Permission) Size ¶
func (m *Permission) Size() (n int)
func (*Permission) String ¶
func (m *Permission) String() string
func (*Permission) Unmarshal ¶
func (m *Permission) Unmarshal(dAtA []byte) error
func (*Permission) XXX_DiscardUnknown ¶
func (m *Permission) XXX_DiscardUnknown()
func (*Permission) XXX_Marshal ¶
func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Permission) XXX_Merge ¶
func (m *Permission) XXX_Merge(src proto.Message)
func (*Permission) XXX_Size ¶
func (m *Permission) XXX_Size() int
func (*Permission) XXX_Unmarshal ¶
func (m *Permission) XXX_Unmarshal(b []byte) error
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"` }
func (*PermissionShort) Descriptor ¶
func (*PermissionShort) Descriptor() ([]byte, []int)
func (*PermissionShort) GetDoc ¶
func (m *PermissionShort) GetDoc() string
func (*PermissionShort) GetExpr ¶
func (m *PermissionShort) GetExpr() string
func (*PermissionShort) Marshal ¶
func (m *PermissionShort) Marshal() (dAtA []byte, err error)
func (*PermissionShort) MarshalToSizedBuffer ¶
func (m *PermissionShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermissionShort) ProtoMessage ¶
func (*PermissionShort) ProtoMessage()
func (*PermissionShort) Reset ¶
func (m *PermissionShort) Reset()
func (*PermissionShort) Size ¶
func (m *PermissionShort) Size() (n int)
func (*PermissionShort) String ¶
func (m *PermissionShort) String() string
func (*PermissionShort) Unmarshal ¶
func (m *PermissionShort) Unmarshal(dAtA []byte) error
func (*PermissionShort) XXX_DiscardUnknown ¶
func (m *PermissionShort) XXX_DiscardUnknown()
func (*PermissionShort) XXX_Marshal ¶
func (m *PermissionShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermissionShort) XXX_Merge ¶
func (m *PermissionShort) XXX_Merge(src proto.Message)
func (*PermissionShort) XXX_Size ¶
func (m *PermissionShort) XXX_Size() int
func (*PermissionShort) XXX_Unmarshal ¶
func (m *PermissionShort) XXX_Unmarshal(b []byte) error
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 *types.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"` }
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 ¶
func (*Policy) GetActorResource ¶
func (m *Policy) GetActorResource() *ActorResource
func (*Policy) GetAttributes ¶
func (*Policy) GetCreationTime ¶
func (*Policy) GetCreator ¶
func (*Policy) GetDescription ¶
func (*Policy) GetManagementPermissionName ¶
GetManagementPermissionName returns the name of the Management Permission built for the given Relation
func (*Policy) GetResources ¶
func (*Policy) MarshalToSizedBuffer ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) Sort ¶
func (pol *Policy) Sort()
Sort performs an in place sorting of all entities in a Policy. Every resource, along with its relations and permissions, are sorted by name.
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type PolicyDefinition ¶ added in v0.2.0
type PolicyDefinition struct { // Types that are valid to be assigned to Definition: // *PolicyDefinition_MarshaledPolicy // *PolicyDefinition_Policy Definition isPolicyDefinition_Definition `protobuf_oneof:"definition"` }
PolicyDefinition represents a Policy defined either as a raw Policy type or a shortened and marshaled version
func (*PolicyDefinition) Descriptor ¶ added in v0.2.0
func (*PolicyDefinition) Descriptor() ([]byte, []int)
func (*PolicyDefinition) GetDefinition ¶ added in v0.2.0
func (m *PolicyDefinition) GetDefinition() isPolicyDefinition_Definition
func (*PolicyDefinition) GetMarshaledPolicy ¶ added in v0.2.0
func (m *PolicyDefinition) GetMarshaledPolicy() *MarshaledPolicy
func (*PolicyDefinition) GetPolicy ¶ added in v0.2.0
func (m *PolicyDefinition) GetPolicy() *Policy
func (*PolicyDefinition) Marshal ¶ added in v0.2.0
func (m *PolicyDefinition) Marshal() (dAtA []byte, err error)
func (*PolicyDefinition) MarshalTo ¶ added in v0.2.0
func (m *PolicyDefinition) MarshalTo(dAtA []byte) (int, error)
func (*PolicyDefinition) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *PolicyDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyDefinition) ProtoMessage ¶ added in v0.2.0
func (*PolicyDefinition) ProtoMessage()
func (*PolicyDefinition) Reset ¶ added in v0.2.0
func (m *PolicyDefinition) Reset()
func (*PolicyDefinition) Size ¶ added in v0.2.0
func (m *PolicyDefinition) Size() (n int)
func (*PolicyDefinition) String ¶ added in v0.2.0
func (m *PolicyDefinition) String() string
func (*PolicyDefinition) Unmarshal ¶ added in v0.2.0
func (m *PolicyDefinition) Unmarshal(dAtA []byte) error
func (*PolicyDefinition) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PolicyDefinition) XXX_DiscardUnknown()
func (*PolicyDefinition) XXX_Marshal ¶ added in v0.2.0
func (m *PolicyDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyDefinition) XXX_Merge ¶ added in v0.2.0
func (m *PolicyDefinition) XXX_Merge(src proto.Message)
func (*PolicyDefinition) XXX_OneofWrappers ¶ added in v0.2.0
func (*PolicyDefinition) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*PolicyDefinition) XXX_Size ¶ added in v0.2.0
func (m *PolicyDefinition) XXX_Size() int
func (*PolicyDefinition) XXX_Unmarshal ¶ added in v0.2.0
func (m *PolicyDefinition) XXX_Unmarshal(b []byte) error
type PolicyDefinition_MarshaledPolicy ¶ added in v0.2.0
type PolicyDefinition_MarshaledPolicy struct {
MarshaledPolicy *MarshaledPolicy `protobuf:"bytes,1,opt,name=marshaled_policy,json=marshaledPolicy,proto3,oneof" json:"marshaled_policy,omitempty"`
}
func (*PolicyDefinition_MarshaledPolicy) MarshalTo ¶ added in v0.2.0
func (m *PolicyDefinition_MarshaledPolicy) MarshalTo(dAtA []byte) (int, error)
func (*PolicyDefinition_MarshaledPolicy) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *PolicyDefinition_MarshaledPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyDefinition_MarshaledPolicy) Size ¶ added in v0.2.0
func (m *PolicyDefinition_MarshaledPolicy) Size() (n int)
type PolicyDefinition_Policy ¶ added in v0.2.0
type PolicyDefinition_Policy struct {
Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3,oneof" json:"policy,omitempty"`
}
func (*PolicyDefinition_Policy) MarshalTo ¶ added in v0.2.0
func (m *PolicyDefinition_Policy) MarshalTo(dAtA []byte) (int, error)
func (*PolicyDefinition_Policy) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *PolicyDefinition_Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyDefinition_Policy) Size ¶ added in v0.2.0
func (m *PolicyDefinition_Policy) Size() (n int)
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) EnumDescriptor ¶
func (PolicyMarshalingType) EnumDescriptor() ([]byte, []int)
func (PolicyMarshalingType) String ¶
func (x PolicyMarshalingType) String() string
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"` }
PolicyRecord represents a the Policy Document which will be persisted in the data layer
func NewPolicyRecord ¶
func NewPolicyRecord(policy *Policy) (*PolicyRecord, error)
func (*PolicyRecord) Descriptor ¶
func (*PolicyRecord) Descriptor() ([]byte, []int)
func (*PolicyRecord) GetManagementGraph ¶
func (m *PolicyRecord) GetManagementGraph() *ManagementGraph
func (*PolicyRecord) GetPolicy ¶
func (m *PolicyRecord) GetPolicy() *Policy
func (*PolicyRecord) Marshal ¶
func (m *PolicyRecord) Marshal() (dAtA []byte, err error)
func (*PolicyRecord) MarshalToSizedBuffer ¶
func (m *PolicyRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyRecord) ProtoMessage ¶
func (*PolicyRecord) ProtoMessage()
func (*PolicyRecord) Reset ¶
func (m *PolicyRecord) Reset()
func (*PolicyRecord) Size ¶
func (m *PolicyRecord) Size() (n int)
func (*PolicyRecord) String ¶
func (m *PolicyRecord) String() string
func (*PolicyRecord) Unmarshal ¶
func (m *PolicyRecord) Unmarshal(dAtA []byte) error
func (*PolicyRecord) XXX_DiscardUnknown ¶
func (m *PolicyRecord) XXX_DiscardUnknown()
func (*PolicyRecord) XXX_Marshal ¶
func (m *PolicyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyRecord) XXX_Merge ¶
func (m *PolicyRecord) XXX_Merge(src proto.Message)
func (*PolicyRecord) XXX_Size ¶
func (m *PolicyRecord) XXX_Size() int
func (*PolicyRecord) XXX_Unmarshal ¶
func (m *PolicyRecord) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*PolicyShort) Descriptor() ([]byte, []int)
func (*PolicyShort) GetActor ¶
func (m *PolicyShort) GetActor() *ActorResource
func (*PolicyShort) GetDescription ¶
func (m *PolicyShort) GetDescription() string
func (*PolicyShort) GetMeta ¶
func (m *PolicyShort) GetMeta() map[string]string
func (*PolicyShort) GetName ¶
func (m *PolicyShort) GetName() string
func (*PolicyShort) GetResources ¶
func (m *PolicyShort) GetResources() map[string]*ResourceShort
func (*PolicyShort) GetVersion ¶
func (m *PolicyShort) GetVersion() string
func (*PolicyShort) Marshal ¶
func (m *PolicyShort) Marshal() (dAtA []byte, err error)
func (*PolicyShort) MarshalToSizedBuffer ¶
func (m *PolicyShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyShort) ProtoMessage ¶
func (*PolicyShort) ProtoMessage()
func (*PolicyShort) Reset ¶
func (m *PolicyShort) Reset()
func (*PolicyShort) Size ¶
func (m *PolicyShort) Size() (n int)
func (*PolicyShort) String ¶
func (m *PolicyShort) String() string
func (*PolicyShort) Unmarshal ¶
func (m *PolicyShort) Unmarshal(dAtA []byte) error
func (*PolicyShort) XXX_DiscardUnknown ¶
func (m *PolicyShort) XXX_DiscardUnknown()
func (*PolicyShort) XXX_Marshal ¶
func (m *PolicyShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyShort) XXX_Merge ¶
func (m *PolicyShort) XXX_Merge(src proto.Message)
func (*PolicyShort) XXX_Size ¶
func (m *PolicyShort) XXX_Size() int
func (*PolicyShort) XXX_Unmarshal ¶
func (m *PolicyShort) XXX_Unmarshal(b []byte) error
type QueryAccessDecisionRequest ¶ added in v0.2.0
type QueryAccessDecisionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryAccessDecisionRequest) Descriptor ¶ added in v0.2.0
func (*QueryAccessDecisionRequest) Descriptor() ([]byte, []int)
func (*QueryAccessDecisionRequest) GetId ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) GetId() string
func (*QueryAccessDecisionRequest) Marshal ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccessDecisionRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccessDecisionRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccessDecisionRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryAccessDecisionRequest) ProtoMessage()
func (*QueryAccessDecisionRequest) Reset ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) Reset()
func (*QueryAccessDecisionRequest) Size ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) Size() (n int)
func (*QueryAccessDecisionRequest) String ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) String() string
func (*QueryAccessDecisionRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) Unmarshal(dAtA []byte) error
func (*QueryAccessDecisionRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) XXX_DiscardUnknown()
func (*QueryAccessDecisionRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccessDecisionRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) XXX_Merge(src proto.Message)
func (*QueryAccessDecisionRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) XXX_Size() int
func (*QueryAccessDecisionRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryAccessDecisionRequest) XXX_Unmarshal(b []byte) error
type QueryAccessDecisionResponse ¶ added in v0.2.0
type QueryAccessDecisionResponse struct {
Decision *AccessDecision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"`
}
func (*QueryAccessDecisionResponse) Descriptor ¶ added in v0.2.0
func (*QueryAccessDecisionResponse) Descriptor() ([]byte, []int)
func (*QueryAccessDecisionResponse) GetDecision ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) GetDecision() *AccessDecision
func (*QueryAccessDecisionResponse) Marshal ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccessDecisionResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccessDecisionResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccessDecisionResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryAccessDecisionResponse) ProtoMessage()
func (*QueryAccessDecisionResponse) Reset ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) Reset()
func (*QueryAccessDecisionResponse) Size ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) Size() (n int)
func (*QueryAccessDecisionResponse) String ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) String() string
func (*QueryAccessDecisionResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) Unmarshal(dAtA []byte) error
func (*QueryAccessDecisionResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) XXX_DiscardUnknown()
func (*QueryAccessDecisionResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccessDecisionResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) XXX_Merge(src proto.Message)
func (*QueryAccessDecisionResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) XXX_Size() int
func (*QueryAccessDecisionResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryAccessDecisionResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryFilterRelationshipsRequest ¶ added in v0.2.0
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"` }
func (*QueryFilterRelationshipsRequest) Descriptor ¶ added in v0.2.0
func (*QueryFilterRelationshipsRequest) Descriptor() ([]byte, []int)
func (*QueryFilterRelationshipsRequest) GetPolicyId ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) GetPolicyId() string
func (*QueryFilterRelationshipsRequest) GetSelector ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) GetSelector() *RelationshipSelector
func (*QueryFilterRelationshipsRequest) Marshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) Marshal() (dAtA []byte, err error)
func (*QueryFilterRelationshipsRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFilterRelationshipsRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFilterRelationshipsRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryFilterRelationshipsRequest) ProtoMessage()
func (*QueryFilterRelationshipsRequest) Reset ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) Reset()
func (*QueryFilterRelationshipsRequest) Size ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) Size() (n int)
func (*QueryFilterRelationshipsRequest) String ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) String() string
func (*QueryFilterRelationshipsRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) Unmarshal(dAtA []byte) error
func (*QueryFilterRelationshipsRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) XXX_DiscardUnknown()
func (*QueryFilterRelationshipsRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFilterRelationshipsRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) XXX_Merge(src proto.Message)
func (*QueryFilterRelationshipsRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) XXX_Size() int
func (*QueryFilterRelationshipsRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsRequest) XXX_Unmarshal(b []byte) error
type QueryFilterRelationshipsResponse ¶ added in v0.2.0
type QueryFilterRelationshipsResponse struct {
Records []*RelationshipRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
}
func (*QueryFilterRelationshipsResponse) Descriptor ¶ added in v0.2.0
func (*QueryFilterRelationshipsResponse) Descriptor() ([]byte, []int)
func (*QueryFilterRelationshipsResponse) GetRecords ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) GetRecords() []*RelationshipRecord
func (*QueryFilterRelationshipsResponse) Marshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) Marshal() (dAtA []byte, err error)
func (*QueryFilterRelationshipsResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFilterRelationshipsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFilterRelationshipsResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryFilterRelationshipsResponse) ProtoMessage()
func (*QueryFilterRelationshipsResponse) Reset ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) Reset()
func (*QueryFilterRelationshipsResponse) Size ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) Size() (n int)
func (*QueryFilterRelationshipsResponse) String ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) String() string
func (*QueryFilterRelationshipsResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) Unmarshal(dAtA []byte) error
func (*QueryFilterRelationshipsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) XXX_DiscardUnknown()
func (*QueryFilterRelationshipsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFilterRelationshipsResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) XXX_Merge(src proto.Message)
func (*QueryFilterRelationshipsResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) XXX_Size() int
func (*QueryFilterRelationshipsResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryFilterRelationshipsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPolicyIdsRequest ¶ added in v0.2.0
type QueryPolicyIdsRequest struct { }
func (*QueryPolicyIdsRequest) Descriptor ¶ added in v0.2.0
func (*QueryPolicyIdsRequest) Descriptor() ([]byte, []int)
func (*QueryPolicyIdsRequest) Marshal ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPolicyIdsRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPolicyIdsRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPolicyIdsRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryPolicyIdsRequest) ProtoMessage()
func (*QueryPolicyIdsRequest) Reset ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) Reset()
func (*QueryPolicyIdsRequest) Size ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) Size() (n int)
func (*QueryPolicyIdsRequest) String ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) String() string
func (*QueryPolicyIdsRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) Unmarshal(dAtA []byte) error
func (*QueryPolicyIdsRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) XXX_DiscardUnknown()
func (*QueryPolicyIdsRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPolicyIdsRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) XXX_Merge(src proto.Message)
func (*QueryPolicyIdsRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) XXX_Size() int
func (*QueryPolicyIdsRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyIdsRequest) XXX_Unmarshal(b []byte) error
type QueryPolicyIdsResponse ¶ added in v0.2.0
type QueryPolicyIdsResponse struct { //cosmos.base.query.v1beta1.PageResponse pagination = 1; Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` }
func (*QueryPolicyIdsResponse) Descriptor ¶ added in v0.2.0
func (*QueryPolicyIdsResponse) Descriptor() ([]byte, []int)
func (*QueryPolicyIdsResponse) GetIds ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) GetIds() []string
func (*QueryPolicyIdsResponse) Marshal ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPolicyIdsResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPolicyIdsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPolicyIdsResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryPolicyIdsResponse) ProtoMessage()
func (*QueryPolicyIdsResponse) Reset ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) Reset()
func (*QueryPolicyIdsResponse) Size ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) Size() (n int)
func (*QueryPolicyIdsResponse) String ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) String() string
func (*QueryPolicyIdsResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) Unmarshal(dAtA []byte) error
func (*QueryPolicyIdsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) XXX_DiscardUnknown()
func (*QueryPolicyIdsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPolicyIdsResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) XXX_Merge(src proto.Message)
func (*QueryPolicyIdsResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) XXX_Size() int
func (*QueryPolicyIdsResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyIdsResponse) XXX_Unmarshal(b []byte) error
type QueryPolicyRequest ¶ added in v0.2.0
type QueryPolicyRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryPolicyRequest) Descriptor ¶ added in v0.2.0
func (*QueryPolicyRequest) Descriptor() ([]byte, []int)
func (*QueryPolicyRequest) GetId ¶ added in v0.2.0
func (m *QueryPolicyRequest) GetId() string
func (*QueryPolicyRequest) Marshal ¶ added in v0.2.0
func (m *QueryPolicyRequest) Marshal() (dAtA []byte, err error)
func (*QueryPolicyRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryPolicyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPolicyRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPolicyRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryPolicyRequest) ProtoMessage()
func (*QueryPolicyRequest) Reset ¶ added in v0.2.0
func (m *QueryPolicyRequest) Reset()
func (*QueryPolicyRequest) Size ¶ added in v0.2.0
func (m *QueryPolicyRequest) Size() (n int)
func (*QueryPolicyRequest) String ¶ added in v0.2.0
func (m *QueryPolicyRequest) String() string
func (*QueryPolicyRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyRequest) Unmarshal(dAtA []byte) error
func (*QueryPolicyRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryPolicyRequest) XXX_DiscardUnknown()
func (*QueryPolicyRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPolicyRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryPolicyRequest) XXX_Merge(src proto.Message)
func (*QueryPolicyRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryPolicyRequest) XXX_Size() int
func (*QueryPolicyRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyRequest) XXX_Unmarshal(b []byte) error
type QueryPolicyResponse ¶ added in v0.2.0
type QueryPolicyResponse struct {
Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}
func (*QueryPolicyResponse) Descriptor ¶ added in v0.2.0
func (*QueryPolicyResponse) Descriptor() ([]byte, []int)
func (*QueryPolicyResponse) GetPolicy ¶ added in v0.2.0
func (m *QueryPolicyResponse) GetPolicy() *Policy
func (*QueryPolicyResponse) Marshal ¶ added in v0.2.0
func (m *QueryPolicyResponse) Marshal() (dAtA []byte, err error)
func (*QueryPolicyResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryPolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPolicyResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPolicyResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryPolicyResponse) ProtoMessage()
func (*QueryPolicyResponse) Reset ¶ added in v0.2.0
func (m *QueryPolicyResponse) Reset()
func (*QueryPolicyResponse) Size ¶ added in v0.2.0
func (m *QueryPolicyResponse) Size() (n int)
func (*QueryPolicyResponse) String ¶ added in v0.2.0
func (m *QueryPolicyResponse) String() string
func (*QueryPolicyResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyResponse) Unmarshal(dAtA []byte) error
func (*QueryPolicyResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryPolicyResponse) XXX_DiscardUnknown()
func (*QueryPolicyResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPolicyResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryPolicyResponse) XXX_Merge(src proto.Message)
func (*QueryPolicyResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryPolicyResponse) XXX_Size() int
func (*QueryPolicyResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryPolicyResponse) XXX_Unmarshal(b []byte) error
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) }
QueryServer is the server API for Query service.
type QueryValidatePolicyRequest ¶ added in v0.2.0
type QueryValidatePolicyRequest struct { Policy string `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` MarshalType PolicyMarshalingType `` /* 135-byte string literal not displayed */ }
func (*QueryValidatePolicyRequest) Descriptor ¶ added in v0.2.0
func (*QueryValidatePolicyRequest) Descriptor() ([]byte, []int)
func (*QueryValidatePolicyRequest) GetMarshalType ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) GetMarshalType() PolicyMarshalingType
func (*QueryValidatePolicyRequest) GetPolicy ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) GetPolicy() string
func (*QueryValidatePolicyRequest) Marshal ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatePolicyRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatePolicyRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatePolicyRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryValidatePolicyRequest) ProtoMessage()
func (*QueryValidatePolicyRequest) Reset ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) Reset()
func (*QueryValidatePolicyRequest) Size ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) Size() (n int)
func (*QueryValidatePolicyRequest) String ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) String() string
func (*QueryValidatePolicyRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatePolicyRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) XXX_DiscardUnknown()
func (*QueryValidatePolicyRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatePolicyRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) XXX_Merge(src proto.Message)
func (*QueryValidatePolicyRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) XXX_Size() int
func (*QueryValidatePolicyRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryValidatePolicyRequest) XXX_Unmarshal(b []byte) error
type QueryValidatePolicyResponse ¶ added in v0.2.0
type QueryValidatePolicyResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
}
func (*QueryValidatePolicyResponse) Descriptor ¶ added in v0.2.0
func (*QueryValidatePolicyResponse) Descriptor() ([]byte, []int)
func (*QueryValidatePolicyResponse) GetValid ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) GetValid() bool
func (*QueryValidatePolicyResponse) Marshal ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatePolicyResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatePolicyResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatePolicyResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryValidatePolicyResponse) ProtoMessage()
func (*QueryValidatePolicyResponse) Reset ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) Reset()
func (*QueryValidatePolicyResponse) Size ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) Size() (n int)
func (*QueryValidatePolicyResponse) String ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) String() string
func (*QueryValidatePolicyResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatePolicyResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) XXX_DiscardUnknown()
func (*QueryValidatePolicyResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatePolicyResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) XXX_Merge(src proto.Message)
func (*QueryValidatePolicyResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) XXX_Size() int
func (*QueryValidatePolicyResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryValidatePolicyResponse) XXX_Unmarshal(b []byte) error
type QueryVerifyAccessRequestRequest ¶ added in v0.2.0
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"` }
func (*QueryVerifyAccessRequestRequest) Descriptor ¶ added in v0.2.0
func (*QueryVerifyAccessRequestRequest) Descriptor() ([]byte, []int)
func (*QueryVerifyAccessRequestRequest) GetAccessRequest ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) GetAccessRequest() *AccessRequest
func (*QueryVerifyAccessRequestRequest) GetPolicyId ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) GetPolicyId() string
func (*QueryVerifyAccessRequestRequest) Marshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) Marshal() (dAtA []byte, err error)
func (*QueryVerifyAccessRequestRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVerifyAccessRequestRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVerifyAccessRequestRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryVerifyAccessRequestRequest) ProtoMessage()
func (*QueryVerifyAccessRequestRequest) Reset ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) Reset()
func (*QueryVerifyAccessRequestRequest) Size ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) Size() (n int)
func (*QueryVerifyAccessRequestRequest) String ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) String() string
func (*QueryVerifyAccessRequestRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) Unmarshal(dAtA []byte) error
func (*QueryVerifyAccessRequestRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) XXX_DiscardUnknown()
func (*QueryVerifyAccessRequestRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVerifyAccessRequestRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) XXX_Merge(src proto.Message)
func (*QueryVerifyAccessRequestRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) XXX_Size() int
func (*QueryVerifyAccessRequestRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestRequest) XXX_Unmarshal(b []byte) error
type QueryVerifyAccessRequestResponse ¶ added in v0.2.0
type QueryVerifyAccessRequestResponse struct {
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
}
func (*QueryVerifyAccessRequestResponse) Descriptor ¶ added in v0.2.0
func (*QueryVerifyAccessRequestResponse) Descriptor() ([]byte, []int)
func (*QueryVerifyAccessRequestResponse) GetValid ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) GetValid() bool
func (*QueryVerifyAccessRequestResponse) Marshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) Marshal() (dAtA []byte, err error)
func (*QueryVerifyAccessRequestResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVerifyAccessRequestResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVerifyAccessRequestResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryVerifyAccessRequestResponse) ProtoMessage()
func (*QueryVerifyAccessRequestResponse) Reset ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) Reset()
func (*QueryVerifyAccessRequestResponse) Size ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) Size() (n int)
func (*QueryVerifyAccessRequestResponse) String ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) String() string
func (*QueryVerifyAccessRequestResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) Unmarshal(dAtA []byte) error
func (*QueryVerifyAccessRequestResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) XXX_DiscardUnknown()
func (*QueryVerifyAccessRequestResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVerifyAccessRequestResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) XXX_Merge(src proto.Message)
func (*QueryVerifyAccessRequestResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) XXX_Size() int
func (*QueryVerifyAccessRequestResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryVerifyAccessRequestResponse) XXX_Unmarshal(b []byte) error
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"` }
Registration represents a record assigning an Object as being owned by an Actor
func (*Registration) Descriptor ¶
func (*Registration) Descriptor() ([]byte, []int)
func (*Registration) GetActor ¶
func (m *Registration) GetActor() *Actor
func (*Registration) GetObject ¶
func (m *Registration) GetObject() *Object
func (*Registration) Marshal ¶
func (m *Registration) Marshal() (dAtA []byte, err error)
func (*Registration) MarshalToSizedBuffer ¶
func (m *Registration) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Registration) ProtoMessage ¶
func (*Registration) ProtoMessage()
func (*Registration) Reset ¶
func (m *Registration) Reset()
func (*Registration) Size ¶
func (m *Registration) Size() (n int)
func (*Registration) String ¶
func (m *Registration) String() string
func (*Registration) Unmarshal ¶
func (m *Registration) Unmarshal(dAtA []byte) error
func (*Registration) XXX_DiscardUnknown ¶
func (m *Registration) XXX_DiscardUnknown()
func (*Registration) XXX_Marshal ¶
func (m *Registration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Registration) XXX_Merge ¶
func (m *Registration) XXX_Merge(src proto.Message)
func (*Registration) XXX_Size ¶
func (m *Registration) XXX_Size() int
func (*Registration) XXX_Unmarshal ¶
func (m *Registration) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (RegistrationResult) EnumDescriptor() ([]byte, []int)
func (RegistrationResult) String ¶
func (x RegistrationResult) String() string
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"` }
func (*Relation) Descriptor ¶
func (*Relation) GetManages ¶
func (*Relation) GetVrTypes ¶
func (m *Relation) GetVrTypes() []*Restriction
func (*Relation) MarshalToSizedBuffer ¶
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
func (*Relation) XXX_DiscardUnknown ¶
func (m *Relation) XXX_DiscardUnknown()
func (*Relation) XXX_Marshal ¶
func (*Relation) XXX_Unmarshal ¶
type RelationSelector ¶
type RelationSelector struct { // Types that are valid to be assigned to Selector: // *RelationSelector_Relation // *RelationSelector_Wildcard Selector isRelationSelector_Selector `protobuf_oneof:"selector"` }
RelationsSelector models a filter for Relationship Relations
func (*RelationSelector) Descriptor ¶
func (*RelationSelector) Descriptor() ([]byte, []int)
func (*RelationSelector) GetRelation ¶
func (m *RelationSelector) GetRelation() string
func (*RelationSelector) GetSelector ¶
func (m *RelationSelector) GetSelector() isRelationSelector_Selector
func (*RelationSelector) GetWildcard ¶
func (m *RelationSelector) GetWildcard() *WildcardSelector
func (*RelationSelector) Marshal ¶
func (m *RelationSelector) Marshal() (dAtA []byte, err error)
func (*RelationSelector) MarshalToSizedBuffer ¶
func (m *RelationSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationSelector) ProtoMessage ¶
func (*RelationSelector) ProtoMessage()
func (*RelationSelector) Reset ¶
func (m *RelationSelector) Reset()
func (*RelationSelector) Size ¶
func (m *RelationSelector) Size() (n int)
func (*RelationSelector) String ¶
func (m *RelationSelector) String() string
func (*RelationSelector) Unmarshal ¶
func (m *RelationSelector) Unmarshal(dAtA []byte) error
func (*RelationSelector) XXX_DiscardUnknown ¶
func (m *RelationSelector) XXX_DiscardUnknown()
func (*RelationSelector) XXX_Marshal ¶
func (m *RelationSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelationSelector) XXX_Merge ¶
func (m *RelationSelector) XXX_Merge(src proto.Message)
func (*RelationSelector) XXX_OneofWrappers ¶
func (*RelationSelector) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*RelationSelector) XXX_Size ¶
func (m *RelationSelector) XXX_Size() int
func (*RelationSelector) XXX_Unmarshal ¶
func (m *RelationSelector) XXX_Unmarshal(b []byte) error
type RelationSelector_Relation ¶
type RelationSelector_Relation struct {
Relation string `protobuf:"bytes,1,opt,name=relation,proto3,oneof" json:"relation,omitempty"`
}
func (*RelationSelector_Relation) MarshalTo ¶
func (m *RelationSelector_Relation) MarshalTo(dAtA []byte) (int, error)
func (*RelationSelector_Relation) MarshalToSizedBuffer ¶
func (m *RelationSelector_Relation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationSelector_Relation) Size ¶
func (m *RelationSelector_Relation) Size() (n int)
type RelationSelector_Wildcard ¶
type RelationSelector_Wildcard struct {
Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof" json:"wildcard,omitempty"`
}
func (*RelationSelector_Wildcard) MarshalTo ¶
func (m *RelationSelector_Wildcard) MarshalTo(dAtA []byte) (int, error)
func (*RelationSelector_Wildcard) MarshalToSizedBuffer ¶
func (m *RelationSelector_Wildcard) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationSelector_Wildcard) Size ¶
func (m *RelationSelector_Wildcard) Size() (n int)
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"` }
func (*RelationShort) Descriptor ¶
func (*RelationShort) Descriptor() ([]byte, []int)
func (*RelationShort) GetDoc ¶
func (m *RelationShort) GetDoc() string
func (*RelationShort) GetManages ¶
func (m *RelationShort) GetManages() []string
func (*RelationShort) GetTypes ¶
func (m *RelationShort) GetTypes() []string
func (*RelationShort) Marshal ¶
func (m *RelationShort) Marshal() (dAtA []byte, err error)
func (*RelationShort) MarshalToSizedBuffer ¶
func (m *RelationShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationShort) ProtoMessage ¶
func (*RelationShort) ProtoMessage()
func (*RelationShort) Reset ¶
func (m *RelationShort) Reset()
func (*RelationShort) Size ¶
func (m *RelationShort) Size() (n int)
func (*RelationShort) String ¶
func (m *RelationShort) String() string
func (*RelationShort) Unmarshal ¶
func (m *RelationShort) Unmarshal(dAtA []byte) error
func (*RelationShort) XXX_DiscardUnknown ¶
func (m *RelationShort) XXX_DiscardUnknown()
func (*RelationShort) XXX_Marshal ¶
func (m *RelationShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelationShort) XXX_Merge ¶
func (m *RelationShort) XXX_Merge(src proto.Message)
func (*RelationShort) XXX_Size ¶
func (m *RelationShort) XXX_Size() int
func (*RelationShort) XXX_Unmarshal ¶
func (m *RelationShort) XXX_Unmarshal(b []byte) error
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"` }
Relationship models an access control rule. It states that the given subject has relation with object.
func NewActorRelationship ¶
func NewActorRelationship(resource, objId, relation, actor string) *Relationship
func NewActorSetRelationship ¶
func NewActorSetRelationship(resource, objId, relation, subjResource, subjId, subjRel string) *Relationship
func NewAllActorsRelationship ¶
func NewAllActorsRelationship(resource, objId, relation string) *Relationship
func NewRelationship ¶
func NewRelationship(resource, objId, relation, subjResource, subjId string) *Relationship
func (*Relationship) Descriptor ¶
func (*Relationship) Descriptor() ([]byte, []int)
func (*Relationship) GetObject ¶
func (m *Relationship) GetObject() *Object
func (*Relationship) GetRelation ¶
func (m *Relationship) GetRelation() string
func (*Relationship) GetSubject ¶
func (m *Relationship) GetSubject() *Subject
func (*Relationship) Marshal ¶
func (m *Relationship) Marshal() (dAtA []byte, err error)
func (*Relationship) MarshalToSizedBuffer ¶
func (m *Relationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Relationship) ProtoMessage ¶
func (*Relationship) ProtoMessage()
func (*Relationship) Reset ¶
func (m *Relationship) Reset()
func (*Relationship) Size ¶
func (m *Relationship) Size() (n int)
func (*Relationship) String ¶
func (m *Relationship) String() string
func (*Relationship) Unmarshal ¶
func (m *Relationship) Unmarshal(dAtA []byte) error
func (*Relationship) XXX_DiscardUnknown ¶
func (m *Relationship) XXX_DiscardUnknown()
func (*Relationship) XXX_Marshal ¶
func (m *Relationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Relationship) XXX_Merge ¶
func (m *Relationship) XXX_Merge(src proto.Message)
func (*Relationship) XXX_Size ¶
func (m *Relationship) XXX_Size() int
func (*Relationship) XXX_Unmarshal ¶
func (m *Relationship) XXX_Unmarshal(b []byte) error
type RelationshipRecord ¶
type RelationshipRecord struct { CreationTime *types.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"` }
RelationshipRecord represents a document contained a Relationship and additional data.
func (*RelationshipRecord) Descriptor ¶
func (*RelationshipRecord) Descriptor() ([]byte, []int)
func (*RelationshipRecord) GetArchived ¶
func (m *RelationshipRecord) GetArchived() bool
func (*RelationshipRecord) GetCreationTime ¶
func (m *RelationshipRecord) GetCreationTime() *types.Timestamp
func (*RelationshipRecord) GetCreator ¶
func (m *RelationshipRecord) GetCreator() string
func (*RelationshipRecord) GetPolicyId ¶
func (m *RelationshipRecord) GetPolicyId() string
func (*RelationshipRecord) GetRelationship ¶
func (m *RelationshipRecord) GetRelationship() *Relationship
func (*RelationshipRecord) Marshal ¶
func (m *RelationshipRecord) Marshal() (dAtA []byte, err error)
func (*RelationshipRecord) MarshalTo ¶
func (m *RelationshipRecord) MarshalTo(dAtA []byte) (int, error)
func (*RelationshipRecord) MarshalToSizedBuffer ¶
func (m *RelationshipRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationshipRecord) ProtoMessage ¶
func (*RelationshipRecord) ProtoMessage()
func (*RelationshipRecord) Reset ¶
func (m *RelationshipRecord) Reset()
func (*RelationshipRecord) Size ¶
func (m *RelationshipRecord) Size() (n int)
func (*RelationshipRecord) String ¶
func (m *RelationshipRecord) String() string
func (*RelationshipRecord) Unmarshal ¶
func (m *RelationshipRecord) Unmarshal(dAtA []byte) error
func (*RelationshipRecord) XXX_DiscardUnknown ¶
func (m *RelationshipRecord) XXX_DiscardUnknown()
func (*RelationshipRecord) XXX_Marshal ¶
func (m *RelationshipRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelationshipRecord) XXX_Merge ¶
func (m *RelationshipRecord) XXX_Merge(src proto.Message)
func (*RelationshipRecord) XXX_Size ¶
func (m *RelationshipRecord) XXX_Size() int
func (*RelationshipRecord) XXX_Unmarshal ¶
func (m *RelationshipRecord) XXX_Unmarshal(b []byte) error
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"` }
RelationshipSelector models a set of predicates which are used to filter through Relationships in a Policy.
func (*RelationshipSelector) Descriptor ¶
func (*RelationshipSelector) Descriptor() ([]byte, []int)
func (*RelationshipSelector) GetObjectSelector ¶
func (m *RelationshipSelector) GetObjectSelector() *ObjectSelector
func (*RelationshipSelector) GetRelationSelector ¶
func (m *RelationshipSelector) GetRelationSelector() *RelationSelector
func (*RelationshipSelector) GetSubjectSelector ¶
func (m *RelationshipSelector) GetSubjectSelector() *SubjectSelector
func (*RelationshipSelector) Marshal ¶
func (m *RelationshipSelector) Marshal() (dAtA []byte, err error)
func (*RelationshipSelector) MarshalTo ¶
func (m *RelationshipSelector) MarshalTo(dAtA []byte) (int, error)
func (*RelationshipSelector) MarshalToSizedBuffer ¶
func (m *RelationshipSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RelationshipSelector) ProtoMessage ¶
func (*RelationshipSelector) ProtoMessage()
func (*RelationshipSelector) Reset ¶
func (m *RelationshipSelector) Reset()
func (*RelationshipSelector) Size ¶
func (m *RelationshipSelector) Size() (n int)
func (*RelationshipSelector) String ¶
func (m *RelationshipSelector) String() string
func (*RelationshipSelector) Unmarshal ¶
func (m *RelationshipSelector) Unmarshal(dAtA []byte) error
func (*RelationshipSelector) XXX_DiscardUnknown ¶
func (m *RelationshipSelector) XXX_DiscardUnknown()
func (*RelationshipSelector) XXX_Marshal ¶
func (m *RelationshipSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelationshipSelector) XXX_Merge ¶
func (m *RelationshipSelector) XXX_Merge(src proto.Message)
func (*RelationshipSelector) XXX_Size ¶
func (m *RelationshipSelector) XXX_Size() int
func (*RelationshipSelector) XXX_Unmarshal ¶
func (m *RelationshipSelector) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*Resource) GetPermissions ¶
func (m *Resource) GetPermissions() []*Permission
func (*Resource) GetRelations ¶
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
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 */ }
func (*ResourceShort) Descriptor ¶
func (*ResourceShort) Descriptor() ([]byte, []int)
func (*ResourceShort) GetDoc ¶
func (m *ResourceShort) GetDoc() string
func (*ResourceShort) GetPermissions ¶
func (m *ResourceShort) GetPermissions() map[string]*PermissionShort
func (*ResourceShort) GetRelations ¶
func (m *ResourceShort) GetRelations() map[string]*RelationShort
func (*ResourceShort) Marshal ¶
func (m *ResourceShort) Marshal() (dAtA []byte, err error)
func (*ResourceShort) MarshalToSizedBuffer ¶
func (m *ResourceShort) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceShort) ProtoMessage ¶
func (*ResourceShort) ProtoMessage()
func (*ResourceShort) Reset ¶
func (m *ResourceShort) Reset()
func (*ResourceShort) Size ¶
func (m *ResourceShort) Size() (n int)
func (*ResourceShort) String ¶
func (m *ResourceShort) String() string
func (*ResourceShort) Unmarshal ¶
func (m *ResourceShort) Unmarshal(dAtA []byte) error
func (*ResourceShort) XXX_DiscardUnknown ¶
func (m *ResourceShort) XXX_DiscardUnknown()
func (*ResourceShort) XXX_Marshal ¶
func (m *ResourceShort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceShort) XXX_Merge ¶
func (m *ResourceShort) XXX_Merge(src proto.Message)
func (*ResourceShort) XXX_Size ¶
func (m *ResourceShort) XXX_Size() int
func (*ResourceShort) XXX_Unmarshal ¶
func (m *ResourceShort) XXX_Unmarshal(b []byte) error
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"` }
Restriction models a specification which a Relationship's actor should meet.
func (*Restriction) Descriptor ¶
func (*Restriction) Descriptor() ([]byte, []int)
func (*Restriction) GetRelationName ¶
func (m *Restriction) GetRelationName() string
func (*Restriction) GetResourceName ¶
func (m *Restriction) GetResourceName() string
func (*Restriction) Marshal ¶
func (m *Restriction) Marshal() (dAtA []byte, err error)
func (*Restriction) MarshalToSizedBuffer ¶
func (m *Restriction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Restriction) ProtoMessage ¶
func (*Restriction) ProtoMessage()
func (*Restriction) Reset ¶
func (m *Restriction) Reset()
func (*Restriction) Size ¶
func (m *Restriction) Size() (n int)
func (*Restriction) String ¶
func (m *Restriction) String() string
func (*Restriction) Unmarshal ¶
func (m *Restriction) Unmarshal(dAtA []byte) error
func (*Restriction) XXX_DiscardUnknown ¶
func (m *Restriction) XXX_DiscardUnknown()
func (*Restriction) XXX_Marshal ¶
func (m *Restriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Restriction) XXX_Merge ¶
func (m *Restriction) XXX_Merge(src proto.Message)
func (*Restriction) XXX_Size ¶
func (m *Restriction) XXX_Size() int
func (*Restriction) XXX_Unmarshal ¶
func (m *Restriction) XXX_Unmarshal(b []byte) error
type Subject ¶
type Subject struct { // Types that are valid to be assigned to Subject: // // *Subject_Actor // *Subject_ActorSet // *Subject_AllActors // *Subject_Object Subject isSubject_Subject `protobuf_oneof:"subject"` }
Subject specifies the target of a Relationship.
func (*Subject) Descriptor ¶
func (*Subject) GetActorSet ¶
func (*Subject) GetAllActors ¶
func (*Subject) GetSubject ¶
func (m *Subject) GetSubject() isSubject_Subject
func (*Subject) MarshalToSizedBuffer ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) XXX_DiscardUnknown ¶
func (m *Subject) XXX_DiscardUnknown()
func (*Subject) XXX_Marshal ¶
func (*Subject) XXX_OneofWrappers ¶
func (*Subject) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Subject) XXX_Unmarshal ¶
type SubjectSelector ¶
type SubjectSelector struct { // Types that are valid to be assigned to Selector: // *SubjectSelector_Subject // *SubjectSelector_Wildcard Selector isSubjectSelector_Selector `protobuf_oneof:"selector"` }
SubjectSelector models a filter for Relationship Subjects
func (*SubjectSelector) Descriptor ¶
func (*SubjectSelector) Descriptor() ([]byte, []int)
func (*SubjectSelector) GetSelector ¶
func (m *SubjectSelector) GetSelector() isSubjectSelector_Selector
func (*SubjectSelector) GetSubject ¶
func (m *SubjectSelector) GetSubject() *Subject
func (*SubjectSelector) GetWildcard ¶
func (m *SubjectSelector) GetWildcard() *WildcardSelector
func (*SubjectSelector) Marshal ¶
func (m *SubjectSelector) Marshal() (dAtA []byte, err error)
func (*SubjectSelector) MarshalToSizedBuffer ¶
func (m *SubjectSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubjectSelector) ProtoMessage ¶
func (*SubjectSelector) ProtoMessage()
func (*SubjectSelector) Reset ¶
func (m *SubjectSelector) Reset()
func (*SubjectSelector) Size ¶
func (m *SubjectSelector) Size() (n int)
func (*SubjectSelector) String ¶
func (m *SubjectSelector) String() string
func (*SubjectSelector) Unmarshal ¶
func (m *SubjectSelector) Unmarshal(dAtA []byte) error
func (*SubjectSelector) XXX_DiscardUnknown ¶
func (m *SubjectSelector) XXX_DiscardUnknown()
func (*SubjectSelector) XXX_Marshal ¶
func (m *SubjectSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubjectSelector) XXX_Merge ¶
func (m *SubjectSelector) XXX_Merge(src proto.Message)
func (*SubjectSelector) XXX_OneofWrappers ¶
func (*SubjectSelector) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*SubjectSelector) XXX_Size ¶
func (m *SubjectSelector) XXX_Size() int
func (*SubjectSelector) XXX_Unmarshal ¶
func (m *SubjectSelector) XXX_Unmarshal(b []byte) error
type SubjectSelector_Subject ¶
type SubjectSelector_Subject struct {
Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
}
func (*SubjectSelector_Subject) MarshalTo ¶
func (m *SubjectSelector_Subject) MarshalTo(dAtA []byte) (int, error)
func (*SubjectSelector_Subject) MarshalToSizedBuffer ¶
func (m *SubjectSelector_Subject) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubjectSelector_Subject) Size ¶
func (m *SubjectSelector_Subject) Size() (n int)
type SubjectSelector_Wildcard ¶
type SubjectSelector_Wildcard struct {
Wildcard *WildcardSelector `protobuf:"bytes,2,opt,name=wildcard,proto3,oneof" json:"wildcard,omitempty"`
}
func (*SubjectSelector_Wildcard) MarshalTo ¶
func (m *SubjectSelector_Wildcard) MarshalTo(dAtA []byte) (int, error)
func (*SubjectSelector_Wildcard) MarshalToSizedBuffer ¶
func (m *SubjectSelector_Wildcard) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubjectSelector_Wildcard) Size ¶
func (m *SubjectSelector_Wildcard) Size() (n int)
type Subject_Actor ¶
type Subject_Actor struct {
Actor *Actor `protobuf:"bytes,1,opt,name=actor,proto3,oneof" json:"actor,omitempty"`
}
func (*Subject_Actor) MarshalToSizedBuffer ¶
func (m *Subject_Actor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Subject_Actor) Size ¶
func (m *Subject_Actor) Size() (n int)
type Subject_ActorSet ¶
type Subject_ActorSet struct {
ActorSet *ActorSet `protobuf:"bytes,2,opt,name=actor_set,json=actorSet,proto3,oneof" json:"actor_set,omitempty"`
}
func (*Subject_ActorSet) MarshalToSizedBuffer ¶
func (m *Subject_ActorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Subject_ActorSet) Size ¶
func (m *Subject_ActorSet) Size() (n int)
type Subject_AllActors ¶
type Subject_AllActors struct {
AllActors *AllActors `protobuf:"bytes,3,opt,name=all_actors,json=allActors,proto3,oneof" json:"all_actors,omitempty"`
}
func (*Subject_AllActors) MarshalTo ¶
func (m *Subject_AllActors) MarshalTo(dAtA []byte) (int, error)
func (*Subject_AllActors) MarshalToSizedBuffer ¶
func (m *Subject_AllActors) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Subject_AllActors) Size ¶
func (m *Subject_AllActors) Size() (n int)
type Subject_Object ¶
type Subject_Object struct {
Object *Object `protobuf:"bytes,4,opt,name=object,proto3,oneof" json:"object,omitempty"`
}
func (*Subject_Object) MarshalToSizedBuffer ¶
func (m *Subject_Object) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Subject_Object) Size ¶
func (m *Subject_Object) Size() (n int)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CheckAccess ¶ added in v0.2.0
func (*UnimplementedMsgServer) CheckAccess(ctx context.Context, req *MsgCheckAccess) (*MsgCheckAccessResponse, error)
func (*UnimplementedMsgServer) CreatePolicy ¶
func (*UnimplementedMsgServer) CreatePolicy(ctx context.Context, req *MsgCreatePolicy) (*MsgCreatePolicyResponse, error)
func (*UnimplementedMsgServer) DeleteRelationship ¶
func (*UnimplementedMsgServer) DeleteRelationship(ctx context.Context, req *MsgDeleteRelationship) (*MsgDeleteRelationshipResponse, error)
func (*UnimplementedMsgServer) RegisterObject ¶
func (*UnimplementedMsgServer) RegisterObject(ctx context.Context, req *MsgRegisterObject) (*MsgRegisterObjectResponse, error)
func (*UnimplementedMsgServer) SetRelationship ¶
func (*UnimplementedMsgServer) SetRelationship(ctx context.Context, req *MsgSetRelationship) (*MsgSetRelationshipResponse, error)
func (*UnimplementedMsgServer) UnregisterObject ¶
func (*UnimplementedMsgServer) UnregisterObject(ctx context.Context, req *MsgUnregisterObject) (*MsgUnregisterObjectResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.2.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccessDecision ¶ added in v0.2.0
func (*UnimplementedQueryServer) AccessDecision(ctx context.Context, req *QueryAccessDecisionRequest) (*QueryAccessDecisionResponse, error)
func (*UnimplementedQueryServer) FilterRelationships ¶ added in v0.2.0
func (*UnimplementedQueryServer) FilterRelationships(ctx context.Context, req *QueryFilterRelationshipsRequest) (*QueryFilterRelationshipsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Policy ¶ added in v0.2.0
func (*UnimplementedQueryServer) Policy(ctx context.Context, req *QueryPolicyRequest) (*QueryPolicyResponse, error)
func (*UnimplementedQueryServer) PolicyIds ¶ added in v0.2.0
func (*UnimplementedQueryServer) PolicyIds(ctx context.Context, req *QueryPolicyIdsRequest) (*QueryPolicyIdsResponse, error)
func (*UnimplementedQueryServer) ValidatePolicy ¶ added in v0.2.0
func (*UnimplementedQueryServer) ValidatePolicy(ctx context.Context, req *QueryValidatePolicyRequest) (*QueryValidatePolicyResponse, error)
func (*UnimplementedQueryServer) VerifyAccessRequest ¶ added in v0.2.0
func (*UnimplementedQueryServer) VerifyAccessRequest(ctx context.Context, req *QueryVerifyAccessRequestRequest) (*QueryVerifyAccessRequestResponse, error)
type WildcardSelector ¶
type WildcardSelector struct { }
WildcardSelector matches anything in a context
func (*WildcardSelector) Descriptor ¶
func (*WildcardSelector) Descriptor() ([]byte, []int)
func (*WildcardSelector) Marshal ¶
func (m *WildcardSelector) Marshal() (dAtA []byte, err error)
func (*WildcardSelector) MarshalToSizedBuffer ¶
func (m *WildcardSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WildcardSelector) ProtoMessage ¶
func (*WildcardSelector) ProtoMessage()
func (*WildcardSelector) Reset ¶
func (m *WildcardSelector) Reset()
func (*WildcardSelector) Size ¶
func (m *WildcardSelector) Size() (n int)
func (*WildcardSelector) String ¶
func (m *WildcardSelector) String() string
func (*WildcardSelector) Unmarshal ¶
func (m *WildcardSelector) Unmarshal(dAtA []byte) error
func (*WildcardSelector) XXX_DiscardUnknown ¶
func (m *WildcardSelector) XXX_DiscardUnknown()
func (*WildcardSelector) XXX_Marshal ¶
func (m *WildcardSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WildcardSelector) XXX_Merge ¶
func (m *WildcardSelector) XXX_Merge(src proto.Message)
func (*WildcardSelector) XXX_Size ¶
func (m *WildcardSelector) XXX_Size() int
func (*WildcardSelector) XXX_Unmarshal ¶
func (m *WildcardSelector) XXX_Unmarshal(b []byte) error
Source Files ¶
- access_decision.go
- access_decision.pb.go
- access_ticket.go
- access_ticket.pb.go
- codec.go
- errors.go
- event.pb.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- management_graph.go
- message_check_access.go
- message_create_policy.go
- message_delete_relationship.go
- message_register_object.go
- message_set_relationship.go
- message_unregister_object.go
- msg_update_params.go
- params.go
- params.pb.go
- policy.go
- policy.pb.go
- policy_definition.pb.go
- policy_record.pb.go
- policy_short.pb.go
- query.pb.go
- query.pb.gw.go
- relationship.go
- relationship.pb.go
- relationship_selector.pb.go
- tx.pb.go
- types.go