deploy

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package deploy provides functions to store deployment status in datastore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutStatus

func PutStatus(ctx context.Context, status *Status) (string, error)

PutStatus save the status of a new deployment attempt.

This function returns a new unique ID of this deployment attempt.

func UpdateStatus

func UpdateStatus(ctx context.Context, id string, status *Status) error

UpdateStatus updates the status of a deployment attempt.

Types

type Status

type Status struct {
	// Specifies whether this deploy attempt is considered complete.
	IsFinal   bool
	ChangeURL string
	Status    fleet.GetDeploymentStatusResponse_Status
	// Reason for an unsuccessful deployment status.
	Reason  string
	TaskIDs []string
}

Status stores status of in-flight or completed deployment attempts.

func GetStatus

func GetStatus(ctx context.Context, ID string) (*Status, error)

GetStatus gets status for deployment attempt with given ID.

Jump to

Keyboard shortcuts

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