api

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRbac        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRbac          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRbac = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRpc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PType_name = map[int32]string{
	0: "UNKNOWN",
	1: "POLICY",
	2: "ROLE",
	3: "GROUP",
}
View Source
var PType_value = map[string]int32{
	"UNKNOWN": 0,
	"POLICY":  1,
	"ROLE":    2,
	"GROUP":   3,
}

Functions

func NewRBACServiceEndpoints

func NewRBACServiceEndpoints() []api.Endpoint

API Endpoints for RBACService service

func NewRBACServiceOpenAPI

func NewRBACServiceOpenAPI() *openapipb.OpenAPI

Swagger OpenAPI 3.0 for RBACService service

func RegisterRBACServiceHandler

func RegisterRBACServiceHandler(s server.Server, hdlr RBACServiceHandler, opts ...server.HandlerOption) error

func RegisterRBACServiceServer

func RegisterRBACServiceServer(s *grpc.Server, srv RBACServiceServer)

Types

type AddGroupPolicyRequest

type AddGroupPolicyRequest struct {
	// +gen:required
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
}

func (*AddGroupPolicyRequest) Descriptor

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

func (*AddGroupPolicyRequest) Marshal

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

func (*AddGroupPolicyRequest) MarshalTo

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

func (*AddGroupPolicyRequest) MarshalToSizedBuffer

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

func (*AddGroupPolicyRequest) ProtoMessage

func (*AddGroupPolicyRequest) ProtoMessage()

func (*AddGroupPolicyRequest) Reset

func (m *AddGroupPolicyRequest) Reset()

func (*AddGroupPolicyRequest) String

func (m *AddGroupPolicyRequest) String() string

func (*AddGroupPolicyRequest) Unmarshal

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

func (*AddGroupPolicyRequest) XSize

func (m *AddGroupPolicyRequest) XSize() (n int)

func (*AddGroupPolicyRequest) XXX_DiscardUnknown

func (m *AddGroupPolicyRequest) XXX_DiscardUnknown()

func (*AddGroupPolicyRequest) XXX_Marshal

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

func (*AddGroupPolicyRequest) XXX_Merge

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

func (*AddGroupPolicyRequest) XXX_Size

func (m *AddGroupPolicyRequest) XXX_Size() int

func (*AddGroupPolicyRequest) XXX_Unmarshal

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

type AddGroupPolicyResponse

type AddGroupPolicyResponse struct {
}

func (*AddGroupPolicyResponse) Descriptor

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

func (*AddGroupPolicyResponse) Marshal

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

func (*AddGroupPolicyResponse) MarshalTo

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

func (*AddGroupPolicyResponse) MarshalToSizedBuffer

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

func (*AddGroupPolicyResponse) ProtoMessage

func (*AddGroupPolicyResponse) ProtoMessage()

func (*AddGroupPolicyResponse) Reset

func (m *AddGroupPolicyResponse) Reset()

func (*AddGroupPolicyResponse) String

func (m *AddGroupPolicyResponse) String() string

func (*AddGroupPolicyResponse) Unmarshal

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

func (*AddGroupPolicyResponse) XSize

func (m *AddGroupPolicyResponse) XSize() (n int)

func (*AddGroupPolicyResponse) XXX_DiscardUnknown

func (m *AddGroupPolicyResponse) XXX_DiscardUnknown()

func (*AddGroupPolicyResponse) XXX_Marshal

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

func (*AddGroupPolicyResponse) XXX_Merge

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

func (*AddGroupPolicyResponse) XXX_Size

func (m *AddGroupPolicyResponse) XXX_Size() int

func (*AddGroupPolicyResponse) XXX_Unmarshal

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

type AddPolicyRequest

type AddPolicyRequest struct {
	// +gen:required
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}

func (*AddPolicyRequest) Descriptor

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

func (*AddPolicyRequest) Marshal

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

func (*AddPolicyRequest) MarshalTo

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

func (*AddPolicyRequest) MarshalToSizedBuffer

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

func (*AddPolicyRequest) ProtoMessage

func (*AddPolicyRequest) ProtoMessage()

func (*AddPolicyRequest) Reset

func (m *AddPolicyRequest) Reset()

func (*AddPolicyRequest) String

func (m *AddPolicyRequest) String() string

func (*AddPolicyRequest) Unmarshal

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

func (*AddPolicyRequest) XSize

func (m *AddPolicyRequest) XSize() (n int)

