cmd

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StageLevel       = 1
	ServiceLevel     = 2
	StepLevel        = 3
	MessageLevel     = 4
	AllLevel     int = 5
)

Variables

This section is empty.

Functions

func DecodeJWT added in v1.7.11

func DecodeJWT(tokenString string) (string, string, error)

func Execute

func Execute()

func GetHelmSource added in v0.75.5

func GetHelmSource(helm *qovery.HelmResponse, chartName string, chartVersion string, charGitCommitBranch string) (*qovery.HelmRequestAllOfSource, error)

func GetHelmValuesOverride added in v0.75.5

func GetHelmValuesOverride(helm *qovery.HelmResponse, valuesOverrideCommitBranch string) (*qovery.HelmRequestAllOfValuesOverride, error)

func GetStageByName added in v0.49.0

func GetStageByName(stages []qovery.DeploymentStageResponse, stageName string) (*qovery.DeploymentStageResponse, error)

func ListCronjobs added in v0.48.0

func ListCronjobs(envId string, client *qovery.APIClient) ([]qovery.JobResponse, error)

func ListLifecycleJobs added in v0.48.0

func ListLifecycleJobs(envId string, client *qovery.APIClient) ([]qovery.JobResponse, error)

func LogDetail added in v1.7.11

func LogDetail(result []byte)

func WatchApplicationDeployment added in v1.25.0

