database

package
v0.0.0-...-d6d73be Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPreflightPath

func GetPreflightPath(subscriptionID string, deploymentID string) string

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 NewFakeGateway

func NewFakeGateway() (db database.Gateway, client *cosmosdb.FakeGatewayDocumentClient)

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) AddGatewayDocuments

func (f *Checker) AddGatewayDocuments(docs ...*api.GatewayDocument)

func (*Checker) AddOpenShiftClusterDocuments

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

func (*Checker) AddOpenShiftVersionDocuments

func (f *Checker) AddOpenShiftVersionDocuments(docs ...*api.OpenShiftVersionDocument)

func (*Checker) AddPlatformWorkloadIdentityRoleSetDocuments

func (f *Checker) AddPlatformWorkloadIdentityRoleSetDocuments(docs ...*api.PlatformWorkloadIdentityRoleSetDocument)

func (*Checker) AddPortalDocuments

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

func (*Checker) AddSubscriptionDocuments

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

func (*Checker) AddValidationResult

func (f *Checker) AddValidationResult(docs ...*api.ValidationResult)

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) CheckGateways

func (f *Checker) CheckGateways(gateways *cosmosdb.FakeGatewayDocumentClient) (errs []error)

func (*Checker) CheckOpenShiftClusters

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

func (*Checker) CheckOpenShiftVersions

func (f *Checker) CheckOpenShiftVersions(versions *cosmosdb.FakeOpenShiftVersionDocumentClient) (errs []error)

func (*Checker) CheckPlatformWorkloadIdentityRoleSets

func (f *Checker) CheckPlatformWorkloadIdentityRoleSets(roleSets *cosmosdb.FakePlatformWorkloadIdentityRoleSetDocumentClient) (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) AddClusterManagerConfigurationDocuments

func (f *Fixture) AddClusterManagerConfigurationDocuments(docs ...*api.ClusterManagerConfigurationDocument)

func (*Fixture) AddGatewayDocuments

func (f *Fixture) AddGatewayDocuments(docs ...*api.GatewayDocument)

func (*Fixture) AddOpenShiftClusterDocuments

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

func (*Fixture) AddOpenShiftVersionDocuments

func (f *Fixture) AddOpenShiftVersionDocuments(docs ...*api.OpenShiftVersionDocument)

func (*Fixture) AddPlatformWorkloadIdentityRoleSetDocuments

func (f *Fixture) AddPlatformWorkloadIdentityRoleSetDocuments(docs ...*api.PlatformWorkloadIdentityRoleSetDocument)

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) WithClusterManagerConfigurations

func (f *Fixture) WithClusterManagerConfigurations(db database.ClusterManagerConfigurations) *Fixture

func (*Fixture) WithGateway

func (f *Fixture) WithGateway(db database.Gateway) *Fixture

func (*Fixture) WithOpenShiftClusters

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

func (*Fixture) WithOpenShiftVersions

func (f *Fixture) WithOpenShiftVersions(db database.OpenShiftVersions, uuid uuid.Generator) *Fixture

func (*Fixture) WithPlatformWorkloadIdentityRoleSets

func (f *Fixture) WithPlatformWorkloadIdentityRoleSets(db database.PlatformWorkloadIdentityRoleSets, uuid uuid.Generator) *Fixture

func (*Fixture) WithPortal

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

func (*Fixture) WithSubscriptions

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

type SortableClusterManagerConfigurationDocument

type SortableClusterManagerConfigurationDocument []*api.ClusterManagerConfigurationDocument

func (SortableClusterManagerConfigurationDocument) Len

func (SortableClusterManagerConfigurationDocument) Less

func (SortableClusterManagerConfigurationDocument) Swap

Jump to

Keyboard shortcuts

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