k3s/vendor/github.com/rancher/wrangler/pkg/schemes/all.go

21 lines
445 B
Go
Raw Normal View History

2019-07-12 17:13:20 +00:00
package schemes
import (
"github.com/rancher/lasso/pkg/scheme"
2019-07-12 17:13:20 +00:00
"k8s.io/apimachinery/pkg/runtime"
)
var (
All = scheme.All
localSchemeBuilder = runtime.NewSchemeBuilder()
)
func Register(addToScheme func(*runtime.Scheme) error) error {
localSchemeBuilder = append(localSchemeBuilder, addToScheme)
return addToScheme(All)
}
func AddToScheme(scheme *runtime.Scheme) error {
return localSchemeBuilder.AddToScheme(scheme)
}