project

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

type MockService struct {
	mock.Mock
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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