mapper

package
v0.0.0-...-2601f63 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8sResources

func CreateK8sResources(resourceList v1.ResourceList) models.K8sResources

func ResolveK8sServiceForK8sDeployment

func ResolveK8sServiceForK8sDeployment(services *v1.ServiceList, deployment appsv1.Deployment) string

Types

type ClusterDTO

type ClusterDTO struct {
	Name       string
	K8sVersion string
	NodesCount int
	OsImage    string
}

type Mapper

type Mapper interface {
	MapCluster(clusterName string, nodes *v1.NodeList) (ClusterDTO, error)
	MapDeploymentsEcst(deployments *appsv1.DeploymentList, services *v1.ServiceList) ([]models.DeploymentEcst, error)
}

func NewMapper

func NewMapper(
	kubernetesApi *kubernetes.API,
	clusterName string,
	workspaceId string,
	blackListedNamespaces []string,
	runId string) Mapper

Jump to

Keyboard shortcuts

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