kubernetes: github.com/erikstmartin/kubernetes/pkg/registry/controller Index | Files

package controller

import "github.com/erikstmartin/kubernetes/pkg/registry/controller"

Package controller provides Registry interface and it's RESTStorage implementation for storing ReplicationController api objects.


Package Files

doc.go registry.go rest.go

type PodLister Uses

type PodLister interface {
    ListPods(ctx api.Context, labels labels.Selector) (*api.PodList, error)

PodLister is anything that knows how to list pods.

type REST Uses

type REST struct {
    // contains filtered or unexported fields

REST implements apiserver.RESTStorage for the replication controller service.

func NewREST Uses

func NewREST(registry Registry, podLister PodLister) *REST

NewREST returns a new apiserver.RESTStorage for the given registry and PodLister.

func (*REST) Create Uses

func (rs *REST) Create(ctx api.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)

Create registers the given ReplicationController.

func (*REST) Delete Uses

func (rs *REST) Delete(ctx api.Context, id string) (<-chan apiserver.RESTResult, error)

Delete asynchronously deletes the ReplicationController specified by its id.

func (*REST) Get Uses

func (rs *REST) Get(ctx api.Context, id string) (runtime.Object, error)

Get obtains the ReplicationController specified by its id.

func (*REST) List Uses

func (rs *REST) List(ctx api.Context, label, field labels.Selector) (runtime.Object, error)

List obtains a list of ReplicationControllers that match selector.

func (*REST) New Uses

func (*REST) New() runtime.Object

New creates a new ReplicationController for use with Create and Update.

func (*REST) Update Uses

func (rs *REST) Update(ctx api.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)

Update replaces a given ReplicationController instance with an existing instance in storage.registry.

func (*REST) Watch Uses

func (rs *REST) Watch(ctx api.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)

Watch returns ReplicationController events via a watch.Interface. It implements apiserver.ResourceWatcher.

type Registry Uses

type Registry interface {
    ListControllers(ctx api.Context) (*api.ReplicationControllerList, error)
    WatchControllers(ctx api.Context, resourceVersion string) (watch.Interface, error)
    GetController(ctx api.Context, controllerID string) (*api.ReplicationController, error)
    CreateController(ctx api.Context, controller *api.ReplicationController) error
    UpdateController(ctx api.Context, controller *api.ReplicationController) error
    DeleteController(ctx api.Context, controllerID string) error

Registry is an interface for things that know how to store ReplicationControllers.

Package controller imports 11 packages (graph). Updated 2018-04-10. Refresh now. Tools for package owners.