Documentation ¶
Index ¶
- type BindingREST
- type EventREST
- type ExecREST
- type LogREST
- func (r *LogREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error)
- func (r *LogREST) New() runtime.Object
- func (r *LogREST) NewGetOptions() (runtime.Object, bool, string)
- func (r *LogREST) OverrideMetricsVerb(oldVerb string) (newVerb string)
- func (r *LogREST) ProducesMIMETypes(verb string) []string
- func (r *LogREST) ProducesObject(verb string) interface{}
- type REST
- type StatusREST
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingREST ¶
type BindingREST struct {
// contains filtered or unexported fields
}
BindingREST implements the REST endpoint for binding pods to nodes when etcd is in use.
func (*BindingREST) Create ¶
func (r *BindingREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (out runtime.Object, err error)
Create ensures a pod is bound to a specific host.
func (*BindingREST) NamespaceScoped ¶
func (r *BindingREST) NamespaceScoped() bool
NamespaceScoped fulfill rest.Scoper
func (*BindingREST) New ¶
func (r *BindingREST) New() runtime.Object
New creates a new binding resource
type EventREST ¶
type EventREST struct {
// contains filtered or unexported fields
}
EventREST implements the REST endpoint for find events by a daemonset.
func (*EventREST) Get ¶
func (r *EventREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*EventREST) GroupVersionKind ¶
func (r *EventREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
GroupVersionKind is used to specify a particular GroupVersionKind to discovery.
type ExecREST ¶
type ExecREST struct {
// contains filtered or unexported fields
}
ExecREST implements the exec endpoint for a Pod
func (*ExecREST) Connect ¶
func (r *ExecREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the pod exec proxy
func (*ExecREST) ConnectMethods ¶
ConnectMethods returns the methods supported by exec
type LogREST ¶
type LogREST struct {
// contains filtered or unexported fields
}
LogREST implements the log endpoint for a Pod
func (*LogREST) Get ¶
func (r *LogREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error)
Get retrieves a runtime.Object that will stream the contents of the pod log
func (*LogREST) NewGetOptions ¶
NewGetOptions returns versioned resource that represents proxy parameters
func (*LogREST) OverrideMetricsVerb ¶
OverrideMetricsVerb override the GET verb to CONNECT for pod log resource
func (*LogREST) ProducesMIMETypes ¶
ProducesMIMETypes implements StorageMetadata
func (*LogREST) ProducesObject ¶
ProducesObject implements StorageMetadata, return string as the generating object
type REST ¶
REST implements pkg/api/rest.StandardStorage.
func (*REST) Categories ¶
Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a pod.
func (*StatusREST) Get ¶
func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the status subset of an object.
type Storage ¶
type Storage struct { Pod *REST Status *StatusREST Binding *BindingREST Events *EventREST Log *LogREST }
Storage includes storage for resources.
func NewStorage ¶
func NewStorage(_ genericregistry.RESTOptionsGetter, platformClient platforminternalclient.PlatformInterface) *Storage
NewStorage returns a Storage object that will work against resources.