deploy

package
v0.0.0-...-c456180 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultServiceID = "default"

Variables

This section is empty.

Functions

func CreateAndDeployVersion

func CreateAndDeployVersion(ctx context.Context, versionClient *appengine.VersionsClient, servicesClient *appengine.ServicesClient, storageClient *storage.Client, opts config.AppEngineDeployOptions) error

CreateAndDeployVersion parses given runtime configuration and deploys the given version to the specified App Engine service. It returns an error if the deployment fails. The function uses long-running operations to perform the deployment.

func CreateVersion

func CreateVersion(ctx context.Context, client *appengine.VersionsClient, serviceName string, version *appenginepb.Version) (*appenginepb.Version, error)

CreateVersion deploys the given version to the specified App Engine service. It returns a pointer to the deployed version or an error if the deployment fails. The function uses a long-running operation to perform the deployment.

func PromoteVersion

func PromoteVersion(ctx context.Context, client *appengine.ServicesClient, serviceName, versionID string) (*appenginepb.Service, error)

PromoteVersion promotes the specified version of an App Engine service to receive all traffic. The function uses a long-running operation to perform the promotion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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