Documentation
¶
Index ¶
Constants ¶
View Source
const ( ApplyStatusCreated = "created" ApplyStatusConfigured = "configured" ApplyStatusUnchanged = "unchanged" ApplyStatusStaged = "staged" ApplyStatusDeleted = "deleted" ApplyStatusDryRun = "dry-run" ApplyStatusFailed = "failed" )
ApplyStatus* are the well-known Status values on ApplyResult.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyResult ¶
type ApplyResult struct {
APIVersion string `json:"apiVersion,omitempty"`
Kind string `json:"kind,omitempty"`
Namespace string `json:"namespace,omitempty"`
Name string `json:"name"`
Tag string `json:"tag,omitempty"`
// Status is one of: created, configured, unchanged, staged, deleted,
// dry-run, failed. Matches kubectl-style apply output.
Status string `json:"status"`
// Generation is the server-managed generation after the apply.
// Populated for internal callers that need the reconciler-
// convergence marker; hidden from the wire because generation is
// not part of the user-facing API today.
Generation int64 `json:"-"`
// Error is the failure detail for Status=="failed".
Error string `json:"error,omitempty"`
}
ApplyResult describes the outcome for a single document in a multi-doc apply or delete batch. Returned by POST /v0/apply and DELETE /v0/apply in the Body.Results slice.
type ApplyResultsResponse ¶
type ApplyResultsResponse struct {
Results []ApplyResult `json:"results"`
}
ApplyResultsResponse is the response envelope body for POST/DELETE /v0/apply. Wrapped once here so Huma OpenAPI output + Go client + CLI all agree on the outer shape.
type VersionBody ¶
type VersionBody struct {
Version string `json:"version" example:"v1.0.0" doc:"Application version"`
GitCommit string `json:"git_commit" example:"abc123d" doc:"Git commit SHA"`
BuildTime string `json:"build_time" example:"2025-10-14T12:00:00Z" doc:"Build timestamp"`
}
VersionBody represents API version information.
Click to show internal directories.
Click to hide internal directories.