deployment

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Name         base.Name         `json:"name" validate:"required"`
	Kind         base.Kind         `json:"kind,omitzero"`
	Links        base.Links        `json:"links,omitzero"`
	LastModified string            `json:"lastModified,omitzero" validate:"date,iso"`
	Status       *DeploymentStatus `json:"status,omitzero"`
}

func (Deployment) ValidationRule

func (Deployment) ValidationRule() *validate.Rule

ValidationRule reflects Deployment — the schema the "deployment" kind validates against (deployment.ts: Deployment). base.Name (the name field type) supplies the name regex/max/unmodifiable; the field's `required` tag layers on top.

type DeploymentIdentity added in v1.1.25

type DeploymentIdentity struct {
	Link      string   `json:"link,omitzero"`
	Version   *float64 `json:"version,omitzero" validate:"integer"`
	AppliedAt string   `json:"appliedAt,omitzero" validate:"date"`
}

DeploymentIdentity is the last identity version fully applied in this location (deployment.ts DeploymentIdentity, master 621e7da48).

type DeploymentStatus

type DeploymentStatus struct {
	Endpoint                  string                       `json:"endpoint,omitzero" validate:"uri"`
	Remote                    string                       `json:"remote,omitzero" validate:"uri"`
	LastProcessedVersion      *float64                     `json:"lastProcessedVersion,omitzero" validate:"integer"`
	ExpectedDeploymentVersion *float64                     `json:"expectedDeploymentVersion,omitzero" validate:"integer"`
	Identity                  *DeploymentIdentity          `json:"identity,omitzero"`
	Internal                  any                          `json:"internal,omitzero"`
	Ready                     *bool                        `json:"ready,omitzero"`
	Deploying                 *bool                        `json:"deploying,omitzero"`
	Versions                  []DeploymentVersion          `json:"versions,omitzero"`
	JobExecutions             []cronjob.JobExecutionStatus `json:"jobExecutions,omitzero"`
	Message                   string                       `json:"message,omitzero" validate:"default=,allow="`
	DesiredScale              *float64                     `json:"desiredScale,omitzero" validate:"integer"`
}

func (DeploymentStatus) ValidationRule

func (DeploymentStatus) ValidationRule() *validate.Rule

ValidationRule reflects DeploymentStatus (deployment.ts: DeploymentStatus).

type DeploymentVersion

type DeploymentVersion struct {
	Name         string                      `json:"name,omitzero"`
	Created      string                      `json:"created,omitzero" validate:"date"`
	Workload     *float64                    `json:"workload,omitzero"`
	Gvc          *float64                    `json:"gvc,omitzero"`
	Containers   DeploymentVersionContainers `json:"containers,omitzero"`
	Ready        *bool                       `json:"ready,omitzero"`
	Message      string                      `json:"message,omitzero" validate:"allow="`
	Zone         string                      `json:"zone,omitzero" validate:"allow="`
	DesiredScale *float64                    `json:"desiredScale,omitzero" validate:"integer"`
}

func (DeploymentVersion) ValidationRule

func (DeploymentVersion) ValidationRule() *validate.Rule

ValidationRule reflects DeploymentVersion (deployment.ts: DeploymentVersion).

type DeploymentVersionContainers

type DeploymentVersionContainers map[string]containerstatus.ContainerStatus

Jump to

Keyboard shortcuts

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