database

package
v0.0.0-...-823d357 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourcePath

func GetResourcePath(subscriptionID string, resourceID string) string

func NewFakeAEAD

func NewFakeAEAD() *fakeAEAD

func NewFakeBilling

func NewFakeBilling() (db database.Billing, client *cosmosdb.FakeBillingDocumentClient)

func NewFakePortal

func NewFakePortal() (db database.Portal, client *cosmosdb.FakePortalDocumentClient)

func NewFakeSubscriptions

func NewFakeSubscriptions() (db database.Subscriptions, client *cosmosdb.FakeSubscriptionDocumentClient)

Types

type ByKey

func (ByKey) Len

func (a ByKey) Len() int

func (ByKey) Less

func (a ByKey) Less(i, j int) bool

func (ByKey) Swap

func (a ByKey) Swap(i, j int)

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker() *Checker

func (*Checker) AddAsyncOperationDocuments

func (f *Checker) AddAsyncOperationDocuments(docs ...*api.AsyncOperationDocument)

func (*Checker) AddBillingDocuments

func (f *Checker) AddBillingDocuments(docs ...*api.BillingDocument)

func (*Checker) AddOpenShiftClusterDocuments

func (f *Checker) AddOpenShiftClusterDocuments(docs ...*api.OpenShiftClusterDocument)

func (*Checker) AddPortalDocuments

func (f *Checker) AddPortalDocuments(docs ...*api.PortalDocument)

func (*Checker) AddSubscriptionDocuments

func (f *Checker) AddSubscriptionDocuments(docs ...*api.SubscriptionDocument)

func (*Checker) CheckAsyncOperations

func (f *Checker) CheckAsyncOperations(asyncOperations *cosmosdb.FakeAsyncOperationDocumentClient) (errs []error)

func (*Checker) CheckBilling

func (f *Checker) CheckBilling(billing *cosmosdb.FakeBillingDocumentClient) (errs []error)

func (*Checker) CheckOpenShiftClusters

func (f *Checker) CheckOpenShiftClusters(openShiftClusters *cosmosdb.FakeOpenShiftClusterDocumentClient) (errs []error)

func (*Checker) CheckPortals

func (f *Checker) CheckPortals(portals *cosmosdb.FakePortalDocumentClient) (errs []error)

func (*Checker) CheckSubscriptions

func (f *Checker) CheckSubscriptions(subscriptions *cosmosdb.FakeSubscriptionDocumentClient) (errs []error)

type Fixture

type Fixture struct {
	// contains filtered or unexported fields
}

func NewFixture

func NewFixture() *Fixture

func (*Fixture) AddAsyncOperationDocuments

func (f *Fixture) AddAsyncOperationDocuments(docs ...*api.AsyncOperationDocument)

func (*Fixture) AddBillingDocuments

func (f *Fixture) AddBillingDocuments(docs ...*api.BillingDocument)

func (*Fixture) AddOpenShiftClusterDocuments

func (f *Fixture) AddOpenShiftClusterDocuments(docs ...*api.OpenShiftClusterDocument)

func (*Fixture) AddPortalDocuments

func (f *Fixture) AddPortalDocuments(docs ...*api.PortalDocument)

func (*Fixture) AddSubscriptionDocuments

func (f *Fixture) AddSubscriptionDocuments(docs ...*api.SubscriptionDocument)

func (*Fixture) Create

func (f *Fixture) Create() error

func (*Fixture) WithAsyncOperations

func (f *Fixture) WithAsyncOperations(db database.AsyncOperations) *Fixture

func (*Fixture) WithBilling

func (f *Fixture) WithBilling(db database.Billing) *Fixture

func (*Fixture) WithOpenShiftClusters

func (f *Fixture) WithOpenShiftClusters(db database.OpenShiftClusters) *Fixture

func (*Fixture) WithPortal

func (f *Fixture) WithPortal(db database.Portal) *Fixture

func (*Fixture) WithSubscriptions

func (f *Fixture) WithSubscriptions(db database.Subscriptions) *Fixture

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL