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