top

Package unversioned contains the implementation of the client side communication with the Kubernetes master. The Client class provides methods for reading, creating, updating, and deleting pods, replication controllers, daemons, services, and nodes.

Most consumers should use the Config object to create a Client:

import (
  client "github.com/jchauncey/kubeclient/client/unversioned"
  "github.com/jchauncey/kubeclient/api"
  "github.com/jchauncey/kubeclient/fields"
  "github.com/jchauncey/kubeclient/labels"
)

[...]

config := &client.Config{
  Host:     "http://localhost:8080",
  Username: "test",
  Password: "password",
}
client, err := client.New(config)
if err != nil {
  // handle error
}
pods, err := client.Pods(api.NamespaceDefault).List(labels.Everything(), fields.Everything())
if err != nil {
  // handle error
}

More advanced consumers may wish to provide their own transport via a http.RoundTripper:

config := &client.Config{
  Host:      "https://localhost:8080",
  Transport: oauthclient.Transport(),
}
client, err := client.New(config)

The RESTClient type implements the Kubernetes API conventions (see `docs/devel/api-conventions.md`) for a given API path and is intended for use by consumers implementing their own Kubernetes compatible APIs.

Imported by 13 package(s)

  1. github.com/arschles/kubeapp
  2. github.com/deis/kubeapp
  3. github.com/jchauncey/kubeclient/client/cache
  4. github.com/jchauncey/kubeclient/client/clientset_generated/release_1_1
  5. github.com/jchauncey/kubeclient/client/testing/core
  6. github.com/jchauncey/kubeclient/client/testing/fake
  7. github.com/jchauncey/kubeclient/client/typed/generated/extensions/unversioned
  8. github.com/jchauncey/kubeclient/client/typed/generated/legacy/unversioned
  9. github.com/jchauncey/kubeclient/client/typed/generated/legacy/unversioned/fake
  10. github.com/jchauncey/kubeclient/client/unversioned/auth
  11. github.com/jchauncey/kubeclient/client/unversioned/fake
  12. github.com/jchauncey/kubeclient/client/unversioned/testclient
  13. github.com/jchauncey/kubeclient/client/unversioned/testclient/simple

Imports 21 package(s)

  1. github.com/jchauncey/kubeclient/runtime
  2. github.com/jchauncey/kubeclient/util
  3. github.com/jchauncey/kubeclient/api/meta
  4. github.com/jchauncey/kubeclient/version
  5. github.com/emicklei/go-restful/swagger
  6. github.com/jchauncey/kubeclient/api
  7. github.com/jchauncey/kubeclient/api/validation
  8. github.com/jchauncey/kubeclient/util/wait
  9. github.com/jchauncey/kubeclient/util/sets
  10. github.com/jchauncey/kubeclient/labels
  11. github.com/golang/glog
  12. github.com/jchauncey/kubeclient/fields
  13. github.com/jchauncey/kubeclient/util/net
  14. github.com/jchauncey/kubeclient/apis/extensions
  15. github.com/jchauncey/kubeclient/watch
  16. github.com/jchauncey/kubeclient/api/errors
  17. github.com/jchauncey/kubeclient/watch/json
  18. github.com/jchauncey/kubeclient/api/v1
  19. github.com/jchauncey/kubeclient/apimachinery/registered
  20. github.com/jchauncey/kubeclient/client/transport
  21. github.com/jchauncey/kubeclient/api/unversioned

Test imports 7 package(s)

  1. github.com/jchauncey/kubeclient/api/testapi
  2. github.com/jchauncey/kubeclient/util/httpstream
  3. github.com/jchauncey/kubeclient/api/resource
  4. github.com/jchauncey/kubeclient/util/testing
  5. github.com/jchauncey/kubeclient/client/unversioned/fake
  6. github.com/jchauncey/kubeclient/client/unversioned/testclient/simple
  7. github.com/jchauncey/kubeclient/util/intstr