run

package
v0.0.0-...-a524873 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Regions

func Regions(ctx context.Context, project string) ([]string, error)

Regions gets the supported regions for the project.

Types

type API

type API struct {
	Client *run.APIService
	Region string
}

API is a wrapper for the Cloud Run package.

func NewAPIClient

func NewAPIClient(ctx context.Context, region string) (*API, error)

NewAPIClient initializes an instance of APIService.

func (*API) ReplaceService

func (a *API) ReplaceService(namespace, serviceID string, svc *run.Service) (*run.Service, error)

ReplaceService replaces an existing service.

func (*API) Service

func (a *API) Service(namespace, serviceID string) (*run.Service, error)

Service retrieves information about a service.

func (*API) ServicesWithLabelSelector

func (a *API) ServicesWithLabelSelector(namespace string, labelSelector string) ([]*run.Service, error)

ServicesWithLabelSelector gets services filtered by a label selector.

type Client

type Client interface {
	Service(namespace, serviceID string) (*run.Service, error)
	ReplaceService(namespace, serviceID string, svc *run.Service) (*run.Service, error)
}

Client represents a wrapper around the Cloud Run package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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