func (*AddPolicyRequest) XXX_DiscardUnknown

func (m *AddPolicyRequest) XXX_DiscardUnknown()

func (*AddPolicyRequest) XXX_Marshal

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

func (*AddPolicyRequest) XXX_Merge

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

func (*AddPolicyRequest) XXX_Size

func (m *AddPolicyRequest) XXX_Size() int

func (*AddPolicyRequest) XXX_Unmarshal

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

type AddPolicyResponse

type AddPolicyResponse struct {
}

func (*AddPolicyResponse) Descriptor

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

func (*AddPolicyResponse) Marshal

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

func (*AddPolicyResponse) MarshalTo

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

func (*AddPolicyResponse) MarshalToSizedBuffer

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

func (*AddPolicyResponse) ProtoMessage

func (*AddPolicyResponse) ProtoMessage()

func (*AddPolicyResponse) Reset

func (m *AddPolicyResponse) Reset()

func (*AddPolicyResponse) String

func (m *AddPolicyResponse) String() string

func (*AddPolicyResponse) Unmarshal

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

func (*AddPolicyResponse) XSize

func (m *AddPolicyResponse) XSize() (n int)

func (*AddPolicyResponse) XXX_DiscardUnknown

func (m *AddPolicyResponse) XXX_DiscardUnknown()

func (*AddPolicyResponse) XXX_Marshal

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

func (*AddPolicyResponse) XXX_Merge

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

func (*AddPolicyResponse) XXX_Size

func (m *AddPolicyResponse) XXX_Size() int

func (*AddPolicyResponse) XXX_Unmarshal

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

type DelGroupPolicyRequest

type DelGroupPolicyRequest struct {
	// +gen:required
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
}

func (*DelGroupPolicyRequest) Descriptor

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

func (*DelGroupPolicyRequest) Marshal

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

func (*DelGroupPolicyRequest) MarshalTo

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

func (*DelGroupPolicyRequest) MarshalToSizedBuffer

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

func (*DelGroupPolicyRequest) ProtoMessage

func (*DelGroupPolicyRequest) ProtoMessage()

func (*DelGroupPolicyRequest) Reset

func (m *DelGroupPolicyRequest) Reset()

func (*DelGroupPolicyRequest) String

func (m *DelGroupPolicyRequest) String() string

func (*DelGroupPolicyRequest) Unmarshal

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

func (*DelGroupPolicyRequest) XSize

func (m *DelGroupPolicyRequest) XSize() (n int)

func (*DelGroupPolicyRequest) XXX_DiscardUnknown

func (m *DelGroupPolicyRequest) XXX_DiscardUnknown()

func (*DelGroupPolicyRequest) XXX_Marshal

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

func (*DelGroupPolicyRequest) XXX_Merge

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

func (*DelGroupPolicyRequest) XXX_Size

func (m *DelGroupPolicyRequest) XXX_Size() int

func (*DelGroupPolicyRequest) XXX_Unmarshal

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

type DelGroupPolicyResponse

type DelGroupPolicyResponse struct {
}

func (*DelGroupPolicyResponse) Descriptor

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

func (*DelGroupPolicyResponse) Marshal

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

func (*DelGroupPolicyResponse) MarshalTo

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

func (*DelGroupPolicyResponse) MarshalToSizedBuffer

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

func (*DelGroupPolicyResponse) ProtoMessage

func (*DelGroupPolicyResponse) ProtoMessage()

func (*DelGroupPolicyResponse) Reset

func (m *DelGroupPolicyResponse) Reset()

func (*DelGroupPolicyResponse) String

func (m *DelGroupPolicyResponse) String() string

func (*DelGroupPolicyResponse) Unmarshal

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

func (*DelGroupPolicyResponse) XSize

func (m *DelGroupPolicyResponse) XSize() (n int)

func (*DelGroupPolicyResponse) XXX_DiscardUnknown

func (m *DelGroupPolicyResponse) XXX_DiscardUnknown()

func (*DelGroupPolicyResponse) XXX_Marshal

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

func (*DelGroupPolicyResponse) XXX_Merge

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

func (*DelGroupPolicyResponse) XXX_Size

func (m *DelGroupPolicyResponse) XXX_Size() int

func (*DelGroupPolicyResponse) XXX_Unmarshal

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

type DelPolicyRequest added in v0.3.0

type DelPolicyRequest struct {
	// +gen:required
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}

