config

package
v0.0.0-...-8452b8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Directories

Path Synopsis
api
Package api defines and registers types for Config objects.
Package api defines and registers types for Config objects.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL