gcloud

package
v0.0.0-...-8cfca67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceName

func ServiceName(sampleName string) (string, error)

ServiceName generates a Cloud Run service name for the provided sample. It concatenates the sample's name with a random alphanumeric string.

Types

type CloudRunService

type CloudRunService struct {
	Name string
	// contains filtered or unexported fields
}

CloudRunService represents a Cloud Run service and stores its parameters.

func (CloudRunService) Delete

func (s CloudRunService) Delete(sampleDir string) error

Delete calls the external gcloud SDK and deletes the Cloud Run Service associated with the current cloudRunService.

func (*CloudRunService) URL

func (s *CloudRunService) URL(sampleDir string) (string, error)

URL calls the external gcloud SDK and gets the root URL of the Cloud Run Service associated with the current CloudRunService.

Jump to

Keyboard shortcuts

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