sample

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

This section is empty.

Types

type Sample

type Sample struct {
	Name string

	// The local directory this sample is located in.
	Dir string

	// The cloudRunService this sample will deploy to.
	Service gcloud.CloudRunService

	// The lifecycle for building and deploying this sample to Cloud Run.
	BuildDeployLifecycle lifecycle.Lifecycle
	// contains filtered or unexported fields
}

Sample represents a Google Cloud Platform sample and associated properties.

func NewSample

func NewSample(dir string) (*Sample, error)

NewSample creates a new sample object for the sample located in the provided local directory.

func (*Sample) DeleteCloudContainerImage

func (s *Sample) DeleteCloudContainerImage() error

DeleteCloudContainerImage deletes the sample's container image off of the Container Registry.

Jump to

Keyboard shortcuts

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