policyd

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPolicydServiceServer

func RegisterPolicydServiceServer(s *grpc.Server, srv PolicydServiceServer)

Types

type Array2DReply

type Array2DReply struct {
	D2                   []*Array2DReplyD `protobuf:"bytes,1,rep,name=d2,proto3" json:"d2,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Array2DReply) Descriptor

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

func (*Array2DReply) GetD2

func (m *Array2DReply) GetD2() []*Array2DReplyD

func (*Array2DReply) ProtoMessage

func (*Array2DReply) ProtoMessage()

func (*Array2DReply) Reset

func (m *Array2DReply) Reset()

func (*Array2DReply) String

func (m *Array2DReply) String() string

func (*Array2DReply) Validate

func (this *Array2DReply) Validate() error

func (*Array2DReply) XXX_DiscardUnknown

func (m *Array2DReply) XXX_DiscardUnknown()

func (*Array2DReply) XXX_Marshal

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

func (*Array2DReply) XXX_Merge

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

func (*Array2DReply) XXX_Size

func (m *Array2DReply) XXX_Size() int

func (*Array2DReply) XXX_Unmarshal

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

type Array2DReplyD

type Array2DReplyD struct {
	D1                   []string `protobuf:"bytes,1,rep,name=d1,proto3" json:"d1,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Array2DReplyD) Descriptor

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

func (*Array2DReplyD) GetD1

func (m *Array2DReplyD) GetD1() []string

func (*Array2DReplyD) ProtoMessage

func (*Array2DReplyD) ProtoMessage()

func (*Array2DReplyD) Reset

func (m *Array2DReplyD) Reset()

func (*Array2DReplyD) String

func (m *Array2DReplyD) String() string

func (*Array2DReplyD) Validate

func (this *Array2DReplyD) Validate() error

func (*Array2DReplyD) XXX_DiscardUnknown

func (m *Array2DReplyD) XXX_DiscardUnknown()

func (*Array2DReplyD) XXX_Marshal

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

func (*Array2DReplyD) XXX_Merge

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

func (*Array2DReplyD) XXX_Size

func (m *Array2DReplyD) XXX_Size() int

func (*Array2DReplyD) XXX_Unmarshal

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

type ArrayReply

type ArrayReply struct {
	Array                []string `protobuf:"bytes,1,rep,name=array,proto3" json:"array,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ArrayReply) Descriptor

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

func (*ArrayReply) GetArray

func (m *ArrayReply) GetArray() []string

func (*ArrayReply) ProtoMessage

func (*ArrayReply) ProtoMessage()

func (*ArrayReply) Reset

func (m *ArrayReply) Reset()

func (*ArrayReply) String

func (m *ArrayReply) String() string

func (*ArrayReply) Validate

func (this *ArrayReply) Validate() error

func (*ArrayReply) XXX_DiscardUnknown

func (m *ArrayReply) XXX_DiscardUnknown()

func (*ArrayReply) XXX_Marshal

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

func (*ArrayReply) XXX_Merge

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

func (*ArrayReply) XXX_Size

func (m *ArrayReply) XXX_Size() int

func (*ArrayReply) XXX_Unmarshal

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

type BoolReply

type BoolReply struct {
	Res                  bool     `protobuf:"varint,1,opt,name=res,proto3" json:"res,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BoolReply) Descriptor

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

func (*BoolReply) GetRes

func (m *BoolReply) GetRes() bool

func (*BoolReply) ProtoMessage

func (*BoolReply) ProtoMessage()

func (*BoolReply) Reset

func (m *BoolReply) Reset()

func (*BoolReply) String

func (m *BoolReply) String() string

func (*BoolReply) Validate

func (this *BoolReply) Validate() error

func (*BoolReply) XXX_DiscardUnknown

func (m *BoolReply) XXX_DiscardUnknown()

func (*BoolReply) XXX_Marshal

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

func (*BoolReply) XXX_Merge

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

func (*BoolReply) XXX_Size

func (m *BoolReply) XXX_Size() int

func (*BoolReply) XXX_Unmarshal

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

type EmptyReply

type EmptyReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyReply) Descriptor

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

func (*EmptyReply) ProtoMessage

func (*EmptyReply) ProtoMessage()

func (*EmptyReply) Reset

func (m *EmptyReply) Reset()

func (*EmptyReply) String

func (m *EmptyReply) String() string

func (*EmptyReply) Validate

func (this *EmptyReply) Validate() error

func (*EmptyReply) XXX_DiscardUnknown

func (m *EmptyReply) XXX_DiscardUnknown()

func (*EmptyReply) XXX_Marshal

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

func (*EmptyReply) XXX_Merge

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

func (*EmptyReply) XXX_Size

func (m *EmptyReply) XXX_Size() int

func (*EmptyReply) XXX_Unmarshal

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

type EmptyRequest

type EmptyRequest struct {
	Handler              int32    `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyRequest) Descriptor

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

func (*EmptyRequest) GetHandler

func (m *EmptyRequest) GetHandler() int32

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) Reset

func (m *EmptyRequest) Reset()

func (*EmptyRequest) String

func (m *EmptyRequest) String() string

func (*EmptyRequest) Validate

func (this *EmptyRequest) Validate() error

func (*EmptyRequest) XXX_DiscardUnknown

func (m *EmptyRequest) XXX_DiscardUnknown()

func (*EmptyRequest) XXX_Marshal

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

func (*EmptyRequest) XXX_Merge

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

func (*EmptyRequest) XXX_Size

func (m *EmptyRequest) XXX_Size() int

func (*EmptyRequest) XXX_Unmarshal

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

type EnforceBucketRequest

type EnforceBucketRequest struct {
	Requests             []*EnforceRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*EnforceBucketRequest) Descriptor

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

func (*EnforceBucketRequest) GetRequests

func (m *EnforceBucketRequest) GetRequests() []*EnforceRequest

func (*EnforceBucketRequest) ProtoMessage

func (*EnforceBucketRequest) ProtoMessage()

func (*EnforceBucketRequest) Reset

func (m *EnforceBucketRequest) Reset()

func (*EnforceBucketRequest) String

func (m *EnforceBucketRequest) String() string

func (*EnforceBucketRequest) Validate

func (this *EnforceBucketRequest) Validate() error

func (*EnforceBucketRequest) XXX_DiscardUnknown

func (m *EnforceBucketRequest) XXX_DiscardUnknown()

func (*EnforceBucketRequest) XXX_Marshal

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

func (*EnforceBucketRequest) XXX_Merge

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

func (*EnforceBucketRequest) XXX_Size

func (m *EnforceBucketRequest) XXX_Size() int

func (*EnforceBucketRequest) XXX_Unmarshal

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

type EnforceRequest

type EnforceRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	Params               []string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EnforceRequest) Descriptor

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

func (*EnforceRequest) GetEnforcerHandler

func (m *EnforceRequest) GetEnforcerHandler() int32

func (*EnforceRequest) GetParams

func (m *EnforceRequest) GetParams() []string

func (*EnforceRequest) ProtoMessage

func (*EnforceRequest) ProtoMessage()

func (*EnforceRequest) Reset

func (m *EnforceRequest) Reset()

func (*EnforceRequest) String

func (m *EnforceRequest) String() string

func (*EnforceRequest) Validate

func (this *EnforceRequest) Validate() error

func (*EnforceRequest) XXX_DiscardUnknown

func (m *EnforceRequest) XXX_DiscardUnknown()

func (*EnforceRequest) XXX_Marshal

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

func (*EnforceRequest) XXX_Merge

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

func (*EnforceRequest) XXX_Size

func (m *EnforceRequest) XXX_Size() int

func (*EnforceRequest) XXX_Unmarshal

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

type FilteredPolicyRequest

type FilteredPolicyRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	PType                string   `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"`
	FieldIndex           int32    `protobuf:"varint,3,opt,name=fieldIndex,proto3" json:"fieldIndex,omitempty"`
	FieldValues          []string `protobuf:"bytes,4,rep,name=fieldValues,proto3" json:"fieldValues,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FilteredPolicyRequest) Descriptor

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

func (*FilteredPolicyRequest) GetEnforcerHandler

func (m *FilteredPolicyRequest) GetEnforcerHandler() int32

func (*FilteredPolicyRequest) GetFieldIndex

func (m *FilteredPolicyRequest) GetFieldIndex() int32

func (*FilteredPolicyRequest) GetFieldValues

func (m *FilteredPolicyRequest) GetFieldValues() []string

func (*FilteredPolicyRequest) GetPType

func (m *FilteredPolicyRequest) GetPType() string

func (*FilteredPolicyRequest) ProtoMessage

func (*FilteredPolicyRequest) ProtoMessage()

func (*FilteredPolicyRequest) Reset

func (m *FilteredPolicyRequest) Reset()

func (*FilteredPolicyRequest) String

func (m *FilteredPolicyRequest) String() string

func (*FilteredPolicyRequest) Validate

func (this *FilteredPolicyRequest) Validate() error

func (*FilteredPolicyRequest) XXX_DiscardUnknown

func (m *FilteredPolicyRequest) XXX_DiscardUnknown()

func (*FilteredPolicyRequest) XXX_Marshal

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

func (*FilteredPolicyRequest) XXX_Merge

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

func (*FilteredPolicyRequest) XXX_Size

func (m *FilteredPolicyRequest) XXX_Size() int

func (*FilteredPolicyRequest) XXX_Unmarshal

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

type NewAdapterReply

type NewAdapterReply struct {
	Handler              int32    `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAdapterReply) Descriptor

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

func (*NewAdapterReply) GetHandler

func (m *NewAdapterReply) GetHandler() int32

func (*NewAdapterReply) ProtoMessage

func (*NewAdapterReply) ProtoMessage()

func (*NewAdapterReply) Reset

func (m *NewAdapterReply) Reset()

func (*NewAdapterReply) String

func (m *NewAdapterReply) String() string

func (*NewAdapterReply) Validate

func (this *NewAdapterReply) Validate() error

func (*NewAdapterReply) XXX_DiscardUnknown

func (m *NewAdapterReply) XXX_DiscardUnknown()

func (*NewAdapterReply) XXX_Marshal

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

func (*NewAdapterReply) XXX_Merge

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

func (*NewAdapterReply) XXX_Size

func (m *NewAdapterReply) XXX_Size() int

func (*NewAdapterReply) XXX_Unmarshal

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

type NewAdapterRequest

type NewAdapterRequest struct {
	AdapterName          string   `protobuf:"bytes,1,opt,name=adapterName,proto3" json:"adapterName,omitempty"`
	DriverName           string   `protobuf:"bytes,2,opt,name=driverName,proto3" json:"driverName,omitempty"`
	ConnectString        string   `protobuf:"bytes,3,opt,name=connectString,proto3" json:"connectString,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewAdapterRequest) Descriptor

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

func (*NewAdapterRequest) GetAdapterName

func (m *NewAdapterRequest) GetAdapterName() string

func (*NewAdapterRequest) GetConnectString

func (m *NewAdapterRequest) GetConnectString() string

func (*NewAdapterRequest) GetDriverName

func (m *NewAdapterRequest) GetDriverName() string

func (*NewAdapterRequest) ProtoMessage

func (*NewAdapterRequest) ProtoMessage()

func (*NewAdapterRequest) Reset

func (m *NewAdapterRequest) Reset()

func (*NewAdapterRequest) String

func (m *NewAdapterRequest) String() string

func (*NewAdapterRequest) Validate

func (this *NewAdapterRequest) Validate() error

func (*NewAdapterRequest) XXX_DiscardUnknown

func (m *NewAdapterRequest) XXX_DiscardUnknown()

func (*NewAdapterRequest) XXX_Marshal

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

func (*NewAdapterRequest) XXX_Merge

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

func (*NewAdapterRequest) XXX_Size

func (m *NewAdapterRequest) XXX_Size() int

func (*NewAdapterRequest) XXX_Unmarshal

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

type NewEnforcerReply

type NewEnforcerReply struct {
	Handler              int32    `protobuf:"varint,1,opt,name=handler,proto3" json:"handler,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewEnforcerReply) Descriptor

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

func (*NewEnforcerReply) GetHandler

func (m *NewEnforcerReply) GetHandler() int32

func (*NewEnforcerReply) ProtoMessage

func (*NewEnforcerReply) ProtoMessage()

func (*NewEnforcerReply) Reset

func (m *NewEnforcerReply) Reset()

func (*NewEnforcerReply) String

func (m *NewEnforcerReply) String() string

func (*NewEnforcerReply) Validate

func (this *NewEnforcerReply) Validate() error

func (*NewEnforcerReply) XXX_DiscardUnknown

func (m *NewEnforcerReply) XXX_DiscardUnknown()

func (*NewEnforcerReply) XXX_Marshal

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

func (*NewEnforcerReply) XXX_Merge

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

func (*NewEnforcerReply) XXX_Size

func (m *NewEnforcerReply) XXX_Size() int

func (*NewEnforcerReply) XXX_Unmarshal

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

type NewEnforcerRequest

type NewEnforcerRequest struct {
	ModelText            string   `protobuf:"bytes,1,opt,name=modelText,proto3" json:"modelText,omitempty"`
	AdapterHandle        int32    `protobuf:"varint,2,opt,name=adapterHandle,proto3" json:"adapterHandle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NewEnforcerRequest) Descriptor

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

func (*NewEnforcerRequest) GetAdapterHandle

func (m *NewEnforcerRequest) GetAdapterHandle() int32

func (*NewEnforcerRequest) GetModelText

func (m *NewEnforcerRequest) GetModelText() string

func (*NewEnforcerRequest) ProtoMessage

func (*NewEnforcerRequest) ProtoMessage()

func (*NewEnforcerRequest) Reset

func (m *NewEnforcerRequest) Reset()

func (*NewEnforcerRequest) String

func (m *NewEnforcerRequest) String() string

func (*NewEnforcerRequest) Validate

func (this *NewEnforcerRequest) Validate() error

func (*NewEnforcerRequest) XXX_DiscardUnknown

func (m *NewEnforcerRequest) XXX_DiscardUnknown()

func (*NewEnforcerRequest) XXX_Marshal

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

func (*NewEnforcerRequest) XXX_Merge

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

func (*NewEnforcerRequest) XXX_Size

func (m *NewEnforcerRequest) XXX_Size() int

func (*NewEnforcerRequest) XXX_Unmarshal

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

type PermissionRequest

type PermissionRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Permissions          []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PermissionRequest) Descriptor

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

func (*PermissionRequest) GetEnforcerHandler

func (m *PermissionRequest) GetEnforcerHandler() int32

func (*PermissionRequest) GetPermissions

func (m *PermissionRequest) GetPermissions() []string

func (*PermissionRequest) GetUser

func (m *PermissionRequest) GetUser() string

func (*PermissionRequest) ProtoMessage

func (*PermissionRequest) ProtoMessage()

func (*PermissionRequest) Reset

func (m *PermissionRequest) Reset()

func (*PermissionRequest) String

func (m *PermissionRequest) String() string

func (*PermissionRequest) Validate

func (this *PermissionRequest) Validate() error

func (*PermissionRequest) XXX_DiscardUnknown

func (m *PermissionRequest) XXX_DiscardUnknown()

func (*PermissionRequest) XXX_Marshal

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

func (*PermissionRequest) XXX_Merge

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

func (*PermissionRequest) XXX_Size

func (m *PermissionRequest) XXX_Size() int

func (*PermissionRequest) XXX_Unmarshal

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

type PolicyRequest

type PolicyRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	PType                string   `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"`
	Params               []string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PolicyRequest) Descriptor

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

func (*PolicyRequest) GetEnforcerHandler

func (m *PolicyRequest) GetEnforcerHandler() int32

func (*PolicyRequest) GetPType

func (m *PolicyRequest) GetPType() string

func (*PolicyRequest) GetParams

func (m *PolicyRequest) GetParams() []string

func (*PolicyRequest) ProtoMessage

func (*PolicyRequest) ProtoMessage()

func (*PolicyRequest) Reset

func (m *PolicyRequest) Reset()

func (*PolicyRequest) String

func (m *PolicyRequest) String() string

func (*PolicyRequest) Validate

func (this *PolicyRequest) Validate() error

func (*PolicyRequest) XXX_DiscardUnknown

func (m *PolicyRequest) XXX_DiscardUnknown()

func (*PolicyRequest) XXX_Marshal

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

func (*PolicyRequest) XXX_Merge

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

func (*PolicyRequest) XXX_Size

func (m *PolicyRequest) XXX_Size() int

func (*PolicyRequest) XXX_Unmarshal

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

type PolicydServiceClient

type PolicydServiceClient interface {
	NewEnforcer(ctx context.Context, in *NewEnforcerRequest, opts ...grpc.CallOption) (*NewEnforcerReply, error)
	NewAdapter(ctx context.Context, in *NewAdapterRequest, opts ...grpc.CallOption) (*NewAdapterReply, error)
	Enforce(ctx context.Context, in *EnforceRequest, opts ...grpc.CallOption) (*BoolReply, error)
	EnforceBucket(ctx context.Context, in *EnforceBucketRequest, opts ...grpc.CallOption) (*BoolReply, error)
	LoadPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyReply, error)
	SavePolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyReply, error)
	AddPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	GetPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	AddGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	GetGroupingPolicy(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetAllSubjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllObjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllActions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllRoles(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedRoles(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	HasPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	AddPresetPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	RemovePresetPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*BoolReply, error)
	Initialize(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyReply, error)
}

PolicydServiceClient is the client API for PolicydService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPolicydServiceClient

func NewPolicydServiceClient(cc *grpc.ClientConn) PolicydServiceClient

type PolicydServiceServer

type PolicydServiceServer interface {
	NewEnforcer(context.Context, *NewEnforcerRequest) (*NewEnforcerReply, error)
	NewAdapter(context.Context, *NewAdapterRequest) (*NewAdapterReply, error)
	Enforce(context.Context, *EnforceRequest) (*BoolReply, error)
	EnforceBucket(context.Context, *EnforceBucketRequest) (*BoolReply, error)
	LoadPolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
	SavePolicy(context.Context, *EmptyRequest) (*EmptyReply, error)
	AddPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	AddNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemovePolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemoveNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
	RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
	GetPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
	GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
	GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	AddGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemoveGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
	RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*BoolReply, error)
	GetGroupingPolicy(context.Context, *EmptyRequest) (*Array2DReply, error)
	GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
	GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetAllSubjects(context.Context, *EmptyRequest) (*ArrayReply, error)
	GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllObjects(context.Context, *EmptyRequest) (*ArrayReply, error)
	GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllActions(context.Context, *EmptyRequest) (*ArrayReply, error)
	GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllRoles(context.Context, *EmptyRequest) (*ArrayReply, error)
	GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	HasPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	HasNamedPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	HasGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	AddPresetPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	RemovePresetPolicy(context.Context, *PolicyRequest) (*BoolReply, error)
	Initialize(context.Context, *EmptyRequest) (*EmptyReply, error)
}

PolicydServiceServer is the server API for PolicydService service.

type SimpleGetRequest

type SimpleGetRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	PType                string   `protobuf:"bytes,2,opt,name=pType,proto3" json:"pType,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SimpleGetRequest) Descriptor

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

func (*SimpleGetRequest) GetEnforcerHandler

func (m *SimpleGetRequest) GetEnforcerHandler() int32

func (*SimpleGetRequest) GetPType

func (m *SimpleGetRequest) GetPType() string

func (*SimpleGetRequest) ProtoMessage

func (*SimpleGetRequest) ProtoMessage()

func (*SimpleGetRequest) Reset

func (m *SimpleGetRequest) Reset()

func (*SimpleGetRequest) String

func (m *SimpleGetRequest) String() string

func (*SimpleGetRequest) Validate

func (this *SimpleGetRequest) Validate() error

func (*SimpleGetRequest) XXX_DiscardUnknown

func (m *SimpleGetRequest) XXX_DiscardUnknown()

func (*SimpleGetRequest) XXX_Marshal

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

func (*SimpleGetRequest) XXX_Merge

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

func (*SimpleGetRequest) XXX_Size

func (m *SimpleGetRequest) XXX_Size() int

func (*SimpleGetRequest) XXX_Unmarshal

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

type UserRoleRequest

type UserRoleRequest struct {
	EnforcerHandler      int32    `protobuf:"varint,1,opt,name=enforcerHandler,proto3" json:"enforcerHandler,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Role                 string   `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserRoleRequest) Descriptor

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

func (*UserRoleRequest) GetEnforcerHandler

func (m *UserRoleRequest) GetEnforcerHandler() int32

func (*UserRoleRequest) GetRole

func (m *UserRoleRequest) GetRole() string

func (*UserRoleRequest) GetUser

func (m *UserRoleRequest) GetUser() string

func (*UserRoleRequest) ProtoMessage

func (*UserRoleRequest) ProtoMessage()

func (*UserRoleRequest) Reset

func (m *UserRoleRequest) Reset()

func (*UserRoleRequest) String

func (m *UserRoleRequest) String() string

func (*UserRoleRequest) Validate

func (this *UserRoleRequest) Validate() error

func (*UserRoleRequest) XXX_DiscardUnknown

func (m *UserRoleRequest) XXX_DiscardUnknown()

func (*UserRoleRequest) XXX_Marshal

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

func (*UserRoleRequest) XXX_Merge

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

func (*UserRoleRequest) XXX_Size

func (m *UserRoleRequest) XXX_Size() int

func (*UserRoleRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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