governance

package
v0.0.0-...-ea883c3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementGroup

type ManagementGroup struct {
	// FullyQualifiedID is the fully qualified ID for the management group.
	// For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
	FullyQualifiedID string
	DisplayName      string
}

type MockProviderAPI

type MockProviderAPI struct {
	mock.Mock
}

MockProviderAPI is an autogenerated mock type for the ProviderAPI type

func NewMockProviderAPI

func NewMockProviderAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderAPI

NewMockProviderAPI creates a new instance of MockProviderAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockProviderAPI) EXPECT

func (*MockProviderAPI) GetSubscriptions

func (_m *MockProviderAPI) GetSubscriptions(ctx context.Context, cycleMetadata cycle.Metadata) (map[string]Subscription, error)

GetSubscriptions provides a mock function with given fields: ctx, cycleMetadata

type MockProviderAPI_Expecter

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

func (*MockProviderAPI_Expecter) GetSubscriptions

func (_e *MockProviderAPI_Expecter) GetSubscriptions(ctx interface{}, cycleMetadata interface{}) *MockProviderAPI_GetSubscriptions_Call

GetSubscriptions is a helper method to define mock.On call

  • ctx context.Context
  • cycleMetadata cycle.Metadata

type MockProviderAPI_GetSubscriptions_Call

type MockProviderAPI_GetSubscriptions_Call struct {
	*mock.Call
}

MockProviderAPI_GetSubscriptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubscriptions'

func (*MockProviderAPI_GetSubscriptions_Call) Return

func (*MockProviderAPI_GetSubscriptions_Call) Run

func (*MockProviderAPI_GetSubscriptions_Call) RunAndReturn

type ProviderAPI

type ProviderAPI interface {
	GetSubscriptions(ctx context.Context, cycleMetadata cycle.Metadata) (map[string]Subscription, error)
}

type Subscription

type Subscription struct {
	// FullyQualifiedID is the fully qualified ID for the subscription.
	// For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74
	FullyQualifiedID string
	// ShortID is the ID of the subscription which is the SubscriptionId field of the asset.
	// For example, 8d65815f-a5b6-402f-9298-045155da7d74.
	ShortID         string
	DisplayName     string
	ManagementGroup ManagementGroup
}

func (Subscription) GetCloudAccountMetadata

func (s Subscription) GetCloudAccountMetadata() fetching.CloudAccountMetadata

Jump to

Keyboard shortcuts

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