rbac

package
v0.0.0-...-4515e61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterControlServer

func RegisterControlServer(s *grpc.Server, srv ControlServer)

Types

type AccountID

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

func (*AccountID) Descriptor

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

func (*AccountID) GetID

func (m *AccountID) GetID() string

func (*AccountID) ProtoMessage

func (*AccountID) ProtoMessage()

func (*AccountID) Reset

func (m *AccountID) Reset()

func (*AccountID) String

func (m *AccountID) String() string

func (*AccountID) XXX_DiscardUnknown

func (m *AccountID) XXX_DiscardUnknown()

func (*AccountID) XXX_Marshal

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

func (*AccountID) XXX_Merge

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

func (*AccountID) XXX_Size

func (m *AccountID) XXX_Size() int

func (*AccountID) XXX_Unmarshal

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

type AccountRoles

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

func (*AccountRoles) Descriptor

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

func (*AccountRoles) GetRoleIDs

func (m *AccountRoles) GetRoleIDs() []string

func (*AccountRoles) ProtoMessage

func (*AccountRoles) ProtoMessage()

func (*AccountRoles) Reset

func (m *AccountRoles) Reset()

func (*AccountRoles) String

func (m *AccountRoles) String() string

func (*AccountRoles) XXX_DiscardUnknown

func (m *AccountRoles) XXX_DiscardUnknown()

func (*AccountRoles) XXX_Marshal

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

func (*AccountRoles) XXX_Merge

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

func (*AccountRoles) XXX_Size

func (m *AccountRoles) XXX_Size() int

func (*AccountRoles) XXX_Unmarshal

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

type ControlClient

