kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/registry/pod Index | Files | Directories

package pod

import "gopkg.in/kubernetes/kubernetes.v0/pkg/registry/pod"

Package pod provides Registry interface and it's RESTStorage implementation for storing Pod api objects.

Index

Package Files

doc.go registry.go rest.go

Variables

var StatusStrategy = podStatusStrategy{Strategy}
var Strategy = podStrategy{api.Scheme, api.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating Pod objects via the REST API.

func ExecLocation Uses

func ExecLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string, opts *api.PodExecOptions) (*url.URL, http.RoundTripper, error)

ExecLocation returns the exec URL for a pod container. If opts.Container is blank and only one container is present in the pod, that container is used.

func LogLocation Uses

func LogLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string, opts *api.PodLogOptions) (*url.URL, http.RoundTripper, error)

LogLocation returns a the log URL for a pod container. If opts.Container is blank and only one container is present in the pod, that container is used.

func MatchPod Uses

func MatchPod(label labels.Selector, field fields.Selector) generic.Matcher

MatchPod returns a generic matcher for a given label and field selector.

func PodToSelectableFields Uses

func PodToSelectableFields(pod *api.Pod) fields.Set

PodToSelectableFields returns a label set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.

func PortForwardLocation Uses

func PortForwardLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string) (*url.URL, http.RoundTripper, error)

PortForwardLocation returns a the port-forward URL for a pod.

func ResourceLocation Uses

func ResourceLocation(getter ResourceGetter, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)

ResourceLocation returns a URL to which one can send traffic for the specified pod.

type Registry Uses

type Registry interface {
    // ListPods obtains a list of pods having labels which match selector.
    ListPods(ctx api.Context, label labels.Selector) (*api.PodList, error)
    // Watch for new/changed/deleted pods
    WatchPods(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
    // Get a specific pod
    GetPod(ctx api.Context, podID string) (*api.Pod, error)
    // Create a pod based on a specification.
    CreatePod(ctx api.Context, pod *api.Pod) error
    // Update an existing pod
    UpdatePod(ctx api.Context, pod *api.Pod) error
    // Delete an existing pod
    DeletePod(ctx api.Context, podID string) error
}

Registry is an interface implemented by things that know how to store Pod objects.

func NewRegistry Uses

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type ResourceGetter Uses

type ResourceGetter interface {
    Get(api.Context, string) (runtime.Object, error)
}

ResourceGetter is an interface for retrieving resources by ResourceLocation.

Directories

PathSynopsis
etcd

Package pod imports 16 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.