func WatchApplicationDeployment(
	client *qovery.APIClient,
	envId string,
	applications []*qovery.Application,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

func WatchContainerDeployment added in v1.25.0

func WatchContainerDeployment(
	client *qovery.APIClient,
	envId string,
	containers []*qovery.ContainerResponse,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

func WatchDatabaseDeployment added in v1.25.0

func WatchDatabaseDeployment(
	client *qovery.APIClient,
	envId string,
	databaseList []*qovery.Database,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

func WatchHelmDeployment added in v1.25.0

func WatchHelmDeployment(
	client *qovery.APIClient,
	envId string,
	helmList []*qovery.HelmResponse,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

func WatchJobDeployment added in v1.25.0

func WatchJobDeployment(
	client *qovery.APIClient,
	envId string,
	cronJobs []*qovery.JobResponse,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

func WatchTerraformDeployment added in v1.55.0

func WatchTerraformDeployment(
	client *qovery.APIClient,
	envId string,
	terraforms []*qovery.TerraformResponse,
	watchFlag bool,
	finalServiceState qovery.StateEnum,
)

Types

type ClusterComputedStatusDto added in v1.21.0

type ClusterComputedStatusDto struct {
	GlobalStatus              ClusterStatusGlobalStatus      `json:"global_status"`
	QoveryComponentsInFailure []QoveryComponentInFailure     `json:"qovery_components_in_failure"`
	NodeWarnings              map[string][]QoveryNodeFailure `json:"node_warnings"`
	IsMaxNodesSizeReached     bool                           `json:"is_max_nodes_size_reached"`
	KubeVersionStatus         QoveryClusterKubeVersionStatus `json:"kube_version_status"`
}

type ClusterNodeDto added in v1.21.0

type ClusterNodeDto struct {
	CreatedAt            *uint64                  `json:"created_at"`
	Name                 string                   `json:"name"`
	Architecture         string                   `json:"architecture"`
	InstanceType         *string                  `json:"instance_type"`
	KernelVersion        string                   `json:"kernel_version"`
	KubeletVersion       string                   `json:"kubelet_version"`
	OperatingSystem      string                   `json:"operating_system"`
	OsImage              string                   `json:"os_image"`
	Unschedulable        bool                     `json:"unschedulable"`
	ResourcesAllocatable NodeResourceDto          `json:"resources_allocatable"`
	ResourcesAllocated   NodeResourceAllocatedDto `json:"resources_allocated"`
	Taints               []NodeTaintDto           `json:"taints"`
	Conditions           []NodeConditionDto       `json:"conditions"`
	Labels               map[string]string        `json:"labels"`
	Annotations          map[string]string        `json:"annotations"`
	Addresses            []NodeAddressDto         `json:"addresses"`
	Pods                 []NodePodInfoDto         `json:"pods"`
	MetricsUsage         MetricsUsageDto          `json:"metrics_usage"`
}

type ClusterStatusDto added in v1.21.0

type ClusterStatusDto struct {
	ComputedStatus ClusterComputedStatusDto `json:"computed_status"`
	Nodes          []ClusterNodeDto         `json:"nodes"`
	Pvcs           []PvcInfoDto             `json:"pvcs"`
}

type ClusterStatusGlobalStatus added in v1.21.0

type ClusterStatusGlobalStatus string
const (
	ClusterStatusGlobalStatusRunning ClusterStatusGlobalStatus = "RUNNING"
	ClusterStatusGlobalStatusWarning ClusterStatusGlobalStatus = "WARNING"
	ClusterStatusGlobalStatusError   ClusterStatusGlobalStatus = "ERROR"
)

type ClusterStatusRequest added in v1.21.0

type ClusterStatusRequest struct {
	OrganizationID utils.Id `url:"organization"`
	ClusterID      utils.Id `url:"cluster"`
}

type DebugPodRequest added in v1.7.11

type DebugPodRequest struct {
	OrganizationID utils.Id `url:"organization"`
	ClusterID      utils.Id `url:"cluster"`
	TtyWidth       uint16   `url:"tty_width"`
	TtyHeight      uint16   `url:"tty_height"`
	Flavor         string   `url:"flavor"`
	NodeSelector   string   `url:"node_selector,omitempty"`
}

func (*DebugPodRequest) SetTtySize added in v1.7.11

func (s *DebugPodRequest) SetTtySize(width uint16, height uint16)

type EnableUserSignupRequest added in v1.37.0

type EnableUserSignupRequest struct {
	UserEmail string `json:"user_email"`
	Provider  string `json:"provider,omitempty"`
}

type EnterpriseConnection added in v1.45.0

type EnterpriseConnection struct {
	OrganizationID string `json:"organization_id"`
	ConnectionName string `json:"connection_name"`
	DefaultRole    string `json:"default_role"`
}

type KubeVersionStatusDriftValue added in v1.21.0

type KubeVersionStatusDriftValue struct {
	KubeVersion         string `json:"kube_version"`
	ExpectedKubeVersion string `json:"expected_kube_version"`
	Type                string `json:"type"`
}

type KubeVersionStatusOkValue added in v1.21.0

type KubeVersionStatusOkValue struct {
	KubeVersion string `json:"kube_version"`
	Type        string `json:"type"`
}

type KubeVersionStatusUnknownValue added in v1.21.0

type KubeVersionStatusUnknownValue struct {
	Type string `json:"type"`
}

type ListLogResponse added in v0.98.0

type ListLogResponse struct {
	Filename     string `json:"filename"`
	LastModified string `json:"last_modified"`
}

type ListNodeResponse added in v1.7.11

type ListNodeResponse struct {
	Nodes []NodeResponse
}

func ExecListNodes added in v1.7.11

func ExecListNodes(req *ListNodesRequest) (*ListNodeResponse, error)

type ListNodesRequest added in v1.7.11

type ListNodesRequest struct {
	OrganizationID utils.Id `url:"organization"`
	ClusterID      utils.Id `url:"cluster"`
}

type MetricsUsageDto added in v1.21.0

type MetricsUsageDto struct {
	CpuMilliUsage                *uint32 `json:"cpu_milli_usage"`
	CpuPercentUsage              *uint32 `json:"cpu_percent_usage"`
	MemoryMibRssUsage            *uint32 `json:"memory_mib_rss_usage"`
	MemoryPercentRssUsage        *uint32 `json:"memory_percent_rss_usage"`
	MemoryMibWorkingSetUsage     *uint32 `json:"memory_mib_working_set_usage"`
	MemoryPercentWorkingSetUsage *uint32 `json:"memory_percent_working_set_usage"`
	DiskMibUsage                 *uint32 `json:"disk_mib_usage"`
	DiskPercentUsage             *uint32 `json:"disk_percent_usage"`
}

type MissingComponentValue added in v1.21.0

type MissingComponentValue struct {
	ComponentName string `json:"component_name"`
	Type          string `json:"type"`
}

type NodeAddressDto added in v1.21.0

type NodeAddressDto struct {
	Type    string `json:"type"`
	Address string `json:"address"`
}

type NodeConditionDto added in v1.21.0

type NodeConditionDto struct {
	Type               string  `json:"type"`
	Status             string  `json:"status"`
	LastHeartbeatTime  *uint64 `json:"last_heartbeat_time"`
	LastTransitionTime *uint64 `json:"last_transition_time"`
	Reason             string  `json:"reason"`
	Message            string  `json:"message"`
}

type NodePodErrorStatusDto added in v1.21.0

type NodePodErrorStatusDto struct {
	ContainerName string  `json:"container_name"`
	Reason        *string `json:"reason"`
	Message       *string `json:"message"`
}

type NodePodInfoDto added in v1.21.0

type NodePodInfoDto struct {
	CreatedAt              *uint64                  `json:"created_at"`
	Name                   string                   `json:"name"`
	Namespace              string                   `json:"namespace"`
	ErrorContainerStatuses []NodePodErrorStatusDto  `json:"error_container_statuses"`
	QoveryServiceInfo      *PodQoveryServiceInfoDto `json:"qovery_service_info"`
	CpuMilliRequest        *uint32                  `json:"cpu_milli_request"`
	CpuMilliLimit          *uint32                  `json:"cpu_milli_limit"`
	MemoryMibRequest       *uint32                  `json:"memory_mib_request"`
	MemoryMibLimit         *uint32                  `json:"memory_mib_limit"`
	MetricsUsage           MetricsUsageDto          `json:"metrics_usage"`
	ImagesVersion          map[string]string        `json:"images_version"`
	RestartCount           uint32                   `json:"restart_count"`
}

type NodeResourceAllocatedDto added in v1.21.0

type NodeResourceAllocatedDto struct {
	MemoryMib uint32 `json:"memory_mib"`
	CpuMilli  uint32 `json:"cpu_milli"`
}

type NodeResourceDto added in v1.21.0

type NodeResourceDto struct {
	CpuMilli            uint64 `json:"cpu_milli"`
	MemoryMib           uint64 `json:"memory_mib"`
	EphemeralStorageMib uint64 `json:"ephemeral_storage_mib"`
	Pods                uint64 `json:"pods"`
}

type NodeResponse added in v1.7.11

type NodeResponse struct {
	Name string
}

type NodeTaintDto added in v1.21.0

type NodeTaintDto struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Effect string `json:"effect"`
}

type PodInErrorValue added in v1.21.0

type PodInErrorValue struct {
	ComponentName string                              `json:"component_name"`
	PodName       string                              `json:"pod_name"`
	ContainerName string                              `json:"container_name"`
	Level         QoveryComponentContainerStatusLevel `json:"level"`
	Reason        *string                             `json:"reason"`
	Message       *string                             `json:"message"`
	Type          string                              `json:"type"`
}

type PodQoveryServiceInfoDto added in v1.21.0

type PodQoveryServiceInfoDto struct {
	ProjectId       string `json:"project_id"`
	ProjectName     string `json:"project_name"`
	EnvironmentId   string `json:"environment_id"`
	EnvironmentName string `json:"environment_name"`
	ServiceId       string `json:"service_id"`
	ServiceName     string `json:"service_name"`
}

type Provider added in v1.37.0

type Provider string
const (
	ProviderGithub    Provider = "GITHUB"
	ProviderGitlab    Provider = "GITLAB"
	ProviderBitbucket Provider = "BITBUCKET"
	ProviderMicrosoft Provider = "MICROSOFT"
	ProviderGoogle    Provider = "GOOGLE"
)

func (Provider) String added in v1.37.0

func (p Provider) String() string

type PvcInfoDto added in v1.21.0

type PvcInfoDto struct {
	Name              string                   `json:"name"`
	Namespace         string                   `json:"namespace"`
	PodName           string                   `json:"pod_name"`
	DiskMibUsage      uint32                   `json:"disk_mib_usage"`
	DiskPercentUsage  uint32                   `json:"disk_percent_usage"`
	DiskMibCapacity   uint32                   `json:"disk_mib_capacity"`
	QoveryServiceInfo *PodQoveryServiceInfoDto `json:"qovery_service_info"`
}

type QoveryClusterKubeVersionStatus added in v1.21.0

type QoveryClusterKubeVersionStatus struct {
	Type                string `json:"type"`
	KubeVersion         string `json:"kube_version,omitempty"`
	ExpectedKubeVersion string `json:"expected_kube_version,omitempty"`
}

type QoveryComponentContainerStatusIssue added in v1.21.0

type QoveryComponentContainerStatusIssue struct {
	Level   QoveryComponentContainerStatusLevel `json:"level"`
	Reason  *string                             `json:"reason"`
	Message *string                             `json:"message"`
}

type QoveryComponentContainerStatusLevel added in v1.21.0

type QoveryComponentContainerStatusLevel string
const (
	QoveryComponentContainerStatusLevelError   QoveryComponentContainerStatusLevel = "ERROR"
	QoveryComponentContainerStatusLevelWarning QoveryComponentContainerStatusLevel = "WARNING"
)

type QoveryComponentInFailure added in v1.21.0

type QoveryComponentInFailure struct {
	Type          string                              `json:"type"`
	ComponentName string                              `json:"component_name"`
	PodName       string                              `json:"pod_name,omitempty"`
	ContainerName string                              `json:"container_name,omitempty"`
	Level         QoveryComponentContainerStatusLevel `json:"level,omitempty"`
	Reason        *string                             `json:"reason,omitempty"`
	Message       *string                             `json:"message,omitempty"`
}

type QoveryNodeFailure added in v1.21.0

type QoveryNodeFailure struct {
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

type Services added in v0.85.0

type Services struct {
	ApplicationsIDs []string
	ContainersIDs   []string
	HelmsIDs        []string
	JobsIDs         []string
	DatabasesIDs    []string
}

type TokenCreationResponseDto added in v0.41.2

type TokenCreationResponseDto struct {
	Token string
}

Source Files

Jump to

Keyboard shortcuts

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