Documentation
¶
Index ¶
- type AutoAdvancer
- func (a *AutoAdvancer) AdvanceInvoice(ctx context.Context, id billing.InvoiceID) (billing.Invoice, error)
- func (a *AutoAdvancer) All(ctx context.Context, namespaces []string, batchSize int) error
- func (a *AutoAdvancer) ListInvoicesPendingAutoAdvance(ctx context.Context, namespaces []string, ids []string) ([]billing.Invoice, error)
- func (a *AutoAdvancer) ListInvoicesToAdvance(ctx context.Context, namespace []string, ids []string) ([]billing.Invoice, error)
- func (a *AutoAdvancer) ListStuckInvoicesNeedingAdvance(ctx context.Context, namespaces []string, ids []string) ([]billing.Invoice, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoAdvancer ¶
type AutoAdvancer struct {
// contains filtered or unexported fields
}
func NewAdvancer ¶
func NewAdvancer(config Config) (*AutoAdvancer, error)
func (*AutoAdvancer) AdvanceInvoice ¶
func (*AutoAdvancer) ListInvoicesPendingAutoAdvance ¶
func (a *AutoAdvancer) ListInvoicesPendingAutoAdvance(ctx context.Context, namespaces []string, ids []string) ([]billing.Invoice, error)
ListInvoicesPendingAutoAdvance lists invoices that are due to be auto-advanced
func (*AutoAdvancer) ListInvoicesToAdvance ¶
func (*AutoAdvancer) ListStuckInvoicesNeedingAdvance ¶
func (a *AutoAdvancer) ListStuckInvoicesNeedingAdvance(ctx context.Context, namespaces []string, ids []string) ([]billing.Invoice, error)
ListStuckInvoicesNeedingAdvance lists invoices that are stuck in some advancable state (this is a fail-safe mechanism)
Click to show internal directories.
Click to hide internal directories.