Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncOperations ¶
type AsyncOperations interface { Create(context.Context, *api.AsyncOperationDocument) (*api.AsyncOperationDocument, error) Get(context.Context, string) (*api.AsyncOperationDocument, error) Patch(context.Context, string, func(*api.AsyncOperationDocument) error) (*api.AsyncOperationDocument, error) }
AsyncOperations is the database interface for AsyncOperationDocuments
func NewAsyncOperations ¶
func NewAsyncOperations(uuid string, dbc cosmosdb.DatabaseClient, dbid, collid string) (AsyncOperations, error)
NewAsyncOperations returns a new AsyncOperations
type Billing ¶
type Billing interface { Create(context.Context, *api.BillingDocument) (*api.BillingDocument, error) Get(context.Context, string) (*api.BillingDocument, error) MarkForDeletion(context.Context, string) (*api.BillingDocument, error) UpdateLastBillingTimestamp(context.Context, string) (*api.BillingDocument, error) ListAll(context.Context) (*api.BillingDocuments, error) Delete(context.Context, *api.BillingDocument) error }
Billing is the database interface for BillingDocuments
func NewBilling ¶
func NewBilling(ctx context.Context, uuid string, dbc cosmosdb.DatabaseClient, dbid, collid string) (Billing, error)
NewBilling returns a new Billing
type Database ¶
type Database struct { AsyncOperations AsyncOperations Billing Billing Monitors Monitors OpenShiftClusters OpenShiftClusters Subscriptions Subscriptions // contains filtered or unexported fields }
Database represents a database
type Monitors ¶
type Monitors interface { Create(context.Context, *api.MonitorDocument) (*api.MonitorDocument, error) PatchWithLease(context.Context, string, func(*api.MonitorDocument) error) (*api.MonitorDocument, error) TryLease(context.Context) (*api.MonitorDocument, error) ListBuckets(context.Context) ([]int, error) ListMonitors(context.Context) (*api.MonitorDocuments, error) MonitorHeartbeat(context.Context) error }
Monitors is the database interface for MonitorDocuments
func NewMonitors ¶
func NewMonitors(ctx context.Context, uuid string, dbc cosmosdb.DatabaseClient, dbid, collid string) (Monitors, error)
NewMonitors returns a new Monitors
type OpenShiftClusters ¶
type OpenShiftClusters interface { Create(context.Context, *api.OpenShiftClusterDocument) (*api.OpenShiftClusterDocument, error) ListAll(context.Context) (*api.OpenShiftClusterDocuments, error) Get(context.Context, string) (*api.OpenShiftClusterDocument, error) QueueLength(context.Context, string) (int, error) Patch(context.Context, string, func(*api.OpenShiftClusterDocument) error) (*api.OpenShiftClusterDocument, error) PatchWithLease(context.Context, string, func(*api.OpenShiftClusterDocument) error) (*api.OpenShiftClusterDocument, error) Update(context.Context, *api.OpenShiftClusterDocument) (*api.OpenShiftClusterDocument, error) Delete(context.Context, *api.OpenShiftClusterDocument) error ChangeFeed() cosmosdb.OpenShiftClusterDocumentIterator ListByPrefix(string, string) (cosmosdb.OpenShiftClusterDocumentIterator, error) Dequeue(context.Context) (*api.OpenShiftClusterDocument, error) Lease(context.Context, string) (*api.OpenShiftClusterDocument, error) EndLease(context.Context, string, api.ProvisioningState, api.ProvisioningState) (*api.OpenShiftClusterDocument, error) GetByClientID(ctx context.Context, partitionKey, clientID string) (*api.OpenShiftClusterDocuments, error) GetByClusterResourceGroupID(ctx context.Context, partitionKey, resourceGroupID string) (*api.OpenShiftClusterDocuments, error) }
OpenShiftClusters is the database interface for OpenShiftClusterDocuments
func NewOpenShiftClusters ¶
func NewOpenShiftClusters(ctx context.Context, uuid string, dbc cosmosdb.DatabaseClient, dbid, collid string) (OpenShiftClusters, error)
NewOpenShiftClusters returns a new OpenShiftClusters
type Subscriptions ¶
type Subscriptions interface { Create(context.Context, *api.SubscriptionDocument) (*api.SubscriptionDocument, error) Get(context.Context, string) (*api.SubscriptionDocument, error) Update(context.Context, *api.SubscriptionDocument) (*api.SubscriptionDocument, error) Dequeue(context.Context) (*api.SubscriptionDocument, error) Lease(context.Context, string) (*api.SubscriptionDocument, error) EndLease(context.Context, string, bool, bool) (*api.SubscriptionDocument, error) }
Subscriptions is the database interface for SubscriptionDocuments
func NewSubscriptions ¶
func NewSubscriptions(ctx context.Context, uuid string, dbc cosmosdb.DatabaseClient, dbid, collid string) (Subscriptions, error)
NewSubscriptions returns a new Subscriptions
Source Files ¶
Click to show internal directories.
Click to hide internal directories.