ARO-RP/pkg/api/openshiftclusterdocument.go

53 строки
2.0 KiB
Go
Исходник Обычный вид История

2019-10-16 06:29:17 +03:00
package api
2019-12-17 04:16:50 +03:00
// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.
2019-10-16 06:29:17 +03:00
// OpenShiftClusterDocuments represents OpenShift cluster documents.
// pkg/database/cosmosdb requires its definition.
type OpenShiftClusterDocuments struct {
Count int `json:"_count,omitempty"`
ResourceID string `json:"_rid,omitempty"`
OpenShiftClusterDocuments []*OpenShiftClusterDocument `json:"Documents,omitempty"`
}
2020-08-21 07:39:15 +03:00
func (c *OpenShiftClusterDocuments) String() string {
return encodeJSON(c)
}
2019-10-16 06:29:17 +03:00
// OpenShiftClusterDocument represents an OpenShift cluster document.
// pkg/database/cosmosdb requires its definition.
type OpenShiftClusterDocument struct {
MissingFields
ID string `json:"id,omitempty" deep:"-"`
2020-01-20 05:42:26 +03:00
ResourceID string `json:"_rid,omitempty"`
Timestamp int `json:"_ts,omitempty"`
Self string `json:"_self,omitempty"`
2020-11-19 22:29:32 +03:00
ETag string `json:"_etag,omitempty" deep:"-"`
2020-01-20 05:42:26 +03:00
Attachments string `json:"_attachments,omitempty"`
LSN int `json:"_lsn,omitempty"`
Metadata map[string]interface{} `json:"_metadata,omitempty"`
2019-10-16 06:29:17 +03:00
2020-01-10 20:42:48 +03:00
Key string `json:"key,omitempty"`
PartitionKey string `json:"partitionKey,omitempty" deep:"-"`
2020-01-10 20:42:48 +03:00
ClusterResourceGroupIDKey string `json:"clusterResourceGroupIdKey,omitempty"`
ClientIDKey string `json:"clientIdKey,omitempty"`
2019-10-16 06:29:17 +03:00
2020-01-18 19:33:08 +03:00
Bucket int `json:"bucket,omitempty"`
LeaseOwner string `json:"leaseOwner,omitempty" deep:"-"`
LeaseExpires int `json:"leaseExpires,omitempty" deep:"-"`
2019-12-22 04:18:17 +03:00
Dequeues int `json:"dequeues,omitempty"`
2019-10-16 06:29:17 +03:00
AsyncOperationID string `json:"asyncOperationId,omitempty" deep:"-"`
2019-10-18 21:46:27 +03:00
OpenShiftCluster *OpenShiftCluster `json:"openShiftCluster,omitempty"`
CorrelationData *CorrelationData `json:"correlationData,omitempty" deep:"-"`
2019-10-16 06:29:17 +03:00
}
2020-08-21 07:39:15 +03:00
func (c *OpenShiftClusterDocument) String() string {
return encodeJSON(c)
}