func (*DelPolicyRequest) Descriptor added in v0.3.0

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

func (*DelPolicyRequest) Marshal added in v0.3.0

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

func (*DelPolicyRequest) MarshalTo added in v0.3.0

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

func (*DelPolicyRequest) MarshalToSizedBuffer added in v0.3.0

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

func (*DelPolicyRequest) ProtoMessage added in v0.3.0

func (*DelPolicyRequest) ProtoMessage()

func (*DelPolicyRequest) Reset added in v0.3.0

func (m *DelPolicyRequest) Reset()

func (*DelPolicyRequest) String added in v0.3.0

func (m *DelPolicyRequest) String() string

func (*DelPolicyRequest) Unmarshal added in v0.3.0

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

func (*DelPolicyRequest) XSize added in v0.3.0

func (m *DelPolicyRequest) XSize() (n int)

func (*DelPolicyRequest) XXX_DiscardUnknown added in v0.3.0

func (m *DelPolicyRequest) XXX_DiscardUnknown()

func (*DelPolicyRequest) XXX_Marshal added in v0.3.0

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

func (*DelPolicyRequest) XXX_Merge added in v0.3.0

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

func (*DelPolicyRequest) XXX_Size added in v0.3.0

func (m *DelPolicyRequest) XXX_Size() int

func (*DelPolicyRequest) XXX_Unmarshal added in v0.3.0

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

type DelPolicyResponse added in v0.3.0

type DelPolicyResponse struct {
}

func (*DelPolicyResponse) Descriptor added in v0.3.0

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

func (*DelPolicyResponse) Marshal added in v0.3.0

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

func (*DelPolicyResponse) MarshalTo added in v0.3.0

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

func (*DelPolicyResponse) MarshalToSizedBuffer added in v0.3.0

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

func (*DelPolicyResponse) ProtoMessage added in v0.3.0

func (*DelPolicyResponse) ProtoMessage()

func (*DelPolicyResponse) Reset added in v0.3.0

func (m *DelPolicyResponse) Reset()

func (*DelPolicyResponse) String added in v0.3.0

func (m *DelPolicyResponse) String() string

func (*DelPolicyResponse) Unmarshal added in v0.3.0

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

func (*DelPolicyResponse) XSize added in v0.3.0

func (m *DelPolicyResponse) XSize() (n int)

func (*DelPolicyResponse) XXX_DiscardUnknown added in v0.3.0

func (m *DelPolicyResponse) XXX_DiscardUnknown()

func (*DelPolicyResponse) XXX_Marshal added in v0.3.0

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

func (*DelPolicyResponse) XXX_Merge added in v0.3.0

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

func (*DelPolicyResponse) XXX_Size added in v0.3.0

func (m *DelPolicyResponse) XXX_Size() int

func (*DelPolicyResponse) XXX_Unmarshal added in v0.3.0

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

type EnforceRequest

type EnforceRequest struct {
	// +gen:required
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
}

func (*EnforceRequest) Descriptor

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

func (*EnforceRequest) Marshal

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

func (*EnforceRequest) MarshalTo

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

func (*EnforceRequest) MarshalToSizedBuffer

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

func (*EnforceRequest) ProtoMessage

func (*EnforceRequest) ProtoMessage()

func (*EnforceRequest) Reset

func (m *EnforceRequest) Reset()

func (*EnforceRequest) String

func (m *EnforceRequest) String() string

func (*EnforceRequest) Unmarshal

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

func (*EnforceRequest) XSize

func (m *EnforceRequest) XSize() (n int)

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 EnforceResponse

type EnforceResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}

func (*EnforceResponse) Descriptor

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

func (*EnforceResponse) Marshal

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

func (*EnforceResponse) MarshalTo

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

func (*EnforceResponse) MarshalToSizedBuffer

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

func (*EnforceResponse) ProtoMessage

func (*EnforceResponse) ProtoMessage()

func (*EnforceResponse) Reset

func (m *EnforceResponse) Reset()

func (*EnforceResponse) String

func (m *EnforceResponse) String() string

func (*EnforceResponse) Unmarshal

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

func (*EnforceResponse) XSize

func (m *EnforceResponse) XSize() (n int)

func (*EnforceResponse) XXX_DiscardUnknown

func (m *EnforceResponse) XXX_DiscardUnknown()

func (*EnforceResponse) XXX_Marshal

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

func (*EnforceResponse) XXX_Merge

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

func (*EnforceResponse) XXX_Size

func (m *EnforceResponse) XXX_Size() int

func (*EnforceResponse) XXX_Unmarshal

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

type GetAllPoliciesRequest added in v0.4.0

type GetAllPoliciesRequest struct {
}

func (*GetAllPoliciesRequest) Descriptor added in v0.4.0

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

func (*GetAllPoliciesRequest) Marshal added in v0.4.0

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

func (*GetAllPoliciesRequest) MarshalTo added in v0.4.0

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

func (*GetAllPoliciesRequest) MarshalToSizedBuffer added in v0.4.0

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

func (*GetAllPoliciesRequest) ProtoMessage added in v0.4.0

func (*GetAllPoliciesRequest) ProtoMessage()

func (*GetAllPoliciesRequest) Reset added in v0.4.0

func (m *GetAllPoliciesRequest) Reset()

func (*GetAllPoliciesRequest) String added in v0.4.0

func (m *GetAllPoliciesRequest) String() string

func (*GetAllPoliciesRequest) Unmarshal added in v0.4.0

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

func (*GetAllPoliciesRequest) XSize added in v0.4.0

func (m *GetAllPoliciesRequest) XSize() (n int)

func (*GetAllPoliciesRequest) XXX_DiscardUnknown added in v0.4.0

func (m *GetAllPoliciesRequest) XXX_DiscardUnknown()

func (*GetAllPoliciesRequest) XXX_Marshal added in v0.4.0

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

func (*GetAllPoliciesRequest) XXX_Merge added in v0.4.0

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

func (*GetAllPoliciesRequest) XXX_Size added in v0.4.0

func (m *GetAllPoliciesRequest) XXX_Size() int

func (*GetAllPoliciesRequest) XXX_Unmarshal added in v0.4.0

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

type GetAllPoliciesResponse added in v0.4.0

type GetAllPoliciesResponse struct {
	Policies []*Policy  `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
}

func (*GetAllPoliciesResponse) Descriptor added in v0.4.0

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

func (*GetAllPoliciesResponse) Marshal added in v0.4.0

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

func (*GetAllPoliciesResponse) MarshalTo added in v0.4.0

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

func (*GetAllPoliciesResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*GetAllPoliciesResponse) ProtoMessage added in v0.4.0

func (*GetAllPoliciesResponse) ProtoMessage()

func (*GetAllPoliciesResponse) Reset added in v0.4.0

func (m *GetAllPoliciesResponse) Reset()

func (*GetAllPoliciesResponse) String added in v0.4.0

func (m *GetAllPoliciesResponse) String() string

func (*GetAllPoliciesResponse) Unmarshal added in v0.4.0

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

func (*GetAllPoliciesResponse) XSize added in v0.4.0

func (m *GetAllPoliciesResponse) XSize() (n int)

func (*GetAllPoliciesResponse) XXX_DiscardUnknown added in v0.4.0

func (m *GetAllPoliciesResponse) XXX_DiscardUnknown()

func (*GetAllPoliciesResponse) XXX_Marshal added in v0.4.0

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

func (*GetAllPoliciesResponse) XXX_Merge added in v0.4.0

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

func (*GetAllPoliciesResponse) XXX_Size added in v0.4.0

func (m *GetAllPoliciesResponse) XXX_Size() int

func (*GetAllPoliciesResponse) XXX_Unmarshal added in v0.4.0

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

type GetGroupPoliciesRequest added in v0.4.0

type GetGroupPoliciesRequest struct {
	Ptype PType  `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"`
	Sub   string `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"`
}

func (*GetGroupPoliciesRequest) Descriptor added in v0.4.0

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

func (*GetGroupPoliciesRequest) Marshal added in v0.4.0

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

func (*GetGroupPoliciesRequest) MarshalTo added in v0.4.0

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

func (*GetGroupPoliciesRequest) MarshalToSizedBuffer added in v0.4.0

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

func (*GetGroupPoliciesRequest) ProtoMessage added in v0.4.0

func (*GetGroupPoliciesRequest) ProtoMessage()

func (*GetGroupPoliciesRequest) Reset added in v0.4.0

func (m *GetGroupPoliciesRequest) Reset()

func (*GetGroupPoliciesRequest) String added in v0.4.0

func (m *GetGroupPoliciesRequest) String() string

func (*GetGroupPoliciesRequest) Unmarshal added in v0.4.0

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

