AddToScheme adds all types of this clientset into the given scheme. This allows composition of clientsets, like in:
import ( "k8s.io/client-go/kubernetes" clientsetscheme "k8s.io/client-go/kubernetes/scheme" aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" ) kclientset, _ := kubernetes.NewForConfig(c) _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
After this, RawExtensions in Kubernetes types will serialize kube-aggregator types correctly.
var AddToScheme = localSchemeBuilder.AddToScheme
Clientset implements clientset.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
type Clientset struct { testing.Fake // contains filtered or unexported fields }
func NewSimpleClientset(objects ...runtime.Object) *Clientset
NewSimpleClientset returns a clientset that will respond with the provided objects. It's backed by a very simple object tracker that processes creates, updates and deletions as-is, without applying any validations and/or defaults. It shouldn't be considered a replacement for a real clientset and is mostly useful in simple unit tests.
func (c *Clientset) Discovery() discovery.DiscoveryInterface
func (c *Clientset) ExternalworkloadV1beta1() externalworkloadv1beta1.ExternalworkloadV1beta1Interface
ExternalworkloadV1beta1 retrieves the ExternalworkloadV1beta1Client
func (c *Clientset) LinkV1alpha1() linkv1alpha1.LinkV1alpha1Interface
LinkV1alpha1 retrieves the LinkV1alpha1Client
func (c *Clientset) LinkerdV1alpha2() linkerdv1alpha2.LinkerdV1alpha2Interface
LinkerdV1alpha2 retrieves the LinkerdV1alpha2Client
func (c *Clientset) PolicyV1alpha1() policyv1alpha1.PolicyV1alpha1Interface
PolicyV1alpha1 retrieves the PolicyV1alpha1Client
func (c *Clientset) PolicyV1beta3() policyv1beta3.PolicyV1beta3Interface
PolicyV1beta3 retrieves the PolicyV1beta3Client
func (c *Clientset) ServerV1beta1() serverv1beta1.ServerV1beta1Interface
ServerV1beta1 retrieves the ServerV1beta1Client
func (c *Clientset) ServerV1beta2() serverv1beta2.ServerV1beta2Interface
ServerV1beta2 retrieves the ServerV1beta2Client
func (c *Clientset) ServerauthorizationV1beta1() serverauthorizationv1beta1.ServerauthorizationV1beta1Interface
ServerauthorizationV1beta1 retrieves the ServerauthorizationV1beta1Client
func (c *Clientset) Tracker() testing.ObjectTracker