Documentation ¶
Index ¶
- type ClusterStorage
- type ProxyREST
- type REST
- type ResourceGetter
- type StatusREST
- func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StatusREST) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set
- func (r *StatusREST) New() runtime.Object
- func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStorage ¶
type ClusterStorage struct { Cluster *REST Status *StatusREST Proxy *ProxyREST }
ClusterStorage includes storage for Cluster and for all the subresources.
func NewStorage ¶
func NewStorage(scheme *runtime.Scheme, kubeClient kubernetes.Interface, optsGetter generic.RESTOptionsGetter) (*ClusterStorage, error)
NewStorage returns a ClusterStorage object that will work against clusters.
type ProxyREST ¶
type ProxyREST struct { Store *genericregistry.Store Redirector rest.Redirector // contains filtered or unexported fields }
ProxyREST implements the proxy subresource for a Cluster.
func (*ProxyREST) Connect ¶
func (r *ProxyREST) Connect(ctx context.Context, id string, options runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the cluster proxy.
func (*ProxyREST) ConnectMethods ¶
ConnectMethods returns the list of HTTP methods handled by Connect.
type ResourceGetter ¶
type ResourceGetter interface {
Get(context.Context, string, *metav1.GetOptions) (runtime.Object, error)
}
ResourceGetter is an interface for retrieving resources by ResourceLocation.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a cluster.
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) GetResetFields ¶
func (r *StatusREST) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set
GetResetFields implements rest.ResetFieldsStrategy
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
New returns empty Cluster object.
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.