2023-02-14 15:18:07 -03:00
|
|
|
package datastore
|
|
|
|
|
|
|
|
import (
|
|
|
|
portainer "github.com/portainer/portainer/api"
|
|
|
|
"github.com/portainer/portainer/api/dataservices"
|
|
|
|
)
|
|
|
|
|
|
|
|
type StoreTx struct {
|
|
|
|
store *Store
|
|
|
|
tx portainer.Transaction
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) IsErrObjectNotFound(err error) bool {
|
|
|
|
return tx.store.IsErrObjectNotFound(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) CustomTemplate() dataservices.CustomTemplateService { return nil }
|
|
|
|
|
2024-04-16 15:09:10 +12:00
|
|
|
func (tx *StoreTx) PendingActions() dataservices.PendingActionsService {
|
|
|
|
return tx.store.PendingActionsService.Tx(tx.tx)
|
|
|
|
}
|
2023-09-19 08:57:27 +12:00
|
|
|
|
2023-02-14 15:18:07 -03:00
|
|
|
func (tx *StoreTx) EdgeGroup() dataservices.EdgeGroupService {
|
|
|
|
return tx.store.EdgeGroupService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2023-02-20 16:11:18 -03:00
|
|
|
func (tx *StoreTx) EdgeJob() dataservices.EdgeJobService {
|
|
|
|
return tx.store.EdgeJobService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) EdgeStack() dataservices.EdgeStackService {
|
|
|
|
return tx.store.EdgeStackService.Tx(tx.tx)
|
|
|
|
}
|
2023-02-14 15:18:07 -03:00
|
|
|
|
2025-06-05 19:46:10 -03:00
|
|
|
func (tx *StoreTx) EdgeStackStatus() dataservices.EdgeStackStatusService {
|
|
|
|
return tx.store.EdgeStackStatusService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2023-02-14 15:18:07 -03:00
|
|
|
func (tx *StoreTx) Endpoint() dataservices.EndpointService {
|
|
|
|
return tx.store.EndpointService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2023-02-20 16:11:18 -03:00
|
|
|
func (tx *StoreTx) EndpointGroup() dataservices.EndpointGroupService {
|
|
|
|
return tx.store.EndpointGroupService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) EndpointRelation() dataservices.EndpointRelationService {
|
|
|
|
return tx.store.EndpointRelationService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2023-02-14 15:18:07 -03:00
|
|
|
func (tx *StoreTx) HelmUserRepository() dataservices.HelmUserRepositoryService { return nil }
|
2023-04-20 18:42:52 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Registry() dataservices.RegistryService {
|
2023-05-18 14:58:33 -03:00
|
|
|
return tx.store.RegistryService.Tx(tx.tx)
|
2023-04-20 18:42:52 -03:00
|
|
|
}
|
|
|
|
|
2023-05-04 13:24:04 -03:00
|
|
|
func (tx *StoreTx) ResourceControl() dataservices.ResourceControlService {
|
|
|
|
return tx.store.ResourceControlService.Tx(tx.tx)
|
|
|
|
}
|
2023-05-02 19:05:18 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Role() dataservices.RoleService {
|
|
|
|
return tx.store.RoleService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) APIKeyRepository() dataservices.APIKeyRepository { return nil }
|
2023-05-18 14:58:33 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Settings() dataservices.SettingsService {
|
|
|
|
return tx.store.SettingsService.Tx(tx.tx)
|
|
|
|
}
|
2023-02-20 16:11:18 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Snapshot() dataservices.SnapshotService {
|
|
|
|
return tx.store.SnapshotService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) SSLSettings() dataservices.SSLSettingsService { return nil }
|
2024-05-20 09:34:51 +03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Stack() dataservices.StackService {
|
|
|
|
return tx.store.StackService.Tx(tx.tx)
|
|
|
|
}
|
2023-02-20 16:11:18 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) Tag() dataservices.TagService {
|
|
|
|
return tx.store.TagService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2023-05-04 11:51:30 -03:00
|
|
|
func (tx *StoreTx) TeamMembership() dataservices.TeamMembershipService {
|
|
|
|
return tx.store.TeamMembershipService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
2024-09-05 21:36:13 -03:00
|
|
|
func (tx *StoreTx) Team() dataservices.TeamService {
|
|
|
|
return tx.store.TeamService.Tx(tx.tx)
|
|
|
|
}
|
2024-05-20 09:34:51 +03:00
|
|
|
|
2023-05-04 11:51:30 -03:00
|
|
|
func (tx *StoreTx) TunnelServer() dataservices.TunnelServerService { return nil }
|
2023-07-17 21:23:35 -03:00
|
|
|
|
|
|
|
func (tx *StoreTx) User() dataservices.UserService {
|
|
|
|
return tx.store.UserService.Tx(tx.tx)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (tx *StoreTx) Version() dataservices.VersionService { return nil }
|
|
|
|
func (tx *StoreTx) Webhook() dataservices.WebhookService { return nil }
|