Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
ListResourceGroups(ctx context.Context) ([]*armresources.ResourceGroup, error)
}
Client is the interface for a client to interact with the Azure resource groups api.
func New ¶
func New(subscriptionID string, credentials *azidentity.ClientSecretCredential) (Client, error)
New returns a new client to interact with the container instances API.
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t NewMockClientT) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockClient) ListResourceGroups ¶
func (_m *MockClient) ListResourceGroups(ctx context.Context) ([]*armresources.ResourceGroup, error)
ListResourceGroups provides a mock function with given fields: ctx
type NewMockClientT ¶
Click to show internal directories.
Click to hide internal directories.