Documentation ¶
Overview ¶
Package project provides tools for interacting with Google projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory interface { // CreateClient creates an authenticated HTTP client based on a secret. // // If the secret is not of a required type, an error is returned. CreateClient(ctx context.Context, secretID string) (*http.Client, error) }
ClientFactory creates an authenticated HTTP client based on a secret.
type MockService ¶
MockService is an autogenerated mock for the Service type.
func (*MockService) ListProjects ¶
func (_m *MockService) ListProjects(ctx context.Context, secretID string) (projects []Project, err error)
ListProjects provides a mock function.
type Project ¶
type Project cloudresourcemanager.Project
Project represents a Google Cloud project. TODO: actualize this type from the Google API SDK. Note: aliases do not seem to work with MGA right now.
type Service ¶
type Service interface { // ListProjects lists Google projects. ListProjects(ctx context.Context, secretID string) (projects []Project, err error) }
Service interacts with Google projects.
func NewService ¶
func NewService(clientFactory ClientFactory) Service
NewService returns a new Service.
Click to show internal directories.
Click to hide internal directories.