type ControlClient interface {
	GetRoleRules(ctx context.Context, in *RoleID, opts ...grpc.CallOption) (*RoleRules, error)
	SetRoleRules(ctx context.Context, in *SetRoleRulesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetAccountRoles(ctx context.Context, in *AccountID, opts ...grpc.CallOption) (*AccountRoles, error)
	SetAccountRoles(ctx context.Context, in *SetAccountRolesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	IsAccountAllowed(ctx context.Context, in *IsAccountAllowedRequest, opts ...grpc.CallOption) (*IsAccountAllowedResponse, error)
}

ControlClient is the client API for Control service.

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

func NewControlClient

func NewControlClient(cc *grpc.ClientConn) ControlClient

type ControlServer

type ControlServer interface {
	GetRoleRules(context.Context, *RoleID) (*RoleRules, error)
	SetRoleRules(context.Context, *SetRoleRulesRequest) (*empty.Empty, error)
	GetAccountRoles(context.Context, *AccountID) (*AccountRoles, error)
	SetAccountRoles(context.Context, *SetAccountRolesRequest) (*empty.Empty, error)
	IsAccountAllowed(context.Context, *IsAccountAllowedRequest) (*IsAccountAllowedResponse, error)
}

ControlServer is the server API for Control service.

type IsAccountAllowedRequest

type IsAccountAllowedRequest struct {
	AccountID            *AccountID `protobuf:"bytes,1,opt,name=AccountID,proto3" json:"AccountID,omitempty"`
	Rule                 *Rule      `protobuf:"bytes,2,opt,name=Rule,proto3" json:"Rule,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*IsAccountAllowedRequest) Descriptor

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

func (*IsAccountAllowedRequest) GetAccountID

func (m *IsAccountAllowedRequest) GetAccountID() *AccountID

func (*IsAccountAllowedRequest) GetRule

func (m *IsAccountAllowedRequest) GetRule() *Rule

func (*IsAccountAllowedRequest) ProtoMessage

func (*IsAccountAllowedRequest) ProtoMessage()

func (*IsAccountAllowedRequest) Reset

func (m *IsAccountAllowedRequest) Reset()

func (*IsAccountAllowedRequest) String

func (m *IsAccountAllowedRequest) String() string

func (*IsAccountAllowedRequest) XXX_DiscardUnknown

func (m *IsAccountAllowedRequest) XXX_DiscardUnknown()

func (*IsAccountAllowedRequest) XXX_Marshal

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

func (*IsAccountAllowedRequest) XXX_Merge

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

func (*IsAccountAllowedRequest) XXX_Size

func (m *IsAccountAllowedRequest) XXX_Size() int

func (*IsAccountAllowedRequest) XXX_Unmarshal

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

type IsAccountAllowedResponse

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

func (*IsAccountAllowedResponse) Descriptor

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

func (*IsAccountAllowedResponse) GetAllowed

func (m *IsAccountAllowedResponse) GetAllowed() bool

func (*IsAccountAllowedResponse) ProtoMessage

func (*IsAccountAllowedResponse) ProtoMessage()

func (*IsAccountAllowedResponse) Reset

func (m *IsAccountAllowedResponse) Reset()

func (*IsAccountAllowedResponse) String

func (m *IsAccountAllowedResponse) String() string

func (*IsAccountAllowedResponse) XXX_DiscardUnknown

func (m *IsAccountAllowedResponse) XXX_DiscardUnknown()

func (*IsAccountAllowedResponse) XXX_Marshal

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

func (*IsAccountAllowedResponse) XXX_Merge

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

func (*IsAccountAllowedResponse) XXX_Size

func (m *IsAccountAllowedResponse) XXX_Size() int

func (*IsAccountAllowedResponse) XXX_Unmarshal

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

type RoleID

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

func (*RoleID) Descriptor

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

func (*RoleID) GetID

func (m *RoleID) GetID() string

func (*RoleID) ProtoMessage

func (*RoleID) ProtoMessage()

func (*RoleID) Reset

func (m *RoleID) Reset()

func (*RoleID) String

func (m *RoleID) String() string

func (*RoleID) XXX_DiscardUnknown

func (m *RoleID) XXX_DiscardUnknown()

func (*RoleID) XXX_Marshal

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

func (*RoleID) XXX_Merge

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

func (*RoleID) XXX_Size

func (m *RoleID) XXX_Size() int

func (*RoleID) XXX_Unmarshal

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

type RoleRules

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

func (*RoleRules) Descriptor

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

func (*RoleRules) GetRules

func (m *RoleRules) GetRules() []string

func (*RoleRules) ProtoMessage

func (*RoleRules) ProtoMessage()

func (*RoleRules) Reset

func (m *RoleRules) Reset()

func (*RoleRules) String

func (m *RoleRules) String() string

func (*RoleRules) XXX_DiscardUnknown

func (m *RoleRules) XXX_DiscardUnknown()

func (*RoleRules) XXX_Marshal

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

func (*RoleRules) XXX_Merge

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

func (*RoleRules) XXX_Size

func (m *RoleRules) XXX_Size() int

func (*RoleRules) XXX_Unmarshal

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

type Rule

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

func (*Rule) Descriptor

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

func (*Rule) GetRule

func (m *Rule) GetRule() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) String

func (m *Rule) String() string

func (*Rule) XXX_DiscardUnknown

func (m *Rule) XXX_DiscardUnknown()

func (*Rule) XXX_Marshal

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

func (*Rule) XXX_Merge

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

func (*Rule) XXX_Size

func (m *Rule) XXX_Size() int

func (*Rule) XXX_Unmarshal

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

type SetAccountRolesRequest

type SetAccountRolesRequest struct {
	AccountID            *AccountID    `protobuf:"bytes,1,opt,name=AccountID,proto3" json:"AccountID,omitempty"`
	AccountRoles         *AccountRoles `protobuf:"bytes,2,opt,name=AccountRoles,proto3" json:"AccountRoles,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SetAccountRolesRequest) Descriptor

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

func (*SetAccountRolesRequest) GetAccountID

func (m *SetAccountRolesRequest) GetAccountID() *AccountID

func (*SetAccountRolesRequest) GetAccountRoles

func (m *SetAccountRolesRequest) GetAccountRoles() *AccountRoles

func (*SetAccountRolesRequest) ProtoMessage

func (*SetAccountRolesRequest) ProtoMessage()

func (*SetAccountRolesRequest) Reset

func (m *SetAccountRolesRequest) Reset()

func (*SetAccountRolesRequest) String

func (m *SetAccountRolesRequest) String() string

func (*SetAccountRolesRequest) XXX_DiscardUnknown

func (m *SetAccountRolesRequest) XXX_DiscardUnknown()

func (*SetAccountRolesRequest) XXX_Marshal

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

func (*SetAccountRolesRequest) XXX_Merge

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

func (*SetAccountRolesRequest) XXX_Size

func (m *SetAccountRolesRequest) XXX_Size() int

func (*SetAccountRolesRequest) XXX_Unmarshal

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

type SetRoleRulesRequest

type SetRoleRulesRequest struct {
	RoleID               *RoleID    `protobuf:"bytes,1,opt,name=RoleID,proto3" json:"RoleID,omitempty"`
	RoleRules            *RoleRules `protobuf:"bytes,2,opt,name=RoleRules,proto3" json:"RoleRules,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*SetRoleRulesRequest) Descriptor

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

func (*SetRoleRulesRequest) GetRoleID

func (m *SetRoleRulesRequest) GetRoleID() *RoleID

func (*SetRoleRulesRequest) GetRoleRules

func (m *SetRoleRulesRequest) GetRoleRules() *RoleRules

func (*SetRoleRulesRequest) ProtoMessage

func (*SetRoleRulesRequest) ProtoMessage()

func (*SetRoleRulesRequest) Reset

func (m *SetRoleRulesRequest) Reset()

func (*SetRoleRulesRequest) String

func (m *SetRoleRulesRequest) String() string

func (*SetRoleRulesRequest) XXX_DiscardUnknown

func (m *SetRoleRulesRequest) XXX_DiscardUnknown()

func (*SetRoleRulesRequest) XXX_Marshal

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

func (*SetRoleRulesRequest) XXX_Merge

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

func (*SetRoleRulesRequest) XXX_Size

func (m *SetRoleRulesRequest) XXX_Size() int

func (*SetRoleRulesRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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