github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/k8s.io/kubernetes/pkg/api/register.go (about) 1 /* 2 Copyright 2014 The Kubernetes Authors All rights reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package api 18 19 import ( 20 "k8s.io/kubernetes/pkg/api/unversioned" 21 "k8s.io/kubernetes/pkg/runtime" 22 ) 23 24 // Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. 25 var Scheme = runtime.NewScheme() 26 27 func init() { 28 Scheme.AddKnownTypes("", 29 &Pod{}, 30 &PodList{}, 31 &PodStatusResult{}, 32 &PodTemplate{}, 33 &PodTemplateList{}, 34 &ReplicationControllerList{}, 35 &ReplicationController{}, 36 &ServiceList{}, 37 &Service{}, 38 &NodeList{}, 39 &Node{}, 40 &Endpoints{}, 41 &EndpointsList{}, 42 &Binding{}, 43 &Event{}, 44 &EventList{}, 45 &List{}, 46 &LimitRange{}, 47 &LimitRangeList{}, 48 &ResourceQuota{}, 49 &ResourceQuotaList{}, 50 &Namespace{}, 51 &NamespaceList{}, 52 &ServiceAccount{}, 53 &ServiceAccountList{}, 54 &Secret{}, 55 &SecretList{}, 56 &PersistentVolume{}, 57 &PersistentVolumeList{}, 58 &PersistentVolumeClaim{}, 59 &PersistentVolumeClaimList{}, 60 &DeleteOptions{}, 61 &ListOptions{}, 62 &PodAttachOptions{}, 63 &PodLogOptions{}, 64 &PodExecOptions{}, 65 &PodProxyOptions{}, 66 &ComponentStatus{}, 67 &ComponentStatusList{}, 68 &SerializedReference{}, 69 &RangeAllocation{}, 70 ) 71 72 // Register Unversioned types 73 Scheme.AddKnownTypes("", &unversioned.Status{}) 74 Scheme.AddKnownTypes("", &unversioned.APIVersions{}) 75 Scheme.AddKnownTypes("", &unversioned.APIGroupList{}) 76 Scheme.AddKnownTypes("", &unversioned.APIGroup{}) 77 Scheme.AddKnownTypes("", &unversioned.APIResourceList{}) 78 } 79 80 func (*Pod) IsAnAPIObject() {} 81 func (*PodList) IsAnAPIObject() {} 82 func (*PodStatusResult) IsAnAPIObject() {} 83 func (*PodTemplate) IsAnAPIObject() {} 84 func (*PodTemplateList) IsAnAPIObject() {} 85 func (*ReplicationController) IsAnAPIObject() {} 86 func (*ReplicationControllerList) IsAnAPIObject() {} 87 func (*Service) IsAnAPIObject() {} 88 func (*ServiceList) IsAnAPIObject() {} 89 func (*Endpoints) IsAnAPIObject() {} 90 func (*EndpointsList) IsAnAPIObject() {} 91 func (*Node) IsAnAPIObject() {} 92 func (*NodeList) IsAnAPIObject() {} 93 func (*Binding) IsAnAPIObject() {} 94 func (*Event) IsAnAPIObject() {} 95 func (*EventList) IsAnAPIObject() {} 96 func (*List) IsAnAPIObject() {} 97 func (*LimitRange) IsAnAPIObject() {} 98 func (*LimitRangeList) IsAnAPIObject() {} 99 func (*ResourceQuota) IsAnAPIObject() {} 100 func (*ResourceQuotaList) IsAnAPIObject() {} 101 func (*Namespace) IsAnAPIObject() {} 102 func (*NamespaceList) IsAnAPIObject() {} 103 func (*ServiceAccount) IsAnAPIObject() {} 104 func (*ServiceAccountList) IsAnAPIObject() {} 105 func (*Secret) IsAnAPIObject() {} 106 func (*SecretList) IsAnAPIObject() {} 107 func (*PersistentVolume) IsAnAPIObject() {} 108 func (*PersistentVolumeList) IsAnAPIObject() {} 109 func (*PersistentVolumeClaim) IsAnAPIObject() {} 110 func (*PersistentVolumeClaimList) IsAnAPIObject() {} 111 func (*DeleteOptions) IsAnAPIObject() {} 112 func (*ListOptions) IsAnAPIObject() {} 113 func (*PodAttachOptions) IsAnAPIObject() {} 114 func (*PodLogOptions) IsAnAPIObject() {} 115 func (*PodExecOptions) IsAnAPIObject() {} 116 func (*PodProxyOptions) IsAnAPIObject() {} 117 func (*ComponentStatus) IsAnAPIObject() {} 118 func (*ComponentStatusList) IsAnAPIObject() {} 119 func (*SerializedReference) IsAnAPIObject() {} 120 func (*RangeAllocation) IsAnAPIObject() {}