types

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
const (
	AccessTicketV1 string = "v1"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const ManagementPermissionPrefix string = "_can_manage_"

Variables

View Source
var (
	ErrInvalidLengthAccessDecision        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccessDecision          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccessDecision = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAccessTicket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccessTicket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccessTicket = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicyDefinition        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicyDefinition          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicyDefinition = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicyRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicyRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicyRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicyShort        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicyShort          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicyShort = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRelationship        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRelationship          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRelationship = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRelationshipSelector        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRelationshipSelector          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRelationshipSelector = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey = []byte("p_acp")
)
View Source
var PolicyMarshalingType_name = map[int32]string{
	0: "UNKNOWN",
	1: "SHORT_YAML",
	2: "SHORT_JSON",
}
View Source
var PolicyMarshalingType_value = map[string]int32{
	"UNKNOWN":    0,
	"SHORT_YAML": 1,
	"SHORT_JSON": 2,
}
View Source
var RegistrationResult_name = map[int32]string{
	0: "NoOp",
	1: "Registered",
	2: "Unarchived",
}
View Source
var RegistrationResult_value = map[string]int32{
	"NoOp":       0,
	"Registered": 1,
	"Unarchived": 2,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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) Descriptor() ([]byte, []int)

func (*Actor) GetId

func (m *Actor) GetId() string

func (*Actor) Marshal

func (m *Actor) Marshal() (dAtA []byte, err error)

func (*Actor) MarshalTo

func (m *Actor) MarshalTo(dAtA []byte) (int, error)

func (*Actor) MarshalToSizedBuffer

func (m *Actor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) Reset

func (m *Actor) Reset()

func (*Actor) Size

func (m *Actor) Size() (n int)

func (*Actor) String

func (m *Actor) String() string

func (*Actor) Unmarshal

func (m *Actor) Unmarshal(dAtA []byte) error

func (*Actor) XXX_DiscardUnknown

func (m *Actor) XXX_DiscardUnknown()

func (*Actor) XXX_Marshal

func (m *Actor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Actor) XXX_Merge

func (m *Actor) XXX_Merge(src proto.Message)

func (*Actor) XXX_Size

func (m *Actor) XXX_Size() int

func (*Actor) XXX_Unmarshal

func (m *Actor) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *ActorResource) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*ActorSet) GetObject

func (m *ActorSet) GetObject() *Object

func (*ActorSet) GetRelation

func (m *ActorSet) GetRelation() string

func (*ActorSet) Marshal

func (m *ActorSet) Marshal() (dAtA []byte, err error)

func (*ActorSet) MarshalTo

func (m *ActorSet) MarshalTo(dAtA []byte) (int, error)

func (*ActorSet) MarshalToSizedBuffer

func (m *ActorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ActorSet) ProtoMessage

func (*ActorSet) ProtoMessage()

func (*ActorSet) Reset

func (m *ActorSet) Reset()

func (*ActorSet) Size

func (m *ActorSet) Size() (n int)

func (*ActorSet) String

func (m *ActorSet) String() string

func (*ActorSet) Unmarshal

func (m *ActorSet) Unmarshal(dAtA []byte) error

func (*ActorSet) XXX_DiscardUnknown

func (m *ActorSet) XXX_DiscardUnknown()

func (*ActorSet) XXX_Marshal

func (m *ActorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActorSet) XXX_Merge

func (m *ActorSet) XXX_Merge(src proto.Message)

func (*ActorSet) XXX_Size

func (m *ActorSet) XXX_Size() int

func (*ActorSet) XXX_Unmarshal

func (m *ActorSet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*AllActors) Marshal

func (m *AllActors) Marshal() (dAtA []byte, err error)

func (*AllActors) MarshalTo

func (m *AllActors) MarshalTo(dAtA []byte) (int, error)

func (*AllActors) MarshalToSizedBuffer

func (m *AllActors) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllActors) ProtoMessage

func (*AllActors) ProtoMessage()

func (*AllActors) Reset

func (m *AllActors) Reset()

func (*AllActors) Size

func (m *AllActors) Size() (n int)

func (*AllActors) String

func (m *AllActors) String() string

func (*AllActors) Unmarshal

func (m *AllActors) Unmarshal(dAtA []byte) error

func (*AllActors) XXX_DiscardUnknown

func (m *AllActors) XXX_DiscardUnknown()

func (*AllActors) XXX_Marshal

func (m *AllActors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllActors) XXX_Merge

func (m *AllActors) XXX_Merge(src proto.Message)

func (*AllActors) XXX_Size

func (m *AllActors) XXX_Size() int

func (*AllActors) XXX_Unmarshal

func (m *AllActors) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
}

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ManagementGraph) MarshalTo(dAtA []byte) (int, 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

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

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) MarshalTo

