group

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddGroupCreatedCode int = 201

AddGroupCreatedCode is the HTTP code returned for type AddGroupCreated

View Source
const GroupInfoOKCode int = 200

GroupInfoOKCode is the HTTP code returned for type GroupInfoOK

View Source
const ListGroupsOKCode int = 200

ListGroupsOKCode is the HTTP code returned for type ListGroupsOK

View Source
const RemoveGroupNoContentCode int = 204

RemoveGroupNoContentCode is the HTTP code returned for type RemoveGroupNoContent

View Source
const UpdateGroupOKCode int = 200

UpdateGroupOKCode is the HTTP code returned for type UpdateGroupOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddGroup

type AddGroup struct {
	Context *middleware.Context
	Handler AddGroupHandler
}
AddGroup swagger:route POST /groups Group addGroup

Add Group

func NewAddGroup

func NewAddGroup(ctx *middleware.Context, handler AddGroupHandler) *AddGroup

NewAddGroup creates a new http.Handler for the add group operation

func (*AddGroup) ServeHTTP

func (o *AddGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddGroupCreated

type AddGroupCreated struct {
}

AddGroupCreated A successful response.

swagger:response addGroupCreated

func NewAddGroupCreated

func NewAddGroupCreated() *AddGroupCreated

NewAddGroupCreated creates AddGroupCreated with default headers values

func (*AddGroupCreated) WriteResponse

func (o *AddGroupCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddGroupDefault

type AddGroupDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddGroupDefault Generic error response.

swagger:response addGroupDefault

func NewAddGroupDefault

func NewAddGroupDefault(code int) *AddGroupDefault

NewAddGroupDefault creates AddGroupDefault with default headers values

func (*AddGroupDefault) SetPayload

func (o *AddGroupDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the add group default response

func (*AddGroupDefault) SetStatusCode

func (o *AddGroupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add group default response

func (*AddGroupDefault) WithPayload

func (o *AddGroupDefault) WithPayload(payload *models.Error) *AddGroupDefault

WithPayload adds the payload to the add group default response

func (*AddGroupDefault) WithStatusCode

func (o *AddGroupDefault) WithStatusCode(code int) *AddGroupDefault

WithStatusCode adds the status to the add group default response

func (*AddGroupDefault) WriteResponse

func (o *AddGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddGroupHandler

type AddGroupHandler interface {
	Handle(AddGroupParams, *models.Principal) middleware.Responder
}

AddGroupHandler interface for that can handle valid add group params

type AddGroupHandlerFunc

type AddGroupHandlerFunc func(AddGroupParams, *models.Principal) middleware.Responder

AddGroupHandlerFunc turns a function with the right signature into a add group handler

func (AddGroupHandlerFunc) Handle

Handle executing the request and returning a response

type AddGroupParams

type AddGroupParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.AddGroupRequest
}

AddGroupParams contains all the bound params for the add group operation typically these are obtained from a http.Request

swagger:parameters AddGroup

func NewAddGroupParams

func NewAddGroupParams() AddGroupParams

NewAddGroupParams creates a new AddGroupParams object

There are no default values defined in the spec.

func (*AddGroupParams) BindRequest

func (o *AddGroupParams) 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 NewAddGroupParams() beforehand.

type AddGroupURL

type AddGroupURL struct {
	// contains filtered or unexported fields
}

AddGroupURL generates an URL for the add group operation

func (*AddGroupURL) Build

func (o *AddGroupURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddGroupURL) BuildFull

func (o *AddGroupURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddGroupURL) Must

func (o *AddGroupURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddGroupURL) SetBasePath

func (o *AddGroupURL) 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 (*AddGroupURL) String

func (o *AddGroupURL) String() string

String returns the string representation of the path with query string

func (*AddGroupURL) StringFull

func (o *AddGroupURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddGroupURL) WithBasePath

func (o *AddGroupURL) WithBasePath(bp string) *AddGroupURL

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 GroupInfo

type GroupInfo struct {
	Context *middleware.Context
	Handler GroupInfoHandler
}
GroupInfo swagger:route GET /group/{name} Group groupInfo

Group info

func NewGroupInfo

func NewGroupInfo(ctx *middleware.Context, handler GroupInfoHandler) *GroupInfo

NewGroupInfo creates a new http.Handler for the group info operation

func (*GroupInfo) ServeHTTP

func (o *GroupInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GroupInfoDefault

type GroupInfoDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GroupInfoDefault Generic error response.

swagger:response groupInfoDefault

func NewGroupInfoDefault

func NewGroupInfoDefault(code int) *GroupInfoDefault

NewGroupInfoDefault creates GroupInfoDefault with default headers values

func (*GroupInfoDefault) SetPayload

func (o *GroupInfoDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the group info default response

func (*GroupInfoDefault) SetStatusCode

func (o *GroupInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the group info default response

func (*GroupInfoDefault) WithPayload

func (o *GroupInfoDefault) WithPayload(payload *models.Error) *GroupInfoDefault

WithPayload adds the payload to the group info default response

func (*GroupInfoDefault) WithStatusCode

func (o *GroupInfoDefault) WithStatusCode(code int) *GroupInfoDefault

WithStatusCode adds the status to the group info default response

func (*GroupInfoDefault) WriteResponse

func (o *GroupInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GroupInfoHandler

type GroupInfoHandler interface {
	Handle(GroupInfoParams, *models.Principal) middleware.Responder
}

GroupInfoHandler interface for that can handle valid group info params

type GroupInfoHandlerFunc

type GroupInfoHandlerFunc func(GroupInfoParams, *models.Principal) middleware.Responder

GroupInfoHandlerFunc turns a function with the right signature into a group info handler

func (GroupInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GroupInfoOK

type GroupInfoOK struct {

	/*
	  In: Body
	*/
	Payload *models.Group `json:"body,omitempty"`
}

GroupInfoOK A successful response.

swagger:response groupInfoOK

func NewGroupInfoOK

func NewGroupInfoOK() *GroupInfoOK

NewGroupInfoOK creates GroupInfoOK with default headers values

func (*GroupInfoOK) SetPayload

func (o *GroupInfoOK) SetPayload(payload *models.Group)

SetPayload sets the payload to the group info o k response

func (*GroupInfoOK) WithPayload

func (o *GroupInfoOK) WithPayload(payload *models.Group) *GroupInfoOK

WithPayload adds the payload to the group info o k response

func (*GroupInfoOK) WriteResponse

func (o *GroupInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GroupInfoParams

type GroupInfoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	Name string
}

GroupInfoParams contains all the bound params for the group info operation typically these are obtained from a http.Request

swagger:parameters GroupInfo

func NewGroupInfoParams

func NewGroupInfoParams() GroupInfoParams

NewGroupInfoParams creates a new GroupInfoParams object

There are no default values defined in the spec.

func (*GroupInfoParams) BindRequest

func (o *GroupInfoParams) 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 NewGroupInfoParams() beforehand.

type GroupInfoURL

type GroupInfoURL struct {
	Name string
	// contains filtered or unexported fields
}

GroupInfoURL generates an URL for the group info operation

func (*GroupInfoURL) Build

func (o *GroupInfoURL) Build() (*url.URL, error)

Build a url path and query string

func (*GroupInfoURL) BuildFull

func (o *GroupInfoURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GroupInfoURL) Must

func (o *GroupInfoURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GroupInfoURL) SetBasePath

func (o *GroupInfoURL) 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 (*GroupInfoURL) String

func (o *GroupInfoURL) String() string

String returns the string representation of the path with query string

func (*GroupInfoURL) StringFull

func (o *GroupInfoURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GroupInfoURL) WithBasePath

func (o *GroupInfoURL) WithBasePath(bp string) *GroupInfoURL

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 ListGroups

type ListGroups struct {
	Context *middleware.Context
	Handler ListGroupsHandler
}
ListGroups swagger:route GET /groups Group listGroups

List Groups

func NewListGroups

func NewListGroups(ctx *middleware.Context, handler ListGroupsHandler) *ListGroups

NewListGroups creates a new http.Handler for the list groups operation

func (*ListGroups) ServeHTTP

func (o *ListGroups) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListGroupsDefault

type ListGroupsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListGroupsDefault Generic error response.

swagger:response listGroupsDefault

func NewListGroupsDefault

func NewListGroupsDefault(code int) *ListGroupsDefault

NewListGroupsDefault creates ListGroupsDefault with default headers values

func (*ListGroupsDefault) SetPayload

func (o *ListGroupsDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the list groups default response

func (*ListGroupsDefault) SetStatusCode

func (o *ListGroupsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list groups default response

func (*ListGroupsDefault) WithPayload

func (o *ListGroupsDefault) WithPayload(payload *models.Error) *ListGroupsDefault

WithPayload adds the payload to the list groups default response

func (*ListGroupsDefault) WithStatusCode

func (o *ListGroupsDefault) WithStatusCode(code int) *ListGroupsDefault

WithStatusCode adds the status to the list groups default response

func (*ListGroupsDefault) WriteResponse

func (o *ListGroupsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListGroupsHandler

type ListGroupsHandler interface {
	Handle(ListGroupsParams, *models.Principal) middleware.Responder
}

ListGroupsHandler interface for that can handle valid list groups params

type ListGroupsHandlerFunc

type ListGroupsHandlerFunc func(ListGroupsParams, *models.Principal) middleware.Responder

ListGroupsHandlerFunc turns a function with the right signature into a list groups handler

func (ListGroupsHandlerFunc) Handle

Handle executing the request and returning a response

type ListGroupsOK

type ListGroupsOK struct {

	/*
	  In: Body
	*/
	Payload *models.ListGroupsResponse `json:"body,omitempty"`
}

ListGroupsOK A successful response.

swagger:response listGroupsOK

func NewListGroupsOK

func NewListGroupsOK() *ListGroupsOK

NewListGroupsOK creates ListGroupsOK with default headers values

func (*ListGroupsOK) SetPayload

func (o *ListGroupsOK) SetPayload(payload *models.ListGroupsResponse)

SetPayload sets the payload to the list groups o k response

func (*ListGroupsOK) WithPayload

func (o *ListGroupsOK) WithPayload(payload *models.ListGroupsResponse) *ListGroupsOK

WithPayload adds the payload to the list groups o k response

func (*ListGroupsOK) WriteResponse

func (o *ListGroupsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListGroupsParams

type ListGroupsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Limit *int32
	/*
	  In: query
	*/
	Offset *int32
}

ListGroupsParams contains all the bound params for the list groups operation typically these are obtained from a http.Request

swagger:parameters ListGroups

func NewListGroupsParams

func NewListGroupsParams() ListGroupsParams

NewListGroupsParams creates a new ListGroupsParams object

There are no default values defined in the spec.

func (*ListGroupsParams) BindRequest

func (o *ListGroupsParams) 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 NewListGroupsParams() beforehand.

type ListGroupsURL

type ListGroupsURL struct {
	Limit  *int32
	Offset *int32
	// contains filtered or unexported fields
}

ListGroupsURL generates an URL for the list groups operation

func (*ListGroupsURL) Build

func (o *ListGroupsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListGroupsURL) BuildFull

func (o *ListGroupsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListGroupsURL) Must

func (o *ListGroupsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListGroupsURL) SetBasePath

func (o *ListGroupsURL) 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 (*ListGroupsURL) String

func (o *ListGroupsURL) String() string

String returns the string representation of the path with query string

func (*ListGroupsURL) StringFull

func (o *ListGroupsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListGroupsURL) WithBasePath

func (o *ListGroupsURL) WithBasePath(bp string) *ListGroupsURL

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 RemoveGroup

type RemoveGroup struct {
	Context *middleware.Context
	Handler RemoveGroupHandler
}
RemoveGroup swagger:route DELETE /group/{name} Group removeGroup

Remove group

func NewRemoveGroup

func NewRemoveGroup(ctx *middleware.Context, handler RemoveGroupHandler) *RemoveGroup

NewRemoveGroup creates a new http.Handler for the remove group operation

func (*RemoveGroup) ServeHTTP

func (o *RemoveGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RemoveGroupDefault

type RemoveGroupDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

RemoveGroupDefault Generic error response.

swagger:response removeGroupDefault

func NewRemoveGroupDefault

func NewRemoveGroupDefault(code int) *RemoveGroupDefault

NewRemoveGroupDefault creates RemoveGroupDefault with default headers values

func (*RemoveGroupDefault) SetPayload

func (o *RemoveGroupDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the remove group default response

func (*RemoveGroupDefault) SetStatusCode

func (o *RemoveGroupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the remove group default response

func (*RemoveGroupDefault) WithPayload

func (o *RemoveGroupDefault) WithPayload(payload *models.Error) *RemoveGroupDefault

WithPayload adds the payload to the remove group default response

func (*RemoveGroupDefault) WithStatusCode

func (o *RemoveGroupDefault) WithStatusCode(code int) *RemoveGroupDefault

WithStatusCode adds the status to the remove group default response

func (*RemoveGroupDefault) WriteResponse

func (o *RemoveGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveGroupHandler

type RemoveGroupHandler interface {
	Handle(RemoveGroupParams, *models.Principal) middleware.Responder
}

RemoveGroupHandler interface for that can handle valid remove group params

type RemoveGroupHandlerFunc

type RemoveGroupHandlerFunc func(RemoveGroupParams, *models.Principal) middleware.Responder

RemoveGroupHandlerFunc turns a function with the right signature into a remove group handler

func (RemoveGroupHandlerFunc) Handle

Handle executing the request and returning a response

type RemoveGroupNoContent

type RemoveGroupNoContent struct {
}

RemoveGroupNoContent A successful response.

swagger:response removeGroupNoContent

func NewRemoveGroupNoContent

func NewRemoveGroupNoContent() *RemoveGroupNoContent

NewRemoveGroupNoContent creates RemoveGroupNoContent with default headers values

func (*RemoveGroupNoContent) WriteResponse

func (o *RemoveGroupNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemoveGroupParams

type RemoveGroupParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	Name string
}

RemoveGroupParams contains all the bound params for the remove group operation typically these are obtained from a http.Request

swagger:parameters RemoveGroup

func NewRemoveGroupParams

func NewRemoveGroupParams() RemoveGroupParams

NewRemoveGroupParams creates a new RemoveGroupParams object

There are no default values defined in the spec.

func (*RemoveGroupParams) BindRequest

func (o *RemoveGroupParams) 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 NewRemoveGroupParams() beforehand.

type RemoveGroupURL

type RemoveGroupURL struct {
	Name string
	// contains filtered or unexported fields
}

RemoveGroupURL generates an URL for the remove group operation

func (*RemoveGroupURL) Build

func (o *RemoveGroupURL) Build() (*url.URL, error)

Build a url path and query string

func (*RemoveGroupURL) BuildFull

func (o *RemoveGroupURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RemoveGroupURL) Must

func (o *RemoveGroupURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*RemoveGroupURL) SetBasePath

func (o *RemoveGroupURL) 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 (*RemoveGroupURL) String

func (o *RemoveGroupURL) String() string

String returns the string representation of the path with query string

func (*RemoveGroupURL) StringFull

func (o *RemoveGroupURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RemoveGroupURL) WithBasePath

func (o *RemoveGroupURL) WithBasePath(bp string) *RemoveGroupURL

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 UpdateGroup

type UpdateGroup struct {
	Context *middleware.Context
	Handler UpdateGroupHandler
}
UpdateGroup swagger:route PUT /group/{name} Group updateGroup

Update Group Members or Status

func NewUpdateGroup

func NewUpdateGroup(ctx *middleware.Context, handler UpdateGroupHandler) *UpdateGroup

NewUpdateGroup creates a new http.Handler for the update group operation

func (*UpdateGroup) ServeHTTP

func (o *UpdateGroup) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateGroupDefault

type UpdateGroupDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateGroupDefault Generic error response.

swagger:response updateGroupDefault

func NewUpdateGroupDefault

func NewUpdateGroupDefault(code int) *UpdateGroupDefault

NewUpdateGroupDefault creates UpdateGroupDefault with default headers values

func (*UpdateGroupDefault) SetPayload

func (o *UpdateGroupDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update group default response

func (*UpdateGroupDefault) SetStatusCode

func (o *UpdateGroupDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update group default response

func (*UpdateGroupDefault) WithPayload

func (o *UpdateGroupDefault) WithPayload(payload *models.Error) *UpdateGroupDefault

WithPayload adds the payload to the update group default response

func (*UpdateGroupDefault) WithStatusCode

func (o *UpdateGroupDefault) WithStatusCode(code int) *UpdateGroupDefault

WithStatusCode adds the status to the update group default response

func (*UpdateGroupDefault) WriteResponse

func (o *UpdateGroupDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateGroupHandler

type UpdateGroupHandler interface {
	Handle(UpdateGroupParams, *models.Principal) middleware.Responder
}

UpdateGroupHandler interface for that can handle valid update group params

type UpdateGroupHandlerFunc

type UpdateGroupHandlerFunc func(UpdateGroupParams, *models.Principal) middleware.Responder

UpdateGroupHandlerFunc turns a function with the right signature into a update group handler

func (UpdateGroupHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateGroupOK

type UpdateGroupOK struct {

	/*
	  In: Body
	*/
	Payload *models.Group `json:"body,omitempty"`
}

UpdateGroupOK A successful response.

swagger:response updateGroupOK

func NewUpdateGroupOK

func NewUpdateGroupOK() *UpdateGroupOK

NewUpdateGroupOK creates UpdateGroupOK with default headers values

func (*UpdateGroupOK) SetPayload

func (o *UpdateGroupOK) SetPayload(payload *models.Group)

SetPayload sets the payload to the update group o k response

func (*UpdateGroupOK) WithPayload

func (o *UpdateGroupOK) WithPayload(payload *models.Group) *UpdateGroupOK

WithPayload adds the payload to the update group o k response

func (*UpdateGroupOK) WriteResponse

func (o *UpdateGroupOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateGroupParams

type UpdateGroupParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.UpdateGroupRequest
	/*
	  Required: true
	  In: path
	*/
	Name string
}

UpdateGroupParams contains all the bound params for the update group operation typically these are obtained from a http.Request

swagger:parameters UpdateGroup

func NewUpdateGroupParams

func NewUpdateGroupParams() UpdateGroupParams

NewUpdateGroupParams creates a new UpdateGroupParams object

There are no default values defined in the spec.

func (*UpdateGroupParams) BindRequest

func (o *UpdateGroupParams) 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 NewUpdateGroupParams() beforehand.

type UpdateGroupURL

type UpdateGroupURL struct {
	Name string
	// contains filtered or unexported fields
}

UpdateGroupURL generates an URL for the update group operation

func (*UpdateGroupURL) Build

func (o *UpdateGroupURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateGroupURL) BuildFull

func (o *UpdateGroupURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateGroupURL) Must

func (o *UpdateGroupURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateGroupURL) SetBasePath

func (o *UpdateGroupURL) 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 (*UpdateGroupURL) String

func (o *UpdateGroupURL) String() string

String returns the string representation of the path with query string

func (*UpdateGroupURL) StringFull

func (o *UpdateGroupURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateGroupURL) WithBasePath

func (o *UpdateGroupURL) WithBasePath(bp string) *UpdateGroupURL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL