forked from kyma-project/kyma
/
interfaces.go
32 lines (26 loc) · 1.21 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package content
import (
"github.com/kyma-project/kyma/components/ui-api-layer/internal/domain/content/storage"
"github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
)
//go:generate mockery -name=topicsConverterInterface -output=automock -outpkg=automock -case=underscore
type topicsConverterInterface interface {
ToGQL(in []gqlschema.TopicEntry) *gqlschema.JSON
ExtractSection(documents []storage.Document, internal bool) ([]gqlschema.Section, error)
}
//go:generate mockery -name=contentGetter -output=automock -outpkg=automock -case=underscore
type contentGetter interface {
Find(kind, id string) (*storage.Content, error)
}
//go:generate mockery -name=minioAsyncApiSpecGetter -output=automock -outpkg=automock -case=underscore
type minioAsyncApiSpecGetter interface {
AsyncApiSpec(id string) (*storage.AsyncApiSpec, bool, error)
}
//go:generate mockery -name=minioApiSpecGetter -output=automock -outpkg=automock -case=underscore
type minioApiSpecGetter interface {
ApiSpec(id string) (*storage.ApiSpec, bool, error)
}
//go:generate mockery -name=minioContentGetter -output=automock -outpkg=automock -case=underscore
type minioContentGetter interface {
Content(id string) (*storage.Content, bool, error)
}