func (m *ManagerEdges) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ManagerNode) MarshalTo(dAtA []byte) (int, 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 (*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) MarshalTo

func (m *MsgCreatePolicy) MarshalTo(dAtA []byte) (int, 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 (*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 (*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 NewObject added in v0.2.0

func NewObject(resource, id string) *Object

func (*Object) Descriptor

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

func (*Object) GetId

func (m *Object) GetId() string

func (*Object) GetResource

func (m *Object) GetResource() string

func (*Object) Marshal

func (m *Object) Marshal() (dAtA []byte, err error)

func (*Object) MarshalTo

func (m *Object) MarshalTo(dAtA []byte) (int, error)

func (*Object) MarshalToSizedBuffer

func (m *Object) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) Size

func (m *Object) Size() (n int)

func (*Object) String

func (m *Object) String() string

func (*Object) Unmarshal

func (m *Object) Unmarshal(dAtA []byte) error

func (*Object) XXX_DiscardUnknown

func (m *Object) XXX_DiscardUnknown()

func (*Object) XXX_Marshal

func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Object) XXX_Merge

func (m *Object) XXX_Merge(src proto.Message)

func (*Object) XXX_Size

func (m *Object) XXX_Size() int

func (*Object) XXX_Unmarshal

func (m *Object) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *ObjectSelector) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Operation) GetObject added in v0.2.0

func (m *Operation) GetObject() *Object

func (*Operation) GetPermission added in v0.2.0

func (m *Operation) GetPermission() string

func (*Operation) Marshal added in v0.2.0

func (m *Operation) Marshal() (dAtA []byte, err error)

func (*Operation) MarshalTo added in v0.2.0

func (m *Operation) MarshalTo(dAtA []byte) (int, error)

func (*Operation) MarshalToSizedBuffer added in v0.2.0

func (m *Operation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Operation) ProtoMessage added in v0.2.0

func (*Operation) ProtoMessage()

func (*Operation) Reset added in v0.2.0

func (m *Operation) Reset()

func (*Operation) Size added in v0.2.0

func (m *Operation) Size() (n int)

func (*Operation) String added in v0.2.0

func (m *Operation) String() string

func (*Operation) Unmarshal added in v0.2.0

func (m *Operation) Unmarshal(dAtA []byte) error

func (*Operation) XXX_DiscardUnknown added in v0.2.0

func (m *Operation) XXX_DiscardUnknown()

func (*Operation) XXX_Marshal added in v0.2.0

func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Operation) XXX_Merge added in v0.2.0

func (m *Operation) XXX_Merge(src proto.Message)

func (*Operation) XXX_Size added in v0.2.0

func (m *Operation) XXX_Size() int

func (*Operation) XXX_Unmarshal added in v0.2.0

func (m *Operation) XXX_Unmarshal(b []byte) error

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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal added in v0.2.0

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *Permission) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PermissionShort) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Policy) GetActorResource

func (m *Policy) GetActorResource() *ActorResource

func (*Policy) GetAttributes

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

func (*Policy) GetCreationTime

func (m *Policy) GetCreationTime() *types.Timestamp

func (*Policy) GetCreator

func (m *Policy) GetCreator() string

func (*Policy) GetDescription

func (m *Policy) GetDescription() string

func (*Policy) GetId

func (m *Policy) GetId() string

func (*Policy) GetManagementPermissionName

func (pol *Policy) GetManagementPermissionName(relation string) string

GetManagementPermissionName returns the name of the Management Permission built for the given Relation

func (*Policy) GetName

func (m *Policy) GetName() string

func (*Policy) GetResources

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

func (*Policy) Marshal

func (m *Policy) Marshal() (dAtA []byte, err error)

func (*Policy) MarshalTo

func (m *Policy) MarshalTo(dAtA []byte) (int, error)

func (*Policy) MarshalToSizedBuffer

func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

func (m *Policy) Size() (n int)

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) String

func (m *Policy) String() string

func (*Policy) Unmarshal

func (m *Policy) Unmarshal(dAtA []byte) error

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Policy) XXX_Merge

