casbinpb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Array2DReplyDJSONMarshaler = new(jsonpb.Marshaler)

Array2DReplyDJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Array2DReplyD. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var Array2DReplyDJSONUnmarshaler = new(jsonpb.Unmarshaler)

Array2DReplyDJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Array2DReplyD. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var Array2DReplyJSONMarshaler = new(jsonpb.Marshaler)

Array2DReplyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Array2DReply. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var Array2DReplyJSONUnmarshaler = new(jsonpb.Unmarshaler)

Array2DReplyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Array2DReply. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var ArrayReplyJSONMarshaler = new(jsonpb.Marshaler)

ArrayReplyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ArrayReply. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var ArrayReplyJSONUnmarshaler = new(jsonpb.Unmarshaler)

ArrayReplyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ArrayReply. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var EmptyJSONMarshaler = new(jsonpb.Marshaler)

EmptyJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Empty. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var EmptyJSONUnmarshaler = new(jsonpb.Unmarshaler)

EmptyJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Empty. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var EnforceRequestJSONMarshaler = new(jsonpb.Marshaler)

EnforceRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of EnforceRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var EnforceRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

EnforceRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of EnforceRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var FilteredPolicyRequestJSONMarshaler = new(jsonpb.Marshaler)

FilteredPolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of FilteredPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var FilteredPolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

FilteredPolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of FilteredPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var ImportPolicyRequestJSONMarshaler = new(jsonpb.Marshaler)

ImportPolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ImportPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var ImportPolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

ImportPolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ImportPolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var PermissionRequestJSONMarshaler = new(jsonpb.Marshaler)

PermissionRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of PermissionRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var PermissionRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

PermissionRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of PermissionRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var PolicyRequestJSONMarshaler = new(jsonpb.Marshaler)

PolicyRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of PolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var PolicyRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

PolicyRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of PolicyRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var SimpleGetRequestJSONMarshaler = new(jsonpb.Marshaler)

SimpleGetRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of SimpleGetRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var SimpleGetRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

SimpleGetRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of SimpleGetRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var UserRoleRequestJSONMarshaler = new(jsonpb.Marshaler)

UserRoleRequestJSONMarshaler describes the default jsonpb.Marshaler used by all instances of UserRoleRequest. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var UserRoleRequestJSONUnmarshaler = new(jsonpb.Unmarshaler)

UserRoleRequestJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of UserRoleRequest. This struct is safe to replace or modify but should not be done so concurrently.

Functions

func NewRESTCasbinHandler

func NewRESTCasbinHandler(s CasbinService, middleware ...echo.MiddlewareFunc) *httpCasbinHandler

func RegisterCasbinHandler

func RegisterCasbinHandler(s server.Server, hdlr CasbinHandler, opts ...server.HandlerOption) error

func RegisterCasbinServer

func RegisterCasbinServer(s *grpc.Server, srv CasbinServer)

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

func (m *Array2DReply) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Array2DReply) ProtoMessage

func (*Array2DReply) ProtoMessage()

func (*Array2DReply) Reset

func (m *Array2DReply) Reset()

func (*Array2DReply) String

func (m *Array2DReply) String() string

func (*Array2DReply) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*Array2DReply) Validate

func (m *Array2DReply) Validate() error

Validate checks the field values on Array2DReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

func (m *Array2DReplyD) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Array2DReplyD) ProtoMessage

func (*Array2DReplyD) ProtoMessage()

func (*Array2DReplyD) Reset

func (m *Array2DReplyD) Reset()

func (*Array2DReplyD) String

func (m *Array2DReplyD) String() string

func (*Array2DReplyD) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*Array2DReplyD) Validate

func (m *Array2DReplyD) Validate() error

Validate checks the field values on Array2DReplyD with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 Array2DReplyDValidationError

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

Array2DReplyDValidationError is the validation error returned by Array2DReplyD.Validate if the designated constraints aren't met.

func (Array2DReplyDValidationError) Cause

Cause function returns cause value.

func (Array2DReplyDValidationError) Error

Error satisfies the builtin error interface

func (Array2DReplyDValidationError) ErrorName

