Documentation
¶
Index ¶
- type Mock
- func (this *Mock) AdminListResourceIds(ctx context.Context, topicId string, listOptions model.ListOptions) (result []string, err error)
- func (this *Mock) AdminListResources(ctx context.Context, topicId string, listOptions model.ListOptions) (result []model.Resource, err error)
- func (this *Mock) CheckMultipleResourcePermissions(ctx context.Context, topicId string, ids []string, userId string, ...) (result map[string]bool, err error)
- func (this *Mock) CheckResourcePermissions(ctx context.Context, topicId string, id string, userId string, ...) (result bool, err error)
- func (this *Mock) DeleteResource(ctx context.Context, topicId string, id string) error
- func (this *Mock) DeleteTopic(ctx context.Context, id string) error
- func (this *Mock) GetResource(ctx context.Context, topicId string, id string, options model.GetOptions) (resource model.Resource, err error)
- func (this *Mock) GetTopic(ctx context.Context, id string) (result model.Topic, exists bool, err error)
- func (this *Mock) ListResourceIdsByPermissions(ctx context.Context, topicId string, userId string, roleIds []string, ...) (result []string, err error)
- func (this *Mock) ListResourcesByPermissions(ctx context.Context, topicId string, userId string, roleIds []string, ...) (result []model.Resource, err error)
- func (this *Mock) ListTopics(ctx context.Context, options model.ListOptions) (result []model.Topic, err error)
- func (this *Mock) ListUnsyncedResources(ctx context.Context) ([]model.Resource, error)
- func (this *Mock) MarkResourceAsSynced(ctx context.Context, topicId string, id string) error
- func (this *Mock) SetResource(ctx context.Context, r model.Resource, t time.Time, synced bool) (err error)
- func (this *Mock) SetTopic(ctx context.Context, topic model.Topic) error
- type ResourceWithTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) AdminListResourceIds ¶ added in v0.0.9
func (*Mock) AdminListResources ¶ added in v0.0.15
func (*Mock) CheckMultipleResourcePermissions ¶
func (*Mock) CheckResourcePermissions ¶
func (*Mock) DeleteResource ¶
func (*Mock) GetResource ¶
func (*Mock) ListResourceIdsByPermissions ¶
func (*Mock) ListResourcesByPermissions ¶
func (*Mock) ListTopics ¶
func (*Mock) ListUnsyncedResources ¶ added in v0.0.16
func (*Mock) MarkResourceAsSynced ¶ added in v0.0.16
func (*Mock) SetResource ¶ added in v0.0.16
type ResourceWithTime ¶
Click to show internal directories.
Click to hide internal directories.