var badAuthenticatorAuds … type REST … func NewREST(tokenAuthenticator authenticator.Request, apiAudiences []string) *REST { … } func (r *REST) NamespaceScoped() bool { … } func (r *REST) New() runtime.Object { … } // Destroy cleans up resources on shutdown. func (r *REST) Destroy() { … } var _ … func (r *REST) GetSingularName() string { … } func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) { … }