Documentation
¶
Index ¶
- Constants
- func CreateAndDeployVersion(ctx context.Context, versionClient *appengine.VersionsClient, ...) error
- func CreateVersion(ctx context.Context, client *appengine.VersionsClient, serviceName string, ...) (*appenginepb.Version, error)
- func PromoteVersion(ctx context.Context, client *appengine.ServicesClient, ...) (*appenginepb.Service, error)
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.
Click to show internal directories.
Click to hide internal directories.