Documentation
¶
Overview ¶
Package templateversion is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, ...) (*domain.TemplateVersion, domain.Status)
- func (m *MockService) DeleteTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet, name string) domain.Status
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, domain.Status)
- func (m *MockService) GetTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet, name string) (*domain.TemplateVersion, domain.Status)
- func (m *MockService) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, ...) (*domain.TemplateVersionList, domain.Status)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreateTemplateVersion(ctx, orgId, templateVersion, immediateRollout any) *gomock.Call
- func (mr *MockServiceMockRecorder) DeleteTemplateVersion(ctx, orgId, fleet, name any) *gomock.Call
- func (mr *MockServiceMockRecorder) GetLatestTemplateVersion(ctx, orgId, fleet any) *gomock.Call
- func (mr *MockServiceMockRecorder) GetTemplateVersion(ctx, orgId, fleet, name any) *gomock.Call
- func (mr *MockServiceMockRecorder) ListTemplateVersions(ctx, orgId, fleet, params any) *gomock.Call
- type Service
- type ServiceHandler
- func (h *ServiceHandler) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, ...) (*domain.TemplateVersion, domain.Status)
- func (h *ServiceHandler) DeleteTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) domain.Status
- func (h *ServiceHandler) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, domain.Status)
- func (h *ServiceHandler) GetTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) (*domain.TemplateVersion, domain.Status)
- func (h *ServiceHandler) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, ...) (*domain.TemplateVersionList, domain.Status)
- type TracedService
- func (_d *TracedService) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, ...) (tp1 *domain.TemplateVersion, s1 domain.Status)
- func (_d *TracedService) DeleteTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) (s1 domain.Status)
- func (_d *TracedService) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (tp1 *domain.TemplateVersion, s1 domain.Status)
- func (_d *TracedService) GetTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) (tp1 *domain.TemplateVersion, s1 domain.Status)
- func (_d *TracedService) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, ...) (tp1 *domain.TemplateVersionList, s1 domain.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CreateTemplateVersion ¶
func (m *MockService) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, immediateRollout bool) (*domain.TemplateVersion, domain.Status)
CreateTemplateVersion mocks base method.
func (*MockService) DeleteTemplateVersion ¶
func (m *MockService) DeleteTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet, name string) domain.Status
DeleteTemplateVersion mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetLatestTemplateVersion ¶
func (m *MockService) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, domain.Status)
GetLatestTemplateVersion mocks base method.
func (*MockService) GetTemplateVersion ¶
func (m *MockService) GetTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet, name string) (*domain.TemplateVersion, domain.Status)
GetTemplateVersion mocks base method.
func (*MockService) ListTemplateVersions ¶
func (m *MockService) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, params domain.ListTemplateVersionsParams) (*domain.TemplateVersionList, domain.Status)
ListTemplateVersions mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreateTemplateVersion ¶
func (mr *MockServiceMockRecorder) CreateTemplateVersion(ctx, orgId, templateVersion, immediateRollout any) *gomock.Call
CreateTemplateVersion indicates an expected call of CreateTemplateVersion.
func (*MockServiceMockRecorder) DeleteTemplateVersion ¶
func (mr *MockServiceMockRecorder) DeleteTemplateVersion(ctx, orgId, fleet, name any) *gomock.Call
DeleteTemplateVersion indicates an expected call of DeleteTemplateVersion.
func (*MockServiceMockRecorder) GetLatestTemplateVersion ¶
func (mr *MockServiceMockRecorder) GetLatestTemplateVersion(ctx, orgId, fleet any) *gomock.Call
GetLatestTemplateVersion indicates an expected call of GetLatestTemplateVersion.
func (*MockServiceMockRecorder) GetTemplateVersion ¶
func (mr *MockServiceMockRecorder) GetTemplateVersion(ctx, orgId, fleet, name any) *gomock.Call
GetTemplateVersion indicates an expected call of GetTemplateVersion.
func (*MockServiceMockRecorder) ListTemplateVersions ¶
func (mr *MockServiceMockRecorder) ListTemplateVersions(ctx, orgId, fleet, params any) *gomock.Call
ListTemplateVersions indicates an expected call of ListTemplateVersions.
type Service ¶
type Service interface {
CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, immediateRollout bool) (*domain.TemplateVersion, domain.Status)
ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, params domain.ListTemplateVersionsParams) (*domain.TemplateVersionList, domain.Status)
GetTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) (*domain.TemplateVersion, domain.Status)
DeleteTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string, name string) domain.Status
GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, domain.Status)
}
func WrapWithTracing ¶
WrapWithTracing returns a Service that wraps inner with tracing spans, or nil if inner is nil.
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
func NewServiceHandler ¶
func NewServiceHandler(store templateversionstore.Store, kvStore kvstore.KVStore, events events.Service, log logrus.FieldLogger) *ServiceHandler
NewServiceHandler creates a new templateversion ServiceHandler instance.
func (*ServiceHandler) CreateTemplateVersion ¶
func (h *ServiceHandler) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, immediateRollout bool) (*domain.TemplateVersion, domain.Status)
func (*ServiceHandler) DeleteTemplateVersion ¶
func (*ServiceHandler) GetLatestTemplateVersion ¶
func (h *ServiceHandler) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, domain.Status)
func (*ServiceHandler) GetTemplateVersion ¶
func (*ServiceHandler) ListTemplateVersions ¶
func (h *ServiceHandler) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, params domain.ListTemplateVersionsParams) (*domain.TemplateVersionList, domain.Status)
type TracedService ¶
type TracedService struct {
// contains filtered or unexported fields
}
TracedService wraps a Service implementation with OpenTelemetry tracing.
func (*TracedService) CreateTemplateVersion ¶
func (_d *TracedService) CreateTemplateVersion(ctx context.Context, orgId uuid.UUID, templateVersion domain.TemplateVersion, immediateRollout bool) (tp1 *domain.TemplateVersion, s1 domain.Status)
func (*TracedService) DeleteTemplateVersion ¶
func (*TracedService) GetLatestTemplateVersion ¶
func (_d *TracedService) GetLatestTemplateVersion(ctx context.Context, orgId uuid.UUID, fleet string) (tp1 *domain.TemplateVersion, s1 domain.Status)
func (*TracedService) GetTemplateVersion ¶
func (*TracedService) ListTemplateVersions ¶
func (_d *TracedService) ListTemplateVersions(ctx context.Context, orgId uuid.UUID, fleet string, params domain.ListTemplateVersionsParams) (tp1 *domain.TemplateVersionList, s1 domain.Status)