Documentation ¶
Overview ¶
Package clustersservice cluster package provides services to get and manipulate the cluster object
Index ¶
- func CpuMemPercentageCalc(cluster *apicontracts.Cluster)
- func Create(ctx context.Context, input *apicontracts.Cluster) (string, error)
- func CreateOrUpdate(ctx context.Context, input *apicontracts.Cluster, clusterId string) error
- func Exists(ctx context.Context, clusterId string) (bool, error)
- func FindByName(ctx context.Context, clusterName string) (*apicontracts.Cluster, error)
- func FindMachineClass(ctx context.Context, cluster *apicontracts.Cluster)
- func GetByClusterId(ctx context.Context, clusterId string) (*apicontracts.Cluster, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[*apicontracts.Cluster], error)
- func GetByWorkspace(ctx context.Context, filter *apicontracts.Filter, workspaceName string) (*apicontracts.PaginatedResult[apicontracts.Cluster], error)
- func GetClusterComplianceReports(ctx context.Context, clusterId string) ([]viewsmodels.ComplianceReport, error)
- func GetClusterComplianceReportsGlobal(ctx context.Context) ([]viewsmodels.ComplianceReport, error)
- func GetClusterIdByProjectId(ctx context.Context, projectId string) ([]*apicontracts.ClusterInfo, error)
- func GetControlPlanesMetadata(ctx context.Context) ([]apicontracts.ClusterControlPlaneMetadata, error)
- func GetGlobalViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.GlobalVulnerabilityReportsViewById, error)
- func GetKubeconfig(ctx context.Context, clusterId string, ...) (string, error)
- func GetMetadata(ctx context.Context) (map[string][]string, error)
- func GetViewPolicyReportSummary(ctx context.Context, querytype viewsmodels.PolicyreportGlobalQueryType, ...) ([]viewsmodels.PolicyreportGlobal, error)
- func GetViewPolicyreport(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) (viewsmodels.PolicyreportView, error)
- func GetViewVulnerabilityReports(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) (viewsmodels.VulnerabilityReportsView, error)
- func GetViewVulnerabilityReportsById(ctx context.Context, cveId string) (viewsmodels.VulnerabilityById, error)
- func GetViewVulnerabilityReportsGlobal(ctx context.Context) ([]viewsmodels.VulnerabilityReportsView, error)
- func Update(ctx context.Context, input *apicontracts.Cluster, ...) error
- func UpdateMetadata(ctx context.Context, input *apicontracts.ClusterMetadataModel, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CpuMemPercentageCalc ¶
func CpuMemPercentageCalc(cluster *apicontracts.Cluster)
func CreateOrUpdate ¶
func FindByName ¶
func FindMachineClass ¶
func FindMachineClass(ctx context.Context, cluster *apicontracts.Cluster)
func GetByClusterId ¶
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[*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 GetControlPlanesMetadata ¶
func GetControlPlanesMetadata(ctx context.Context) ([]apicontracts.ClusterControlPlaneMetadata, 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 GetViewPolicyReportSummary ¶
func GetViewPolicyReportSummary(ctx context.Context, querytype viewsmodels.PolicyreportGlobalQueryType, clusterID string) ([]viewsmodels.PolicyreportGlobal, error)
func GetViewPolicyreport ¶
func GetViewPolicyreport(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) (viewsmodels.PolicyreportView, error)
func GetViewVulnerabilityReports ¶
func GetViewVulnerabilityReports(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) (viewsmodels.VulnerabilityReportsView, 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.
Click to show internal directories.
Click to hide internal directories.