clustersservice

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package clustersservice cluster package provides services to get and manipulate the cluster object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CpuMemPercentageCalc

func CpuMemPercentageCalc(cluster *apicontracts.Cluster)

func Create

func Create(ctx context.Context, input *apicontracts.Cluster) (string, error)

func CreateOrUpdate

func CreateOrUpdate(ctx context.Context, input *apicontracts.Cluster, clusterId string) error

func Exists

func Exists(ctx context.Context, clusterId string) (bool, error)

func FindByName

func FindByName(ctx context.Context, clusterName string) (*apicontracts.Cluster, error)

func FindMachineClass

func FindMachineClass(ctx context.Context, cluster *apicontracts.Cluster)

func GetByClusterId

func GetByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)

func GetByWorkspace

func GetByWorkspace(ctx context.Context, filter *apicontracts.Filter, workspaceName string) (*apicontracts.PaginatedResult[apicontracts.Cluster], error)

func GetClusterComplianceReports

func GetClusterComplianceReports(ctx context.Context, clusterId string) ([]viewsmodels.ComplianceReport, error)

func GetClusterComplianceReportsGlobal

func GetClusterComplianceReportsGlobal(ctx context.Context) ([]viewsmodels.ComplianceReport, error)

func GetClusterIdByProjectId

func GetClusterIdByProjectId(ctx context.Context, projectId string) ([]*apicontracts.ClusterInfo, error)

func GetGlobalViewVulnerabilityReportsById

func GetGlobalViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.GlobalVulnerabilityReportsViewById, error)

func GetKubeconfig

func GetKubeconfig(ctx context.Context, clusterId string, credentials apicontracts.KubeconfigCredentials) (string, error)

func GetMetadata

func GetMetadata(ctx context.Context) (map[string][]string, error)

func GetViewPolicyReportSummary

func GetViewPolicyReportSummary(ctx context.Context, querytype viewsmodels.PolicyreportGlobalQueryType, clusterID string) ([]viewsmodels.PolicyreportGlobal, error)

func GetViewVulnerabilityReportsById

func GetViewVulnerabilityReportsById(ctx context.Context, cveId string) (viewsmodels.VulnerabilityById, error)

func GetViewVulnerabilityReportsGlobal

func GetViewVulnerabilityReportsGlobal(ctx context.Context) ([]viewsmodels.VulnerabilityReportsView, error)

func Update

func Update(ctx context.Context, input *apicontracts.Cluster, existing *apicontracts.Cluster) error

func UpdateMetadata

func UpdateMetadata(ctx context.Context, input *apicontracts.ClusterMetadataModel, existing *apicontracts.Cluster) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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