func (m *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

func (m *Policy) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *PolicyRecord) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *PolicyShort) MarshalTo(dAtA []byte) (int, 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 (*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 (*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 (*QueryFilterRelationshipsRequest) Size added in v0.2.0

func (m *QueryFilterRelationshipsRequest) Size() (n int)

func (*QueryFilterRelationshipsRequest) String added in v0.2.0

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 (*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 (*QueryFilterRelationshipsResponse) Size added in v0.2.0

func (m *QueryFilterRelationshipsResponse) Size() (n int)

func (*QueryFilterRelationshipsResponse) String added in v0.2.0

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 (*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 (*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 (*QueryVerifyAccessRequestRequest) Size added in v0.2.0

func (m *QueryVerifyAccessRequestRequest) Size() (n int)

func (*QueryVerifyAccessRequestRequest) String added in v0.2.0

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 (*QueryVerifyAccessRequestResponse) Size added in v0.2.0

func (m *QueryVerifyAccessRequestResponse) Size() (n int)

func (*QueryVerifyAccessRequestResponse) String added in v0.2.0

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 (*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) MarshalTo

func (m *Registration) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Relation) GetDoc

func (m *Relation) GetDoc() string

func (*Relation) GetManages

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

func (*Relation) GetName

func (m *Relation) GetName() string

func (*Relation) GetVrTypes

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

func (*Relation) Marshal

func (m *Relation) Marshal() (dAtA []byte, err error)

func (*Relation) MarshalTo

func (m *Relation) MarshalTo(dAtA []byte) (int, error)

func (*Relation) MarshalToSizedBuffer

func (m *Relation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) Reset

func (m *Relation) Reset()

func (*Relation) Size

func (m *Relation) Size() (n int)

func (*Relation) String

func (m *Relation) String() string

func (*Relation) Unmarshal

func (m *Relation) Unmarshal(dAtA []byte) error

func (*Relation) XXX_DiscardUnknown

func (m *Relation) XXX_DiscardUnknown()

func (*Relation) XXX_Marshal

func (m *Relation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Relation) XXX_Merge

func (m *Relation) XXX_Merge(src proto.Message)

func (*Relation) XXX_Size

func (m *Relation) XXX_Size() int

func (*Relation) XXX_Unmarshal

func (m *Relation) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *RelationSelector) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *RelationShort) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Relationship) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Resource) GetDoc

func (m *Resource) GetDoc() string

func (*Resource) GetName

func (m *Resource) GetName() string

func (*Resource) GetPermissions

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

func (*Resource) GetRelations

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

func (*Resource) Marshal

func (m *Resource) Marshal() (dAtA []byte, err error)

func (*Resource) MarshalTo

func (m *Resource) MarshalTo(dAtA []byte) (int, error)

func (*Resource) MarshalToSizedBuffer

func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) Size

func (m *Resource) Size() (n int)

func (*Resource) String

func (m *Resource) String() string

func (*Resource) Unmarshal

func (m *Resource) Unmarshal(dAtA []byte) error

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resource) XXX_Merge

func (m *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

func (m *Resource) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *ResourceShort) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Restriction) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Subject) GetActor

func (m *Subject) GetActor() *Actor

func (*Subject) GetActorSet

func (m *Subject) GetActorSet() *ActorSet

func (*Subject) GetAllActors

func (m *Subject) GetAllActors() *AllActors

func (*Subject) GetObject

func (m *Subject) GetObject() *Object

func (*Subject) GetSubject

func (m *Subject) GetSubject() isSubject_Subject

func (*Subject) Marshal

func (m *Subject) Marshal() (dAtA []byte, err error)

func (*Subject) MarshalTo

func (m *Subject) MarshalTo(dAtA []byte) (int, error)

func (*Subject) MarshalToSizedBuffer

func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) Reset

func (m *Subject) Reset()

func (*Subject) Size

func (m *Subject) Size() (n int)

func (*Subject) String

func (m *Subject) String() string

func (*Subject) Unmarshal

func (m *Subject) Unmarshal(dAtA []byte) error

func (*Subject) XXX_DiscardUnknown

func (m *Subject) XXX_DiscardUnknown()

func (*Subject) XXX_Marshal

func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Subject) XXX_Merge

func (m *Subject) XXX_Merge(src proto.Message)

func (*Subject) XXX_OneofWrappers

func (*Subject) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Subject) XXX_Size

func (m *Subject) XXX_Size() int

func (*Subject) XXX_Unmarshal

func (m *Subject) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *SubjectSelector) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *Subject_Actor) MarshalTo(dAtA []byte) (int, error)

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) MarshalTo

func (m *Subject_ActorSet) MarshalTo(dAtA []byte) (int, error)

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) MarshalTo

func (m *Subject_Object) MarshalTo(dAtA []byte) (int, error)

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) CreatePolicy

func (*UnimplementedMsgServer) DeleteRelationship

func (*UnimplementedMsgServer) RegisterObject

func (*UnimplementedMsgServer) SetRelationship

func (*UnimplementedMsgServer) UnregisterObject

func (*UnimplementedMsgServer) UpdateParams added in v0.2.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccessDecision added in v0.2.0

func (*UnimplementedQueryServer) FilterRelationships added in v0.2.0

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Policy added in v0.2.0

func (*UnimplementedQueryServer) PolicyIds added in v0.2.0

func (*UnimplementedQueryServer) ValidatePolicy added in v0.2.0

func (*UnimplementedQueryServer) VerifyAccessRequest added in v0.2.0

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) MarshalTo

func (m *WildcardSelector) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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