Documentation
¶
Overview ¶
Package runtimecontract defines the Kubernetes-neutral command payload shared by the control plane and an outbound cluster Agent.
Index ¶
Constants ¶
View Source
const ( OperationEnsureWorkspace = "EnsureWorkspace" OperationEnsureWorkspacePlacement = "EnsureWorkspacePlacement" OperationApplyDeployment = "ApplyDeployment" OperationDeleteAppEnv = "DeleteAppEnvironment" OperationEnsureVolume = "EnsureVolume" OperationExpandVolume = "ExpandVolume" OperationDeleteVolume = "DeleteVolume" ExposurePrivate = "Private" ExposurePublic = "Public" EndpointHTTP = "HTTP" EndpointTCP = "TCP" WorkloadStateless = "Stateless" WorkloadStateful = "Stateful" StatePending = "Pending" StateProgressing = "Progressing" StateReady = "Ready" StateDegraded = "Degraded" StateUnknown = "Unknown" VolumeDesiredReady = "Ready" VolumeDesiredDeleted = "Deleted" VolumeStatePending = "Pending" VolumeStateReady = "Ready" VolumeStateRetained = "Retained" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentIntent ¶
type DeploymentIntent struct {
Image string `json:"image"`
Replicas int32 `json:"replicas"`
Ports []RuntimePort `json:"ports"`
Resources Resources `json:"resources"`
Probes Probes `json:"probes"`
PublicEndpoints []PublicEndpoint `json:"publicEndpoints"`
Variables []Variable `json:"variables"`
SecretVariables []Variable `json:"secretVariables,omitempty"`
ConfigurationVersion int64 `json:"configurationVersion"`
WorkloadKind string `json:"workloadKind"`
Volume *AppVolume `json:"volume,omitempty"`
Port int32 `json:"port,omitempty"`
Exposure string `json:"exposure,omitempty"`
Slug string `json:"slug,omitempty"`
}
type Payload ¶
type Payload struct {
Namespace string `json:"namespace"`
Name string `json:"name,omitempty"`
Deployment *DeploymentIntent `json:"deployment,omitempty"`
Volume *VolumeIntent `json:"volume,omitempty"`
Placement *WorkspacePlacementIntent `json:"placement,omitempty"`
}
Payload contains exactly the fields required by one runtime operation.
type PublicEndpoint ¶
type ResourceValues ¶
type Resources ¶
type Resources struct {
Requests ResourceValues `json:"requests"`
Limits ResourceValues `json:"limits"`
}
type RuntimePort ¶
type VolumeIntent ¶
Click to show internal directories.
Click to hide internal directories.