Documentation ¶
Index ¶
- Constants
- type Config
- type FailedRecordScrubber
- type Odoo8Storage
- func (s *Odoo8Storage) Create(ctx context.Context, be *billingv1.BillingEntity) error
- func (s *Odoo8Storage) Get(ctx context.Context, name string) (*billingv1.BillingEntity, error)
- func (s *Odoo8Storage) List(ctx context.Context) ([]billingv1.BillingEntity, error)
- func (s *Odoo8Storage) Update(ctx context.Context, be *billingv1.BillingEntity) error
Constants ¶
View Source
const VSHNAccountingContactNameKey = "billing.appuio.io/vshn-accounting-contact-name"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FailedRecordScrubber ¶ added in v0.26.0
type FailedRecordScrubber struct {
// contains filtered or unexported fields
}
func NewFailedRecordScrubber ¶ added in v0.26.0
func NewFailedRecordScrubber(odooURL string, debugTransport bool) *FailedRecordScrubber
func (*FailedRecordScrubber) CleanupIncompleteRecords ¶ added in v0.26.0
func (s *FailedRecordScrubber) CleanupIncompleteRecords(ctx context.Context, minAge time.Duration) error
CleanupIncompleteRecords looks for partner records in Odoo that still have the "inflight" flag set despite being older than `minAge`. Those records are then deleted. Such records might come into existence due to a partially failed creation request.
type Odoo8Storage ¶ added in v0.26.0
type Odoo8Storage struct {
// contains filtered or unexported fields
}
func NewOdoo8Storage ¶
func NewOdoo8Storage(odooURL string, debugTransport bool, conf Config) *Odoo8Storage
func (*Odoo8Storage) Create ¶ added in v0.26.0
func (s *Odoo8Storage) Create(ctx context.Context, be *billingv1.BillingEntity) error
func (*Odoo8Storage) Get ¶ added in v0.26.0
func (s *Odoo8Storage) Get(ctx context.Context, name string) (*billingv1.BillingEntity, error)
func (*Odoo8Storage) List ¶ added in v0.26.0
func (s *Odoo8Storage) List(ctx context.Context) ([]billingv1.BillingEntity, error)
func (*Odoo8Storage) Update ¶ added in v0.26.0
func (s *Odoo8Storage) Update(ctx context.Context, be *billingv1.BillingEntity) error
Click to show internal directories.
Click to hide internal directories.