package config
import "k8s.io/kubernetes/pkg/config"
Index ¶
- func CreateObject(client RESTClientPoster, mapping *meta.RESTMapping, obj runtime.Object) *errs.ValidationError
- func CreateObjects(typer runtime.ObjectTyper, mapper meta.RESTMapper, clientFor ClientPosterFunc, objects []runtime.Object) []error
- type ClientPosterFunc
- type RESTClientPoster
Functions ¶
func CreateObject ¶
func CreateObject(client RESTClientPoster, mapping *meta.RESTMapping, obj runtime.Object) *errs.ValidationError
CreateObject creates the obj using the provided clients and the resource URI mapping. It reports ValidationError when the object is missing the Metadata or the Name and it will report any error occured during create REST call
func CreateObjects ¶
func CreateObjects(typer runtime.ObjectTyper, mapper meta.RESTMapper, clientFor ClientPosterFunc, objects []runtime.Object) []error
CreateObjects creates bulk of resources provided by items list. Each item must be valid API type. It requires ObjectTyper to parse the Version and Kind and RESTMapper to get the resource URI and REST client that knows how to create given type
Types ¶
type ClientPosterFunc ¶
type ClientPosterFunc func(mapping *meta.RESTMapping) (RESTClientPoster, error)
ClientFunc returns the RESTClient defined for given resource
type RESTClientPoster ¶
Source Files ¶
config.go
- Version
- v0.19.3
- Published
- Jun 22, 2015
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 seconds ago –
Tools for package owners.