serviceclient

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package serviceclient contains clients that are used to interact with various GCP services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(ctx context.Context, oAuth2Token string) (*http.Client, error)

func NewMockServiceClient

func NewMockServiceClient(t *testing.T) mockServiceClient

func NewResourceManagerClient

func NewResourceManagerClient(ctx context.Context, httpClient *http.Client) (*resourcemanager.Service, error)

func NewServiceClient

func NewServiceClient(httpClient *http.Client) serviceClient

Types

type ServiceClient

type ServiceClient interface {
	GetProjectFromProjectIDOrNumber(string) (*resourcemanager.Project, error)
}

Jump to

Keyboard shortcuts

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