Documentation ¶
Index ¶
- Constants
- type CreateACL
- type CreateACLAccepted
- func (o *CreateACLAccepted) SetPayload(payload *models.ACL)
- func (o *CreateACLAccepted) SetReloadID(reloadID string)
- func (o *CreateACLAccepted) WithPayload(payload *models.ACL) *CreateACLAccepted
- func (o *CreateACLAccepted) WithReloadID(reloadID string) *CreateACLAccepted
- func (o *CreateACLAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateACLBadRequest
- type CreateACLConflict
- type CreateACLCreated
- type CreateACLDefault
- func (o *CreateACLDefault) SetPayload(payload *models.Error)
- func (o *CreateACLDefault) SetStatusCode(code int)
- func (o *CreateACLDefault) WithPayload(payload *models.Error) *CreateACLDefault
- func (o *CreateACLDefault) WithStatusCode(code int) *CreateACLDefault
- func (o *CreateACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateACLHandler
- type CreateACLHandlerFunc
- type CreateACLParams
- type CreateACLURL
- func (o *CreateACLURL) Build() (*url.URL, error)
- func (o *CreateACLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateACLURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateACLURL) SetBasePath(bp string)
- func (o *CreateACLURL) String() string
- func (o *CreateACLURL) StringFull(scheme, host string) string
- func (o *CreateACLURL) WithBasePath(bp string) *CreateACLURL
- type DeleteACL
- type DeleteACLAccepted
- type DeleteACLDefault
- func (o *DeleteACLDefault) SetPayload(payload *models.Error)
- func (o *DeleteACLDefault) SetStatusCode(code int)
- func (o *DeleteACLDefault) WithPayload(payload *models.Error) *DeleteACLDefault
- func (o *DeleteACLDefault) WithStatusCode(code int) *DeleteACLDefault
- func (o *DeleteACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteACLHandler
- type DeleteACLHandlerFunc
- type DeleteACLNoContent
- type DeleteACLNotFound
- type DeleteACLParams
- type DeleteACLURL
- func (o *DeleteACLURL) Build() (*url.URL, error)
- func (o *DeleteACLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteACLURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteACLURL) SetBasePath(bp string)
- func (o *DeleteACLURL) String() string
- func (o *DeleteACLURL) StringFull(scheme, host string) string
- func (o *DeleteACLURL) WithBasePath(bp string) *DeleteACLURL
- type GetACL
- type GetACLDefault
- func (o *GetACLDefault) SetPayload(payload *models.Error)
- func (o *GetACLDefault) SetStatusCode(code int)
- func (o *GetACLDefault) WithPayload(payload *models.Error) *GetACLDefault
- func (o *GetACLDefault) WithStatusCode(code int) *GetACLDefault
- func (o *GetACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetACLHandler
- type GetACLHandlerFunc
- type GetACLNotFound
- type GetACLOK
- type GetACLOKBody
- type GetACLParams
- type GetACLURL
- func (o *GetACLURL) Build() (*url.URL, error)
- func (o *GetACLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetACLURL) Must(u *url.URL, err error) *url.URL
- func (o *GetACLURL) SetBasePath(bp string)
- func (o *GetACLURL) String() string
- func (o *GetACLURL) StringFull(scheme, host string) string
- func (o *GetACLURL) WithBasePath(bp string) *GetACLURL
- type GetAcls
- type GetAclsDefault
- func (o *GetAclsDefault) SetPayload(payload *models.Error)
- func (o *GetAclsDefault) SetStatusCode(code int)
- func (o *GetAclsDefault) WithPayload(payload *models.Error) *GetAclsDefault
- func (o *GetAclsDefault) WithStatusCode(code int) *GetAclsDefault
- func (o *GetAclsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAclsHandler
- type GetAclsHandlerFunc
- type GetAclsOK
- type GetAclsOKBody
- type GetAclsParams
- type GetAclsURL
- func (o *GetAclsURL) Build() (*url.URL, error)
- func (o *GetAclsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAclsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAclsURL) SetBasePath(bp string)
- func (o *GetAclsURL) String() string
- func (o *GetAclsURL) StringFull(scheme, host string) string
- func (o *GetAclsURL) WithBasePath(bp string) *GetAclsURL
- type ReplaceACL
- type ReplaceACLAccepted
- func (o *ReplaceACLAccepted) SetPayload(payload *models.ACL)
- func (o *ReplaceACLAccepted) SetReloadID(reloadID string)
- func (o *ReplaceACLAccepted) WithPayload(payload *models.ACL) *ReplaceACLAccepted
- func (o *ReplaceACLAccepted) WithReloadID(reloadID string) *ReplaceACLAccepted
- func (o *ReplaceACLAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceACLBadRequest
- type ReplaceACLDefault
- func (o *ReplaceACLDefault) SetPayload(payload *models.Error)
- func (o *ReplaceACLDefault) SetStatusCode(code int)
- func (o *ReplaceACLDefault) WithPayload(payload *models.Error) *ReplaceACLDefault
- func (o *ReplaceACLDefault) WithStatusCode(code int) *ReplaceACLDefault
- func (o *ReplaceACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ReplaceACLHandler
- type ReplaceACLHandlerFunc
- type ReplaceACLNotFound
- type ReplaceACLOK
- type ReplaceACLParams
- type ReplaceACLURL
- func (o *ReplaceACLURL) Build() (*url.URL, error)
- func (o *ReplaceACLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaceACLURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaceACLURL) SetBasePath(bp string)
- func (o *ReplaceACLURL) String() string
- func (o *ReplaceACLURL) StringFull(scheme, host string) string
- func (o *ReplaceACLURL) WithBasePath(bp string) *ReplaceACLURL
Constants ¶
const CreateACLAcceptedCode int = 202
CreateACLAcceptedCode is the HTTP code returned for type CreateACLAccepted
const CreateACLBadRequestCode int = 400
CreateACLBadRequestCode is the HTTP code returned for type CreateACLBadRequest
const CreateACLConflictCode int = 409
CreateACLConflictCode is the HTTP code returned for type CreateACLConflict
const CreateACLCreatedCode int = 201
CreateACLCreatedCode is the HTTP code returned for type CreateACLCreated
const DeleteACLAcceptedCode int = 202
DeleteACLAcceptedCode is the HTTP code returned for type DeleteACLAccepted
const DeleteACLNoContentCode int = 204
DeleteACLNoContentCode is the HTTP code returned for type DeleteACLNoContent
const DeleteACLNotFoundCode int = 404
DeleteACLNotFoundCode is the HTTP code returned for type DeleteACLNotFound
const GetACLNotFoundCode int = 404
GetACLNotFoundCode is the HTTP code returned for type GetACLNotFound
const GetACLOKCode int = 200
GetACLOKCode is the HTTP code returned for type GetACLOK
const GetAclsOKCode int = 200
GetAclsOKCode is the HTTP code returned for type GetAclsOK
const ReplaceACLAcceptedCode int = 202
ReplaceACLAcceptedCode is the HTTP code returned for type ReplaceACLAccepted
const ReplaceACLBadRequestCode int = 400
ReplaceACLBadRequestCode is the HTTP code returned for type ReplaceACLBadRequest
const ReplaceACLNotFoundCode int = 404
ReplaceACLNotFoundCode is the HTTP code returned for type ReplaceACLNotFound
const ReplaceACLOKCode int = 200
ReplaceACLOKCode is the HTTP code returned for type ReplaceACLOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateACL ¶
type CreateACL struct { Context *middleware.Context Handler CreateACLHandler }
CreateACL swagger:route POST /services/haproxy/configuration/acls ACL createAcl
Add a new ACL line ¶
Adds a new ACL line of the specified type in the specified parent.
func NewCreateACL ¶
func NewCreateACL(ctx *middleware.Context, handler CreateACLHandler) *CreateACL
NewCreateACL creates a new http.Handler for the create Acl operation
type CreateACLAccepted ¶
type CreateACLAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.ACL `json:"body,omitempty"` }
CreateACLAccepted Configuration change accepted and reload requested
swagger:response createAclAccepted
func NewCreateACLAccepted ¶
func NewCreateACLAccepted() *CreateACLAccepted
NewCreateACLAccepted creates CreateACLAccepted with default headers values
func (*CreateACLAccepted) SetPayload ¶
func (o *CreateACLAccepted) SetPayload(payload *models.ACL)
SetPayload sets the payload to the create Acl accepted response
func (*CreateACLAccepted) SetReloadID ¶
func (o *CreateACLAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the create Acl accepted response
func (*CreateACLAccepted) WithPayload ¶
func (o *CreateACLAccepted) WithPayload(payload *models.ACL) *CreateACLAccepted
WithPayload adds the payload to the create Acl accepted response
func (*CreateACLAccepted) WithReloadID ¶
func (o *CreateACLAccepted) WithReloadID(reloadID string) *CreateACLAccepted
WithReloadID adds the reloadId to the create Acl accepted response
func (*CreateACLAccepted) WriteResponse ¶
func (o *CreateACLAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateACLBadRequest ¶
CreateACLBadRequest Bad request
swagger:response createAclBadRequest
func NewCreateACLBadRequest ¶
func NewCreateACLBadRequest() *CreateACLBadRequest
NewCreateACLBadRequest creates CreateACLBadRequest with default headers values
func (*CreateACLBadRequest) SetPayload ¶
func (o *CreateACLBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Acl bad request response
func (*CreateACLBadRequest) WithPayload ¶
func (o *CreateACLBadRequest) WithPayload(payload *models.Error) *CreateACLBadRequest
WithPayload adds the payload to the create Acl bad request response
func (*CreateACLBadRequest) WriteResponse ¶
func (o *CreateACLBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateACLConflict ¶
CreateACLConflict The specified resource already exists
swagger:response createAclConflict
func NewCreateACLConflict ¶
func NewCreateACLConflict() *CreateACLConflict
NewCreateACLConflict creates CreateACLConflict with default headers values
func (*CreateACLConflict) SetPayload ¶
func (o *CreateACLConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Acl conflict response
func (*CreateACLConflict) WithPayload ¶
func (o *CreateACLConflict) WithPayload(payload *models.Error) *CreateACLConflict
WithPayload adds the payload to the create Acl conflict response
func (*CreateACLConflict) WriteResponse ¶
func (o *CreateACLConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateACLCreated ¶
CreateACLCreated ACL line created
swagger:response createAclCreated
func NewCreateACLCreated ¶
func NewCreateACLCreated() *CreateACLCreated
NewCreateACLCreated creates CreateACLCreated with default headers values
func (*CreateACLCreated) SetPayload ¶
func (o *CreateACLCreated) SetPayload(payload *models.ACL)
SetPayload sets the payload to the create Acl created response
func (*CreateACLCreated) WithPayload ¶
func (o *CreateACLCreated) WithPayload(payload *models.ACL) *CreateACLCreated
WithPayload adds the payload to the create Acl created response
func (*CreateACLCreated) WriteResponse ¶
func (o *CreateACLCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateACLDefault ¶
type CreateACLDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateACLDefault General Error
swagger:response createAclDefault
func NewCreateACLDefault ¶
func NewCreateACLDefault(code int) *CreateACLDefault
NewCreateACLDefault creates CreateACLDefault with default headers values
func (*CreateACLDefault) SetPayload ¶
func (o *CreateACLDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the create Acl default response
func (*CreateACLDefault) SetStatusCode ¶
func (o *CreateACLDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create Acl default response
func (*CreateACLDefault) WithPayload ¶
func (o *CreateACLDefault) WithPayload(payload *models.Error) *CreateACLDefault
WithPayload adds the payload to the create Acl default response
func (*CreateACLDefault) WithStatusCode ¶
func (o *CreateACLDefault) WithStatusCode(code int) *CreateACLDefault
WithStatusCode adds the status to the create Acl default response
func (*CreateACLDefault) WriteResponse ¶
func (o *CreateACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateACLHandler ¶
type CreateACLHandler interface {
Handle(CreateACLParams, interface{}) middleware.Responder
}
CreateACLHandler interface for that can handle valid create Acl params
type CreateACLHandlerFunc ¶
type CreateACLHandlerFunc func(CreateACLParams, interface{}) middleware.Responder
CreateACLHandlerFunc turns a function with the right signature into a create Acl handler
func (CreateACLHandlerFunc) Handle ¶
func (fn CreateACLHandlerFunc) Handle(params CreateACLParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type CreateACLParams ¶
type CreateACLParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.ACL /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*Parent name Required: true In: query */ ParentName string /*Parent type Required: true In: query */ ParentType string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
CreateACLParams contains all the bound params for the create Acl operation typically these are obtained from a http.Request
swagger:parameters createAcl
func NewCreateACLParams ¶
func NewCreateACLParams() CreateACLParams
NewCreateACLParams creates a new CreateACLParams object with the default values initialized.
func (*CreateACLParams) BindRequest ¶
func (o *CreateACLParams) 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 NewCreateACLParams() beforehand.
type CreateACLURL ¶
type CreateACLURL struct { ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
CreateACLURL generates an URL for the create Acl operation
func (*CreateACLURL) Build ¶
func (o *CreateACLURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateACLURL) BuildFull ¶
func (o *CreateACLURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateACLURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateACLURL) SetBasePath ¶
func (o *CreateACLURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateACLURL) String ¶
func (o *CreateACLURL) String() string
String returns the string representation of the path with query string
func (*CreateACLURL) StringFull ¶
func (o *CreateACLURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateACLURL) WithBasePath ¶
func (o *CreateACLURL) WithBasePath(bp string) *CreateACLURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteACL ¶
type DeleteACL struct { Context *middleware.Context Handler DeleteACLHandler }
DeleteACL swagger:route DELETE /services/haproxy/configuration/acls/{id} ACL deleteAcl
Delete a ACL line ¶
Deletes a ACL line configuration by it's ID from the specified parent.
func NewDeleteACL ¶
func NewDeleteACL(ctx *middleware.Context, handler DeleteACLHandler) *DeleteACL
NewDeleteACL creates a new http.Handler for the delete Acl operation
type DeleteACLAccepted ¶
type DeleteACLAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` }
DeleteACLAccepted Configuration change accepted and reload requested
swagger:response deleteAclAccepted
func NewDeleteACLAccepted ¶
func NewDeleteACLAccepted() *DeleteACLAccepted
NewDeleteACLAccepted creates DeleteACLAccepted with default headers values
func (*DeleteACLAccepted) SetReloadID ¶
func (o *DeleteACLAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the delete Acl accepted response
func (*DeleteACLAccepted) WithReloadID ¶
func (o *DeleteACLAccepted) WithReloadID(reloadID string) *DeleteACLAccepted
WithReloadID adds the reloadId to the delete Acl accepted response
func (*DeleteACLAccepted) WriteResponse ¶
func (o *DeleteACLAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteACLDefault ¶
type DeleteACLDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteACLDefault General Error
swagger:response deleteAclDefault
func NewDeleteACLDefault ¶
func NewDeleteACLDefault(code int) *DeleteACLDefault
NewDeleteACLDefault creates DeleteACLDefault with default headers values
func (*DeleteACLDefault) SetPayload ¶
func (o *DeleteACLDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete Acl default response
func (*DeleteACLDefault) SetStatusCode ¶
func (o *DeleteACLDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete Acl default response
func (*DeleteACLDefault) WithPayload ¶
func (o *DeleteACLDefault) WithPayload(payload *models.Error) *DeleteACLDefault
WithPayload adds the payload to the delete Acl default response
func (*DeleteACLDefault) WithStatusCode ¶
func (o *DeleteACLDefault) WithStatusCode(code int) *DeleteACLDefault
WithStatusCode adds the status to the delete Acl default response
func (*DeleteACLDefault) WriteResponse ¶
func (o *DeleteACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteACLHandler ¶
type DeleteACLHandler interface {
Handle(DeleteACLParams, interface{}) middleware.Responder
}
DeleteACLHandler interface for that can handle valid delete Acl params
type DeleteACLHandlerFunc ¶
type DeleteACLHandlerFunc func(DeleteACLParams, interface{}) middleware.Responder
DeleteACLHandlerFunc turns a function with the right signature into a delete Acl handler
func (DeleteACLHandlerFunc) Handle ¶
func (fn DeleteACLHandlerFunc) Handle(params DeleteACLParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeleteACLNoContent ¶
type DeleteACLNoContent struct { }
DeleteACLNoContent ACL line deleted
swagger:response deleteAclNoContent
func NewDeleteACLNoContent ¶
func NewDeleteACLNoContent() *DeleteACLNoContent
NewDeleteACLNoContent creates DeleteACLNoContent with default headers values
func (*DeleteACLNoContent) WriteResponse ¶
func (o *DeleteACLNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteACLNotFound ¶
DeleteACLNotFound The specified resource was not found
swagger:response deleteAclNotFound
func NewDeleteACLNotFound ¶
func NewDeleteACLNotFound() *DeleteACLNotFound
NewDeleteACLNotFound creates DeleteACLNotFound with default headers values
func (*DeleteACLNotFound) SetPayload ¶
func (o *DeleteACLNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete Acl not found response
func (*DeleteACLNotFound) WithPayload ¶
func (o *DeleteACLNotFound) WithPayload(payload *models.Error) *DeleteACLNotFound
WithPayload adds the payload to the delete Acl not found response
func (*DeleteACLNotFound) WriteResponse ¶
func (o *DeleteACLNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteACLParams ¶
type DeleteACLParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*ACL line ID Required: true In: path */ ID int64 /*Parent name Required: true In: query */ ParentName string /*Parent type Required: true In: query */ ParentType string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
DeleteACLParams contains all the bound params for the delete Acl operation typically these are obtained from a http.Request
swagger:parameters deleteAcl
func NewDeleteACLParams ¶
func NewDeleteACLParams() DeleteACLParams
NewDeleteACLParams creates a new DeleteACLParams object with the default values initialized.
func (*DeleteACLParams) BindRequest ¶
func (o *DeleteACLParams) 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 NewDeleteACLParams() beforehand.
type DeleteACLURL ¶
type DeleteACLURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
DeleteACLURL generates an URL for the delete Acl operation
func (*DeleteACLURL) Build ¶
func (o *DeleteACLURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteACLURL) BuildFull ¶
func (o *DeleteACLURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteACLURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteACLURL) SetBasePath ¶
func (o *DeleteACLURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteACLURL) String ¶
func (o *DeleteACLURL) String() string
String returns the string representation of the path with query string
func (*DeleteACLURL) StringFull ¶
func (o *DeleteACLURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteACLURL) WithBasePath ¶
func (o *DeleteACLURL) WithBasePath(bp string) *DeleteACLURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetACL ¶
type GetACL struct { Context *middleware.Context Handler GetACLHandler }
GetACL swagger:route GET /services/haproxy/configuration/acls/{id} ACL getAcl
Return one ACL line ¶
Returns one ACL line configuration by it's ID in the specified parent.
func NewGetACL ¶
func NewGetACL(ctx *middleware.Context, handler GetACLHandler) *GetACL
NewGetACL creates a new http.Handler for the get Acl operation
type GetACLDefault ¶
type GetACLDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetACLDefault General Error
swagger:response getAclDefault
func NewGetACLDefault ¶
func NewGetACLDefault(code int) *GetACLDefault
NewGetACLDefault creates GetACLDefault with default headers values
func (*GetACLDefault) SetPayload ¶
func (o *GetACLDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Acl default response
func (*GetACLDefault) SetStatusCode ¶
func (o *GetACLDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get Acl default response
func (*GetACLDefault) WithPayload ¶
func (o *GetACLDefault) WithPayload(payload *models.Error) *GetACLDefault
WithPayload adds the payload to the get Acl default response
func (*GetACLDefault) WithStatusCode ¶
func (o *GetACLDefault) WithStatusCode(code int) *GetACLDefault
WithStatusCode adds the status to the get Acl default response
func (*GetACLDefault) WriteResponse ¶
func (o *GetACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetACLHandler ¶
type GetACLHandler interface {
Handle(GetACLParams, interface{}) middleware.Responder
}
GetACLHandler interface for that can handle valid get Acl params
type GetACLHandlerFunc ¶
type GetACLHandlerFunc func(GetACLParams, interface{}) middleware.Responder
GetACLHandlerFunc turns a function with the right signature into a get Acl handler
func (GetACLHandlerFunc) Handle ¶
func (fn GetACLHandlerFunc) Handle(params GetACLParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetACLNotFound ¶
GetACLNotFound The specified resource was not found
swagger:response getAclNotFound
func NewGetACLNotFound ¶
func NewGetACLNotFound() *GetACLNotFound
NewGetACLNotFound creates GetACLNotFound with default headers values
func (*GetACLNotFound) SetPayload ¶
func (o *GetACLNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get Acl not found response
func (*GetACLNotFound) WithPayload ¶
func (o *GetACLNotFound) WithPayload(payload *models.Error) *GetACLNotFound
WithPayload adds the payload to the get Acl not found response
func (*GetACLNotFound) WriteResponse ¶
func (o *GetACLNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetACLOK ¶
type GetACLOK struct { /* In: Body */ Payload *GetACLOKBody `json:"body,omitempty"` }
GetACLOK Successful operation
swagger:response getAclOK
func NewGetACLOK ¶
func NewGetACLOK() *GetACLOK
NewGetACLOK creates GetACLOK with default headers values
func (*GetACLOK) SetPayload ¶
func (o *GetACLOK) SetPayload(payload *GetACLOKBody)
SetPayload sets the payload to the get Acl o k response
func (*GetACLOK) WithPayload ¶
func (o *GetACLOK) WithPayload(payload *GetACLOKBody) *GetACLOK
WithPayload adds the payload to the get Acl o k response
func (*GetACLOK) WriteResponse ¶
func (o *GetACLOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetACLOKBody ¶
type GetACLOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.ACL `json:"data,omitempty"` }
GetACLOKBody get ACL o k body swagger:model GetACLOKBody
func (*GetACLOKBody) MarshalBinary ¶
func (o *GetACLOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetACLOKBody) UnmarshalBinary ¶
func (o *GetACLOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetACLParams ¶
type GetACLParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ACL line ID Required: true In: path */ ID int64 /*Parent name Required: true In: query */ ParentName string /*Parent type Required: true In: query */ ParentType string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetACLParams contains all the bound params for the get Acl operation typically these are obtained from a http.Request
swagger:parameters getAcl
func NewGetACLParams ¶
func NewGetACLParams() GetACLParams
NewGetACLParams creates a new GetACLParams object no default values defined in spec.
func (*GetACLParams) BindRequest ¶
func (o *GetACLParams) 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 NewGetACLParams() beforehand.
type GetACLURL ¶
type GetACLURL struct { ID int64 ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetACLURL generates an URL for the get Acl operation
func (*GetACLURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetACLURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*GetACLURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetAcls ¶
type GetAcls struct { Context *middleware.Context Handler GetAclsHandler }
GetAcls swagger:route GET /services/haproxy/configuration/acls ACL getAcls
Return an array of all ACL lines ¶
Returns all ACL lines that are configured in specified parent.
func NewGetAcls ¶
func NewGetAcls(ctx *middleware.Context, handler GetAclsHandler) *GetAcls
NewGetAcls creates a new http.Handler for the get acls operation
type GetAclsDefault ¶
type GetAclsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetAclsDefault General Error
swagger:response getAclsDefault
func NewGetAclsDefault ¶
func NewGetAclsDefault(code int) *GetAclsDefault
NewGetAclsDefault creates GetAclsDefault with default headers values
func (*GetAclsDefault) SetPayload ¶
func (o *GetAclsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get acls default response
func (*GetAclsDefault) SetStatusCode ¶
func (o *GetAclsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get acls default response
func (*GetAclsDefault) WithPayload ¶
func (o *GetAclsDefault) WithPayload(payload *models.Error) *GetAclsDefault
WithPayload adds the payload to the get acls default response
func (*GetAclsDefault) WithStatusCode ¶
func (o *GetAclsDefault) WithStatusCode(code int) *GetAclsDefault
WithStatusCode adds the status to the get acls default response
func (*GetAclsDefault) WriteResponse ¶
func (o *GetAclsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAclsHandler ¶
type GetAclsHandler interface {
Handle(GetAclsParams, interface{}) middleware.Responder
}
GetAclsHandler interface for that can handle valid get acls params
type GetAclsHandlerFunc ¶
type GetAclsHandlerFunc func(GetAclsParams, interface{}) middleware.Responder
GetAclsHandlerFunc turns a function with the right signature into a get acls handler
func (GetAclsHandlerFunc) Handle ¶
func (fn GetAclsHandlerFunc) Handle(params GetAclsParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetAclsOK ¶
type GetAclsOK struct { /* In: Body */ Payload *GetAclsOKBody `json:"body,omitempty"` }
GetAclsOK Successful operation
swagger:response getAclsOK
func NewGetAclsOK ¶
func NewGetAclsOK() *GetAclsOK
NewGetAclsOK creates GetAclsOK with default headers values
func (*GetAclsOK) SetPayload ¶
func (o *GetAclsOK) SetPayload(payload *GetAclsOKBody)
SetPayload sets the payload to the get acls o k response
func (*GetAclsOK) WithPayload ¶
func (o *GetAclsOK) WithPayload(payload *GetAclsOKBody) *GetAclsOK
WithPayload adds the payload to the get acls o k response
func (*GetAclsOK) WriteResponse ¶
func (o *GetAclsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAclsOKBody ¶
type GetAclsOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data models.Acls `json:"data,omitempty"` }
GetAclsOKBody get acls o k body swagger:model GetAclsOKBody
func (*GetAclsOKBody) MarshalBinary ¶
func (o *GetAclsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetAclsOKBody) UnmarshalBinary ¶
func (o *GetAclsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetAclsParams ¶
type GetAclsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parent name Required: true In: query */ ParentName string /*Parent type Required: true In: query */ ParentType string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string }
GetAclsParams contains all the bound params for the get acls operation typically these are obtained from a http.Request
swagger:parameters getAcls
func NewGetAclsParams ¶
func NewGetAclsParams() GetAclsParams
NewGetAclsParams creates a new GetAclsParams object no default values defined in spec.
func (*GetAclsParams) BindRequest ¶
func (o *GetAclsParams) 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 NewGetAclsParams() beforehand.
type GetAclsURL ¶
type GetAclsURL struct { ParentName string ParentType string TransactionID *string // contains filtered or unexported fields }
GetAclsURL generates an URL for the get acls operation
func (*GetAclsURL) Build ¶
func (o *GetAclsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAclsURL) BuildFull ¶
func (o *GetAclsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAclsURL) SetBasePath ¶
func (o *GetAclsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetAclsURL) String ¶
func (o *GetAclsURL) String() string
String returns the string representation of the path with query string
func (*GetAclsURL) StringFull ¶
func (o *GetAclsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAclsURL) WithBasePath ¶
func (o *GetAclsURL) WithBasePath(bp string) *GetAclsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type ReplaceACL ¶
type ReplaceACL struct { Context *middleware.Context Handler ReplaceACLHandler }
ReplaceACL swagger:route PUT /services/haproxy/configuration/acls/{id} ACL replaceAcl
Replace a ACL line ¶
Replaces a ACL line configuration by it's ID in the specified parent.
func NewReplaceACL ¶
func NewReplaceACL(ctx *middleware.Context, handler ReplaceACLHandler) *ReplaceACL
NewReplaceACL creates a new http.Handler for the replace Acl operation
func (*ReplaceACL) ServeHTTP ¶
func (o *ReplaceACL) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaceACLAccepted ¶
type ReplaceACLAccepted struct { /*ID of the requested reload */ ReloadID string `json:"Reload-ID"` /* In: Body */ Payload *models.ACL `json:"body,omitempty"` }
ReplaceACLAccepted Configuration change accepted and reload requested
swagger:response replaceAclAccepted
func NewReplaceACLAccepted ¶
func NewReplaceACLAccepted() *ReplaceACLAccepted
NewReplaceACLAccepted creates ReplaceACLAccepted with default headers values
func (*ReplaceACLAccepted) SetPayload ¶
func (o *ReplaceACLAccepted) SetPayload(payload *models.ACL)
SetPayload sets the payload to the replace Acl accepted response
func (*ReplaceACLAccepted) SetReloadID ¶
func (o *ReplaceACLAccepted) SetReloadID(reloadID string)
SetReloadID sets the reloadId to the replace Acl accepted response
func (*ReplaceACLAccepted) WithPayload ¶
func (o *ReplaceACLAccepted) WithPayload(payload *models.ACL) *ReplaceACLAccepted
WithPayload adds the payload to the replace Acl accepted response
func (*ReplaceACLAccepted) WithReloadID ¶
func (o *ReplaceACLAccepted) WithReloadID(reloadID string) *ReplaceACLAccepted
WithReloadID adds the reloadId to the replace Acl accepted response
func (*ReplaceACLAccepted) WriteResponse ¶
func (o *ReplaceACLAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceACLBadRequest ¶
ReplaceACLBadRequest Bad request
swagger:response replaceAclBadRequest
func NewReplaceACLBadRequest ¶
func NewReplaceACLBadRequest() *ReplaceACLBadRequest
NewReplaceACLBadRequest creates ReplaceACLBadRequest with default headers values
func (*ReplaceACLBadRequest) SetPayload ¶
func (o *ReplaceACLBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Acl bad request response
func (*ReplaceACLBadRequest) WithPayload ¶
func (o *ReplaceACLBadRequest) WithPayload(payload *models.Error) *ReplaceACLBadRequest
WithPayload adds the payload to the replace Acl bad request response
func (*ReplaceACLBadRequest) WriteResponse ¶
func (o *ReplaceACLBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceACLDefault ¶
type ReplaceACLDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ReplaceACLDefault General Error
swagger:response replaceAclDefault
func NewReplaceACLDefault ¶
func NewReplaceACLDefault(code int) *ReplaceACLDefault
NewReplaceACLDefault creates ReplaceACLDefault with default headers values
func (*ReplaceACLDefault) SetPayload ¶
func (o *ReplaceACLDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Acl default response
func (*ReplaceACLDefault) SetStatusCode ¶
func (o *ReplaceACLDefault) SetStatusCode(code int)
SetStatusCode sets the status to the replace Acl default response
func (*ReplaceACLDefault) WithPayload ¶
func (o *ReplaceACLDefault) WithPayload(payload *models.Error) *ReplaceACLDefault
WithPayload adds the payload to the replace Acl default response
func (*ReplaceACLDefault) WithStatusCode ¶
func (o *ReplaceACLDefault) WithStatusCode(code int) *ReplaceACLDefault
WithStatusCode adds the status to the replace Acl default response
func (*ReplaceACLDefault) WriteResponse ¶
func (o *ReplaceACLDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceACLHandler ¶
type ReplaceACLHandler interface {
Handle(ReplaceACLParams, interface{}) middleware.Responder
}
ReplaceACLHandler interface for that can handle valid replace Acl params
type ReplaceACLHandlerFunc ¶
type ReplaceACLHandlerFunc func(ReplaceACLParams, interface{}) middleware.Responder
ReplaceACLHandlerFunc turns a function with the right signature into a replace Acl handler
func (ReplaceACLHandlerFunc) Handle ¶
func (fn ReplaceACLHandlerFunc) Handle(params ReplaceACLParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ReplaceACLNotFound ¶
ReplaceACLNotFound The specified resource was not found
swagger:response replaceAclNotFound
func NewReplaceACLNotFound ¶
func NewReplaceACLNotFound() *ReplaceACLNotFound
NewReplaceACLNotFound creates ReplaceACLNotFound with default headers values
func (*ReplaceACLNotFound) SetPayload ¶
func (o *ReplaceACLNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the replace Acl not found response
func (*ReplaceACLNotFound) WithPayload ¶
func (o *ReplaceACLNotFound) WithPayload(payload *models.Error) *ReplaceACLNotFound
WithPayload adds the payload to the replace Acl not found response
func (*ReplaceACLNotFound) WriteResponse ¶
func (o *ReplaceACLNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceACLOK ¶
ReplaceACLOK ACL line replaced
swagger:response replaceAclOK
func NewReplaceACLOK ¶
func NewReplaceACLOK() *ReplaceACLOK
NewReplaceACLOK creates ReplaceACLOK with default headers values
func (*ReplaceACLOK) SetPayload ¶
func (o *ReplaceACLOK) SetPayload(payload *models.ACL)
SetPayload sets the payload to the replace Acl o k response
func (*ReplaceACLOK) WithPayload ¶
func (o *ReplaceACLOK) WithPayload(payload *models.ACL) *ReplaceACLOK
WithPayload adds the payload to the replace Acl o k response
func (*ReplaceACLOK) WriteResponse ¶
func (o *ReplaceACLOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaceACLParams ¶
type ReplaceACLParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Data *models.ACL /*If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. In: query Default: false */ ForceReload *bool /*ACL line ID Required: true In: path */ ID int64 /*Parent name Required: true In: query */ ParentName string /*Parent type Required: true In: query */ ParentType string /*ID of the transaction where we want to add the operation. Cannot be used when version is specified. In: query */ TransactionID *string /*Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. In: query */ Version *int64 }
ReplaceACLParams contains all the bound params for the replace Acl operation typically these are obtained from a http.Request
swagger:parameters replaceAcl
func NewReplaceACLParams ¶
func NewReplaceACLParams() ReplaceACLParams
NewReplaceACLParams creates a new ReplaceACLParams object with the default values initialized.
func (*ReplaceACLParams) BindRequest ¶
func (o *ReplaceACLParams) 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 NewReplaceACLParams() beforehand.
type ReplaceACLURL ¶
type ReplaceACLURL struct { ID int64 ForceReload *bool ParentName string ParentType string TransactionID *string Version *int64 // contains filtered or unexported fields }
ReplaceACLURL generates an URL for the replace Acl operation
func (*ReplaceACLURL) Build ¶
func (o *ReplaceACLURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaceACLURL) BuildFull ¶
func (o *ReplaceACLURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaceACLURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaceACLURL) SetBasePath ¶
func (o *ReplaceACLURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*ReplaceACLURL) String ¶
func (o *ReplaceACLURL) String() string
String returns the string representation of the path with query string
func (*ReplaceACLURL) StringFull ¶
func (o *ReplaceACLURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaceACLURL) WithBasePath ¶
func (o *ReplaceACLURL) WithBasePath(bp string) *ReplaceACLURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- create_acl.go
- create_acl_parameters.go
- create_acl_responses.go
- create_acl_urlbuilder.go
- delete_acl.go
- delete_acl_parameters.go
- delete_acl_responses.go
- delete_acl_urlbuilder.go
- get_acl.go
- get_acl_parameters.go
- get_acl_responses.go
- get_acl_urlbuilder.go
- get_acls.go
- get_acls_parameters.go
- get_acls_responses.go
- get_acls_urlbuilder.go
- replace_acl.go
- replace_acl_parameters.go
- replace_acl_responses.go
- replace_acl_urlbuilder.go