func (e Array2DReplyDValidationError) ErrorName() string

ErrorName returns error name.

func (Array2DReplyDValidationError) Field

Field function returns field value.

func (Array2DReplyDValidationError) Key

Key function returns key value.

func (Array2DReplyDValidationError) Reason

Reason function returns reason value.

type Array2DReplyValidationError

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

Array2DReplyValidationError is the validation error returned by Array2DReply.Validate if the designated constraints aren't met.

func (Array2DReplyValidationError) Cause

Cause function returns cause value.

func (Array2DReplyValidationError) Error

Error satisfies the builtin error interface

func (Array2DReplyValidationError) ErrorName

func (e Array2DReplyValidationError) ErrorName() string

ErrorName returns error name.

func (Array2DReplyValidationError) Field

Field function returns field value.

func (Array2DReplyValidationError) Key

Key function returns key value.

func (Array2DReplyValidationError) Reason

Reason function returns reason value.

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

func (m *ArrayReply) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*ArrayReply) ProtoMessage

func (*ArrayReply) ProtoMessage()

func (*ArrayReply) Reset

func (m *ArrayReply) Reset()

func (*ArrayReply) String

func (m *ArrayReply) String() string

func (*ArrayReply) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*ArrayReply) Validate

func (m *ArrayReply) Validate() error

Validate checks the field values on ArrayReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 ArrayReplyValidationError

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

ArrayReplyValidationError is the validation error returned by ArrayReply.Validate if the designated constraints aren't met.

func (ArrayReplyValidationError) Cause

func (e ArrayReplyValidationError) Cause() error

Cause function returns cause value.

func (ArrayReplyValidationError) Error

Error satisfies the builtin error interface

func (ArrayReplyValidationError) ErrorName

func (e ArrayReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ArrayReplyValidationError) Field

Field function returns field value.

func (ArrayReplyValidationError) Key

Key function returns key value.

func (ArrayReplyValidationError) Reason

func (e ArrayReplyValidationError) Reason() string

Reason function returns reason value.

type CasbinClient

type CasbinClient interface {
	Enforce(ctx context.Context, in *EnforceRequest, opts ...grpc.CallOption) (*Empty, error)
	ImportPolicy(ctx context.Context, in *ImportPolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	LoadPolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	SavePolicy(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	AddPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	GetPolicy(ctx context.Context, in *Empty, 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) (*Empty, error)
	AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	GetGroupingPolicy(ctx context.Context, in *Empty, 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 *Empty, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllObjects(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllActions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetAllRoles(ctx context.Context, in *Empty, 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) (*Empty, error)
	HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Empty, error)
	AddRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*Empty, error)
	GetRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetImplicitRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetUsersForRole(ctx context.Context, in *UserRoleRequest, opts ...grpc.CallOption) (*ArrayReply, error)
	GetPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error)
	GetImplicitPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*Array2DReply, error)
}

CasbinClient is the client API for Casbin service.

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

func NewCasbinClient

func NewCasbinClient(cc *grpc.ClientConn) CasbinClient

type CasbinHandler