func (*GetGroupPoliciesRequest) XSize added in v0.4.0

func (m *GetGroupPoliciesRequest) XSize() (n int)

func (*GetGroupPoliciesRequest) XXX_DiscardUnknown added in v0.4.0

func (m *GetGroupPoliciesRequest) XXX_DiscardUnknown()

func (*GetGroupPoliciesRequest) XXX_Marshal added in v0.4.0

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

func (*GetGroupPoliciesRequest) XXX_Merge added in v0.4.0

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

func (*GetGroupPoliciesRequest) XXX_Size added in v0.4.0

func (m *GetGroupPoliciesRequest) XXX_Size() int

func (*GetGroupPoliciesRequest) XXX_Unmarshal added in v0.4.0

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

type GetGroupPoliciesResponse added in v0.4.0

type GetGroupPoliciesResponse struct {
	Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
}

func (*GetGroupPoliciesResponse) Descriptor added in v0.4.0

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

func (*GetGroupPoliciesResponse) Marshal added in v0.4.0

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

func (*GetGroupPoliciesResponse) MarshalTo added in v0.4.0

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

func (*GetGroupPoliciesResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*GetGroupPoliciesResponse) ProtoMessage added in v0.4.0

func (*GetGroupPoliciesResponse) ProtoMessage()

func (*GetGroupPoliciesResponse) Reset added in v0.4.0

func (m *GetGroupPoliciesResponse) Reset()

func (*GetGroupPoliciesResponse) String added in v0.4.0

func (m *GetGroupPoliciesResponse) String() string

func (*GetGroupPoliciesResponse) Unmarshal added in v0.4.0

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

func (*GetGroupPoliciesResponse) XSize added in v0.4.0

func (m *GetGroupPoliciesResponse) XSize() (n int)

func (*GetGroupPoliciesResponse) XXX_DiscardUnknown added in v0.4.0

func (m *GetGroupPoliciesResponse) XXX_DiscardUnknown()

func (*GetGroupPoliciesResponse) XXX_Marshal added in v0.4.0

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

func (*GetGroupPoliciesResponse) XXX_Merge added in v0.4.0

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

func (*GetGroupPoliciesResponse) XXX_Size added in v0.4.0

func (m *GetGroupPoliciesResponse) XXX_Size() int

func (*GetGroupPoliciesResponse) XXX_Unmarshal added in v0.4.0

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

type GetPoliciesRequest added in v0.4.0

type GetPoliciesRequest struct {
	Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
}

func (*GetPoliciesRequest) Descriptor added in v0.4.0

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

func (*GetPoliciesRequest) Marshal added in v0.4.0

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

func (*GetPoliciesRequest) MarshalTo added in v0.4.0

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

func (*GetPoliciesRequest) MarshalToSizedBuffer added in v0.4.0

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

func (*GetPoliciesRequest) ProtoMessage added in v0.4.0

func (*GetPoliciesRequest) ProtoMessage()

func (*GetPoliciesRequest) Reset added in v0.4.0

func (m *GetPoliciesRequest) Reset()

func (*GetPoliciesRequest) String added in v0.4.0

func (m *GetPoliciesRequest) String() string

func (*GetPoliciesRequest) Unmarshal added in v0.4.0

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

func (*GetPoliciesRequest) XSize added in v0.4.0

func (m *GetPoliciesRequest) XSize() (n int)

func (*GetPoliciesRequest) XXX_DiscardUnknown added in v0.4.0

func (m *GetPoliciesRequest) XXX_DiscardUnknown()

func (*GetPoliciesRequest) XXX_Marshal added in v0.4.0

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

func (*GetPoliciesRequest) XXX_Merge added in v0.4.0

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

func (*GetPoliciesRequest) XXX_Size added in v0.4.0

func (m *GetPoliciesRequest) XXX_Size() int

func (*GetPoliciesRequest) XXX_Unmarshal added in v0.4.0

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

type GetPoliciesResponse added in v0.4.0

type GetPoliciesResponse struct {
	Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
}

func (*GetPoliciesResponse) Descriptor added in v0.4.0

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

func (*GetPoliciesResponse) Marshal added in v0.4.0

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

func (*GetPoliciesResponse) MarshalTo added in v0.4.0

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

func (*GetPoliciesResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*GetPoliciesResponse) ProtoMessage added in v0.4.0

func (*GetPoliciesResponse) ProtoMessage()

