Documentation ¶
Index ¶
- func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *ScaleREST, error)
- type LegacyREST
- type REST
- type ScaleREST
- func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *ScaleREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
- func (r *ScaleREST) New() runtime.Object
- func (r *ScaleREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type StatusREST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *ScaleREST, error)
NewREST returns a deploymentConfigREST containing the REST storage for DeploymentConfig objects, a statusREST containing the REST storage for changing the status of a DeploymentConfig, and a scaleREST containing the REST storage for the Scale subresources of DeploymentConfigs.
Types ¶
type LegacyREST ¶
type LegacyREST struct {
*REST
}
LegacyREST allows us to wrap and alter some behavior
func (*LegacyREST) Categories ¶
func (r *LegacyREST) Categories() []string
type REST ¶
REST contains the REST storage for DeploymentConfig objects.
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 ScaleREST ¶
type ScaleREST struct {
// contains filtered or unexported fields
}
ScaleREST contains the REST storage for the Scale subresource of DeploymentConfigs.
func (*ScaleREST) Get ¶
func (r *ScaleREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves (computes) the Scale subresource for the given DeploymentConfig name.
func (*ScaleREST) GroupVersionKind ¶
func (r *ScaleREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind
func (*ScaleREST) Update ¶
func (r *ScaleREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)
Update scales the DeploymentConfig for the given Scale subresource, returning the updated Scale.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a DeploymentConfig.
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) New ¶
func (r *StatusREST) New() runtime.Object
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)
Update alters the status subset of an deploymentConfig.