type CasbinHandler interface {
	Enforce(context.Context, *EnforceRequest, *Empty) error
	ImportPolicy(context.Context, *ImportPolicyRequest, *Empty) error
	LoadPolicy(context.Context, *Empty, *Empty) error
	SavePolicy(context.Context, *Empty, *Empty) error
	AddPolicy(context.Context, *PolicyRequest, *Empty) error
	AddNamedPolicy(context.Context, *PolicyRequest, *Empty) error
	RemovePolicy(context.Context, *PolicyRequest, *Empty) error
	RemoveNamedPolicy(context.Context, *PolicyRequest, *Empty) error
	RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest, *Empty) error
	RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest, *Empty) error
	GetPolicy(context.Context, *Empty, *Array2DReply) error
	GetNamedPolicy(context.Context, *PolicyRequest, *Array2DReply) error
	GetFilteredPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error
	GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error
	AddGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	AddNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	RemoveGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	RemoveNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest, *Empty) error
	RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest, *Empty) error
	GetGroupingPolicy(context.Context, *Empty, *Array2DReply) error
	GetNamedGroupingPolicy(context.Context, *PolicyRequest, *Array2DReply) error
	GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error
	GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest, *Array2DReply) error
	GetAllSubjects(context.Context, *Empty, *ArrayReply) error
	GetAllNamedSubjects(context.Context, *SimpleGetRequest, *ArrayReply) error
	GetAllObjects(context.Context, *Empty, *ArrayReply) error
	GetAllNamedObjects(context.Context, *SimpleGetRequest, *ArrayReply) error
	GetAllActions(context.Context, *Empty, *ArrayReply) error
	GetAllNamedActions(context.Context, *SimpleGetRequest, *ArrayReply) error
	GetAllRoles(context.Context, *Empty, *ArrayReply) error
	GetAllNamedRoles(context.Context, *SimpleGetRequest, *ArrayReply) error
	HasPolicy(context.Context, *PolicyRequest, *Empty) error
	HasNamedPolicy(context.Context, *PolicyRequest, *Empty) error
	HasGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	HasNamedGroupingPolicy(context.Context, *PolicyRequest, *Empty) error
	AddRoleForUser(context.Context, *UserRoleRequest, *Empty) error
	DeleteRoleForUser(context.Context, *UserRoleRequest, *Empty) error
	DeleteUser(context.Context, *UserRoleRequest, *Empty) error
	GetRolesForUser(context.Context, *UserRoleRequest, *ArrayReply) error
	GetImplicitRolesForUser(context.Context, *UserRoleRequest, *ArrayReply) error
	GetUsersForRole(context.Context, *UserRoleRequest, *ArrayReply) error
	GetPermissionsForUser(context.Context, *PermissionRequest, *Array2DReply) error
	GetImplicitPermissionsForUser(context.Context, *PermissionRequest, *Array2DReply) error
}

type CasbinServer

type CasbinServer interface {
	Enforce(context.Context, *EnforceRequest) (*Empty, error)
	ImportPolicy(context.Context, *ImportPolicyRequest) (*Empty, error)
	LoadPolicy(context.Context, *Empty) (*Empty, error)
	SavePolicy(context.Context, *Empty) (*Empty, error)
	AddPolicy(context.Context, *PolicyRequest) (*Empty, error)
	AddNamedPolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemovePolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemoveNamedPolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemoveFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error)
	RemoveFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error)
	GetPolicy(context.Context, *Empty) (*Array2DReply, error)
	GetNamedPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
	GetFilteredPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetFilteredNamedPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	AddGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	AddNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemoveGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemoveNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	RemoveFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error)
	RemoveFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Empty, error)
	GetGroupingPolicy(context.Context, *Empty) (*Array2DReply, error)
	GetNamedGroupingPolicy(context.Context, *PolicyRequest) (*Array2DReply, error)
	GetFilteredGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetFilteredNamedGroupingPolicy(context.Context, *FilteredPolicyRequest) (*Array2DReply, error)
	GetAllSubjects(context.Context, *Empty) (*ArrayReply, error)
	GetAllNamedSubjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllObjects(context.Context, *Empty) (*ArrayReply, error)
	GetAllNamedObjects(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllActions(context.Context, *Empty) (*ArrayReply, error)
	GetAllNamedActions(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	GetAllRoles(context.Context, *Empty) (*ArrayReply, error)
	GetAllNamedRoles(context.Context, *SimpleGetRequest) (*ArrayReply, error)
	HasPolicy(context.Context, *PolicyRequest) (*Empty, error)
	HasNamedPolicy(context.Context, *PolicyRequest) (*Empty, error)
	HasGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	HasNamedGroupingPolicy(context.Context, *PolicyRequest) (*Empty, error)
	AddRoleForUser(context.Context, *UserRoleRequest) (*Empty, error)
	DeleteRoleForUser(context.Context, *UserRoleRequest) (*Empty, error)
	DeleteUser(context.Context, *UserRoleRequest) (*Empty, error)
	GetRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
	GetImplicitRolesForUser(context.Context, *UserRoleRequest) (*ArrayReply, error)
	GetUsersForRole(context.Context, *UserRoleRequest) (*ArrayReply, error)
	GetPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
	GetImplicitPermissionsForUser(context.Context, *PermissionRequest) (*Array2DReply, error)
}

CasbinServer is the server API for Casbin service.

type CasbinService

type CasbinService interface {
	Enforce(ctx context.Context, in *EnforceRequest, opts ...client.CallOption) (*Empty, error)
	ImportPolicy(ctx context.Context, in *ImportPolicyRequest, opts ...client.CallOption) (*Empty, error)
	LoadPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Empty, error)
	SavePolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Empty, error)
	AddPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	AddNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemovePolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error)
	GetPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Array2DReply, error)
	GetNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetFilteredPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetFilteredNamedPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	AddGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	AddNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error)
	RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Empty, error)
	GetGroupingPolicy(ctx context.Context, in *Empty, opts ...client.CallOption) (*Array2DReply, error)
	GetNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetFilteredGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetFilteredNamedGroupingPolicy(ctx context.Context, in *FilteredPolicyRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetAllSubjects(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error)
	GetAllNamedSubjects(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetAllObjects(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error)
	GetAllNamedObjects(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetAllActions(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error)
	GetAllNamedActions(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetAllRoles(ctx context.Context, in *Empty, opts ...client.CallOption) (*ArrayReply, error)
	GetAllNamedRoles(ctx context.Context, in *SimpleGetRequest, opts ...client.CallOption) (*ArrayReply, error)
	HasPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	HasNamedPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	HasGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	HasNamedGroupingPolicy(ctx context.Context, in *PolicyRequest, opts ...client.CallOption) (*Empty, error)
	AddRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error)
	DeleteRoleForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error)
	DeleteUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*Empty, error)
	GetRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetImplicitRolesForUser(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetUsersForRole(ctx context.Context, in *UserRoleRequest, opts ...client.CallOption) (*ArrayReply, error)
	GetPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...client.CallOption) (*Array2DReply, error)
	GetImplicitPermissionsForUser(ctx context.Context, in *PermissionRequest, opts ...client.CallOption) (*Array2DReply, error)
}

