Documentation
¶
Index ¶
- func CreateEcstDiscoveryEvent(eventType string, changeAction string, id string, data Data, runId string, ...) models.DiscoveryEvent
- func GenerateId(workspaceId string, configId string, data Data) string
- type Cluster
- type CommandBuilder
- type Containers
- type Data
- type EcstEventBuilder
- type EcstWorkloadEventBuilder
- type K8sResources
- type Workload
- type WorkloadProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandBuilder ¶
type CommandBuilder interface {
Header(header models.CommandProperties) CommandBuilder
Body(body models.CommandBody) CommandBuilder
Build() models.CommandEvent
}
type Containers ¶
type Containers struct {
Name string `json:"name"`
Image string `json:"image"`
Port interface{} `json:"port"`
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 EcstWorkloadEventBuilder ¶
type EcstWorkloadEventBuilder interface {
Header(header models.HeaderProperties) EcstEventBuilder
Body(body models.DiscoveryBody) EcstEventBuilder
Build() models.DiscoveryEvent
}
type K8sResources ¶
type Workload ¶
type Workload struct {
Name string `json:"name"`
WorkloadType string `json:"type"`
Labels map[string]string `json:"labels"`
WorkloadProperties WorkloadProperties `json:"workloadProperties"`
}
type WorkloadProperties ¶
type WorkloadProperties struct {
Schedule string `json:"schedule"`
Replicas string `json:"replicas"`
UpdateStrategy string `json:"updateStrategy"`
Containers Containers `json:"containers"`
}
Click to show internal directories.
Click to hide internal directories.