Documentation
¶
Index ¶
- func RegisterControlServer(s *grpc.Server, srv ControlServer)
- type AccountID
- func (*AccountID) Descriptor() ([]byte, []int)
- func (m *AccountID) GetID() string
- func (*AccountID) ProtoMessage()
- func (m *AccountID) Reset()
- func (m *AccountID) String() string
- func (m *AccountID) XXX_DiscardUnknown()
- func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountID) XXX_Merge(src proto.Message)
- func (m *AccountID) XXX_Size() int
- func (m *AccountID) XXX_Unmarshal(b []byte) error
- type AccountRoles
- func (*AccountRoles) Descriptor() ([]byte, []int)
- func (m *AccountRoles) GetRoleIDs() []string
- func (*AccountRoles) ProtoMessage()
- func (m *AccountRoles) Reset()
- func (m *AccountRoles) String() string
- func (m *AccountRoles) XXX_DiscardUnknown()
- func (m *AccountRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountRoles) XXX_Merge(src proto.Message)
- func (m *AccountRoles) XXX_Size() int
- func (m *AccountRoles) XXX_Unmarshal(b []byte) error
- type ControlClient
- type ControlServer
- type IsAccountAllowedRequest
- func (*IsAccountAllowedRequest) Descriptor() ([]byte, []int)
- func (m *IsAccountAllowedRequest) GetAccountID() *AccountID
- func (m *IsAccountAllowedRequest) GetRule() *Rule
- func (*IsAccountAllowedRequest) ProtoMessage()
- func (m *IsAccountAllowedRequest) Reset()
- func (m *IsAccountAllowedRequest) String() string
- func (m *IsAccountAllowedRequest) XXX_DiscardUnknown()
- func (m *IsAccountAllowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsAccountAllowedRequest) XXX_Merge(src proto.Message)
- func (m *IsAccountAllowedRequest) XXX_Size() int
- func (m *IsAccountAllowedRequest) XXX_Unmarshal(b []byte) error
- type IsAccountAllowedResponse
- func (*IsAccountAllowedResponse) Descriptor() ([]byte, []int)
- func (m *IsAccountAllowedResponse) GetAllowed() bool
- func (*IsAccountAllowedResponse) ProtoMessage()
- func (m *IsAccountAllowedResponse) Reset()
- func (m *IsAccountAllowedResponse) String() string
- func (m *IsAccountAllowedResponse) XXX_DiscardUnknown()
- func (m *IsAccountAllowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IsAccountAllowedResponse) XXX_Merge(src proto.Message)
- func (m *IsAccountAllowedResponse) XXX_Size() int
- func (m *IsAccountAllowedResponse) XXX_Unmarshal(b []byte) error
- type RoleID
- func (*RoleID) Descriptor() ([]byte, []int)
- func (m *RoleID) GetID() string
- func (*RoleID) ProtoMessage()
- func (m *RoleID) Reset()
- func (m *RoleID) String() string
- func (m *RoleID) XXX_DiscardUnknown()
- func (m *RoleID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleID) XXX_Merge(src proto.Message)
- func (m *RoleID) XXX_Size() int
- func (m *RoleID) XXX_Unmarshal(b []byte) error
- type RoleRules
- func (*RoleRules) Descriptor() ([]byte, []int)
- func (m *RoleRules) GetRules() []string
- func (*RoleRules) ProtoMessage()
- func (m *RoleRules) Reset()
- func (m *RoleRules) String() string
- func (m *RoleRules) XXX_DiscardUnknown()
- func (m *RoleRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleRules) XXX_Merge(src proto.Message)
- func (m *RoleRules) XXX_Size() int
- func (m *RoleRules) XXX_Unmarshal(b []byte) error
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)
- func (m *Rule) GetRule() string
- func (*Rule) ProtoMessage()
- func (m *Rule) Reset()
- func (m *Rule) String() string
- func (m *Rule) XXX_DiscardUnknown()
- func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rule) XXX_Merge(src proto.Message)
- func (m *Rule) XXX_Size() int
- func (m *Rule) XXX_Unmarshal(b []byte) error
- type SetAccountRolesRequest
- func (*SetAccountRolesRequest) Descriptor() ([]byte, []int)
- func (m *SetAccountRolesRequest) GetAccountID() *AccountID
- func (m *SetAccountRolesRequest) GetAccountRoles() *AccountRoles
- func (*SetAccountRolesRequest) ProtoMessage()
- func (m *SetAccountRolesRequest) Reset()
- func (m *SetAccountRolesRequest) String() string
- func (m *SetAccountRolesRequest) XXX_DiscardUnknown()
- func (m *SetAccountRolesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetAccountRolesRequest) XXX_Merge(src proto.Message)
- func (m *SetAccountRolesRequest) XXX_Size() int
- func (m *SetAccountRolesRequest) XXX_Unmarshal(b []byte) error
- type SetRoleRulesRequest
- func (*SetRoleRulesRequest) Descriptor() ([]byte, []int)
- func (m *SetRoleRulesRequest) GetRoleID() *RoleID
- func (m *SetRoleRulesRequest) GetRoleRules() *RoleRules
- func (*SetRoleRulesRequest) ProtoMessage()
- func (m *SetRoleRulesRequest) Reset()
- func (m *SetRoleRulesRequest) String() string
- func (m *SetRoleRulesRequest) XXX_DiscardUnknown()
- func (m *SetRoleRulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetRoleRulesRequest) XXX_Merge(src proto.Message)
- func (m *SetRoleRulesRequest) XXX_Size() int
- func (m *SetRoleRulesRequest) XXX_Unmarshal(b []byte) error
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) ProtoMessage ¶
func (*AccountID) ProtoMessage()
func (*AccountID) XXX_DiscardUnknown ¶
func (m *AccountID) XXX_DiscardUnknown()
func (*AccountID) XXX_Marshal ¶
func (*AccountID) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*RoleID) ProtoMessage()
func (*RoleID) XXX_DiscardUnknown ¶
func (m *RoleID) XXX_DiscardUnknown()
func (*RoleID) XXX_Marshal ¶
func (*RoleID) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*RoleRules) ProtoMessage()
func (*RoleRules) XXX_DiscardUnknown ¶
func (m *RoleRules) XXX_DiscardUnknown()
func (*RoleRules) XXX_Marshal ¶
func (*RoleRules) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) XXX_DiscardUnknown ¶
func (m *Rule) XXX_DiscardUnknown()
func (*Rule) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.