client

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 12 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 struct {
	VMLeaserClient api.VMLeaserServiceClient
	Email          string
	// contains filtered or unexported fields
}

Client is a VM Leaser client.

func NewClient

func NewClient(ctx context.Context, c *Config) (*Client, error)

NewClient creates a new client for the VM Leaser service.

func (*Client) Close

func (c *Client) Close()

Close closes the client.

type Config

type Config struct {

	// Authentication options
	AuthOpts auth.Options
	// contains filtered or unexported fields
}

Config stores options needed for the VM Leaser service.

func LocalConfig

func LocalConfig() *Config

LocalConfig returns the local configuration for the VM Leaser client.

func ProdConfig

func ProdConfig() *Config

ProdConfig returns the production configuration for the VM Leaser client.

The prod instance of the VM Leaser service is a GCP cloud project.

func StagingConfig

func StagingConfig() *Config

StagingConfig returns the staging configuration for the VM Leaser client.

The staging instance of the VM Leaser service is a GCP cloud project.

Jump to

Keyboard shortcuts

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