Documentation
¶
Index ¶
- func CreateEcstDiscoveryEvent(eventType string, changeAction string, id string, data Data, ...) models.DiscoveryEvent
- func GenerateId(workspaceId string, configId string, data Data) string
- type Cluster
- type ClusterEcst
- type Data
- type Deployment
- type DeploymentEcst
- type DeploymentProperties
- type EcstEventBuilder
- type K8sResources
- type Namespace
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEcstDiscoveryEvent ¶
func CreateEcstDiscoveryEvent(eventType string, changeAction string, id string, data Data, workspaceId string, configId string) models.DiscoveryEvent
CreateEcstDiscoveryEvent ECST Discovery Items
Types ¶
type ClusterEcst ¶
type Data ¶
type Data struct {
Cluster ClusterEcst `json:"cluster"`
}
type Deployment ¶
type Deployment struct { Service *Service `json:"service"` Image string `json:"image"` DeploymentName string `json:"deploymentName"` Labels interface{} `json:"labels"` Timestamp string `json:"time"` Properties DeploymentProperties `json:"properties"` }
type DeploymentEcst ¶
type DeploymentEcst struct { ServiceName string `json:"serviceName"` Image string `json:"image"` DeploymentName string `json:"deploymentName"` Labels interface{} `json:"labels"` Timestamp string `json:"time"` DeploymentProperties DeploymentProperties `json:"deploymentProperties"` }
type DeploymentProperties ¶
type DeploymentProperties struct { UpdateStrategy string `json:"updateStrategy"` Replicas string `json:"replicas"` K8sLimits K8sResources `json:"k8sLimits"` K8sRequests K8sResources `json:"k8sRequests"` }
type EcstEventBuilder ¶
type EcstEventBuilder interface { Header(header models.HeaderProperties) EcstEventBuilder Body(body models.DiscoveryBody) EcstEventBuilder Build() models.DiscoveryEvent }
ECST Discovery Items
type K8sResources ¶
Click to show internal directories.
Click to hide internal directories.