Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(data []byte, storage clientapi.ClientMappings) (errs errors.ErrorList)
Apply creates and manages resources defined in the Config. It wont stop on error, but it will finish the job and then return list of errors.
Example ¶
kubeClient, _ := kubeclient.New("127.0.0.1", "", nil)
testClientMappings := clientapi.ClientMappings{
"pods": {"Pod", kubeClient.RESTClient, klatest.Codec},
"services": {"Service", kubeClient.RESTClient, klatest.Codec},
}
data, _ := ioutil.ReadFile("config_test.json")
Apply(data, testClientMappings)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.