Documentation
¶
Index ¶
- type ContainerSpec
- type ContainerSpecGpu
- type ContainerSpecGpuNvidia
- type ContainerSpecLifecycle
- type ContainerSpecLifecyclePostStart
- type ContainerSpecLifecyclePostStartExec
- type ContainerSpecLifecyclePreStop
- type ContainerSpecLifecyclePreStopExec
- type ContainerSpecLivenessProbe
- type ContainerSpecLivenessProbeExec
- type ContainerSpecLivenessProbeGrpc
- type ContainerSpecLivenessProbeHttpGet
- type ContainerSpecLivenessProbeHttpGetHttpHeaders
- type ContainerSpecLivenessProbeHttpGetScheme
- type ContainerSpecLivenessProbeTcpSocket
- type ContainerSpecMetrics
- type ContainerSpecPorts
- type ContainerSpecPortsProtocol
- type ContainerSpecReadinessProbe
- type ContainerSpecReadinessProbeExec
- type ContainerSpecReadinessProbeGrpc
- type ContainerSpecReadinessProbeHttpGet
- type ContainerSpecReadinessProbeHttpGetHttpHeaders
- type ContainerSpecReadinessProbeHttpGetScheme
- type ContainerSpecReadinessProbeTcpSocket
- type Cpu
- type Extras
- type FirewallSpec
- type FirewallSpecExternal
- type FirewallSpecExternalOutboundAllowPort
- type FirewallSpecExternalOutboundAllowPortProtocol
- type FirewallSpecInternal
- type FirewallSpecInternalInboundAllowType
- type GpuResource
- type GpuResourceNvidia
- type HealthCheckSpec
- type HealthCheckSpecExec
- type HealthCheckSpecGrpc
- type HealthCheckSpecHttpGet
- type HealthCheckSpecHttpGetHttpHeaders
- type HealthCheckSpecHttpGetScheme
- type HealthCheckSpecTcpSocket
- type HealthCheckStatus
- type JobSpec
- type JobSpecConcurrencyPolicy
- type JobSpecRestartPolicy
- type LoadBalancerPort
- type LoadBalancerPortProtocol
- type LoadBalancerPortScheme
- type LoadBalancerSpec
- type LoadBalancerSpecDirect
- type LoadBalancerSpecGeoLocation
- type LoadBalancerSpecGeoLocationHeaders
- type LoadBalancerStatus
- type Memory
- type RequestRetryPolicy
- type ResolvedImage
- type ResolvedImageManifests
- type ResolvedImageManifestsPlatform
- type ResolvedImages
- type RolloutOptions
- type RolloutOptionsScalingPolicy
- type RolloutOptionsStateful
- type RolloutOptionsStatefulScalingPolicy
- type ScheduleType
- type SecurityOptions
- type Workload
- type WorkloadConfig
- type WorkloadConfigScheduling
- type WorkloadSpec
- type WorkloadSpecExtras
- type WorkloadSpecFirewallConfig
- type WorkloadSpecFirewallConfigExternal
- type WorkloadSpecFirewallConfigExternalOutboundAllowPort
- type WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol
- type WorkloadSpecFirewallConfigInternal
- type WorkloadSpecFirewallConfigInternalInboundAllowType
- type WorkloadSpecJob
- type WorkloadSpecJobConcurrencyPolicy
- type WorkloadSpecJobRestartPolicy
- type WorkloadSpecLoadBalancer
- type WorkloadSpecLoadBalancerDirect
- type WorkloadSpecLoadBalancerGeoLocation
- type WorkloadSpecLoadBalancerGeoLocationHeaders
- type WorkloadSpecRequestRetryPolicy
- type WorkloadSpecSecurityOptions
- type WorkloadSpecSidecar
- type WorkloadSpecType
- type WorkloadStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerSpec ¶
type ContainerSpec struct {
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
WorkingDir string `json:"workingDir,omitempty"`
Metrics ContainerSpecMetrics `json:"metrics,omitempty"`
Port float32 `json:"port"`
Ports []ContainerSpecPorts `json:"ports,omitempty"`
Memory string `json:"memory,omitempty"`
ReadinessProbe ContainerSpecReadinessProbe `json:"readinessProbe,omitempty"`
LivenessProbe ContainerSpecLivenessProbe `json:"livenessProbe,omitempty"`
Cpu string `json:"cpu,omitempty"`
MinCpu string `json:"minCpu,omitempty"`
MinMemory string `json:"minMemory,omitempty"`
Env []env.EnvVar `json:"env,omitempty"`
Gpu ContainerSpecGpu `json:"gpu,omitempty"`
InheritEnv bool `json:"inheritEnv,omitempty"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Lifecycle ContainerSpecLifecycle `json:"lifecycle,omitempty"`
Volumes []volumeSpec.VolumeSpec `json:"volumes,omitempty"`
}
type ContainerSpecGpu ¶
type ContainerSpecGpu struct {
Nvidia ContainerSpecGpuNvidia `json:"nvidia,omitempty"`
}
type ContainerSpecGpuNvidia ¶
type ContainerSpecLifecycle ¶
type ContainerSpecLifecycle struct {
PostStart ContainerSpecLifecyclePostStart `json:"postStart,omitempty"`
PreStop ContainerSpecLifecyclePreStop `json:"preStop,omitempty"`
}
type ContainerSpecLifecyclePostStart ¶
type ContainerSpecLifecyclePostStart struct {
Exec ContainerSpecLifecyclePostStartExec `json:"exec,omitempty"`
}
type ContainerSpecLifecyclePostStartExec ¶
type ContainerSpecLifecyclePostStartExec struct {
Command []string `json:"command,omitempty"`
}
type ContainerSpecLifecyclePreStop ¶
type ContainerSpecLifecyclePreStop struct {
Exec ContainerSpecLifecyclePreStopExec `json:"exec,omitempty"`
}
type ContainerSpecLifecyclePreStopExec ¶
type ContainerSpecLifecyclePreStopExec struct {
Command []string `json:"command,omitempty"`
}
type ContainerSpecLivenessProbe ¶
type ContainerSpecLivenessProbe struct {
Exec ContainerSpecLivenessProbeExec `json:"exec,omitempty"`
Grpc ContainerSpecLivenessProbeGrpc `json:"grpc,omitempty"`
TcpSocket ContainerSpecLivenessProbeTcpSocket `json:"tcpSocket,omitempty"`
HttpGet ContainerSpecLivenessProbeHttpGet `json:"httpGet,omitempty"`
InitialDelaySeconds float32 `json:"initialDelaySeconds"`
PeriodSeconds float32 `json:"periodSeconds"`
TimeoutSeconds float32 `json:"timeoutSeconds"`
SuccessThreshold float32 `json:"successThreshold"`
FailureThreshold float32 `json:"failureThreshold"`
}
type ContainerSpecLivenessProbeExec ¶
type ContainerSpecLivenessProbeExec struct {
Command []string `json:"command,omitempty"`
}
type ContainerSpecLivenessProbeHttpGet ¶
type ContainerSpecLivenessProbeHttpGet struct {
Path string `json:"path,omitempty"`
Port float32 `json:"port"`
HttpHeaders []ContainerSpecLivenessProbeHttpGetHttpHeaders `json:"httpHeaders,omitempty"`
Scheme ContainerSpecLivenessProbeHttpGetScheme `json:"scheme,omitempty"`
}
type ContainerSpecLivenessProbeHttpGetScheme ¶
type ContainerSpecLivenessProbeHttpGetScheme string
const ( ContainerSpecLivenessProbeHttpGetSchemeHttp ContainerSpecLivenessProbeHttpGetScheme = "HTTP" ContainerSpecLivenessProbeHttpGetSchemeHttps ContainerSpecLivenessProbeHttpGetScheme = "HTTPS" )
type ContainerSpecLivenessProbeTcpSocket ¶
type ContainerSpecLivenessProbeTcpSocket struct {
Port float32 `json:"port"`
}
type ContainerSpecMetrics ¶
type ContainerSpecPorts ¶
type ContainerSpecPorts struct {
Protocol ContainerSpecPortsProtocol `json:"protocol,omitempty"`
Number float32 `json:"number"`
}
type ContainerSpecPortsProtocol ¶
type ContainerSpecPortsProtocol string
const ( ContainerSpecPortsProtocolHttp ContainerSpecPortsProtocol = "http" ContainerSpecPortsProtocolHttp2 ContainerSpecPortsProtocol = "http2" ContainerSpecPortsProtocolGrpc ContainerSpecPortsProtocol = "grpc" ContainerSpecPortsProtocolTcp ContainerSpecPortsProtocol = "tcp" )
type ContainerSpecReadinessProbe ¶
type ContainerSpecReadinessProbe struct {
Exec ContainerSpecReadinessProbeExec `json:"exec,omitempty"`
Grpc ContainerSpecReadinessProbeGrpc `json:"grpc,omitempty"`
TcpSocket ContainerSpecReadinessProbeTcpSocket `json:"tcpSocket,omitempty"`
HttpGet ContainerSpecReadinessProbeHttpGet `json:"httpGet,omitempty"`
InitialDelaySeconds float32 `json:"initialDelaySeconds"`
PeriodSeconds float32 `json:"periodSeconds"`
TimeoutSeconds float32 `json:"timeoutSeconds"`
SuccessThreshold float32 `json:"successThreshold"`
FailureThreshold float32 `json:"failureThreshold"`
}
type ContainerSpecReadinessProbeExec ¶
type ContainerSpecReadinessProbeExec struct {
Command []string `json:"command,omitempty"`
}
type ContainerSpecReadinessProbeHttpGet ¶
type ContainerSpecReadinessProbeHttpGet struct {
Path string `json:"path,omitempty"`
Port float32 `json:"port"`
HttpHeaders []ContainerSpecReadinessProbeHttpGetHttpHeaders `json:"httpHeaders,omitempty"`
Scheme ContainerSpecReadinessProbeHttpGetScheme `json:"scheme,omitempty"`
}
type ContainerSpecReadinessProbeHttpGetScheme ¶
type ContainerSpecReadinessProbeHttpGetScheme string
const ( ContainerSpecReadinessProbeHttpGetSchemeHttp ContainerSpecReadinessProbeHttpGetScheme = "HTTP" ContainerSpecReadinessProbeHttpGetSchemeHttps ContainerSpecReadinessProbeHttpGetScheme = "HTTPS" )
type ContainerSpecReadinessProbeTcpSocket ¶
type ContainerSpecReadinessProbeTcpSocket struct {
Port float32 `json:"port"`
}
type FirewallSpec ¶
type FirewallSpec struct {
External FirewallSpecExternal `json:"external,omitempty"`
Internal FirewallSpecInternal `json:"internal,omitempty"`
}
type FirewallSpecExternal ¶
type FirewallSpecExternal struct {
InboundAllowCIDR []string `json:"inboundAllowCIDR,omitempty"`
InboundBlockedCIDR []string `json:"inboundBlockedCIDR,omitempty"`
OutboundAllowHostname []string `json:"outboundAllowHostname,omitempty"`
OutboundAllowPort []FirewallSpecExternalOutboundAllowPort `json:"outboundAllowPort,omitempty"`
OutboundAllowCIDR []string `json:"outboundAllowCIDR,omitempty"`
OutboundBlockedCIDR []string `json:"outboundBlockedCIDR,omitempty"`
}
type FirewallSpecExternalOutboundAllowPort ¶
type FirewallSpecExternalOutboundAllowPort struct {
Protocol FirewallSpecExternalOutboundAllowPortProtocol `json:"protocol,omitempty"`
Number float32 `json:"number"`
}
type FirewallSpecExternalOutboundAllowPortProtocol ¶
type FirewallSpecExternalOutboundAllowPortProtocol string
const ( FirewallSpecExternalOutboundAllowPortProtocolHttp FirewallSpecExternalOutboundAllowPortProtocol = "http" FirewallSpecExternalOutboundAllowPortProtocolHttps FirewallSpecExternalOutboundAllowPortProtocol = "https" FirewallSpecExternalOutboundAllowPortProtocolTcp FirewallSpecExternalOutboundAllowPortProtocol = "tcp" )
type FirewallSpecInternal ¶
type FirewallSpecInternal struct {
InboundAllowType FirewallSpecInternalInboundAllowType `json:"inboundAllowType,omitempty"`
InboundAllowWorkload []string `json:"inboundAllowWorkload,omitempty"`
}
type FirewallSpecInternalInboundAllowType ¶
type FirewallSpecInternalInboundAllowType string
const ( FirewallSpecInternalInboundAllowTypeNone FirewallSpecInternalInboundAllowType = "none" FirewallSpecInternalInboundAllowTypeSameGvc FirewallSpecInternalInboundAllowType = "same-gvc" FirewallSpecInternalInboundAllowTypeSameOrg FirewallSpecInternalInboundAllowType = "same-org" FirewallSpecInternalInboundAllowTypeWorkloadList FirewallSpecInternalInboundAllowType = "workload-list" )
type GpuResource ¶
type GpuResource struct {
Nvidia GpuResourceNvidia `json:"nvidia,omitempty"`
}
type GpuResourceNvidia ¶
type HealthCheckSpec ¶
type HealthCheckSpec struct {
Exec HealthCheckSpecExec `json:"exec,omitempty"`
Grpc HealthCheckSpecGrpc `json:"grpc,omitempty"`
TcpSocket HealthCheckSpecTcpSocket `json:"tcpSocket,omitempty"`
HttpGet HealthCheckSpecHttpGet `json:"httpGet,omitempty"`
InitialDelaySeconds float32 `json:"initialDelaySeconds"`
PeriodSeconds float32 `json:"periodSeconds"`
TimeoutSeconds float32 `json:"timeoutSeconds"`
SuccessThreshold float32 `json:"successThreshold"`
FailureThreshold float32 `json:"failureThreshold"`
}
type HealthCheckSpecExec ¶
type HealthCheckSpecExec struct {
Command []string `json:"command,omitempty"`
}
type HealthCheckSpecGrpc ¶
type HealthCheckSpecHttpGet ¶
type HealthCheckSpecHttpGet struct {
Path string `json:"path,omitempty"`
Port float32 `json:"port"`
HttpHeaders []HealthCheckSpecHttpGetHttpHeaders `json:"httpHeaders,omitempty"`
Scheme HealthCheckSpecHttpGetScheme `json:"scheme,omitempty"`
}
type HealthCheckSpecHttpGetScheme ¶
type HealthCheckSpecHttpGetScheme string
const ( HealthCheckSpecHttpGetSchemeHttp HealthCheckSpecHttpGetScheme = "HTTP" HealthCheckSpecHttpGetSchemeHttps HealthCheckSpecHttpGetScheme = "HTTPS" )
type HealthCheckSpecTcpSocket ¶
type HealthCheckSpecTcpSocket struct {
Port float32 `json:"port"`
}
type HealthCheckStatus ¶
type HealthCheckStatus struct {
Active bool `json:"active,omitempty"`
Success bool `json:"success,omitempty"`
Code float32 `json:"code"`
Message string `json:"message,omitempty"`
Failures float32 `json:"failures"`
Successes float32 `json:"successes"`
LastChecked string `json:"lastChecked,omitempty"`
}
type JobSpec ¶
type JobSpec struct {
Schedule ScheduleType `json:"schedule,omitempty"`
ConcurrencyPolicy JobSpecConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
HistoryLimit float32 `json:"historyLimit"`
RestartPolicy JobSpecRestartPolicy `json:"restartPolicy,omitempty"`
ActiveDeadlineSeconds float32 `json:"activeDeadlineSeconds"`
}
type JobSpecConcurrencyPolicy ¶
type JobSpecConcurrencyPolicy string
const ( JobSpecConcurrencyPolicyForbid JobSpecConcurrencyPolicy = "Forbid" JobSpecConcurrencyPolicyReplace JobSpecConcurrencyPolicy = "Replace" )
type JobSpecRestartPolicy ¶
type JobSpecRestartPolicy string
const ( JobSpecRestartPolicyOnFailure JobSpecRestartPolicy = "OnFailure" JobSpecRestartPolicyNever JobSpecRestartPolicy = "Never" )
type LoadBalancerPort ¶
type LoadBalancerPort struct {
ExternalPort float32 `json:"externalPort"`
Protocol LoadBalancerPortProtocol `json:"protocol,omitempty"`
Scheme LoadBalancerPortScheme `json:"scheme,omitempty"`
ContainerPort float32 `json:"containerPort"`
}
type LoadBalancerPortProtocol ¶
type LoadBalancerPortProtocol string
const ( LoadBalancerPortProtocolTcp LoadBalancerPortProtocol = "TCP" LoadBalancerPortProtocolUdp LoadBalancerPortProtocol = "UDP" )
type LoadBalancerPortScheme ¶
type LoadBalancerPortScheme string
const ( LoadBalancerPortSchemeHttp LoadBalancerPortScheme = "http" LoadBalancerPortSchemeTcp LoadBalancerPortScheme = "tcp" LoadBalancerPortSchemeHttps LoadBalancerPortScheme = "https" LoadBalancerPortSchemeWs LoadBalancerPortScheme = "ws" LoadBalancerPortSchemeWss LoadBalancerPortScheme = "wss" )
type LoadBalancerSpec ¶
type LoadBalancerSpec struct {
Direct LoadBalancerSpecDirect `json:"direct,omitempty"`
GeoLocation LoadBalancerSpecGeoLocation `json:"geoLocation,omitempty"`
}
type LoadBalancerSpecDirect ¶
type LoadBalancerSpecDirect struct {
Enabled bool `json:"enabled,omitempty"`
Ports []LoadBalancerPort `json:"ports,omitempty"`
IpSet string `json:"ipSet,omitempty"`
}
type LoadBalancerSpecGeoLocation ¶
type LoadBalancerSpecGeoLocation struct {
Enabled bool `json:"enabled,omitempty"`
Headers LoadBalancerSpecGeoLocationHeaders `json:"headers,omitempty"`
}
type LoadBalancerStatus ¶
type RequestRetryPolicy ¶
type ResolvedImage ¶
type ResolvedImage struct {
Digest string `json:"digest,omitempty"`
Manifests []ResolvedImageManifests `json:"manifests,omitempty"`
}
type ResolvedImageManifests ¶
type ResolvedImageManifests struct {
Image string `json:"image,omitempty"`
MediaType string `json:"mediaType,omitempty"`
Digest string `json:"digest,omitempty"`
Platform ResolvedImageManifestsPlatform `json:"platform,omitempty"`
}
type ResolvedImages ¶
type ResolvedImages struct {
ResolvedForVersion float32 `json:"resolvedForVersion"`
ResolvedAt string `json:"resolvedAt,omitempty"`
ErrorMessages []string `json:"errorMessages,omitempty"`
Images []ResolvedImage `json:"images,omitempty"`
}
type RolloutOptions ¶
type RolloutOptions struct {
MinReadySeconds float32 `json:"minReadySeconds"`
MaxSurgeReplicas string `json:"maxSurgeReplicas,omitempty"`
ScalingPolicy RolloutOptionsScalingPolicy `json:"scalingPolicy,omitempty"`
}
type RolloutOptionsScalingPolicy ¶
type RolloutOptionsScalingPolicy string
const ( RolloutOptionsScalingPolicyOrderedReady RolloutOptionsScalingPolicy = "OrderedReady" RolloutOptionsScalingPolicyParallel RolloutOptionsScalingPolicy = "Parallel" )
type RolloutOptionsStateful ¶
type RolloutOptionsStateful struct {
MinReadySeconds float32 `json:"minReadySeconds"`
MaxSurgeReplicas string `json:"maxSurgeReplicas,omitempty"`
ScalingPolicy RolloutOptionsStatefulScalingPolicy `json:"scalingPolicy,omitempty"`
}
type RolloutOptionsStatefulScalingPolicy ¶
type RolloutOptionsStatefulScalingPolicy string
const ( RolloutOptionsStatefulScalingPolicyOrderedReady RolloutOptionsStatefulScalingPolicy = "OrderedReady" RolloutOptionsStatefulScalingPolicyParallel RolloutOptionsStatefulScalingPolicy = "Parallel" )
type ScheduleType ¶
type ScheduleType string
type SecurityOptions ¶
type SecurityOptions struct {
FilesystemGroupId float32 `json:"filesystemGroupId"`
}
type Workload ¶
type Workload struct {
Id string `json:"id,omitempty"`
Kind base.Kind `json:"kind,omitempty"`
Version float32 `json:"version"`
Description string `json:"description,omitempty"`
Tags base.Tags `json:"tags,omitempty"`
Created string `json:"created,omitempty"`
LastModified string `json:"lastModified,omitempty"`
Links base.Links `json:"links,omitempty"`
Name string `json:"name,omitempty"`
Gvc any `json:"gvc,omitempty"`
Spec WorkloadSpec `json:"spec,omitempty"`
Status WorkloadStatus `json:"status,omitempty"`
}
type WorkloadConfig ¶
type WorkloadConfig struct {
Scheduling WorkloadConfigScheduling `json:"scheduling,omitempty"`
ThinProvision float32 `json:"thinProvision"`
}
type WorkloadSpec ¶
type WorkloadSpec struct {
Type WorkloadSpecType `json:"type,omitempty"`
IdentityLink string `json:"identityLink,omitempty"`
Containers []ContainerSpec `json:"containers,omitempty"`
FirewallConfig WorkloadSpecFirewallConfig `json:"firewallConfig,omitempty"`
DefaultOptions workloadOptions.DefaultOptions `json:"defaultOptions,omitempty"`
LocalOptions workloadOptions.LocalOptions `json:"localOptions,omitempty"`
Job WorkloadSpecJob `json:"job,omitempty"`
Sidecar WorkloadSpecSidecar `json:"sidecar,omitempty"`
SupportDynamicTags bool `json:"supportDynamicTags,omitempty"`
RolloutOptions any `json:"rolloutOptions,omitempty"`
SecurityOptions WorkloadSpecSecurityOptions `json:"securityOptions,omitempty"`
LoadBalancer WorkloadSpecLoadBalancer `json:"loadBalancer,omitempty"`
Extras WorkloadSpecExtras `json:"extras,omitempty"`
RequestRetryPolicy WorkloadSpecRequestRetryPolicy `json:"requestRetryPolicy,omitempty"`
}
type WorkloadSpecExtras ¶
type WorkloadSpecFirewallConfig ¶
type WorkloadSpecFirewallConfig struct {
External WorkloadSpecFirewallConfigExternal `json:"external,omitempty"`
Internal WorkloadSpecFirewallConfigInternal `json:"internal,omitempty"`
}
type WorkloadSpecFirewallConfigExternal ¶
type WorkloadSpecFirewallConfigExternal struct {
InboundAllowCIDR []string `json:"inboundAllowCIDR,omitempty"`
InboundBlockedCIDR []string `json:"inboundBlockedCIDR,omitempty"`
OutboundAllowHostname []string `json:"outboundAllowHostname,omitempty"`
OutboundAllowPort []WorkloadSpecFirewallConfigExternalOutboundAllowPort `json:"outboundAllowPort,omitempty"`
OutboundAllowCIDR []string `json:"outboundAllowCIDR,omitempty"`
OutboundBlockedCIDR []string `json:"outboundBlockedCIDR,omitempty"`
}
type WorkloadSpecFirewallConfigExternalOutboundAllowPort ¶
type WorkloadSpecFirewallConfigExternalOutboundAllowPort struct {
Protocol WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol `json:"protocol,omitempty"`
Number float32 `json:"number"`
}
type WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol ¶
type WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol string
const ( WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocolHttp WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol = "http" WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocolHttps WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol = "https" WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocolTcp WorkloadSpecFirewallConfigExternalOutboundAllowPortProtocol = "tcp" )
type WorkloadSpecFirewallConfigInternal ¶
type WorkloadSpecFirewallConfigInternal struct {
InboundAllowType WorkloadSpecFirewallConfigInternalInboundAllowType `json:"inboundAllowType,omitempty"`
InboundAllowWorkload []string `json:"inboundAllowWorkload,omitempty"`
}
type WorkloadSpecFirewallConfigInternalInboundAllowType ¶
type WorkloadSpecFirewallConfigInternalInboundAllowType string
const ( WorkloadSpecFirewallConfigInternalInboundAllowTypeNone WorkloadSpecFirewallConfigInternalInboundAllowType = "none" WorkloadSpecFirewallConfigInternalInboundAllowTypeSameGvc WorkloadSpecFirewallConfigInternalInboundAllowType = "same-gvc" WorkloadSpecFirewallConfigInternalInboundAllowTypeSameOrg WorkloadSpecFirewallConfigInternalInboundAllowType = "same-org" WorkloadSpecFirewallConfigInternalInboundAllowTypeWorkloadList WorkloadSpecFirewallConfigInternalInboundAllowType = "workload-list" )
type WorkloadSpecJob ¶
type WorkloadSpecJob struct {
Schedule ScheduleType `json:"schedule,omitempty"`
ConcurrencyPolicy WorkloadSpecJobConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
HistoryLimit float32 `json:"historyLimit"`
RestartPolicy WorkloadSpecJobRestartPolicy `json:"restartPolicy,omitempty"`
ActiveDeadlineSeconds float32 `json:"activeDeadlineSeconds"`
}
type WorkloadSpecJobConcurrencyPolicy ¶
type WorkloadSpecJobConcurrencyPolicy string
const ( WorkloadSpecJobConcurrencyPolicyForbid WorkloadSpecJobConcurrencyPolicy = "Forbid" WorkloadSpecJobConcurrencyPolicyReplace WorkloadSpecJobConcurrencyPolicy = "Replace" )
type WorkloadSpecJobRestartPolicy ¶
type WorkloadSpecJobRestartPolicy string
const ( WorkloadSpecJobRestartPolicyOnFailure WorkloadSpecJobRestartPolicy = "OnFailure" WorkloadSpecJobRestartPolicyNever WorkloadSpecJobRestartPolicy = "Never" )
type WorkloadSpecLoadBalancer ¶
type WorkloadSpecLoadBalancer struct {
Direct WorkloadSpecLoadBalancerDirect `json:"direct,omitempty"`
GeoLocation WorkloadSpecLoadBalancerGeoLocation `json:"geoLocation,omitempty"`
}
type WorkloadSpecLoadBalancerDirect ¶
type WorkloadSpecLoadBalancerDirect struct {
Enabled bool `json:"enabled,omitempty"`
Ports []LoadBalancerPort `json:"ports,omitempty"`
IpSet string `json:"ipSet,omitempty"`
}
type WorkloadSpecLoadBalancerGeoLocation ¶
type WorkloadSpecLoadBalancerGeoLocation struct {
Enabled bool `json:"enabled,omitempty"`
Headers WorkloadSpecLoadBalancerGeoLocationHeaders `json:"headers,omitempty"`
}
type WorkloadSpecSecurityOptions ¶
type WorkloadSpecSecurityOptions struct {
FilesystemGroupId float32 `json:"filesystemGroupId"`
}
type WorkloadSpecSidecar ¶
type WorkloadSpecSidecar struct {
Envoy envoy.EnvoyFilters `json:"envoy,omitempty"`
}
type WorkloadSpecType ¶
type WorkloadSpecType string
const ( WorkloadSpecTypeServerless WorkloadSpecType = "serverless" WorkloadSpecTypeStandard WorkloadSpecType = "standard" WorkloadSpecTypeCron WorkloadSpecType = "cron" WorkloadSpecTypeStateful WorkloadSpecType = "stateful" )
type WorkloadStatus ¶
type WorkloadStatus struct {
ParentId string `json:"parentId,omitempty"`
CanonicalEndpoint string `json:"canonicalEndpoint,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
InternalName string `json:"internalName,omitempty"`
HealthCheck HealthCheckStatus `json:"healthCheck,omitempty"`
CurrentReplicaCount float32 `json:"currentReplicaCount"`
ResolvedImages ResolvedImages `json:"resolvedImages,omitempty"`
LoadBalancer []LoadBalancerStatus `json:"loadBalancer,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.