Documentation
¶
Index ¶
- Constants
- func NewTokenProvider(authEndpoint string, authClientId string, authClientSecret string) func() (string, error)
- func NewUserTokenProvider(authEndpoint string, authClientId string, authClientSecret string, ...) func() (string, error)
- type Client
- type Impl
- func (this *Impl) CheckMultiplePermissions(token string, topicId string, ids []string, permissions string) (access map[string]bool, err error, code int)
- func (this *Impl) CheckPermission(token string, topicId string, id string, permissions string) (access bool, err error, code int)
- func (this *Impl) GetResource(token string, topicId string, id string) (result model.Resource, err error, code int)
- func (this *Impl) GetTopic(token string, id string) (result model.Topic, err error, code int)
- func (this *Impl) ListAccessibleResourceIds(token string, topicId string, permissions string, options model.ListOptions) (ids []string, err error, code int)
- func (this *Impl) ListResourcesWithAdminPermission(token string, topicId string, options model.ListOptions) (result []model.Resource, err error, code int)
- func (this *Impl) ListTopics(token string, options model.ListOptions) (result []model.Topic, err error, code int)
- func (this *Impl) RemoveTopic(token string, id string) (err error, code int)
- func (this *Impl) SetPermission(token string, topicId string, id string, permissions model.ResourcePermissions, ...) (result model.ResourcePermissions, err error, code int)
- func (this *Impl) SetTopic(token string, topic model.Topic) (result model.Topic, err error, code int)
- type OpenidToken
Constants ¶
View Source
const InternalAdminToken = `` /* 727-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewTokenProvider ¶
Types ¶
type Client ¶
type Client interface { api.Controller }
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) CheckMultiplePermissions ¶
func (*Impl) CheckPermission ¶
func (*Impl) GetResource ¶
func (*Impl) ListAccessibleResourceIds ¶
func (*Impl) ListResourcesWithAdminPermission ¶
func (*Impl) ListTopics ¶
func (*Impl) RemoveTopic ¶
func (*Impl) SetPermission ¶
func (this *Impl) SetPermission(token string, topicId string, id string, permissions model.ResourcePermissions, options model.SetPermissionOptions) (result model.ResourcePermissions, err error, code int)
Click to show internal directories.
Click to hide internal directories.