func NewCasbinService

func NewCasbinService(name string, c client.Client) CasbinService

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) MarshalJSON

func (m *Empty) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) UnmarshalJSON

func (m *Empty) UnmarshalJSON(b []byte) error

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type EmptyValidationError

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

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type EnforceRequest

type EnforceRequest struct {
	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) GetParams

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

func (*EnforceRequest) MarshalJSON

func (m *EnforceRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*EnforceRequest) ProtoMessage

func (*EnforceRequest) ProtoMessage()

func (*EnforceRequest) Reset

func (m *EnforceRequest) Reset()

func (*EnforceRequest) String

func (m *EnforceRequest) String() string

func (*EnforceRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*EnforceRequest) Validate

func (m *EnforceRequest) Validate() error

Validate checks the field values on EnforceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 EnforceRequestValidationError

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

EnforceRequestValidationError is the validation error returned by EnforceRequest.Validate if the designated constraints aren't met.

func (EnforceRequestValidationError) Cause

Cause function returns cause value.

func (EnforceRequestValidationError) Error

Error satisfies the builtin error interface

func (EnforceRequestValidationError) ErrorName

func (e EnforceRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EnforceRequestValidationError) Field

Field function returns field value.

func (EnforceRequestValidationError) Key

Key function returns key value.

func (EnforceRequestValidationError) Reason

Reason function returns reason value.

type FilteredPolicyRequest

