resourcegroups

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 5 Imported by: 0

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

type MockClient struct {
	mock.Mock
}

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

type NewMockClientT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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