pkg/api/clustermanagerdocument.go: Make buildable

Temporary hack to make naming consistent and remove undefined
struct reference.
This commit is contained in:
Matthew Barnes 2022-07-21 11:45:06 -04:00 коммит произвёл Ross Bryan
Родитель 08c6c45f7b
Коммит d7db1edeee
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -6,9 +6,9 @@ package api
// OpenShiftClusterManagerConfigurationDocument represents OpenShift cluster manager configuration documents.
// pkg/database/cosmosdb requires its definition.
type OpenShiftClusterManagerConfigurationDocuments struct {
Count int `json:"_count,omitempty"`
ResourceID string `json:"_rid,omitempty"`
OpenShiftClusterManagementConfigurationDocuments []*OpenShiftClusterManagementConfigurationDocument `json:"Documents,omitempty"`
Count int `json:"_count,omitempty"`
ResourceID string `json:"_rid,omitempty"`
OpenShiftClusterManagerConfigurationDocuments []*OpenShiftClusterManagerConfigurationDocument `json:"Documents,omitempty"`
}
// String returns a JSON representation of the OpenShiftClusterManagerConfigurationDocuments struct.
@ -16,7 +16,7 @@ func (c *OpenShiftClusterManagerConfigurationDocuments) String() string {
return encodeJSON(c)
}
// OpenShiftClusterManagementConfigurationDocument represents an OpenShift cluster manager configuration document.
// OpenShiftClusterManagerConfigurationDocument represents an OpenShift cluster manager configuration document.
// pkg/database/cosmosdb requires its definition.
type OpenShiftClusterManagerConfigurationDocument struct {
MissingFields
@ -31,5 +31,5 @@ type OpenShiftClusterManagerConfigurationDocument struct {
LSN int `json:"_lsn,omitempty"`
Metadata map[string]interface{} `json:"_metadata,omitempty"`
OpenShiftClusterManagementConfiguration *OpenShiftClusterManagementConfiguration `json:"openShiftClusterManagementConfiguration,omitempty"`
//OpenShiftClusterManagerConfiguration *OpenShiftClusterManagerConfiguration `json:"openShiftClusterManagerConfiguration,omitempty"`
}