models

package
v1.116.1-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApplication

func BuildApplication(rr *radixv1.RadixRegistration, ra *radixv1.RadixApplication, reList []radixv1.RadixEnvironment, rdList []radixv1.RadixDeployment, rjList []radixv1.RadixJob, userIsAdmin bool, dnsAliasList []radixv1.RadixDNSAlias, dnsZone string) *applicationModels.Application

BuildApplication builds an Application model.

func BuildApplicationRegistration

func BuildApplicationRegistration(rr *radixv1.RadixRegistration) *applicationModels.ApplicationRegistration

BuildApplicationRegistration builds an ApplicationRegistration model.

func BuildComponents

func BuildComponents(
	ra *radixv1.RadixApplication, rd *radixv1.RadixDeployment, deploymentList []appsv1.Deployment, podList []corev1.Pod,
	hpaList []autoscalingv2.HorizontalPodAutoscaler, secretList []corev1.Secret, eventList []corev1.Event, certs []cmv1.Certificate,
	certRequests []cmv1.CertificateRequest, tlsValidator tlsvalidation.Validator, scaledObjects []v1alpha1.ScaledObject,
) []*deploymentModels.Component

BuildComponents builds a list of Component models.

func BuildDNSExternalAliases

func BuildDNSExternalAliases(rdList []radixv1.RadixDeployment) []models.DNSExternalAlias

BuildDNSExternalAliases builds DNSExternalAliases model list

func BuildDeployment

func BuildDeployment(
	rr *radixv1.RadixRegistration, ra *radixv1.RadixApplication, rd *radixv1.RadixDeployment, deploymentList []appsv1.Deployment,
	podList []corev1.Pod, hpaList []autoscalingv2.HorizontalPodAutoscaler, secretList []corev1.Secret, eventList []corev1.Event,
	rjList []radixv1.RadixJob, certs []cmv1.Certificate, certRequests []cmv1.CertificateRequest, tlsValidator tlsvalidation.Validator,
	scaledObjects []v1alpha1.ScaledObject,
) *deploymentModels.Deployment

BuildDeployment builds a Deployment model.

func BuildDeploymentSummary

BuildDeploymentSummary builds a DeploymentSummary model.

func BuildDeploymentSummaryList

func BuildDeploymentSummaryList(rr *radixv1.RadixRegistration, rdList []radixv1.RadixDeployment, rjList []radixv1.RadixJob) []*deploymentModels.DeploymentSummary

BuildDeploymentSummaryList builds a list of DeploymentSummary models.

func BuildEnvironment

func BuildEnvironment(ctx context.Context, rr *radixv1.RadixRegistration, ra *radixv1.RadixApplication, re *radixv1.RadixEnvironment, rdList []radixv1.RadixDeployment,
	rjList []radixv1.RadixJob, deploymentList []appsv1.Deployment, podList []corev1.Pod, hpaList []autoscalingv2.HorizontalPodAutoscaler,
	secretList []corev1.Secret, secretProviderClassList []secretsstorev1.SecretProviderClass, eventList []corev1.Event,
	certs []cmv1.Certificate, certRequests []cmv1.CertificateRequest, tlsValidator tlsvalidation.Validator, scaledObjects []v1alpha1.ScaledObject,
) *environmentModels.Environment

BuildEnvironment builds and Environment model.

func BuildEnvironmentSummaryList

BuildEnvironmentSummaryList builds a list of EnvironmentSummary models.

func BuildJobSummary

func BuildJobSummary(rj radixv1.RadixJob) *jobModels.JobSummary

BuildJobSummary builds a JobSummary model.

func BuildJobSummaryList

func BuildJobSummaryList(rjList []radixv1.RadixJob) []*jobModels.JobSummary

BuildJobSummaryList builds a list of JobSummary models.

func BuildReplicaSummaryList

func BuildReplicaSummaryList(podList []corev1.Pod, lastEventWarnings map[string]string) []deploymentModels.ReplicaSummary

BuildReplicaSummaryList builds a list of ReplicaSummary models.

func BuildSecrets

func BuildSecrets(ctx context.Context, secretList []corev1.Secret, secretProviderClassList []secretsstorev1.SecretProviderClass, rd *radixv1.RadixDeployment) []secretModels.Secret

BuildSecrets builds a list of Secret models.

func GetActiveDeploymentForAppEnv

func GetActiveDeploymentForAppEnv(appName, envName string, rds []radixv1.RadixDeployment) (radixv1.RadixDeployment, bool)

func GetBatchDeployJobComponent

func GetBatchDeployJobComponent(radixDeploymentName string, jobComponentName string, radixDeploymentsMap map[string]radixv1.RadixDeployment) *radixv1.RadixDeployJobComponent

GetBatchDeployJobComponent Get batch deploy job component

func GetHpaSummary

func GetHpaSummary(appName, componentName string, hpaList []autoscalingv2.HorizontalPodAutoscaler, scalerList []v1alpha1.ScaledObject) *deploymentModels.HorizontalScalingSummary

func GetReplicaSummaryByJobPodStatus

func GetReplicaSummaryByJobPodStatus(radixBatchJob radixv1.RadixBatchJob, jobPodStatus radixv1.RadixBatchJobPodStatus) models.ReplicaSummary

GetReplicaSummaryByJobPodStatus Get replica summary by job pod status

func GetScheduledBatchSummary

func GetScheduledBatchSummary(radixBatch *radixv1.RadixBatch, batchStatus *jobSchedulerModels.BatchStatus, radixDeployJobComponent *radixv1.RadixDeployJobComponent) models.ScheduledBatchSummary

GetScheduledBatchSummary Get scheduled batch summary

func GetScheduledBatchSummaryList

func GetScheduledBatchSummaryList(radixBatches []*radixv1.RadixBatch, batchStatuses []jobSchedulerModels.BatchStatus, radixDeploymentMap map[string]radixv1.RadixDeployment, jobComponentName string) []models.ScheduledBatchSummary

GetScheduledBatchSummaryList Get scheduled batch summary list

func GetScheduledJobSummary

func GetScheduledJobSummary(radixBatch *radixv1.RadixBatch, radixBatchJob *radixv1.RadixBatchJob, batchStatus *jobSchedulerModels.BatchStatus, radixDeployJobComponent *radixv1.RadixDeployJobComponent) models.ScheduledJobSummary

GetScheduledJobSummary Get scheduled job summary

func GetScheduledJobSummaryList

func GetScheduledJobSummaryList(radixBatch *radixv1.RadixBatch, radixBatchStatus *jobSchedulerModels.BatchStatus, radixDeployJobComponent *radixv1.RadixDeployJobComponent) []models.ScheduledJobSummary

GetScheduledJobSummaryList Get scheduled job summaries

func GetScheduledSingleJobSummaryList

func GetScheduledSingleJobSummaryList(radixBatches []*radixv1.RadixBatch, batchStatuses []jobSchedulerModels.BatchStatus, radixDeploymentMap map[string]radixv1.RadixDeployment, jobComponentName string) []models.ScheduledJobSummary

GetScheduledSingleJobSummaryList Get scheduled single job summary list

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL