Documentation ¶
Index ¶
- type ClusterMetadata
- type MongoAccessControlList
- type MongoAgent
- type MongoArgoCdVersions
- type MongoAuditLog
- type MongoAuditLogMetadata
- type MongoBilling
- type MongoCluster
- type MongoClusterCondition
- type MongoClusterConfig
- type MongoClusterStatus
- type MongoClusterWithDatacenter
- type MongoClusterWithWorkspace
- type MongoControlPlane
- type MongoDatacenter
- type MongoDatacenterLocation
- type MongoEndpointAddress
- type MongoHealthStatus
- type MongoIngress
- type MongoIngressPath
- type MongoIngressRule
- type MongoMetrics
- type MongoNhnTooling
- type MongoNode
- type MongoNodePool
- type MongoNodeResources
- type MongoNodes
- type MongoOperatorConfig
- type MongoOperatorSpec
- type MongoOperatorTask
- type MongoPrice
- type MongoProject
- type MongoProjectContactInfo
- type MongoProjectMetadata
- type MongoProjectRole
- type MongoResourceAllocated
- type MongoResourceConsumed
- type MongoService
- type MongoServicePort
- type MongoStatusMessage
- type MongoTaskCollection
- type MongoTopology
- type MongoVersions
- type MongoWorkspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterMetadata ¶
type ClusterMetadata struct { ProjectID primitive.ObjectID `json:"projectId,omitempty" bson:"projectid,omitempty"` Criticality apicontracts.CriticalityLevel `json:"criticality"` Sensitivity apicontracts.SensitivityLevel `json:"sensitivity"` Description string `json:"description"` ServiceTags map[string]string `json:"serviceTags"` Billing MongoBilling `json:"billing"` Roles []MongoProjectRole `json:"roles"` }
type MongoAccessControlList ¶
type MongoAccessControlList struct {
AccessGroups []string `json:"accessGroups"`
}
type MongoAgent ¶
type MongoArgoCdVersions ¶
type MongoAuditLog ¶
type MongoAuditLog struct { ID string `json:"id" bson:"_id,omitempty"` Metadata MongoAuditLogMetadata `json:"metadata"` Data map[string]any `json:"data"` }
type MongoAuditLogMetadata ¶
type MongoAuditLogMetadata struct { Msg string `json:"msg"` Timestamp time.Time `json:"timestamp"` Category models.AuditCategory `json:"category"` Action models.AuditAction `json:"action"` User identitymodels.User `json:"user"` }
type MongoBilling ¶
type MongoBilling struct {
Workorder string `json:"workorder"`
}
type MongoCluster ¶
type MongoCluster struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Identifier string `json:"identifier"` ACL MongoAccessControlList `json:"acl"` ClusterId string `json:"clusterId"` ClusterName string `json:"clusterName"` WorkspaceId primitive.ObjectID `json:"workspaceId" bson:"workspaceid"` Environment string `json:"environment"` Metrics MongoMetrics `json:"metrics"` Topology MongoTopology `json:"topology"` Versions MongoVersions `json:"versions"` Ingresses []MongoIngress `json:"ingresses"` Updated time.Time `json:"updated,omitempty"` Created time.Time `json:"created,omitempty"` LastObserved time.Time `json:"lastObserved,omitempty"` FirstObserved time.Time `json:"firstObserved,omitempty"` HealthStatus MongoHealthStatus `json:"healthStatus"` CreatedBy string `json:"createdBy"` SplunkIndex string `json:"splunkIndex"` Config MongoClusterConfig `json:"config"` Metadata ClusterMetadata `json:"metadata"` Status MongoClusterStatus `json:"status"` }
type MongoClusterCondition ¶
type MongoClusterCondition struct { Type apicontracts.ConditionType `json:"type"` Status apicontracts.ConditionStatus `json:"status"` Message string `json:"message"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
type MongoClusterConfig ¶
type MongoClusterStatus ¶
type MongoClusterStatus struct { State apicontracts.ClusterState `json:"state"` Phase apicontracts.ClusterPhase `json:"phase"` Conditions []MongoClusterCondition `json:"conditions"` }
type MongoClusterWithDatacenter ¶
type MongoClusterWithDatacenter struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Datacenter MongoDatacenter `json:"datacenter"` }
type MongoClusterWithWorkspace ¶
type MongoClusterWithWorkspace struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Workspace MongoWorkspace `json:"workspace"` }
type MongoControlPlane ¶
type MongoControlPlane struct { Nodes []MongoNode `json:"nodes" bson:"nodes"` Metrics MongoMetrics `json:"metrics"` }
type MongoDatacenter ¶
type MongoDatacenter struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Name string `json:"name"` Provider providers.ProviderType `json:"provider"` Location MongoDatacenterLocation `json:"location"` APIEndpoint string `json:"apiEndpoint"` }
type MongoDatacenterLocation ¶
type MongoEndpointAddress ¶
type MongoHealthStatus ¶
type MongoHealthStatus struct { Health apicontracts.Health `json:"health"` Messages []MongoStatusMessage `json:"messages" bson:"messages"` }
type MongoIngress ¶
type MongoIngress struct { UID string `json:"uid"` Health apicontracts.Health `json:"health"` Name string `json:"name"` Namespace string `json:"namespace"` Class string `json:"class"` Rules []MongoIngressRule `json:"ingressrules" bson:"ingressrules"` }
type MongoIngressPath ¶
type MongoIngressPath struct { Path string `json:"path"` Service MongoService `json:"service"` }
type MongoIngressRule ¶
type MongoIngressRule struct { Hostname string `json:"hostname"` IPAddresses []string `json:"ipaddresses"` Paths []MongoIngressPath `json:"rules" bson:"rules"` }
type MongoMetrics ¶
type MongoMetrics struct { PriceMonth int64 `json:"priceMonth"` PriceYear int64 `json:"priceYear"` Cpu int64 `json:"cpu"` Memory int64 `json:"memory"` CpuConsumed int64 `json:"cpuConsumed"` MemoryConsumed int64 `json:"memoryConsumed"` CpuPercentage int64 `json:"cpuPercentage"` MemoryPercentage int64 `json:"memoryPercentage"` NodePoolCount int64 `json:"nodePoolCount"` NodeCount int64 `json:"nodeCount"` ClusterCount int64 `json:"clusterCount"` }
type MongoNhnTooling ¶
type MongoNode ¶
type MongoNode struct { Name string `json:"name"` Role string `json:"role"` Created time.Time `json:"created"` OsImage string `json:"osImage"` MachineName string `json:"machineName"` MachineClass string `json:"machineClass"` Metrics MongoMetrics `json:"metrics"` Architecture string `json:"architecture"` ContainerRuntimeVersion string `json:"containerRuntimeVersion"` KernelVersion string `json:"kernelVersion"` KubeProxyVersion string `json:"kubeProxyVersion"` KubeletVersion string `json:"kubeletVersion"` OperatingSystem string `json:"operatingSystem"` }
type MongoNodePool ¶
type MongoNodePool struct { Name string `json:"name"` MachineClass string `json:"machineClass"` Metrics MongoMetrics `json:"metrics"` Nodes []MongoNode `json:"nodes"` }
type MongoNodeResources ¶
type MongoNodeResources struct { Allocated MongoResourceAllocated `json:"allocated"` Consumed MongoResourceConsumed `json:"consumed"` }
type MongoNodes ¶
type MongoNodes struct {
ControlPlane MongoControlPlane `json:"controlplane"`
}
type MongoOperatorConfig ¶
type MongoOperatorConfig struct { Id primitive.ObjectID `json:"id" bson:"_id"` ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Spec *MongoOperatorSpec `json:"spec"` }
type MongoOperatorSpec ¶
type MongoOperatorSpec struct { ImagePostfix string `json:"imagePostfix"` Tasks []MongoOperatorTask `json:"tasks"` }
type MongoOperatorTask ¶
type MongoPrice ¶
type MongoPrice struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Provider providers.ProviderType `json:"provider"` MachineClass string `json:"machineClass"` Cpu int `json:"cpu"` Memory int64 `json:"memory"` MemoryBytes int64 `json:"memoryBytes"` Price int `json:"price"` From time.Time `json:"from"` To time.Time `json:"to,omitempty"` }
type MongoProject ¶
type MongoProject struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Name string `json:"name"` Description string `json:"description"` Active bool `json:"active"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` ProjectMetadata MongoProjectMetadata `json:"projectmetadata"` }
type MongoProjectContactInfo ¶
type MongoProjectMetadata ¶
type MongoProjectMetadata struct { Roles []MongoProjectRole `json:"roles"` Billing MongoBilling `json:"billing"` ServiceTags map[string]string `json:"serviceTags"` }
type MongoProjectRole ¶
type MongoProjectRole struct { ContactInfo MongoProjectContactInfo `json:"contactInfo"` RoleDefinition apicontracts.ProjectRoleDefinition `json:"roleDefinition"` }
type MongoResourceAllocated ¶
type MongoResourceConsumed ¶
type MongoService ¶
type MongoService struct { Name string `json:"name"` Type string `json:"type"` Selector string `json:"selector" bson:"selector"` Ports []MongoServicePort `json:"ports" bson:"ports"` Endpoints []MongoEndpointAddress `json:"endpoints" bson:"endpoints"` }
type MongoServicePort ¶
type MongoStatusMessage ¶
type MongoTaskCollection ¶
type MongoTaskCollection struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Tasks []MongoOperatorTask `json:"tasks"` }
type MongoTopology ¶
type MongoTopology struct { ControlPlaneEndpoint string `json:"controlPlaneEndpoint"` EgressIp string `json:"egressIp"` ControlPlane MongoControlPlane `json:"controlPlane"` NodePools []MongoNodePool `validate:"min=1" json:"nodePools"` }
type MongoVersions ¶
type MongoVersions struct { Kubernetes string `json:"kubernetes"` NhnTooling MongoNhnTooling `json:"nhnTooling"` Agent MongoAgent `json:"agent"` }
Click to show internal directories.
Click to hide internal directories.