Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
FindProjects(ctx context.Context, gcpFolderID string, labelQuery []string) ([]*ProjectInfo, error)
Close() error
}
Client is an interface for mocking asset inventory client.
type MockClient ¶
type MockClient struct {
ListProjectsErr error
StubProjects []*ProjectInfo
}
MockClient is a mock of the Client interface.
func (*MockClient) FindProjects ¶
func (m *MockClient) FindProjects(ctx context.Context, folderID string, labelQuery []string) ([]*ProjectInfo, error)
Projects is a mock of the Projects method.
type ProjectInfo ¶
ProjectInfo contains information about a GCP project.
Click to show internal directories.
Click to hide internal directories.