func (*GetPoliciesResponse) Reset added in v0.4.0

func (m *GetPoliciesResponse) Reset()

func (*GetPoliciesResponse) String added in v0.4.0

func (m *GetPoliciesResponse) String() string

func (*GetPoliciesResponse) Unmarshal added in v0.4.0

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

func (*GetPoliciesResponse) XSize added in v0.4.0

func (m *GetPoliciesResponse) XSize() (n int)

func (*GetPoliciesResponse) XXX_DiscardUnknown added in v0.4.0

func (m *GetPoliciesResponse) XXX_DiscardUnknown()

func (*GetPoliciesResponse) XXX_Marshal added in v0.4.0

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

func (*GetPoliciesResponse) XXX_Merge added in v0.4.0

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

func (*GetPoliciesResponse) XXX_Size added in v0.4.0

func (m *GetPoliciesResponse) XXX_Size() int

func (*GetPoliciesResponse) XXX_Unmarshal added in v0.4.0

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

type PType

type PType int32
const (
	PType_UNKNOWN PType = 0
	PType_POLICY  PType = 1
	PType_ROLE    PType = 2
	PType_GROUP   PType = 3
)

func ParsePtype added in v0.3.0

func ParsePtype(text string) PType

func (PType) EnumDescriptor added in v0.3.0

func (PType) EnumDescriptor() ([]byte, []int)

func (PType) Name added in v0.3.0

func (m PType) Name() string

func (PType) String added in v0.3.0

func (x PType) String() string

type Policy

type Policy struct {
	Ptype    PType         `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"`
	Sub      string        `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"`
	Endpoint *api.Endpoint `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
}

func NewPolicy added in v0.3.0

func NewPolicy(sub string, endpoint *api.Endpoint) *Policy

func NewPolicyWithString added in v0.3.0

func NewPolicyWithString(sub, obj, act string) *Policy

func (*Policy) Descriptor added in v0.3.0

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

func (*Policy) Marshal added in v0.3.0

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

func (*Policy) MarshalTo added in v0.3.0

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

func (*Policy) MarshalToSizedBuffer added in v0.3.0

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

func (*Policy) ProtoMessage added in v0.3.0

func (*Policy) ProtoMessage()

func (*Policy) Reset added in v0.3.0

func (m *Policy) Reset()

func (*Policy) String added in v0.3.0

func (m *Policy) String() string

func (Policy) ToCasbinPolicy added in v0.3.0

func (m Policy) ToCasbinPolicy() (sub string, obj string, act string)

func (*Policy) Unmarshal added in v0.3.0

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

func (*Policy) XSize added in v0.3.0

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

func (*Policy) XXX_DiscardUnknown added in v0.3.0

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal added in v0.3.0

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

func (*Policy) XXX_Merge added in v0.3.0

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

func (*Policy) XXX_Size added in v0.3.0

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal added in v0.3.0

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

type RBACService

Client API for RBACService service +gen:openapi

func NewRBACService

func NewRBACService(name string, c client.Client) RBACService

type RBACServiceClient

RBACServiceClient is the client API for RBACService service.

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

func NewRBACServiceClient

func NewRBACServiceClient(cc *grpc.ClientConn) RBACServiceClient

type Subject

type Subject struct {
	Ptype PType  `protobuf:"varint,1,opt,name=ptype,proto3,enum=api.PType" json:"ptype,omitempty"`
	User  string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
}

func (*Subject) Descriptor

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

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

func (m *Subject) String() string

func (*Subject) Unmarshal

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

func (*Subject) XSize

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

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_Size

func (m *Subject) XXX_Size() int

func (*Subject) XXX_Unmarshal

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

type UnimplementedRBACServiceServer

type UnimplementedRBACServiceServer struct {
}

UnimplementedRBACServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRBACServiceServer) AddGroupPolicy

func (*UnimplementedRBACServiceServer) AddPolicy

func (*UnimplementedRBACServiceServer) DelGroupPolicy

func (*UnimplementedRBACServiceServer) DelPolicy added in v0.3.0

func (*UnimplementedRBACServiceServer) Enforce

func (*UnimplementedRBACServiceServer) GetAllPolicies added in v0.4.0

func (*UnimplementedRBACServiceServer) GetGroupPolicies added in v0.4.0

func (*UnimplementedRBACServiceServer) GetPolicies added in v0.4.0

Jump to

Keyboard shortcuts

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