Documentation ¶
Index ¶
- type ManagementGroup
- type MockProviderAPI
- type MockProviderAPI_Expecter
- type MockProviderAPI_GetSubscriptions_Call
- func (_c *MockProviderAPI_GetSubscriptions_Call) Return(_a0 map[string]Subscription, _a1 error) *MockProviderAPI_GetSubscriptions_Call
- func (_c *MockProviderAPI_GetSubscriptions_Call) Run(run func(ctx context.Context, cycleMetadata cycle.Metadata)) *MockProviderAPI_GetSubscriptions_Call
- func (_c *MockProviderAPI_GetSubscriptions_Call) RunAndReturn(run func(context.Context, cycle.Metadata) (map[string]Subscription, error)) *MockProviderAPI_GetSubscriptions_Call
- type ProviderAPI
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementGroup ¶
type MockProviderAPI ¶
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 (_m *MockProviderAPI) EXPECT() *MockProviderAPI_Expecter
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 ¶
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 (_c *MockProviderAPI_GetSubscriptions_Call) Return(_a0 map[string]Subscription, _a1 error) *MockProviderAPI_GetSubscriptions_Call
func (*MockProviderAPI_GetSubscriptions_Call) Run ¶
func (_c *MockProviderAPI_GetSubscriptions_Call) Run(run func(ctx context.Context, cycleMetadata cycle.Metadata)) *MockProviderAPI_GetSubscriptions_Call
func (*MockProviderAPI_GetSubscriptions_Call) RunAndReturn ¶
func (_c *MockProviderAPI_GetSubscriptions_Call) RunAndReturn(run func(context.Context, cycle.Metadata) (map[string]Subscription, error)) *MockProviderAPI_GetSubscriptions_Call
type ProviderAPI ¶
type ProviderAPI interface {
GetSubscriptions(ctx context.Context, cycleMetadata cycle.Metadata) (map[string]Subscription, error)
}
func NewProvider ¶
func NewProvider(log *clog.Logger, client inventory.ResourceGraphProviderAPI) ProviderAPI
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
Click to show internal directories.
Click to hide internal directories.