type FilteredPolicyRequest struct {
	PType                string   `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,omitempty"`
	FieldIndex           int32    `protobuf:"varint,2,opt,name=fieldIndex,proto3" json:"fieldIndex,omitempty"`
	FieldValues          []string `protobuf:"bytes,3,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) GetFieldIndex

func (m *FilteredPolicyRequest) GetFieldIndex() int32

func (*FilteredPolicyRequest) GetFieldValues

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

func (*FilteredPolicyRequest) GetPType

func (m *FilteredPolicyRequest) GetPType() string

func (*FilteredPolicyRequest) MarshalJSON

func (m *FilteredPolicyRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*FilteredPolicyRequest) ProtoMessage

func (*FilteredPolicyRequest) ProtoMessage()

func (*FilteredPolicyRequest) Reset

func (m *FilteredPolicyRequest) Reset()

func (*FilteredPolicyRequest) String

func (m *FilteredPolicyRequest) String() string

func (*FilteredPolicyRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*FilteredPolicyRequest) Validate

func (m *FilteredPolicyRequest) Validate() error

Validate checks the field values on FilteredPolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 FilteredPolicyRequestValidationError

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

FilteredPolicyRequestValidationError is the validation error returned by FilteredPolicyRequest.Validate if the designated constraints aren't met.

func (FilteredPolicyRequestValidationError) Cause

Cause function returns cause value.

func (FilteredPolicyRequestValidationError) Error

Error satisfies the builtin error interface

func (FilteredPolicyRequestValidationError) ErrorName

ErrorName returns error name.

func (FilteredPolicyRequestValidationError) Field

Field function returns field value.

func (FilteredPolicyRequestValidationError) Key

Key function returns key value.

func (FilteredPolicyRequestValidationError) Reason

Reason function returns reason value.

type ImportPolicyRequest

type ImportPolicyRequest struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ImportPolicyRequest) Descriptor

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

func (*ImportPolicyRequest) GetData

func (m *ImportPolicyRequest) GetData() []byte

func (*ImportPolicyRequest) MarshalJSON

func (m *ImportPolicyRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*ImportPolicyRequest) ProtoMessage

func (*ImportPolicyRequest) ProtoMessage()

func (*ImportPolicyRequest) Reset

func (m *ImportPolicyRequest) Reset()

func (*ImportPolicyRequest) String

func (m *ImportPolicyRequest) String() string

func (*ImportPolicyRequest) UnmarshalJSON

func (m *ImportPolicyRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*ImportPolicyRequest) Validate

func (m *ImportPolicyRequest) Validate() error

Validate checks the field values on ImportPolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ImportPolicyRequest) XXX_DiscardUnknown

func (m *ImportPolicyRequest) XXX_DiscardUnknown()

func (*ImportPolicyRequest) XXX_Marshal

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

func (*ImportPolicyRequest) XXX_Merge

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

func (*ImportPolicyRequest) XXX_Size

func (m *ImportPolicyRequest) XXX_Size() int

func (*ImportPolicyRequest) XXX_Unmarshal

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

type ImportPolicyRequestValidationError

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

ImportPolicyRequestValidationError is the validation error returned by ImportPolicyRequest.Validate if the designated constraints aren't met.

func (ImportPolicyRequestValidationError) Cause

Cause function returns cause value.

func (ImportPolicyRequestValidationError) Error

Error satisfies the builtin error interface

func (ImportPolicyRequestValidationError) ErrorName

ErrorName returns error name.

func (ImportPolicyRequestValidationError) Field

Field function returns field value.

func (ImportPolicyRequestValidationError) Key

Key function returns key value.

func (ImportPolicyRequestValidationError) Reason

Reason function returns reason value.

type PermissionRequest

type PermissionRequest struct {
	User                 string   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Permissions          []string `protobuf:"bytes,2,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) GetPermissions

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

func (*PermissionRequest) GetUser

func (m *PermissionRequest) GetUser() string

func (*PermissionRequest) MarshalJSON

func (m *PermissionRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*PermissionRequest) ProtoMessage

func (*PermissionRequest) ProtoMessage()

func (*PermissionRequest) Reset

func (m *PermissionRequest) Reset()

func (*PermissionRequest) String

func (m *PermissionRequest) String() string

func (*PermissionRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*PermissionRequest) Validate

func (m *PermissionRequest) Validate() error

Validate checks the field values on PermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 PermissionRequestValidationError

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

PermissionRequestValidationError is the validation error returned by PermissionRequest.Validate if the designated constraints aren't met.

func (PermissionRequestValidationError) Cause

Cause function returns cause value.

func (PermissionRequestValidationError) Error

Error satisfies the builtin error interface

func (PermissionRequestValidationError) ErrorName

ErrorName returns error name.

func (PermissionRequestValidationError) Field

Field function returns field value.

func (PermissionRequestValidationError) Key

Key function returns key value.

func (PermissionRequestValidationError) Reason

Reason function returns reason value.

type PolicyRequest

type PolicyRequest struct {
	PType                string   `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,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 (*PolicyRequest) Descriptor

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

func (*PolicyRequest) GetPType

func (m *PolicyRequest) GetPType() string

func (*PolicyRequest) GetParams

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

func (*PolicyRequest) MarshalJSON

func (m *PolicyRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*PolicyRequest) ProtoMessage

func (*PolicyRequest) ProtoMessage()

func (*PolicyRequest) Reset

func (m *PolicyRequest) Reset()

func (*PolicyRequest) String

func (m *PolicyRequest) String() string

func (*PolicyRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*PolicyRequest) Validate

func (m *PolicyRequest) Validate() error

Validate checks the field values on PolicyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 PolicyRequestValidationError

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

PolicyRequestValidationError is the validation error returned by PolicyRequest.Validate if the designated constraints aren't met.

func (PolicyRequestValidationError) Cause

Cause function returns cause value.

func (PolicyRequestValidationError) Error

Error satisfies the builtin error interface

func (PolicyRequestValidationError) ErrorName

func (e PolicyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PolicyRequestValidationError) Field

Field function returns field value.

func (PolicyRequestValidationError) Key

Key function returns key value.

func (PolicyRequestValidationError) Reason

Reason function returns reason value.

type SimpleGetRequest

type SimpleGetRequest struct {
	PType                string   `protobuf:"bytes,1,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) GetPType

func (m *SimpleGetRequest) GetPType() string

func (*SimpleGetRequest) MarshalJSON

func (m *SimpleGetRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*SimpleGetRequest) ProtoMessage

func (*SimpleGetRequest) ProtoMessage()

func (*SimpleGetRequest) Reset

func (m *SimpleGetRequest) Reset()

func (*SimpleGetRequest) String

func (m *SimpleGetRequest) String() string

func (*SimpleGetRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*SimpleGetRequest) Validate

func (m *SimpleGetRequest) Validate() error

Validate checks the field values on SimpleGetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 SimpleGetRequestValidationError

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

SimpleGetRequestValidationError is the validation error returned by SimpleGetRequest.Validate if the designated constraints aren't met.

func (SimpleGetRequestValidationError) Cause

Cause function returns cause value.

func (SimpleGetRequestValidationError) Error

Error satisfies the builtin error interface

func (SimpleGetRequestValidationError) ErrorName

ErrorName returns error name.

func (SimpleGetRequestValidationError) Field

Field function returns field value.

func (SimpleGetRequestValidationError) Key

Key function returns key value.

func (SimpleGetRequestValidationError) Reason

Reason function returns reason value.

type UserRoleRequest

type UserRoleRequest struct {
	User                 string   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Role                 string   `protobuf:"bytes,2,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) GetRole

func (m *UserRoleRequest) GetRole() string

func (*UserRoleRequest) GetUser

func (m *UserRoleRequest) GetUser() string

func (*UserRoleRequest) MarshalJSON

func (m *UserRoleRequest) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*UserRoleRequest) ProtoMessage

func (*UserRoleRequest) ProtoMessage()

func (*UserRoleRequest) Reset

func (m *UserRoleRequest) Reset()

func (*UserRoleRequest) String

func (m *UserRoleRequest) String() string

func (*UserRoleRequest) UnmarshalJSON

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

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

func (*UserRoleRequest) Validate

func (m *UserRoleRequest) Validate() error

Validate checks the field values on UserRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

type UserRoleRequestValidationError

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

UserRoleRequestValidationError is the validation error returned by UserRoleRequest.Validate if the designated constraints aren't met.

func (UserRoleRequestValidationError) Cause

Cause function returns cause value.

func (UserRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UserRoleRequestValidationError) ErrorName

func (e UserRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UserRoleRequestValidationError) Field

Field function returns field value.

func (UserRoleRequestValidationError) Key

Key function returns key value.

func (UserRoleRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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