Documentation
¶
Index ¶
- type Store
- type TemplateVersionStore
- func (s *TemplateVersionStore) Create(ctx context.Context, orgId uuid.UUID, resource *domain.TemplateVersion, ...) (*domain.TemplateVersion, error)
- func (s *TemplateVersionStore) Delete(ctx context.Context, orgId uuid.UUID, fleet string, name string, ...) (bool, error)
- func (s *TemplateVersionStore) Get(ctx context.Context, orgId uuid.UUID, fleet string, name string) (*domain.TemplateVersion, error)
- func (s *TemplateVersionStore) GetLatest(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, error)
- func (s *TemplateVersionStore) InitialMigration(ctx context.Context) error
- func (s *TemplateVersionStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.TemplateVersionList, error)
- func (s *TemplateVersionStore) UpdateStatus(ctx context.Context, orgId uuid.UUID, resource *domain.TemplateVersion, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
InitialMigration(ctx context.Context) error
Create(ctx context.Context, orgId uuid.UUID, templateVersion *domain.TemplateVersion, eventCallback store.EventCallback) (*domain.TemplateVersion, error)
Get(ctx context.Context, orgId uuid.UUID, fleet string, name string) (*domain.TemplateVersion, error)
List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.TemplateVersionList, error)
Delete(ctx context.Context, orgId uuid.UUID, fleet string, name string, eventCallback store.EventCallback) (bool, error)
GetLatest(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, error)
UpdateStatus(ctx context.Context, orgId uuid.UUID, resource *domain.TemplateVersion, valid *bool) error
}
func NewTemplateVersionStore ¶
func NewTemplateVersionStore(db *gorm.DB, log logrus.FieldLogger) Store
type TemplateVersionStore ¶
type TemplateVersionStore struct {
// contains filtered or unexported fields
}
func (*TemplateVersionStore) Create ¶
func (s *TemplateVersionStore) Create(ctx context.Context, orgId uuid.UUID, resource *domain.TemplateVersion, eventCallback store.EventCallback) (*domain.TemplateVersion, error)
func (*TemplateVersionStore) Get ¶
func (s *TemplateVersionStore) Get(ctx context.Context, orgId uuid.UUID, fleet string, name string) (*domain.TemplateVersion, error)
func (*TemplateVersionStore) GetLatest ¶
func (s *TemplateVersionStore) GetLatest(ctx context.Context, orgId uuid.UUID, fleet string) (*domain.TemplateVersion, error)
func (*TemplateVersionStore) InitialMigration ¶
func (s *TemplateVersionStore) InitialMigration(ctx context.Context) error
func (*TemplateVersionStore) List ¶
func (s *TemplateVersionStore) List(ctx context.Context, orgId uuid.UUID, listParams store.ListParams) (*domain.TemplateVersionList, error)
func (*TemplateVersionStore) UpdateStatus ¶
func (s *TemplateVersionStore) UpdateStatus(ctx context.Context, orgId uuid.UUID, resource *domain.TemplateVersion, valid *bool) error
Click to show internal directories.
Click to hide internal directories.