Documentation
¶
Overview ¶
Package deploymentintent defines and validates the versioned deployment intent exchanged by fleet deployment control-plane components.
Index ¶
- Constants
- func DigestV1(intent V1) (string, error)
- func ValidActor(value string) bool
- func ValidApprovalReference(value string) bool
- func ValidCommit(value string) bool
- func ValidDigest(value string) bool
- func ValidPool(value string) bool
- func ValidServiceID(value string) bool
- func ValidUUID(value string) bool
- func ValidateV1(intent V1, now time.Time) error
- type Rollout
- type V1
Constants ¶
const ( SchemaVersion = "v1" MaxBodyBytes = 1 << 20 MaxLifetime = time.Hour )
Variables ¶
This section is empty.
Functions ¶
func DigestV1 ¶
DigestV1 fingerprints the typed intent with stable field ordering and UTC timestamps. Call ValidateV1 before using a digest to make an authorization decision.
func ValidActor ¶
func ValidApprovalReference ¶
func ValidCommit ¶
func ValidDigest ¶
func ValidServiceID ¶
Types ¶
type V1 ¶
type V1 struct {
SchemaVersion string `json:"schema_version"`
IntentID string `json:"intent_id"`
ServiceID string `json:"service_id"`
Environment string `json:"environment"`
ArtifactDigest string `json:"artifact_digest"`
SourceCommit string `json:"source_commit"`
TargetPool string `json:"target_pool"`
Rollout Rollout `json:"rollout"`
RollbackDigest string `json:"rollback_digest"`
RequestedBy string `json:"requested_by"`
ApprovalRef string `json:"approval_ref,omitempty"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
}
V1 is an immutable deployment request. It carries logical identifiers and digests only; it must never grow host addresses, credentials, shell commands, or arbitrary runtime configuration.