1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

Generated fakes

This commit is contained in:
Dan Ramich
2019-04-04 13:37:41 -07:00
committed by Craig Jellick
parent ebf163ab30
commit db1c229e45
230 changed files with 147968 additions and 109 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,7 @@ func NewClusterAuthToken(namespace, name string, obj ClusterAuthToken) *ClusterA
type ClusterAuthTokenList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterAuthToken
Items []ClusterAuthToken `json:"items"`
}
type ClusterAuthTokenHandlerFunc func(key string, obj *ClusterAuthToken) (runtime.Object, error)

View File

@@ -40,7 +40,7 @@ func NewClusterUserAttribute(namespace, name string, obj ClusterUserAttribute) *
type ClusterUserAttributeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterUserAttribute
Items []ClusterUserAttribute `json:"items"`
}
type ClusterUserAttributeHandlerFunc func(key string, obj *ClusterUserAttribute) (runtime.Object, error)

View File

@@ -1,6 +1,7 @@
package v3
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
@@ -36,5 +37,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&ClusterAuthToken{},
&ClusterUserAttribute{},
)
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
return nil
}