forked from Qihoo360/wayne
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.go
More file actions
29 lines (23 loc) · 819 Bytes
/
common.go
File metadata and controls
29 lines (23 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package common
import (
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// TODO convert runtime.Object to real type
// for common kubernetes Object
type Object struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// for ServiceAccount
Secrets []v1.ObjectReference `json:"secrets,omitempty"`
// for StorageClass
Provisioner string `json:"provisioner,omitempty"`
ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty"`
// for endpoint only
Subsets interface{} `json:"subsets,omitempty"`
// for secret and configmap
Type interface{} `json:"type,omitempty"`
Data interface{} `json:"data,omitempty"`
Spec interface{} `json:"spec,omitempty"`
Status interface{} `json:"status,omitempty"`
}