Documentation
¶
Index ¶
- Constants
- type CreateCoordinationV1NamespacedLease
- type CreateCoordinationV1NamespacedLeaseAccepted
- func (o *CreateCoordinationV1NamespacedLeaseAccepted) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *CreateCoordinationV1NamespacedLeaseAccepted) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseAccepted
- func (o *CreateCoordinationV1NamespacedLeaseAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateCoordinationV1NamespacedLeaseCreated
- func (o *CreateCoordinationV1NamespacedLeaseCreated) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *CreateCoordinationV1NamespacedLeaseCreated) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseCreated
- func (o *CreateCoordinationV1NamespacedLeaseCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateCoordinationV1NamespacedLeaseHandler
- type CreateCoordinationV1NamespacedLeaseHandlerFunc
- type CreateCoordinationV1NamespacedLeaseOK
- func (o *CreateCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *CreateCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseOK
- func (o *CreateCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateCoordinationV1NamespacedLeaseParams
- type CreateCoordinationV1NamespacedLeaseUnauthorized
- type DeleteCoordinationV1CollectionNamespacedLease
- type DeleteCoordinationV1CollectionNamespacedLeaseHandler
- type DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc
- type DeleteCoordinationV1CollectionNamespacedLeaseOK
- func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
- func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1CollectionNamespacedLeaseOK
- func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteCoordinationV1CollectionNamespacedLeaseParams
- type DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized
- type DeleteCoordinationV1NamespacedLease
- type DeleteCoordinationV1NamespacedLeaseAccepted
- func (o *DeleteCoordinationV1NamespacedLeaseAccepted) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
- func (o *DeleteCoordinationV1NamespacedLeaseAccepted) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1NamespacedLeaseAccepted
- func (o *DeleteCoordinationV1NamespacedLeaseAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteCoordinationV1NamespacedLeaseHandler
- type DeleteCoordinationV1NamespacedLeaseHandlerFunc
- type DeleteCoordinationV1NamespacedLeaseOK
- func (o *DeleteCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
- func (o *DeleteCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1NamespacedLeaseOK
- func (o *DeleteCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteCoordinationV1NamespacedLeaseParams
- type DeleteCoordinationV1NamespacedLeaseUnauthorized
- type GetCoordinationV1APIResources
- type GetCoordinationV1APIResourcesHandler
- type GetCoordinationV1APIResourcesHandlerFunc
- type GetCoordinationV1APIResourcesOK
- func (o *GetCoordinationV1APIResourcesOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1APIResourceList)
- func (o *GetCoordinationV1APIResourcesOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1APIResourceList) *GetCoordinationV1APIResourcesOK
- func (o *GetCoordinationV1APIResourcesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCoordinationV1APIResourcesParams
- type GetCoordinationV1APIResourcesUnauthorized
- type ListCoordinationV1LeaseForAllNamespaces
- type ListCoordinationV1LeaseForAllNamespacesHandler
- type ListCoordinationV1LeaseForAllNamespacesHandlerFunc
- type ListCoordinationV1LeaseForAllNamespacesOK
- func (o *ListCoordinationV1LeaseForAllNamespacesOK) SetPayload(payload *models.IoK8sAPICoordinationV1LeaseList)
- func (o *ListCoordinationV1LeaseForAllNamespacesOK) WithPayload(payload *models.IoK8sAPICoordinationV1LeaseList) *ListCoordinationV1LeaseForAllNamespacesOK
- func (o *ListCoordinationV1LeaseForAllNamespacesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListCoordinationV1LeaseForAllNamespacesParams
- type ListCoordinationV1LeaseForAllNamespacesUnauthorized
- type ListCoordinationV1NamespacedLease
- type ListCoordinationV1NamespacedLeaseHandler
- type ListCoordinationV1NamespacedLeaseHandlerFunc
- type ListCoordinationV1NamespacedLeaseOK
- func (o *ListCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1LeaseList)
- func (o *ListCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1LeaseList) *ListCoordinationV1NamespacedLeaseOK
- func (o *ListCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListCoordinationV1NamespacedLeaseParams
- type ListCoordinationV1NamespacedLeaseUnauthorized
- type PatchCoordinationV1NamespacedLease
- type PatchCoordinationV1NamespacedLeaseHandler
- type PatchCoordinationV1NamespacedLeaseHandlerFunc
- type PatchCoordinationV1NamespacedLeaseOK
- func (o *PatchCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *PatchCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *PatchCoordinationV1NamespacedLeaseOK
- func (o *PatchCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PatchCoordinationV1NamespacedLeaseParams
- type PatchCoordinationV1NamespacedLeaseUnauthorized
- type ReadCoordinationV1NamespacedLease
- type ReadCoordinationV1NamespacedLeaseHandler
- type ReadCoordinationV1NamespacedLeaseHandlerFunc
- type ReadCoordinationV1NamespacedLeaseOK
- func (o *ReadCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *ReadCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReadCoordinationV1NamespacedLeaseOK
- func (o *ReadCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReadCoordinationV1NamespacedLeaseParams
- type ReadCoordinationV1NamespacedLeaseUnauthorized
- type ReplaceCoordinationV1NamespacedLease
- type ReplaceCoordinationV1NamespacedLeaseCreated
- func (o *ReplaceCoordinationV1NamespacedLeaseCreated) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *ReplaceCoordinationV1NamespacedLeaseCreated) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReplaceCoordinationV1NamespacedLeaseCreated
- func (o *ReplaceCoordinationV1NamespacedLeaseCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceCoordinationV1NamespacedLeaseHandler
- type ReplaceCoordinationV1NamespacedLeaseHandlerFunc
- type ReplaceCoordinationV1NamespacedLeaseOK
- func (o *ReplaceCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
- func (o *ReplaceCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReplaceCoordinationV1NamespacedLeaseOK
- func (o *ReplaceCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceCoordinationV1NamespacedLeaseParams
- type ReplaceCoordinationV1NamespacedLeaseUnauthorized
- type WatchCoordinationV1LeaseListForAllNamespaces
- type WatchCoordinationV1LeaseListForAllNamespacesHandler
- type WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc
- type WatchCoordinationV1LeaseListForAllNamespacesOK
- func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
- func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1LeaseListForAllNamespacesOK
- func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type WatchCoordinationV1LeaseListForAllNamespacesParams
- type WatchCoordinationV1LeaseListForAllNamespacesUnauthorized
- type WatchCoordinationV1NamespacedLease
- type WatchCoordinationV1NamespacedLeaseHandler
- type WatchCoordinationV1NamespacedLeaseHandlerFunc
- type WatchCoordinationV1NamespacedLeaseList
- type WatchCoordinationV1NamespacedLeaseListHandler
- type WatchCoordinationV1NamespacedLeaseListHandlerFunc
- type WatchCoordinationV1NamespacedLeaseListOK
- func (o *WatchCoordinationV1NamespacedLeaseListOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
- func (o *WatchCoordinationV1NamespacedLeaseListOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1NamespacedLeaseListOK
- func (o *WatchCoordinationV1NamespacedLeaseListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type WatchCoordinationV1NamespacedLeaseListParams
- type WatchCoordinationV1NamespacedLeaseListUnauthorized
- type WatchCoordinationV1NamespacedLeaseOK
- func (o *WatchCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
- func (o *WatchCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1NamespacedLeaseOK
- func (o *WatchCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type WatchCoordinationV1NamespacedLeaseParams
- type WatchCoordinationV1NamespacedLeaseUnauthorized
Constants ¶
const CreateCoordinationV1NamespacedLeaseAcceptedCode int = 202
CreateCoordinationV1NamespacedLeaseAcceptedCode is the HTTP code returned for type CreateCoordinationV1NamespacedLeaseAccepted
const CreateCoordinationV1NamespacedLeaseCreatedCode int = 201
CreateCoordinationV1NamespacedLeaseCreatedCode is the HTTP code returned for type CreateCoordinationV1NamespacedLeaseCreated
const CreateCoordinationV1NamespacedLeaseOKCode int = 200
CreateCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type CreateCoordinationV1NamespacedLeaseOK
CreateCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type CreateCoordinationV1NamespacedLeaseUnauthorized
const DeleteCoordinationV1CollectionNamespacedLeaseOKCode int = 200
DeleteCoordinationV1CollectionNamespacedLeaseOKCode is the HTTP code returned for type DeleteCoordinationV1CollectionNamespacedLeaseOK
DeleteCoordinationV1CollectionNamespacedLeaseUnauthorizedCode is the HTTP code returned for type DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized
const DeleteCoordinationV1NamespacedLeaseAcceptedCode int = 202
DeleteCoordinationV1NamespacedLeaseAcceptedCode is the HTTP code returned for type DeleteCoordinationV1NamespacedLeaseAccepted
const DeleteCoordinationV1NamespacedLeaseOKCode int = 200
DeleteCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type DeleteCoordinationV1NamespacedLeaseOK
DeleteCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type DeleteCoordinationV1NamespacedLeaseUnauthorized
const GetCoordinationV1APIResourcesOKCode int = 200
GetCoordinationV1APIResourcesOKCode is the HTTP code returned for type GetCoordinationV1APIResourcesOK
GetCoordinationV1APIResourcesUnauthorizedCode is the HTTP code returned for type GetCoordinationV1APIResourcesUnauthorized
const ListCoordinationV1LeaseForAllNamespacesOKCode int = 200
ListCoordinationV1LeaseForAllNamespacesOKCode is the HTTP code returned for type ListCoordinationV1LeaseForAllNamespacesOK
ListCoordinationV1LeaseForAllNamespacesUnauthorizedCode is the HTTP code returned for type ListCoordinationV1LeaseForAllNamespacesUnauthorized
const ListCoordinationV1NamespacedLeaseOKCode int = 200
ListCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type ListCoordinationV1NamespacedLeaseOK
ListCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type ListCoordinationV1NamespacedLeaseUnauthorized
const PatchCoordinationV1NamespacedLeaseOKCode int = 200
PatchCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type PatchCoordinationV1NamespacedLeaseOK
PatchCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type PatchCoordinationV1NamespacedLeaseUnauthorized
const ReadCoordinationV1NamespacedLeaseOKCode int = 200
ReadCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type ReadCoordinationV1NamespacedLeaseOK
ReadCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type ReadCoordinationV1NamespacedLeaseUnauthorized
const ReplaceCoordinationV1NamespacedLeaseCreatedCode int = 201
ReplaceCoordinationV1NamespacedLeaseCreatedCode is the HTTP code returned for type ReplaceCoordinationV1NamespacedLeaseCreated
const ReplaceCoordinationV1NamespacedLeaseOKCode int = 200
ReplaceCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type ReplaceCoordinationV1NamespacedLeaseOK
ReplaceCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type ReplaceCoordinationV1NamespacedLeaseUnauthorized
const WatchCoordinationV1LeaseListForAllNamespacesOKCode int = 200
WatchCoordinationV1LeaseListForAllNamespacesOKCode is the HTTP code returned for type WatchCoordinationV1LeaseListForAllNamespacesOK
WatchCoordinationV1LeaseListForAllNamespacesUnauthorizedCode is the HTTP code returned for type WatchCoordinationV1LeaseListForAllNamespacesUnauthorized
const WatchCoordinationV1NamespacedLeaseListOKCode int = 200
WatchCoordinationV1NamespacedLeaseListOKCode is the HTTP code returned for type WatchCoordinationV1NamespacedLeaseListOK
WatchCoordinationV1NamespacedLeaseListUnauthorizedCode is the HTTP code returned for type WatchCoordinationV1NamespacedLeaseListUnauthorized
const WatchCoordinationV1NamespacedLeaseOKCode int = 200
WatchCoordinationV1NamespacedLeaseOKCode is the HTTP code returned for type WatchCoordinationV1NamespacedLeaseOK
WatchCoordinationV1NamespacedLeaseUnauthorizedCode is the HTTP code returned for type WatchCoordinationV1NamespacedLeaseUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCoordinationV1NamespacedLease ¶
type CreateCoordinationV1NamespacedLease struct { Context *middleware.Context Handler CreateCoordinationV1NamespacedLeaseHandler }
CreateCoordinationV1NamespacedLease swagger:route POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases coordination_v1 createCoordinationV1NamespacedLease
create a Lease
func NewCreateCoordinationV1NamespacedLease ¶
func NewCreateCoordinationV1NamespacedLease(ctx *middleware.Context, handler CreateCoordinationV1NamespacedLeaseHandler) *CreateCoordinationV1NamespacedLease
NewCreateCoordinationV1NamespacedLease creates a new http.Handler for the create coordination v1 namespaced lease operation
func (*CreateCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *CreateCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateCoordinationV1NamespacedLeaseAccepted ¶
type CreateCoordinationV1NamespacedLeaseAccepted struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
CreateCoordinationV1NamespacedLeaseAccepted Accepted
swagger:response createCoordinationV1NamespacedLeaseAccepted
func NewCreateCoordinationV1NamespacedLeaseAccepted ¶
func NewCreateCoordinationV1NamespacedLeaseAccepted() *CreateCoordinationV1NamespacedLeaseAccepted
NewCreateCoordinationV1NamespacedLeaseAccepted creates CreateCoordinationV1NamespacedLeaseAccepted with default headers values
func (*CreateCoordinationV1NamespacedLeaseAccepted) SetPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseAccepted) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the create coordination v1 namespaced lease accepted response
func (*CreateCoordinationV1NamespacedLeaseAccepted) WithPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseAccepted) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseAccepted
WithPayload adds the payload to the create coordination v1 namespaced lease accepted response
func (*CreateCoordinationV1NamespacedLeaseAccepted) WriteResponse ¶
func (o *CreateCoordinationV1NamespacedLeaseAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateCoordinationV1NamespacedLeaseCreated ¶
type CreateCoordinationV1NamespacedLeaseCreated struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
CreateCoordinationV1NamespacedLeaseCreated Created
swagger:response createCoordinationV1NamespacedLeaseCreated
func NewCreateCoordinationV1NamespacedLeaseCreated ¶
func NewCreateCoordinationV1NamespacedLeaseCreated() *CreateCoordinationV1NamespacedLeaseCreated
NewCreateCoordinationV1NamespacedLeaseCreated creates CreateCoordinationV1NamespacedLeaseCreated with default headers values
func (*CreateCoordinationV1NamespacedLeaseCreated) SetPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseCreated) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the create coordination v1 namespaced lease created response
func (*CreateCoordinationV1NamespacedLeaseCreated) WithPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseCreated) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseCreated
WithPayload adds the payload to the create coordination v1 namespaced lease created response
func (*CreateCoordinationV1NamespacedLeaseCreated) WriteResponse ¶
func (o *CreateCoordinationV1NamespacedLeaseCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateCoordinationV1NamespacedLeaseHandler ¶
type CreateCoordinationV1NamespacedLeaseHandler interface {
Handle(CreateCoordinationV1NamespacedLeaseParams) middleware.Responder
}
CreateCoordinationV1NamespacedLeaseHandler interface for that can handle valid create coordination v1 namespaced lease params
type CreateCoordinationV1NamespacedLeaseHandlerFunc ¶
type CreateCoordinationV1NamespacedLeaseHandlerFunc func(CreateCoordinationV1NamespacedLeaseParams) middleware.Responder
CreateCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a create coordination v1 namespaced lease handler
func (CreateCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn CreateCoordinationV1NamespacedLeaseHandlerFunc) Handle(params CreateCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type CreateCoordinationV1NamespacedLeaseOK ¶
type CreateCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
CreateCoordinationV1NamespacedLeaseOK OK
swagger:response createCoordinationV1NamespacedLeaseOK
func NewCreateCoordinationV1NamespacedLeaseOK ¶
func NewCreateCoordinationV1NamespacedLeaseOK() *CreateCoordinationV1NamespacedLeaseOK
NewCreateCoordinationV1NamespacedLeaseOK creates CreateCoordinationV1NamespacedLeaseOK with default headers values
func (*CreateCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the create coordination v1 namespaced lease o k response
func (*CreateCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *CreateCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *CreateCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the create coordination v1 namespaced lease o k response
func (*CreateCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *CreateCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateCoordinationV1NamespacedLeaseParams ¶
type CreateCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.IoK8sAPICoordinationV1Lease /*When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Unique: true In: query */ DryRun *string /*fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. Unique: true In: query */ FieldManager *string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string }
CreateCoordinationV1NamespacedLeaseParams contains all the bound params for the create coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters createCoordinationV1NamespacedLease
func NewCreateCoordinationV1NamespacedLeaseParams ¶
func NewCreateCoordinationV1NamespacedLeaseParams() CreateCoordinationV1NamespacedLeaseParams
NewCreateCoordinationV1NamespacedLeaseParams creates a new CreateCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*CreateCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *CreateCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateCoordinationV1NamespacedLeaseParams() beforehand.
type CreateCoordinationV1NamespacedLeaseUnauthorized ¶
type CreateCoordinationV1NamespacedLeaseUnauthorized struct { }
CreateCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response createCoordinationV1NamespacedLeaseUnauthorized
func NewCreateCoordinationV1NamespacedLeaseUnauthorized ¶
func NewCreateCoordinationV1NamespacedLeaseUnauthorized() *CreateCoordinationV1NamespacedLeaseUnauthorized
NewCreateCoordinationV1NamespacedLeaseUnauthorized creates CreateCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*CreateCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *CreateCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCoordinationV1CollectionNamespacedLease ¶
type DeleteCoordinationV1CollectionNamespacedLease struct { Context *middleware.Context Handler DeleteCoordinationV1CollectionNamespacedLeaseHandler }
DeleteCoordinationV1CollectionNamespacedLease swagger:route DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases coordination_v1 deleteCoordinationV1CollectionNamespacedLease
delete collection of Lease
func NewDeleteCoordinationV1CollectionNamespacedLease ¶
func NewDeleteCoordinationV1CollectionNamespacedLease(ctx *middleware.Context, handler DeleteCoordinationV1CollectionNamespacedLeaseHandler) *DeleteCoordinationV1CollectionNamespacedLease
NewDeleteCoordinationV1CollectionNamespacedLease creates a new http.Handler for the delete coordination v1 collection namespaced lease operation
func (*DeleteCoordinationV1CollectionNamespacedLease) ServeHTTP ¶
func (o *DeleteCoordinationV1CollectionNamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteCoordinationV1CollectionNamespacedLeaseHandler ¶
type DeleteCoordinationV1CollectionNamespacedLeaseHandler interface {
Handle(DeleteCoordinationV1CollectionNamespacedLeaseParams) middleware.Responder
}
DeleteCoordinationV1CollectionNamespacedLeaseHandler interface for that can handle valid delete coordination v1 collection namespaced lease params
type DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc ¶
type DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc func(DeleteCoordinationV1CollectionNamespacedLeaseParams) middleware.Responder
DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc turns a function with the right signature into a delete coordination v1 collection namespaced lease handler
func (DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc) Handle ¶
func (fn DeleteCoordinationV1CollectionNamespacedLeaseHandlerFunc) Handle(params DeleteCoordinationV1CollectionNamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type DeleteCoordinationV1CollectionNamespacedLeaseOK ¶
type DeleteCoordinationV1CollectionNamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1Status `json:"body,omitempty"` }
DeleteCoordinationV1CollectionNamespacedLeaseOK OK
swagger:response deleteCoordinationV1CollectionNamespacedLeaseOK
func NewDeleteCoordinationV1CollectionNamespacedLeaseOK ¶
func NewDeleteCoordinationV1CollectionNamespacedLeaseOK() *DeleteCoordinationV1CollectionNamespacedLeaseOK
NewDeleteCoordinationV1CollectionNamespacedLeaseOK creates DeleteCoordinationV1CollectionNamespacedLeaseOK with default headers values
func (*DeleteCoordinationV1CollectionNamespacedLeaseOK) SetPayload ¶
func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
SetPayload sets the payload to the delete coordination v1 collection namespaced lease o k response
func (*DeleteCoordinationV1CollectionNamespacedLeaseOK) WithPayload ¶
func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1CollectionNamespacedLeaseOK
WithPayload adds the payload to the delete coordination v1 collection namespaced lease o k response
func (*DeleteCoordinationV1CollectionNamespacedLeaseOK) WriteResponse ¶
func (o *DeleteCoordinationV1CollectionNamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCoordinationV1CollectionNamespacedLeaseParams ¶
type DeleteCoordinationV1CollectionNamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.IoK8sApimachineryPkgApisMetaV1DeleteOptions /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Unique: true In: query */ DryRun *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Unique: true In: query */ GracePeriodSeconds *int64 /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. Unique: true In: query */ OrphanDependents *bool /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. Unique: true In: query */ PropagationPolicy *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 }
DeleteCoordinationV1CollectionNamespacedLeaseParams contains all the bound params for the delete coordination v1 collection namespaced lease operation typically these are obtained from a http.Request
swagger:parameters deleteCoordinationV1CollectionNamespacedLease
func NewDeleteCoordinationV1CollectionNamespacedLeaseParams ¶
func NewDeleteCoordinationV1CollectionNamespacedLeaseParams() DeleteCoordinationV1CollectionNamespacedLeaseParams
NewDeleteCoordinationV1CollectionNamespacedLeaseParams creates a new DeleteCoordinationV1CollectionNamespacedLeaseParams object no default values defined in spec.
func (*DeleteCoordinationV1CollectionNamespacedLeaseParams) BindRequest ¶
func (o *DeleteCoordinationV1CollectionNamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteCoordinationV1CollectionNamespacedLeaseParams() beforehand.
type DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized ¶
type DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized struct { }
DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized Unauthorized
swagger:response deleteCoordinationV1CollectionNamespacedLeaseUnauthorized
func NewDeleteCoordinationV1CollectionNamespacedLeaseUnauthorized ¶
func NewDeleteCoordinationV1CollectionNamespacedLeaseUnauthorized() *DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized
NewDeleteCoordinationV1CollectionNamespacedLeaseUnauthorized creates DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized with default headers values
func (*DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized) WriteResponse ¶
func (o *DeleteCoordinationV1CollectionNamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCoordinationV1NamespacedLease ¶
type DeleteCoordinationV1NamespacedLease struct { Context *middleware.Context Handler DeleteCoordinationV1NamespacedLeaseHandler }
DeleteCoordinationV1NamespacedLease swagger:route DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} coordination_v1 deleteCoordinationV1NamespacedLease
delete a Lease
func NewDeleteCoordinationV1NamespacedLease ¶
func NewDeleteCoordinationV1NamespacedLease(ctx *middleware.Context, handler DeleteCoordinationV1NamespacedLeaseHandler) *DeleteCoordinationV1NamespacedLease
NewDeleteCoordinationV1NamespacedLease creates a new http.Handler for the delete coordination v1 namespaced lease operation
func (*DeleteCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *DeleteCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteCoordinationV1NamespacedLeaseAccepted ¶
type DeleteCoordinationV1NamespacedLeaseAccepted struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1Status `json:"body,omitempty"` }
DeleteCoordinationV1NamespacedLeaseAccepted Accepted
swagger:response deleteCoordinationV1NamespacedLeaseAccepted
func NewDeleteCoordinationV1NamespacedLeaseAccepted ¶
func NewDeleteCoordinationV1NamespacedLeaseAccepted() *DeleteCoordinationV1NamespacedLeaseAccepted
NewDeleteCoordinationV1NamespacedLeaseAccepted creates DeleteCoordinationV1NamespacedLeaseAccepted with default headers values
func (*DeleteCoordinationV1NamespacedLeaseAccepted) SetPayload ¶
func (o *DeleteCoordinationV1NamespacedLeaseAccepted) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
SetPayload sets the payload to the delete coordination v1 namespaced lease accepted response
func (*DeleteCoordinationV1NamespacedLeaseAccepted) WithPayload ¶
func (o *DeleteCoordinationV1NamespacedLeaseAccepted) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1NamespacedLeaseAccepted
WithPayload adds the payload to the delete coordination v1 namespaced lease accepted response
func (*DeleteCoordinationV1NamespacedLeaseAccepted) WriteResponse ¶
func (o *DeleteCoordinationV1NamespacedLeaseAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCoordinationV1NamespacedLeaseHandler ¶
type DeleteCoordinationV1NamespacedLeaseHandler interface {
Handle(DeleteCoordinationV1NamespacedLeaseParams) middleware.Responder
}
DeleteCoordinationV1NamespacedLeaseHandler interface for that can handle valid delete coordination v1 namespaced lease params
type DeleteCoordinationV1NamespacedLeaseHandlerFunc ¶
type DeleteCoordinationV1NamespacedLeaseHandlerFunc func(DeleteCoordinationV1NamespacedLeaseParams) middleware.Responder
DeleteCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a delete coordination v1 namespaced lease handler
func (DeleteCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn DeleteCoordinationV1NamespacedLeaseHandlerFunc) Handle(params DeleteCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type DeleteCoordinationV1NamespacedLeaseOK ¶
type DeleteCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1Status `json:"body,omitempty"` }
DeleteCoordinationV1NamespacedLeaseOK OK
swagger:response deleteCoordinationV1NamespacedLeaseOK
func NewDeleteCoordinationV1NamespacedLeaseOK ¶
func NewDeleteCoordinationV1NamespacedLeaseOK() *DeleteCoordinationV1NamespacedLeaseOK
NewDeleteCoordinationV1NamespacedLeaseOK creates DeleteCoordinationV1NamespacedLeaseOK with default headers values
func (*DeleteCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *DeleteCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status)
SetPayload sets the payload to the delete coordination v1 namespaced lease o k response
func (*DeleteCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *DeleteCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1Status) *DeleteCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the delete coordination v1 namespaced lease o k response
func (*DeleteCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *DeleteCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteCoordinationV1NamespacedLeaseParams ¶
type DeleteCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.IoK8sApimachineryPkgApisMetaV1DeleteOptions /*When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Unique: true In: query */ DryRun *string /*The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Unique: true In: query */ GracePeriodSeconds *int64 /*name of the Lease Required: true Unique: true In: path */ Name string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. Unique: true In: query */ OrphanDependents *bool /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. Unique: true In: query */ PropagationPolicy *string }
DeleteCoordinationV1NamespacedLeaseParams contains all the bound params for the delete coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters deleteCoordinationV1NamespacedLease
func NewDeleteCoordinationV1NamespacedLeaseParams ¶
func NewDeleteCoordinationV1NamespacedLeaseParams() DeleteCoordinationV1NamespacedLeaseParams
NewDeleteCoordinationV1NamespacedLeaseParams creates a new DeleteCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*DeleteCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *DeleteCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteCoordinationV1NamespacedLeaseParams() beforehand.
type DeleteCoordinationV1NamespacedLeaseUnauthorized ¶
type DeleteCoordinationV1NamespacedLeaseUnauthorized struct { }
DeleteCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response deleteCoordinationV1NamespacedLeaseUnauthorized
func NewDeleteCoordinationV1NamespacedLeaseUnauthorized ¶
func NewDeleteCoordinationV1NamespacedLeaseUnauthorized() *DeleteCoordinationV1NamespacedLeaseUnauthorized
NewDeleteCoordinationV1NamespacedLeaseUnauthorized creates DeleteCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*DeleteCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *DeleteCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCoordinationV1APIResources ¶
type GetCoordinationV1APIResources struct { Context *middleware.Context Handler GetCoordinationV1APIResourcesHandler }
GetCoordinationV1APIResources swagger:route GET /apis/coordination.k8s.io/v1/ coordination_v1 getCoordinationV1ApiResources
get available resources
func NewGetCoordinationV1APIResources ¶
func NewGetCoordinationV1APIResources(ctx *middleware.Context, handler GetCoordinationV1APIResourcesHandler) *GetCoordinationV1APIResources
NewGetCoordinationV1APIResources creates a new http.Handler for the get coordination v1 API resources operation
func (*GetCoordinationV1APIResources) ServeHTTP ¶
func (o *GetCoordinationV1APIResources) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCoordinationV1APIResourcesHandler ¶
type GetCoordinationV1APIResourcesHandler interface {
Handle(GetCoordinationV1APIResourcesParams) middleware.Responder
}
GetCoordinationV1APIResourcesHandler interface for that can handle valid get coordination v1 API resources params
type GetCoordinationV1APIResourcesHandlerFunc ¶
type GetCoordinationV1APIResourcesHandlerFunc func(GetCoordinationV1APIResourcesParams) middleware.Responder
GetCoordinationV1APIResourcesHandlerFunc turns a function with the right signature into a get coordination v1 API resources handler
func (GetCoordinationV1APIResourcesHandlerFunc) Handle ¶
func (fn GetCoordinationV1APIResourcesHandlerFunc) Handle(params GetCoordinationV1APIResourcesParams) middleware.Responder
Handle executing the request and returning a response
type GetCoordinationV1APIResourcesOK ¶
type GetCoordinationV1APIResourcesOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1APIResourceList `json:"body,omitempty"` }
GetCoordinationV1APIResourcesOK OK
swagger:response getCoordinationV1ApiResourcesOK
func NewGetCoordinationV1APIResourcesOK ¶
func NewGetCoordinationV1APIResourcesOK() *GetCoordinationV1APIResourcesOK
NewGetCoordinationV1APIResourcesOK creates GetCoordinationV1APIResourcesOK with default headers values
func (*GetCoordinationV1APIResourcesOK) SetPayload ¶
func (o *GetCoordinationV1APIResourcesOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1APIResourceList)
SetPayload sets the payload to the get coordination v1 Api resources o k response
func (*GetCoordinationV1APIResourcesOK) WithPayload ¶
func (o *GetCoordinationV1APIResourcesOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1APIResourceList) *GetCoordinationV1APIResourcesOK
WithPayload adds the payload to the get coordination v1 Api resources o k response
func (*GetCoordinationV1APIResourcesOK) WriteResponse ¶
func (o *GetCoordinationV1APIResourcesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCoordinationV1APIResourcesParams ¶
type GetCoordinationV1APIResourcesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetCoordinationV1APIResourcesParams contains all the bound params for the get coordination v1 API resources operation typically these are obtained from a http.Request
swagger:parameters getCoordinationV1APIResources
func NewGetCoordinationV1APIResourcesParams ¶
func NewGetCoordinationV1APIResourcesParams() GetCoordinationV1APIResourcesParams
NewGetCoordinationV1APIResourcesParams creates a new GetCoordinationV1APIResourcesParams object no default values defined in spec.
func (*GetCoordinationV1APIResourcesParams) BindRequest ¶
func (o *GetCoordinationV1APIResourcesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetCoordinationV1APIResourcesParams() beforehand.
type GetCoordinationV1APIResourcesUnauthorized ¶
type GetCoordinationV1APIResourcesUnauthorized struct { }
GetCoordinationV1APIResourcesUnauthorized Unauthorized
swagger:response getCoordinationV1ApiResourcesUnauthorized
func NewGetCoordinationV1APIResourcesUnauthorized ¶
func NewGetCoordinationV1APIResourcesUnauthorized() *GetCoordinationV1APIResourcesUnauthorized
NewGetCoordinationV1APIResourcesUnauthorized creates GetCoordinationV1APIResourcesUnauthorized with default headers values
func (*GetCoordinationV1APIResourcesUnauthorized) WriteResponse ¶
func (o *GetCoordinationV1APIResourcesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCoordinationV1LeaseForAllNamespaces ¶
type ListCoordinationV1LeaseForAllNamespaces struct { Context *middleware.Context Handler ListCoordinationV1LeaseForAllNamespacesHandler }
ListCoordinationV1LeaseForAllNamespaces swagger:route GET /apis/coordination.k8s.io/v1/leases coordination_v1 listCoordinationV1LeaseForAllNamespaces
list or watch objects of kind Lease
func NewListCoordinationV1LeaseForAllNamespaces ¶
func NewListCoordinationV1LeaseForAllNamespaces(ctx *middleware.Context, handler ListCoordinationV1LeaseForAllNamespacesHandler) *ListCoordinationV1LeaseForAllNamespaces
NewListCoordinationV1LeaseForAllNamespaces creates a new http.Handler for the list coordination v1 lease for all namespaces operation
func (*ListCoordinationV1LeaseForAllNamespaces) ServeHTTP ¶
func (o *ListCoordinationV1LeaseForAllNamespaces) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListCoordinationV1LeaseForAllNamespacesHandler ¶
type ListCoordinationV1LeaseForAllNamespacesHandler interface {
Handle(ListCoordinationV1LeaseForAllNamespacesParams) middleware.Responder
}
ListCoordinationV1LeaseForAllNamespacesHandler interface for that can handle valid list coordination v1 lease for all namespaces params
type ListCoordinationV1LeaseForAllNamespacesHandlerFunc ¶
type ListCoordinationV1LeaseForAllNamespacesHandlerFunc func(ListCoordinationV1LeaseForAllNamespacesParams) middleware.Responder
ListCoordinationV1LeaseForAllNamespacesHandlerFunc turns a function with the right signature into a list coordination v1 lease for all namespaces handler
func (ListCoordinationV1LeaseForAllNamespacesHandlerFunc) Handle ¶
func (fn ListCoordinationV1LeaseForAllNamespacesHandlerFunc) Handle(params ListCoordinationV1LeaseForAllNamespacesParams) middleware.Responder
Handle executing the request and returning a response
type ListCoordinationV1LeaseForAllNamespacesOK ¶
type ListCoordinationV1LeaseForAllNamespacesOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1LeaseList `json:"body,omitempty"` }
ListCoordinationV1LeaseForAllNamespacesOK OK
swagger:response listCoordinationV1LeaseForAllNamespacesOK
func NewListCoordinationV1LeaseForAllNamespacesOK ¶
func NewListCoordinationV1LeaseForAllNamespacesOK() *ListCoordinationV1LeaseForAllNamespacesOK
NewListCoordinationV1LeaseForAllNamespacesOK creates ListCoordinationV1LeaseForAllNamespacesOK with default headers values
func (*ListCoordinationV1LeaseForAllNamespacesOK) SetPayload ¶
func (o *ListCoordinationV1LeaseForAllNamespacesOK) SetPayload(payload *models.IoK8sAPICoordinationV1LeaseList)
SetPayload sets the payload to the list coordination v1 lease for all namespaces o k response
func (*ListCoordinationV1LeaseForAllNamespacesOK) WithPayload ¶
func (o *ListCoordinationV1LeaseForAllNamespacesOK) WithPayload(payload *models.IoK8sAPICoordinationV1LeaseList) *ListCoordinationV1LeaseForAllNamespacesOK
WithPayload adds the payload to the list coordination v1 lease for all namespaces o k response
func (*ListCoordinationV1LeaseForAllNamespacesOK) WriteResponse ¶
func (o *ListCoordinationV1LeaseForAllNamespacesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCoordinationV1LeaseForAllNamespacesParams ¶
type ListCoordinationV1LeaseForAllNamespacesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. Unique: true In: query */ AllowWatchBookmarks *bool /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 /*Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. Unique: true In: query */ Watch *bool }
ListCoordinationV1LeaseForAllNamespacesParams contains all the bound params for the list coordination v1 lease for all namespaces operation typically these are obtained from a http.Request
swagger:parameters listCoordinationV1LeaseForAllNamespaces
func NewListCoordinationV1LeaseForAllNamespacesParams ¶
func NewListCoordinationV1LeaseForAllNamespacesParams() ListCoordinationV1LeaseForAllNamespacesParams
NewListCoordinationV1LeaseForAllNamespacesParams creates a new ListCoordinationV1LeaseForAllNamespacesParams object no default values defined in spec.
func (*ListCoordinationV1LeaseForAllNamespacesParams) BindRequest ¶
func (o *ListCoordinationV1LeaseForAllNamespacesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListCoordinationV1LeaseForAllNamespacesParams() beforehand.
type ListCoordinationV1LeaseForAllNamespacesUnauthorized ¶
type ListCoordinationV1LeaseForAllNamespacesUnauthorized struct { }
ListCoordinationV1LeaseForAllNamespacesUnauthorized Unauthorized
swagger:response listCoordinationV1LeaseForAllNamespacesUnauthorized
func NewListCoordinationV1LeaseForAllNamespacesUnauthorized ¶
func NewListCoordinationV1LeaseForAllNamespacesUnauthorized() *ListCoordinationV1LeaseForAllNamespacesUnauthorized
NewListCoordinationV1LeaseForAllNamespacesUnauthorized creates ListCoordinationV1LeaseForAllNamespacesUnauthorized with default headers values
func (*ListCoordinationV1LeaseForAllNamespacesUnauthorized) WriteResponse ¶
func (o *ListCoordinationV1LeaseForAllNamespacesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCoordinationV1NamespacedLease ¶
type ListCoordinationV1NamespacedLease struct { Context *middleware.Context Handler ListCoordinationV1NamespacedLeaseHandler }
ListCoordinationV1NamespacedLease swagger:route GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases coordination_v1 listCoordinationV1NamespacedLease
list or watch objects of kind Lease
func NewListCoordinationV1NamespacedLease ¶
func NewListCoordinationV1NamespacedLease(ctx *middleware.Context, handler ListCoordinationV1NamespacedLeaseHandler) *ListCoordinationV1NamespacedLease
NewListCoordinationV1NamespacedLease creates a new http.Handler for the list coordination v1 namespaced lease operation
func (*ListCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *ListCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListCoordinationV1NamespacedLeaseHandler ¶
type ListCoordinationV1NamespacedLeaseHandler interface {
Handle(ListCoordinationV1NamespacedLeaseParams) middleware.Responder
}
ListCoordinationV1NamespacedLeaseHandler interface for that can handle valid list coordination v1 namespaced lease params
type ListCoordinationV1NamespacedLeaseHandlerFunc ¶
type ListCoordinationV1NamespacedLeaseHandlerFunc func(ListCoordinationV1NamespacedLeaseParams) middleware.Responder
ListCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a list coordination v1 namespaced lease handler
func (ListCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn ListCoordinationV1NamespacedLeaseHandlerFunc) Handle(params ListCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type ListCoordinationV1NamespacedLeaseOK ¶
type ListCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1LeaseList `json:"body,omitempty"` }
ListCoordinationV1NamespacedLeaseOK OK
swagger:response listCoordinationV1NamespacedLeaseOK
func NewListCoordinationV1NamespacedLeaseOK ¶
func NewListCoordinationV1NamespacedLeaseOK() *ListCoordinationV1NamespacedLeaseOK
NewListCoordinationV1NamespacedLeaseOK creates ListCoordinationV1NamespacedLeaseOK with default headers values
func (*ListCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *ListCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1LeaseList)
SetPayload sets the payload to the list coordination v1 namespaced lease o k response
func (*ListCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *ListCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1LeaseList) *ListCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the list coordination v1 namespaced lease o k response
func (*ListCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *ListCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListCoordinationV1NamespacedLeaseParams ¶
type ListCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. Unique: true In: query */ AllowWatchBookmarks *bool /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 /*Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. Unique: true In: query */ Watch *bool }
ListCoordinationV1NamespacedLeaseParams contains all the bound params for the list coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters listCoordinationV1NamespacedLease
func NewListCoordinationV1NamespacedLeaseParams ¶
func NewListCoordinationV1NamespacedLeaseParams() ListCoordinationV1NamespacedLeaseParams
NewListCoordinationV1NamespacedLeaseParams creates a new ListCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*ListCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *ListCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewListCoordinationV1NamespacedLeaseParams() beforehand.
type ListCoordinationV1NamespacedLeaseUnauthorized ¶
type ListCoordinationV1NamespacedLeaseUnauthorized struct { }
ListCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response listCoordinationV1NamespacedLeaseUnauthorized
func NewListCoordinationV1NamespacedLeaseUnauthorized ¶
func NewListCoordinationV1NamespacedLeaseUnauthorized() *ListCoordinationV1NamespacedLeaseUnauthorized
NewListCoordinationV1NamespacedLeaseUnauthorized creates ListCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*ListCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *ListCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchCoordinationV1NamespacedLease ¶
type PatchCoordinationV1NamespacedLease struct { Context *middleware.Context Handler PatchCoordinationV1NamespacedLeaseHandler }
PatchCoordinationV1NamespacedLease swagger:route PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} coordination_v1 patchCoordinationV1NamespacedLease
partially update the specified Lease
func NewPatchCoordinationV1NamespacedLease ¶
func NewPatchCoordinationV1NamespacedLease(ctx *middleware.Context, handler PatchCoordinationV1NamespacedLeaseHandler) *PatchCoordinationV1NamespacedLease
NewPatchCoordinationV1NamespacedLease creates a new http.Handler for the patch coordination v1 namespaced lease operation
func (*PatchCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *PatchCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PatchCoordinationV1NamespacedLeaseHandler ¶
type PatchCoordinationV1NamespacedLeaseHandler interface {
Handle(PatchCoordinationV1NamespacedLeaseParams) middleware.Responder
}
PatchCoordinationV1NamespacedLeaseHandler interface for that can handle valid patch coordination v1 namespaced lease params
type PatchCoordinationV1NamespacedLeaseHandlerFunc ¶
type PatchCoordinationV1NamespacedLeaseHandlerFunc func(PatchCoordinationV1NamespacedLeaseParams) middleware.Responder
PatchCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a patch coordination v1 namespaced lease handler
func (PatchCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn PatchCoordinationV1NamespacedLeaseHandlerFunc) Handle(params PatchCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type PatchCoordinationV1NamespacedLeaseOK ¶
type PatchCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
PatchCoordinationV1NamespacedLeaseOK OK
swagger:response patchCoordinationV1NamespacedLeaseOK
func NewPatchCoordinationV1NamespacedLeaseOK ¶
func NewPatchCoordinationV1NamespacedLeaseOK() *PatchCoordinationV1NamespacedLeaseOK
NewPatchCoordinationV1NamespacedLeaseOK creates PatchCoordinationV1NamespacedLeaseOK with default headers values
func (*PatchCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *PatchCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the patch coordination v1 namespaced lease o k response
func (*PatchCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *PatchCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *PatchCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the patch coordination v1 namespaced lease o k response
func (*PatchCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *PatchCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PatchCoordinationV1NamespacedLeaseParams ¶
type PatchCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body models.IoK8sApimachineryPkgApisMetaV1Patch /*When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Unique: true In: query */ DryRun *string /*fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). Unique: true In: query */ FieldManager *string /*Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. Unique: true In: query */ Force *bool /*name of the Lease Required: true Unique: true In: path */ Name string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string }
PatchCoordinationV1NamespacedLeaseParams contains all the bound params for the patch coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters patchCoordinationV1NamespacedLease
func NewPatchCoordinationV1NamespacedLeaseParams ¶
func NewPatchCoordinationV1NamespacedLeaseParams() PatchCoordinationV1NamespacedLeaseParams
NewPatchCoordinationV1NamespacedLeaseParams creates a new PatchCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*PatchCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *PatchCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPatchCoordinationV1NamespacedLeaseParams() beforehand.
type PatchCoordinationV1NamespacedLeaseUnauthorized ¶
type PatchCoordinationV1NamespacedLeaseUnauthorized struct { }
PatchCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response patchCoordinationV1NamespacedLeaseUnauthorized
func NewPatchCoordinationV1NamespacedLeaseUnauthorized ¶
func NewPatchCoordinationV1NamespacedLeaseUnauthorized() *PatchCoordinationV1NamespacedLeaseUnauthorized
NewPatchCoordinationV1NamespacedLeaseUnauthorized creates PatchCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*PatchCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *PatchCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadCoordinationV1NamespacedLease ¶
type ReadCoordinationV1NamespacedLease struct { Context *middleware.Context Handler ReadCoordinationV1NamespacedLeaseHandler }
ReadCoordinationV1NamespacedLease swagger:route GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} coordination_v1 readCoordinationV1NamespacedLease
read the specified Lease
func NewReadCoordinationV1NamespacedLease ¶
func NewReadCoordinationV1NamespacedLease(ctx *middleware.Context, handler ReadCoordinationV1NamespacedLeaseHandler) *ReadCoordinationV1NamespacedLease
NewReadCoordinationV1NamespacedLease creates a new http.Handler for the read coordination v1 namespaced lease operation
func (*ReadCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *ReadCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReadCoordinationV1NamespacedLeaseHandler ¶
type ReadCoordinationV1NamespacedLeaseHandler interface {
Handle(ReadCoordinationV1NamespacedLeaseParams) middleware.Responder
}
ReadCoordinationV1NamespacedLeaseHandler interface for that can handle valid read coordination v1 namespaced lease params
type ReadCoordinationV1NamespacedLeaseHandlerFunc ¶
type ReadCoordinationV1NamespacedLeaseHandlerFunc func(ReadCoordinationV1NamespacedLeaseParams) middleware.Responder
ReadCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a read coordination v1 namespaced lease handler
func (ReadCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn ReadCoordinationV1NamespacedLeaseHandlerFunc) Handle(params ReadCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type ReadCoordinationV1NamespacedLeaseOK ¶
type ReadCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
ReadCoordinationV1NamespacedLeaseOK OK
swagger:response readCoordinationV1NamespacedLeaseOK
func NewReadCoordinationV1NamespacedLeaseOK ¶
func NewReadCoordinationV1NamespacedLeaseOK() *ReadCoordinationV1NamespacedLeaseOK
NewReadCoordinationV1NamespacedLeaseOK creates ReadCoordinationV1NamespacedLeaseOK with default headers values
func (*ReadCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *ReadCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the read coordination v1 namespaced lease o k response
func (*ReadCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *ReadCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReadCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the read coordination v1 namespaced lease o k response
func (*ReadCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *ReadCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReadCoordinationV1NamespacedLeaseParams ¶
type ReadCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. Unique: true In: query */ Exact *bool /*Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. Unique: true In: query */ Export *bool /*name of the Lease Required: true Unique: true In: path */ Name string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string }
ReadCoordinationV1NamespacedLeaseParams contains all the bound params for the read coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters readCoordinationV1NamespacedLease
func NewReadCoordinationV1NamespacedLeaseParams ¶
func NewReadCoordinationV1NamespacedLeaseParams() ReadCoordinationV1NamespacedLeaseParams
NewReadCoordinationV1NamespacedLeaseParams creates a new ReadCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*ReadCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *ReadCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewReadCoordinationV1NamespacedLeaseParams() beforehand.
type ReadCoordinationV1NamespacedLeaseUnauthorized ¶
type ReadCoordinationV1NamespacedLeaseUnauthorized struct { }
ReadCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response readCoordinationV1NamespacedLeaseUnauthorized
func NewReadCoordinationV1NamespacedLeaseUnauthorized ¶
func NewReadCoordinationV1NamespacedLeaseUnauthorized() *ReadCoordinationV1NamespacedLeaseUnauthorized
NewReadCoordinationV1NamespacedLeaseUnauthorized creates ReadCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*ReadCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *ReadCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceCoordinationV1NamespacedLease ¶
type ReplaceCoordinationV1NamespacedLease struct { Context *middleware.Context Handler ReplaceCoordinationV1NamespacedLeaseHandler }
ReplaceCoordinationV1NamespacedLease swagger:route PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name} coordination_v1 replaceCoordinationV1NamespacedLease
replace the specified Lease
func NewReplaceCoordinationV1NamespacedLease ¶
func NewReplaceCoordinationV1NamespacedLease(ctx *middleware.Context, handler ReplaceCoordinationV1NamespacedLeaseHandler) *ReplaceCoordinationV1NamespacedLease
NewReplaceCoordinationV1NamespacedLease creates a new http.Handler for the replace coordination v1 namespaced lease operation
func (*ReplaceCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *ReplaceCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceCoordinationV1NamespacedLeaseCreated ¶
type ReplaceCoordinationV1NamespacedLeaseCreated struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
ReplaceCoordinationV1NamespacedLeaseCreated Created
swagger:response replaceCoordinationV1NamespacedLeaseCreated
func NewReplaceCoordinationV1NamespacedLeaseCreated ¶
func NewReplaceCoordinationV1NamespacedLeaseCreated() *ReplaceCoordinationV1NamespacedLeaseCreated
NewReplaceCoordinationV1NamespacedLeaseCreated creates ReplaceCoordinationV1NamespacedLeaseCreated with default headers values
func (*ReplaceCoordinationV1NamespacedLeaseCreated) SetPayload ¶
func (o *ReplaceCoordinationV1NamespacedLeaseCreated) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the replace coordination v1 namespaced lease created response
func (*ReplaceCoordinationV1NamespacedLeaseCreated) WithPayload ¶
func (o *ReplaceCoordinationV1NamespacedLeaseCreated) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReplaceCoordinationV1NamespacedLeaseCreated
WithPayload adds the payload to the replace coordination v1 namespaced lease created response
func (*ReplaceCoordinationV1NamespacedLeaseCreated) WriteResponse ¶
func (o *ReplaceCoordinationV1NamespacedLeaseCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceCoordinationV1NamespacedLeaseHandler ¶
type ReplaceCoordinationV1NamespacedLeaseHandler interface {
Handle(ReplaceCoordinationV1NamespacedLeaseParams) middleware.Responder
}
ReplaceCoordinationV1NamespacedLeaseHandler interface for that can handle valid replace coordination v1 namespaced lease params
type ReplaceCoordinationV1NamespacedLeaseHandlerFunc ¶
type ReplaceCoordinationV1NamespacedLeaseHandlerFunc func(ReplaceCoordinationV1NamespacedLeaseParams) middleware.Responder
ReplaceCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a replace coordination v1 namespaced lease handler
func (ReplaceCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn ReplaceCoordinationV1NamespacedLeaseHandlerFunc) Handle(params ReplaceCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type ReplaceCoordinationV1NamespacedLeaseOK ¶
type ReplaceCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sAPICoordinationV1Lease `json:"body,omitempty"` }
ReplaceCoordinationV1NamespacedLeaseOK OK
swagger:response replaceCoordinationV1NamespacedLeaseOK
func NewReplaceCoordinationV1NamespacedLeaseOK ¶
func NewReplaceCoordinationV1NamespacedLeaseOK() *ReplaceCoordinationV1NamespacedLeaseOK
NewReplaceCoordinationV1NamespacedLeaseOK creates ReplaceCoordinationV1NamespacedLeaseOK with default headers values
func (*ReplaceCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *ReplaceCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sAPICoordinationV1Lease)
SetPayload sets the payload to the replace coordination v1 namespaced lease o k response
func (*ReplaceCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *ReplaceCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sAPICoordinationV1Lease) *ReplaceCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the replace coordination v1 namespaced lease o k response
func (*ReplaceCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *ReplaceCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceCoordinationV1NamespacedLeaseParams ¶
type ReplaceCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.IoK8sAPICoordinationV1Lease /*When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Unique: true In: query */ DryRun *string /*fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. Unique: true In: query */ FieldManager *string /*name of the Lease Required: true Unique: true In: path */ Name string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string }
ReplaceCoordinationV1NamespacedLeaseParams contains all the bound params for the replace coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters replaceCoordinationV1NamespacedLease
func NewReplaceCoordinationV1NamespacedLeaseParams ¶
func NewReplaceCoordinationV1NamespacedLeaseParams() ReplaceCoordinationV1NamespacedLeaseParams
NewReplaceCoordinationV1NamespacedLeaseParams creates a new ReplaceCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*ReplaceCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *ReplaceCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewReplaceCoordinationV1NamespacedLeaseParams() beforehand.
type ReplaceCoordinationV1NamespacedLeaseUnauthorized ¶
type ReplaceCoordinationV1NamespacedLeaseUnauthorized struct { }
ReplaceCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response replaceCoordinationV1NamespacedLeaseUnauthorized
func NewReplaceCoordinationV1NamespacedLeaseUnauthorized ¶
func NewReplaceCoordinationV1NamespacedLeaseUnauthorized() *ReplaceCoordinationV1NamespacedLeaseUnauthorized
NewReplaceCoordinationV1NamespacedLeaseUnauthorized creates ReplaceCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*ReplaceCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *ReplaceCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1LeaseListForAllNamespaces ¶
type WatchCoordinationV1LeaseListForAllNamespaces struct { Context *middleware.Context Handler WatchCoordinationV1LeaseListForAllNamespacesHandler }
WatchCoordinationV1LeaseListForAllNamespaces swagger:route GET /apis/coordination.k8s.io/v1/watch/leases coordination_v1 watchCoordinationV1LeaseListForAllNamespaces
watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.
func NewWatchCoordinationV1LeaseListForAllNamespaces ¶
func NewWatchCoordinationV1LeaseListForAllNamespaces(ctx *middleware.Context, handler WatchCoordinationV1LeaseListForAllNamespacesHandler) *WatchCoordinationV1LeaseListForAllNamespaces
NewWatchCoordinationV1LeaseListForAllNamespaces creates a new http.Handler for the watch coordination v1 lease list for all namespaces operation
func (*WatchCoordinationV1LeaseListForAllNamespaces) ServeHTTP ¶
func (o *WatchCoordinationV1LeaseListForAllNamespaces) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type WatchCoordinationV1LeaseListForAllNamespacesHandler ¶
type WatchCoordinationV1LeaseListForAllNamespacesHandler interface {
Handle(WatchCoordinationV1LeaseListForAllNamespacesParams) middleware.Responder
}
WatchCoordinationV1LeaseListForAllNamespacesHandler interface for that can handle valid watch coordination v1 lease list for all namespaces params
type WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc ¶
type WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc func(WatchCoordinationV1LeaseListForAllNamespacesParams) middleware.Responder
WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc turns a function with the right signature into a watch coordination v1 lease list for all namespaces handler
func (WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc) Handle ¶
func (fn WatchCoordinationV1LeaseListForAllNamespacesHandlerFunc) Handle(params WatchCoordinationV1LeaseListForAllNamespacesParams) middleware.Responder
Handle executing the request and returning a response
type WatchCoordinationV1LeaseListForAllNamespacesOK ¶
type WatchCoordinationV1LeaseListForAllNamespacesOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent `json:"body,omitempty"` }
WatchCoordinationV1LeaseListForAllNamespacesOK OK
swagger:response watchCoordinationV1LeaseListForAllNamespacesOK
func NewWatchCoordinationV1LeaseListForAllNamespacesOK ¶
func NewWatchCoordinationV1LeaseListForAllNamespacesOK() *WatchCoordinationV1LeaseListForAllNamespacesOK
NewWatchCoordinationV1LeaseListForAllNamespacesOK creates WatchCoordinationV1LeaseListForAllNamespacesOK with default headers values
func (*WatchCoordinationV1LeaseListForAllNamespacesOK) SetPayload ¶
func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
SetPayload sets the payload to the watch coordination v1 lease list for all namespaces o k response
func (*WatchCoordinationV1LeaseListForAllNamespacesOK) WithPayload ¶
func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1LeaseListForAllNamespacesOK
WithPayload adds the payload to the watch coordination v1 lease list for all namespaces o k response
func (*WatchCoordinationV1LeaseListForAllNamespacesOK) WriteResponse ¶
func (o *WatchCoordinationV1LeaseListForAllNamespacesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1LeaseListForAllNamespacesParams ¶
type WatchCoordinationV1LeaseListForAllNamespacesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. Unique: true In: query */ AllowWatchBookmarks *bool /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 /*Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. Unique: true In: query */ Watch *bool }
WatchCoordinationV1LeaseListForAllNamespacesParams contains all the bound params for the watch coordination v1 lease list for all namespaces operation typically these are obtained from a http.Request
swagger:parameters watchCoordinationV1LeaseListForAllNamespaces
func NewWatchCoordinationV1LeaseListForAllNamespacesParams ¶
func NewWatchCoordinationV1LeaseListForAllNamespacesParams() WatchCoordinationV1LeaseListForAllNamespacesParams
NewWatchCoordinationV1LeaseListForAllNamespacesParams creates a new WatchCoordinationV1LeaseListForAllNamespacesParams object no default values defined in spec.
func (*WatchCoordinationV1LeaseListForAllNamespacesParams) BindRequest ¶
func (o *WatchCoordinationV1LeaseListForAllNamespacesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewWatchCoordinationV1LeaseListForAllNamespacesParams() beforehand.
type WatchCoordinationV1LeaseListForAllNamespacesUnauthorized ¶
type WatchCoordinationV1LeaseListForAllNamespacesUnauthorized struct { }
WatchCoordinationV1LeaseListForAllNamespacesUnauthorized Unauthorized
swagger:response watchCoordinationV1LeaseListForAllNamespacesUnauthorized
func NewWatchCoordinationV1LeaseListForAllNamespacesUnauthorized ¶
func NewWatchCoordinationV1LeaseListForAllNamespacesUnauthorized() *WatchCoordinationV1LeaseListForAllNamespacesUnauthorized
NewWatchCoordinationV1LeaseListForAllNamespacesUnauthorized creates WatchCoordinationV1LeaseListForAllNamespacesUnauthorized with default headers values
func (*WatchCoordinationV1LeaseListForAllNamespacesUnauthorized) WriteResponse ¶
func (o *WatchCoordinationV1LeaseListForAllNamespacesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1NamespacedLease ¶
type WatchCoordinationV1NamespacedLease struct { Context *middleware.Context Handler WatchCoordinationV1NamespacedLeaseHandler }
WatchCoordinationV1NamespacedLease swagger:route GET /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name} coordination_v1 watchCoordinationV1NamespacedLease
watch changes to an object of kind Lease. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
func NewWatchCoordinationV1NamespacedLease ¶
func NewWatchCoordinationV1NamespacedLease(ctx *middleware.Context, handler WatchCoordinationV1NamespacedLeaseHandler) *WatchCoordinationV1NamespacedLease
NewWatchCoordinationV1NamespacedLease creates a new http.Handler for the watch coordination v1 namespaced lease operation
func (*WatchCoordinationV1NamespacedLease) ServeHTTP ¶
func (o *WatchCoordinationV1NamespacedLease) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type WatchCoordinationV1NamespacedLeaseHandler ¶
type WatchCoordinationV1NamespacedLeaseHandler interface {
Handle(WatchCoordinationV1NamespacedLeaseParams) middleware.Responder
}
WatchCoordinationV1NamespacedLeaseHandler interface for that can handle valid watch coordination v1 namespaced lease params
type WatchCoordinationV1NamespacedLeaseHandlerFunc ¶
type WatchCoordinationV1NamespacedLeaseHandlerFunc func(WatchCoordinationV1NamespacedLeaseParams) middleware.Responder
WatchCoordinationV1NamespacedLeaseHandlerFunc turns a function with the right signature into a watch coordination v1 namespaced lease handler
func (WatchCoordinationV1NamespacedLeaseHandlerFunc) Handle ¶
func (fn WatchCoordinationV1NamespacedLeaseHandlerFunc) Handle(params WatchCoordinationV1NamespacedLeaseParams) middleware.Responder
Handle executing the request and returning a response
type WatchCoordinationV1NamespacedLeaseList ¶
type WatchCoordinationV1NamespacedLeaseList struct { Context *middleware.Context Handler WatchCoordinationV1NamespacedLeaseListHandler }
WatchCoordinationV1NamespacedLeaseList swagger:route GET /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases coordination_v1 watchCoordinationV1NamespacedLeaseList
watch individual changes to a list of Lease. deprecated: use the 'watch' parameter with a list operation instead.
func NewWatchCoordinationV1NamespacedLeaseList ¶
func NewWatchCoordinationV1NamespacedLeaseList(ctx *middleware.Context, handler WatchCoordinationV1NamespacedLeaseListHandler) *WatchCoordinationV1NamespacedLeaseList
NewWatchCoordinationV1NamespacedLeaseList creates a new http.Handler for the watch coordination v1 namespaced lease list operation
func (*WatchCoordinationV1NamespacedLeaseList) ServeHTTP ¶
func (o *WatchCoordinationV1NamespacedLeaseList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type WatchCoordinationV1NamespacedLeaseListHandler ¶
type WatchCoordinationV1NamespacedLeaseListHandler interface {
Handle(WatchCoordinationV1NamespacedLeaseListParams) middleware.Responder
}
WatchCoordinationV1NamespacedLeaseListHandler interface for that can handle valid watch coordination v1 namespaced lease list params
type WatchCoordinationV1NamespacedLeaseListHandlerFunc ¶
type WatchCoordinationV1NamespacedLeaseListHandlerFunc func(WatchCoordinationV1NamespacedLeaseListParams) middleware.Responder
WatchCoordinationV1NamespacedLeaseListHandlerFunc turns a function with the right signature into a watch coordination v1 namespaced lease list handler
func (WatchCoordinationV1NamespacedLeaseListHandlerFunc) Handle ¶
func (fn WatchCoordinationV1NamespacedLeaseListHandlerFunc) Handle(params WatchCoordinationV1NamespacedLeaseListParams) middleware.Responder
Handle executing the request and returning a response
type WatchCoordinationV1NamespacedLeaseListOK ¶
type WatchCoordinationV1NamespacedLeaseListOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent `json:"body,omitempty"` }
WatchCoordinationV1NamespacedLeaseListOK OK
swagger:response watchCoordinationV1NamespacedLeaseListOK
func NewWatchCoordinationV1NamespacedLeaseListOK ¶
func NewWatchCoordinationV1NamespacedLeaseListOK() *WatchCoordinationV1NamespacedLeaseListOK
NewWatchCoordinationV1NamespacedLeaseListOK creates WatchCoordinationV1NamespacedLeaseListOK with default headers values
func (*WatchCoordinationV1NamespacedLeaseListOK) SetPayload ¶
func (o *WatchCoordinationV1NamespacedLeaseListOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
SetPayload sets the payload to the watch coordination v1 namespaced lease list o k response
func (*WatchCoordinationV1NamespacedLeaseListOK) WithPayload ¶
func (o *WatchCoordinationV1NamespacedLeaseListOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1NamespacedLeaseListOK
WithPayload adds the payload to the watch coordination v1 namespaced lease list o k response
func (*WatchCoordinationV1NamespacedLeaseListOK) WriteResponse ¶
func (o *WatchCoordinationV1NamespacedLeaseListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1NamespacedLeaseListParams ¶
type WatchCoordinationV1NamespacedLeaseListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. Unique: true In: query */ AllowWatchBookmarks *bool /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 /*Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. Unique: true In: query */ Watch *bool }
WatchCoordinationV1NamespacedLeaseListParams contains all the bound params for the watch coordination v1 namespaced lease list operation typically these are obtained from a http.Request
swagger:parameters watchCoordinationV1NamespacedLeaseList
func NewWatchCoordinationV1NamespacedLeaseListParams ¶
func NewWatchCoordinationV1NamespacedLeaseListParams() WatchCoordinationV1NamespacedLeaseListParams
NewWatchCoordinationV1NamespacedLeaseListParams creates a new WatchCoordinationV1NamespacedLeaseListParams object no default values defined in spec.
func (*WatchCoordinationV1NamespacedLeaseListParams) BindRequest ¶
func (o *WatchCoordinationV1NamespacedLeaseListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewWatchCoordinationV1NamespacedLeaseListParams() beforehand.
type WatchCoordinationV1NamespacedLeaseListUnauthorized ¶
type WatchCoordinationV1NamespacedLeaseListUnauthorized struct { }
WatchCoordinationV1NamespacedLeaseListUnauthorized Unauthorized
swagger:response watchCoordinationV1NamespacedLeaseListUnauthorized
func NewWatchCoordinationV1NamespacedLeaseListUnauthorized ¶
func NewWatchCoordinationV1NamespacedLeaseListUnauthorized() *WatchCoordinationV1NamespacedLeaseListUnauthorized
NewWatchCoordinationV1NamespacedLeaseListUnauthorized creates WatchCoordinationV1NamespacedLeaseListUnauthorized with default headers values
func (*WatchCoordinationV1NamespacedLeaseListUnauthorized) WriteResponse ¶
func (o *WatchCoordinationV1NamespacedLeaseListUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1NamespacedLeaseOK ¶
type WatchCoordinationV1NamespacedLeaseOK struct { /* In: Body */ Payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent `json:"body,omitempty"` }
WatchCoordinationV1NamespacedLeaseOK OK
swagger:response watchCoordinationV1NamespacedLeaseOK
func NewWatchCoordinationV1NamespacedLeaseOK ¶
func NewWatchCoordinationV1NamespacedLeaseOK() *WatchCoordinationV1NamespacedLeaseOK
NewWatchCoordinationV1NamespacedLeaseOK creates WatchCoordinationV1NamespacedLeaseOK with default headers values
func (*WatchCoordinationV1NamespacedLeaseOK) SetPayload ¶
func (o *WatchCoordinationV1NamespacedLeaseOK) SetPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent)
SetPayload sets the payload to the watch coordination v1 namespaced lease o k response
func (*WatchCoordinationV1NamespacedLeaseOK) WithPayload ¶
func (o *WatchCoordinationV1NamespacedLeaseOK) WithPayload(payload *models.IoK8sApimachineryPkgApisMetaV1WatchEvent) *WatchCoordinationV1NamespacedLeaseOK
WithPayload adds the payload to the watch coordination v1 namespaced lease o k response
func (*WatchCoordinationV1NamespacedLeaseOK) WriteResponse ¶
func (o *WatchCoordinationV1NamespacedLeaseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WatchCoordinationV1NamespacedLeaseParams ¶
type WatchCoordinationV1NamespacedLeaseParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. Unique: true In: query */ AllowWatchBookmarks *bool /*The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. Unique: true In: query */ Continue *string /*A selector to restrict the list of returned objects by their fields. Defaults to everything. Unique: true In: query */ FieldSelector *string /*A selector to restrict the list of returned objects by their labels. Defaults to everything. Unique: true In: query */ LabelSelector *string /*limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. Unique: true In: query */ Limit *int64 /*name of the Lease Required: true Unique: true In: path */ Name string /*object name and auth scope, such as for teams and projects Required: true Unique: true In: path */ Namespace string /*If 'true', then the output is pretty printed. Unique: true In: query */ Pretty *string /*resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersion *string /*resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset Unique: true In: query */ ResourceVersionMatch *string /*Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Unique: true In: query */ TimeoutSeconds *int64 /*Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. Unique: true In: query */ Watch *bool }
WatchCoordinationV1NamespacedLeaseParams contains all the bound params for the watch coordination v1 namespaced lease operation typically these are obtained from a http.Request
swagger:parameters watchCoordinationV1NamespacedLease
func NewWatchCoordinationV1NamespacedLeaseParams ¶
func NewWatchCoordinationV1NamespacedLeaseParams() WatchCoordinationV1NamespacedLeaseParams
NewWatchCoordinationV1NamespacedLeaseParams creates a new WatchCoordinationV1NamespacedLeaseParams object no default values defined in spec.
func (*WatchCoordinationV1NamespacedLeaseParams) BindRequest ¶
func (o *WatchCoordinationV1NamespacedLeaseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewWatchCoordinationV1NamespacedLeaseParams() beforehand.
type WatchCoordinationV1NamespacedLeaseUnauthorized ¶
type WatchCoordinationV1NamespacedLeaseUnauthorized struct { }
WatchCoordinationV1NamespacedLeaseUnauthorized Unauthorized
swagger:response watchCoordinationV1NamespacedLeaseUnauthorized
func NewWatchCoordinationV1NamespacedLeaseUnauthorized ¶
func NewWatchCoordinationV1NamespacedLeaseUnauthorized() *WatchCoordinationV1NamespacedLeaseUnauthorized
NewWatchCoordinationV1NamespacedLeaseUnauthorized creates WatchCoordinationV1NamespacedLeaseUnauthorized with default headers values
func (*WatchCoordinationV1NamespacedLeaseUnauthorized) WriteResponse ¶
func (o *WatchCoordinationV1NamespacedLeaseUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- create_coordination_v1_namespaced_lease.go
- create_coordination_v1_namespaced_lease_parameters.go
- create_coordination_v1_namespaced_lease_responses.go
- delete_coordination_v1_collection_namespaced_lease.go
- delete_coordination_v1_collection_namespaced_lease_parameters.go
- delete_coordination_v1_collection_namespaced_lease_responses.go
- delete_coordination_v1_namespaced_lease.go
- delete_coordination_v1_namespaced_lease_parameters.go
- delete_coordination_v1_namespaced_lease_responses.go
- get_coordination_v1_api_resources.go
- get_coordination_v1_api_resources_parameters.go
- get_coordination_v1_api_resources_responses.go
- list_coordination_v1_lease_for_all_namespaces.go
- list_coordination_v1_lease_for_all_namespaces_parameters.go
- list_coordination_v1_lease_for_all_namespaces_responses.go
- list_coordination_v1_namespaced_lease.go
- list_coordination_v1_namespaced_lease_parameters.go
- list_coordination_v1_namespaced_lease_responses.go
- patch_coordination_v1_namespaced_lease.go
- patch_coordination_v1_namespaced_lease_parameters.go
- patch_coordination_v1_namespaced_lease_responses.go
- read_coordination_v1_namespaced_lease.go
- read_coordination_v1_namespaced_lease_parameters.go
- read_coordination_v1_namespaced_lease_responses.go
- replace_coordination_v1_namespaced_lease.go
- replace_coordination_v1_namespaced_lease_parameters.go
- replace_coordination_v1_namespaced_lease_responses.go
- watch_coordination_v1_lease_list_for_all_namespaces.go
- watch_coordination_v1_lease_list_for_all_namespaces_parameters.go
- watch_coordination_v1_lease_list_for_all_namespaces_responses.go
- watch_coordination_v1_namespaced_lease.go
- watch_coordination_v1_namespaced_lease_list.go
- watch_coordination_v1_namespaced_lease_list_parameters.go
- watch_coordination_v1_namespaced_lease_list_responses.go
- watch_coordination_v1_namespaced_lease_parameters.go
- watch_coordination_v1_namespaced_lease_responses.go