Documentation ¶
Overview ¶
Package pod provides Registry interface and it's RESTStorage implementation for storing Pod api objects.
Index ¶
- Variables
- func AttachLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, ...) (*url.URL, http.RoundTripper, error)
- func ExecLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, ...) (*url.URL, http.RoundTripper, error)
- func LogLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, ...) (*url.URL, http.RoundTripper, error)
- func MatchPod(label labels.Selector, field fields.Selector) generic.Matcher
- func PodToSelectableFields(pod *api.Pod) fields.Set
- func PortForwardLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, ...) (*url.URL, http.RoundTripper, error)
- func ResourceLocation(getter ResourceGetter, rt http.RoundTripper, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)
- type ResourceGetter
Constants ¶
This section is empty.
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.
var StrategyWithoutGraceful = podStrategyWithoutGraceful{Strategy}
StrategyWithoutGraceful implements the legacy instant delele behavior.
Functions ¶
func AttachLocation ¶ added in v1.1.1
func AttachLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string, opts *api.PodAttachOptions) (*url.URL, http.RoundTripper, error)
AttachLocation returns the attach URL for a pod container. If opts.Container is blank and only one container is present in the pod, that container is used.
func ExecLocation ¶ added in v0.16.0
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 ¶ added in v0.15.0
func LogLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string, opts *api.PodLogOptions) (*url.URL, http.RoundTripper, error)
LogLocation returns 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 ¶ added in v0.11.0
MatchPod returns a generic matcher for a given label and field selector.
func PodToSelectableFields ¶ added in v0.7.0
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 ¶ added in v0.16.0
func PortForwardLocation(getter ResourceGetter, connInfo client.ConnectionInfoGetter, ctx api.Context, name string) (*url.URL, http.RoundTripper, error)
PortForwardLocation returns the port-forward URL for a pod.
func ResourceLocation ¶ added in v0.11.0
func ResourceLocation(getter ResourceGetter, rt http.RoundTripper, ctx api.Context, id string) (*url.URL, http.RoundTripper, error)
ResourceLocation returns a URL to which one can send traffic for the specified pod.