gcp

package
v0.0.0-...-811ccc8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProjectID   = "constellation-images"
	DefaultImageFamily = "constellation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, log *logger.Logger, opts Options) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) FetchImages

func (c *Client) FetchImages(ctx context.Context) (map[string]string, error)

type Options

type Options struct {
	ProjectID   string
	ImageFamily string
	Filter      func(image string) (version string, err error)
}

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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