Documentation
¶
Index ¶
- type APIConverter
- func (_m *APIConverter) InputFromGraphQL(in *graphql.APIDefinitionInput) *model.APIDefinitionInput
- func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) []*model.APIDefinitionInput
- func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition) []*graphql.APIDefinition
- func (_m *APIConverter) ToGraphQL(in *model.APIDefinition) *graphql.APIDefinition
- type APIRepository
- type APIService
- func (_m *APIService) Create(ctx context.Context, applicationID string, in model.APIDefinitionInput) (string, error)
- func (_m *APIService) Delete(ctx context.Context, id string) error
- func (_m *APIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)
- func (_m *APIService) Update(ctx context.Context, id string, in model.APIDefinitionInput) error
- type ApplicationConverter
- type ApplicationRepository
- func (_m *ApplicationRepository) Create(item *model.Application) error
- func (_m *ApplicationRepository) Delete(item *model.Application) error
- func (_m *ApplicationRepository) GetByID(tenant string, id string) (*model.Application, error)
- func (_m *ApplicationRepository) List(tenant string, filter []*labelfilter.LabelFilter, pageSize *int, ...) (*model.ApplicationPage, error)
- func (_m *ApplicationRepository) Update(item *model.Application) error
- type ApplicationService
- func (_m *ApplicationService) AddAnnotation(ctx context.Context, applicationID string, key string, value interface{}) error
- func (_m *ApplicationService) AddLabel(ctx context.Context, applicationID string, key string, values []string) error
- func (_m *ApplicationService) Create(ctx context.Context, in model.ApplicationInput) (string, error)
- func (_m *ApplicationService) Delete(ctx context.Context, id string) error
- func (_m *ApplicationService) DeleteAnnotation(ctx context.Context, applicationID string, key string) error
- func (_m *ApplicationService) DeleteLabel(ctx context.Context, applicationID string, key string, values []string) error
- func (_m *ApplicationService) Get(ctx context.Context, id string) (*model.Application, error)
- func (_m *ApplicationService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize *int, ...) (*model.ApplicationPage, error)
- func (_m *ApplicationService) Update(ctx context.Context, id string, in model.ApplicationInput) error
- type DocumentConverter
- type DocumentRepository
- type DocumentService
- type EventAPIConverter
- func (_m *EventAPIConverter) InputFromGraphQL(in *graphql.EventAPIDefinitionInput) *model.EventAPIDefinitionInput
- func (_m *EventAPIConverter) MultipleInputFromGraphQL(in []*graphql.EventAPIDefinitionInput) []*model.EventAPIDefinitionInput
- func (_m *EventAPIConverter) MultipleToGraphQL(in []*model.EventAPIDefinition) []*graphql.EventAPIDefinition
- func (_m *EventAPIConverter) ToGraphQL(in *model.EventAPIDefinition) *graphql.EventAPIDefinition
- type EventAPIRepository
- type EventAPIService
- func (_m *EventAPIService) Create(ctx context.Context, applicationID string, in model.EventAPIDefinitionInput) (string, error)
- func (_m *EventAPIService) Delete(ctx context.Context, id string) error
- func (_m *EventAPIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.EventAPIDefinitionPage, error)
- func (_m *EventAPIService) Update(ctx context.Context, id string, in model.EventAPIDefinitionInput) error
- type UIDService
- type WebhookConverter
- func (_m *WebhookConverter) InputFromGraphQL(in *graphql.ApplicationWebhookInput) *model.ApplicationWebhookInput
- func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.ApplicationWebhookInput) []*model.ApplicationWebhookInput
- func (_m *WebhookConverter) MultipleToGraphQL(in []*model.ApplicationWebhook) []*graphql.ApplicationWebhook
- func (_m *WebhookConverter) ToGraphQL(in *model.ApplicationWebhook) *graphql.ApplicationWebhook
- type WebhookRepository
- type WebhookService
- func (_m *WebhookService) Create(ctx context.Context, applicationID string, in model.ApplicationWebhookInput) (string, error)
- func (_m *WebhookService) Delete(ctx context.Context, id string) error
- func (_m *WebhookService) Get(ctx context.Context, id string) (*model.ApplicationWebhook, error)
- func (_m *WebhookService) List(ctx context.Context, applicationID string) ([]*model.ApplicationWebhook, error)
- func (_m *WebhookService) Update(ctx context.Context, id string, in model.ApplicationWebhookInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConverter ¶
APIConverter is an autogenerated mock type for the APIConverter type
func (*APIConverter) InputFromGraphQL ¶
func (_m *APIConverter) InputFromGraphQL(in *graphql.APIDefinitionInput) *model.APIDefinitionInput
InputFromGraphQL provides a mock function with given fields: in
func (*APIConverter) MultipleInputFromGraphQL ¶
func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) []*model.APIDefinitionInput
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*APIConverter) MultipleToGraphQL ¶
func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition) []*graphql.APIDefinition
MultipleToGraphQL provides a mock function with given fields: in
func (*APIConverter) ToGraphQL ¶
func (_m *APIConverter) ToGraphQL(in *model.APIDefinition) *graphql.APIDefinition
ToGraphQL provides a mock function with given fields: in
type APIRepository ¶
APIRepository is an autogenerated mock type for the APIRepository type
func (*APIRepository) CreateMany ¶
func (_m *APIRepository) CreateMany(items []*model.APIDefinition) error
CreateMany provides a mock function with given fields: items
func (*APIRepository) DeleteAllByApplicationID ¶
func (_m *APIRepository) DeleteAllByApplicationID(id string) error
DeleteAllByApplicationID provides a mock function with given fields: id
func (*APIRepository) ListByApplicationID ¶
func (_m *APIRepository) ListByApplicationID(applicationID string, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)
ListByApplicationID provides a mock function with given fields: applicationID, pageSize, cursor
type APIService ¶
APIService is an autogenerated mock type for the APIService type
func (*APIService) Create ¶
func (_m *APIService) Create(ctx context.Context, applicationID string, in model.APIDefinitionInput) (string, error)
Create provides a mock function with given fields: ctx, applicationID, in
func (*APIService) Delete ¶
func (_m *APIService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*APIService) List ¶
func (_m *APIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)
List provides a mock function with given fields: ctx, applicationID, pageSize, cursor
func (*APIService) Update ¶
func (_m *APIService) Update(ctx context.Context, id string, in model.APIDefinitionInput) error
Update provides a mock function with given fields: ctx, id, in
type ApplicationConverter ¶
ApplicationConverter is an autogenerated mock type for the ApplicationConverter type
func (*ApplicationConverter) InputFromGraphQL ¶
func (_m *ApplicationConverter) InputFromGraphQL(in graphql.ApplicationInput) model.ApplicationInput
InputFromGraphQL provides a mock function with given fields: in
func (*ApplicationConverter) MultipleToGraphQL ¶
func (_m *ApplicationConverter) MultipleToGraphQL(in []*model.Application) []*graphql.Application
MultipleToGraphQL provides a mock function with given fields: in
func (*ApplicationConverter) ToGraphQL ¶
func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application
ToGraphQL provides a mock function with given fields: in
type ApplicationRepository ¶
ApplicationRepository is an autogenerated mock type for the ApplicationRepository type
func (*ApplicationRepository) Create ¶
func (_m *ApplicationRepository) Create(item *model.Application) error
Create provides a mock function with given fields: item
func (*ApplicationRepository) Delete ¶
func (_m *ApplicationRepository) Delete(item *model.Application) error
Delete provides a mock function with given fields: item
func (*ApplicationRepository) GetByID ¶
func (_m *ApplicationRepository) GetByID(tenant string, id string) (*model.Application, error)
GetByID provides a mock function with given fields: tenant, id
func (*ApplicationRepository) List ¶
func (_m *ApplicationRepository) List(tenant string, filter []*labelfilter.LabelFilter, pageSize *int, cursor *string) (*model.ApplicationPage, error)
List provides a mock function with given fields: tenant, filter, pageSize, cursor
func (*ApplicationRepository) Update ¶
func (_m *ApplicationRepository) Update(item *model.Application) error
Update provides a mock function with given fields: item
type ApplicationService ¶
ApplicationService is an autogenerated mock type for the ApplicationService type
func (*ApplicationService) AddAnnotation ¶
func (_m *ApplicationService) AddAnnotation(ctx context.Context, applicationID string, key string, value interface{}) error
AddAnnotation provides a mock function with given fields: ctx, applicationID, key, value
func (*ApplicationService) AddLabel ¶
func (_m *ApplicationService) AddLabel(ctx context.Context, applicationID string, key string, values []string) error
AddLabel provides a mock function with given fields: ctx, applicationID, key, values
func (*ApplicationService) Create ¶
func (_m *ApplicationService) Create(ctx context.Context, in model.ApplicationInput) (string, error)
Create provides a mock function with given fields: ctx, in
func (*ApplicationService) Delete ¶
func (_m *ApplicationService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*ApplicationService) DeleteAnnotation ¶
func (_m *ApplicationService) DeleteAnnotation(ctx context.Context, applicationID string, key string) error
DeleteAnnotation provides a mock function with given fields: ctx, applicationID, key
func (*ApplicationService) DeleteLabel ¶
func (_m *ApplicationService) DeleteLabel(ctx context.Context, applicationID string, key string, values []string) error
DeleteLabel provides a mock function with given fields: ctx, applicationID, key, values
func (*ApplicationService) Get ¶
func (_m *ApplicationService) Get(ctx context.Context, id string) (*model.Application, error)
Get provides a mock function with given fields: ctx, id
func (*ApplicationService) List ¶
func (_m *ApplicationService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize *int, cursor *string) (*model.ApplicationPage, error)
List provides a mock function with given fields: ctx, filter, pageSize, cursor
func (*ApplicationService) Update ¶
func (_m *ApplicationService) Update(ctx context.Context, id string, in model.ApplicationInput) error
Update provides a mock function with given fields: ctx, id, in
type DocumentConverter ¶
DocumentConverter is an autogenerated mock type for the DocumentConverter type
func (*DocumentConverter) MultipleInputFromGraphQL ¶
func (_m *DocumentConverter) MultipleInputFromGraphQL(in []*graphql.DocumentInput) []*model.DocumentInput
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*DocumentConverter) MultipleToGraphQL ¶
func (_m *DocumentConverter) MultipleToGraphQL(in []*model.Document) []*graphql.Document
MultipleToGraphQL provides a mock function with given fields: in
type DocumentRepository ¶
DocumentRepository is an autogenerated mock type for the DocumentRepository type
func (*DocumentRepository) CreateMany ¶
func (_m *DocumentRepository) CreateMany(items []*model.Document) error
CreateMany provides a mock function with given fields: items
func (*DocumentRepository) DeleteAllByApplicationID ¶
func (_m *DocumentRepository) DeleteAllByApplicationID(id string) error
DeleteAllByApplicationID provides a mock function with given fields: id
func (*DocumentRepository) ListAllByApplicationID ¶
func (_m *DocumentRepository) ListAllByApplicationID(applicationID string) ([]*model.Document, error)
ListAllByApplicationID provides a mock function with given fields: applicationID
type DocumentService ¶
DocumentService is an autogenerated mock type for the DocumentService type
type EventAPIConverter ¶
EventAPIConverter is an autogenerated mock type for the EventAPIConverter type
func (*EventAPIConverter) InputFromGraphQL ¶
func (_m *EventAPIConverter) InputFromGraphQL(in *graphql.EventAPIDefinitionInput) *model.EventAPIDefinitionInput
InputFromGraphQL provides a mock function with given fields: in
func (*EventAPIConverter) MultipleInputFromGraphQL ¶
func (_m *EventAPIConverter) MultipleInputFromGraphQL(in []*graphql.EventAPIDefinitionInput) []*model.EventAPIDefinitionInput
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*EventAPIConverter) MultipleToGraphQL ¶
func (_m *EventAPIConverter) MultipleToGraphQL(in []*model.EventAPIDefinition) []*graphql.EventAPIDefinition
MultipleToGraphQL provides a mock function with given fields: in
func (*EventAPIConverter) ToGraphQL ¶
func (_m *EventAPIConverter) ToGraphQL(in *model.EventAPIDefinition) *graphql.EventAPIDefinition
ToGraphQL provides a mock function with given fields: in
type EventAPIRepository ¶
EventAPIRepository is an autogenerated mock type for the EventAPIRepository type
func (*EventAPIRepository) CreateMany ¶
func (_m *EventAPIRepository) CreateMany(items []*model.EventAPIDefinition) error
CreateMany provides a mock function with given fields: items
func (*EventAPIRepository) DeleteAllByApplicationID ¶
func (_m *EventAPIRepository) DeleteAllByApplicationID(id string) error
DeleteAllByApplicationID provides a mock function with given fields: id
func (*EventAPIRepository) ListByApplicationID ¶
func (_m *EventAPIRepository) ListByApplicationID(applicationID string, pageSize *int, cursor *string) (*model.EventAPIDefinitionPage, error)
ListByApplicationID provides a mock function with given fields: applicationID, pageSize, cursor
type EventAPIService ¶
EventAPIService is an autogenerated mock type for the EventAPIService type
func (*EventAPIService) Create ¶
func (_m *EventAPIService) Create(ctx context.Context, applicationID string, in model.EventAPIDefinitionInput) (string, error)
Create provides a mock function with given fields: ctx, applicationID, in
func (*EventAPIService) Delete ¶
func (_m *EventAPIService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*EventAPIService) List ¶
func (_m *EventAPIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.EventAPIDefinitionPage, error)
List provides a mock function with given fields: ctx, applicationID, pageSize, cursor
func (*EventAPIService) Update ¶
func (_m *EventAPIService) Update(ctx context.Context, id string, in model.EventAPIDefinitionInput) error
Update provides a mock function with given fields: ctx, id, in
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields:
type WebhookConverter ¶
WebhookConverter is an autogenerated mock type for the WebhookConverter type
func (*WebhookConverter) InputFromGraphQL ¶
func (_m *WebhookConverter) InputFromGraphQL(in *graphql.ApplicationWebhookInput) *model.ApplicationWebhookInput
InputFromGraphQL provides a mock function with given fields: in
func (*WebhookConverter) MultipleInputFromGraphQL ¶
func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.ApplicationWebhookInput) []*model.ApplicationWebhookInput
MultipleInputFromGraphQL provides a mock function with given fields: in
func (*WebhookConverter) MultipleToGraphQL ¶
func (_m *WebhookConverter) MultipleToGraphQL(in []*model.ApplicationWebhook) []*graphql.ApplicationWebhook
MultipleToGraphQL provides a mock function with given fields: in
func (*WebhookConverter) ToGraphQL ¶
func (_m *WebhookConverter) ToGraphQL(in *model.ApplicationWebhook) *graphql.ApplicationWebhook
ToGraphQL provides a mock function with given fields: in
type WebhookRepository ¶
WebhookRepository is an autogenerated mock type for the WebhookRepository type
func (*WebhookRepository) CreateMany ¶
func (_m *WebhookRepository) CreateMany(items []*model.ApplicationWebhook) error
CreateMany provides a mock function with given fields: items
func (*WebhookRepository) DeleteAllByApplicationID ¶
func (_m *WebhookRepository) DeleteAllByApplicationID(id string) error
DeleteAllByApplicationID provides a mock function with given fields: id
func (*WebhookRepository) ListByApplicationID ¶
func (_m *WebhookRepository) ListByApplicationID(applicationID string) ([]*model.ApplicationWebhook, error)
ListByApplicationID provides a mock function with given fields: applicationID
type WebhookService ¶
WebhookService is an autogenerated mock type for the WebhookService type
func (*WebhookService) Create ¶
func (_m *WebhookService) Create(ctx context.Context, applicationID string, in model.ApplicationWebhookInput) (string, error)
Create provides a mock function with given fields: ctx, applicationID, in
func (*WebhookService) Delete ¶
func (_m *WebhookService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*WebhookService) Get ¶
func (_m *WebhookService) Get(ctx context.Context, id string) (*model.ApplicationWebhook, error)
Get provides a mock function with given fields: ctx, id
func (*WebhookService) List ¶
func (_m *WebhookService) List(ctx context.Context, applicationID string) ([]*model.ApplicationWebhook, error)
List provides a mock function with given fields: ctx, applicationID
func (*WebhookService) Update ¶
func (_m *WebhookService) Update(ctx context.Context, id string, in model.ApplicationWebhookInput) error
Update provides a mock function with given fields: ctx, id, in
Source Files
¶
- api_converter.go
- api_repository.go
- api_service.go
- application_converter.go
- application_repository.go
- application_service.go
- document_converter.go
- document_repository.go
- document_service.go
- event_api_converter.go
- event_api_repository.go
- event_api_service.go
- uid_service.go
- webhook_converter.go
- webhook_repository.go
- webhook_service.go