user

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddUserCreatedCode int = 201

AddUserCreatedCode is the HTTP code returned for type AddUserCreated

View Source
const BulkUpdateUsersGroupsOKCode int = 200

BulkUpdateUsersGroupsOKCode is the HTTP code returned for type BulkUpdateUsersGroupsOK

View Source
const CheckUserServiceAccountsOKCode int = 200

CheckUserServiceAccountsOKCode is the HTTP code returned for type CheckUserServiceAccountsOK

View Source
const CreateAUserServiceAccountCreatedCode int = 201

CreateAUserServiceAccountCreatedCode is the HTTP code returned for type CreateAUserServiceAccountCreated

View Source
const CreateServiceAccountCredentialsCreatedCode int = 201

CreateServiceAccountCredentialsCreatedCode is the HTTP code returned for type CreateServiceAccountCredentialsCreated

View Source
const GetUserInfoOKCode int = 200

GetUserInfoOKCode is the HTTP code returned for type GetUserInfoOK

View Source
const ListAUserServiceAccountsOKCode int = 200

ListAUserServiceAccountsOKCode is the HTTP code returned for type ListAUserServiceAccountsOK

View Source
const ListUsersOKCode int = 200

ListUsersOKCode is the HTTP code returned for type ListUsersOK

View Source
const RemoveUserNoContentCode int = 204

RemoveUserNoContentCode is the HTTP code returned for type RemoveUserNoContent

View Source
const UpdateUserGroupsOKCode int = 200

UpdateUserGroupsOKCode is the HTTP code returned for type UpdateUserGroupsOK

View Source
const UpdateUserInfoOKCode int = 200

UpdateUserInfoOKCode is the HTTP code returned for type UpdateUserInfoOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUser

type AddUser struct {
	Context *middleware.Context
	Handler AddUserHandler
}
AddUser swagger:route POST /users User addUser

Add User

func NewAddUser

func NewAddUser(ctx *middleware.Context, handler AddUserHandler) *AddUser

NewAddUser creates a new http.Handler for the add user operation

func (*AddUser) ServeHTTP

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

type AddUserCreated

type AddUserCreated struct {

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

AddUserCreated A successful response.

swagger:response addUserCreated

func NewAddUserCreated

func NewAddUserCreated() *AddUserCreated

NewAddUserCreated creates AddUserCreated with default headers values

func (*AddUserCreated) SetPayload

func (o *AddUserCreated) SetPayload(payload *models.User)

SetPayload sets the payload to the add user created response

func (*AddUserCreated) WithPayload

func (o *AddUserCreated) WithPayload(payload *models.User) *AddUserCreated

WithPayload adds the payload to the add user created response

func (*AddUserCreated) WriteResponse

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

WriteResponse to the client

type AddUserDefault

type AddUserDefault struct {

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

AddUserDefault Generic error response.

swagger:response addUserDefault

func NewAddUserDefault

func NewAddUserDefault(code int) *AddUserDefault

NewAddUserDefault creates AddUserDefault with default headers values

func (*AddUserDefault) SetPayload

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

SetPayload sets the payload to the add user default response

func (*AddUserDefault) SetStatusCode

func (o *AddUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add user default response

func (*AddUserDefault) WithPayload

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

WithPayload adds the payload to the add user default response

func (*AddUserDefault) WithStatusCode

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

WithStatusCode adds the status to the add user default response

func (*AddUserDefault) WriteResponse

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

WriteResponse to the client

type AddUserHandler

type AddUserHandler interface {
	Handle(AddUserParams, *models.Principal) middleware.Responder
}

AddUserHandler interface for that can handle valid add user params

type AddUserHandlerFunc

type AddUserHandlerFunc func(AddUserParams, *models.Principal) middleware.Responder

AddUserHandlerFunc turns a function with the right signature into a add user handler

func (AddUserHandlerFunc) Handle

func (fn AddUserHandlerFunc) Handle(params AddUserParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type AddUserParams

type AddUserParams struct {

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

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

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

swagger:parameters AddUser

func NewAddUserParams

func NewAddUserParams() AddUserParams

NewAddUserParams creates a new AddUserParams object

There are no default values defined in the spec.

func (*AddUserParams) BindRequest

func (o *AddUserParams) 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 NewAddUserParams() beforehand.

type AddUserURL

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

AddUserURL generates an URL for the add user operation

func (*AddUserURL) Build

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

Build a url path and query string

func (*AddUserURL) BuildFull

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

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

func (*AddUserURL) Must

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

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

func (*AddUserURL) SetBasePath

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

func (o *AddUserURL) String() string

String returns the string representation of the path with query string

func (*AddUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddUserURL) WithBasePath

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

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 BulkUpdateUsersGroups

type BulkUpdateUsersGroups struct {
	Context *middleware.Context
	Handler BulkUpdateUsersGroupsHandler
}
BulkUpdateUsersGroups swagger:route PUT /users-groups-bulk User bulkUpdateUsersGroups

Bulk functionality to Add Users to Groups

func NewBulkUpdateUsersGroups

func NewBulkUpdateUsersGroups(ctx *middleware.Context, handler BulkUpdateUsersGroupsHandler) *BulkUpdateUsersGroups

NewBulkUpdateUsersGroups creates a new http.Handler for the bulk update users groups operation

func (*BulkUpdateUsersGroups) ServeHTTP

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

type BulkUpdateUsersGroupsDefault

type BulkUpdateUsersGroupsDefault struct {

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

BulkUpdateUsersGroupsDefault Generic error response.

swagger:response bulkUpdateUsersGroupsDefault

func NewBulkUpdateUsersGroupsDefault

func NewBulkUpdateUsersGroupsDefault(code int) *BulkUpdateUsersGroupsDefault

NewBulkUpdateUsersGroupsDefault creates BulkUpdateUsersGroupsDefault with default headers values

func (*BulkUpdateUsersGroupsDefault) SetPayload

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

SetPayload sets the payload to the bulk update users groups default response

func (*BulkUpdateUsersGroupsDefault) SetStatusCode

func (o *BulkUpdateUsersGroupsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the bulk update users groups default response

func (*BulkUpdateUsersGroupsDefault) WithPayload

WithPayload adds the payload to the bulk update users groups default response

func (*BulkUpdateUsersGroupsDefault) WithStatusCode

WithStatusCode adds the status to the bulk update users groups default response

func (*BulkUpdateUsersGroupsDefault) WriteResponse

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

WriteResponse to the client

type BulkUpdateUsersGroupsHandler

type BulkUpdateUsersGroupsHandler interface {
	Handle(BulkUpdateUsersGroupsParams, *models.Principal) middleware.Responder
}

BulkUpdateUsersGroupsHandler interface for that can handle valid bulk update users groups params

type BulkUpdateUsersGroupsHandlerFunc

type BulkUpdateUsersGroupsHandlerFunc func(BulkUpdateUsersGroupsParams, *models.Principal) middleware.Responder

BulkUpdateUsersGroupsHandlerFunc turns a function with the right signature into a bulk update users groups handler

func (BulkUpdateUsersGroupsHandlerFunc) Handle

Handle executing the request and returning a response

type BulkUpdateUsersGroupsOK

type BulkUpdateUsersGroupsOK struct {
}

BulkUpdateUsersGroupsOK A successful response.

swagger:response bulkUpdateUsersGroupsOK

func NewBulkUpdateUsersGroupsOK

func NewBulkUpdateUsersGroupsOK() *BulkUpdateUsersGroupsOK

NewBulkUpdateUsersGroupsOK creates BulkUpdateUsersGroupsOK with default headers values

func (*BulkUpdateUsersGroupsOK) WriteResponse

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

WriteResponse to the client

type BulkUpdateUsersGroupsParams

type BulkUpdateUsersGroupsParams struct {

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

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

BulkUpdateUsersGroupsParams contains all the bound params for the bulk update users groups operation typically these are obtained from a http.Request

swagger:parameters BulkUpdateUsersGroups

func NewBulkUpdateUsersGroupsParams

func NewBulkUpdateUsersGroupsParams() BulkUpdateUsersGroupsParams

NewBulkUpdateUsersGroupsParams creates a new BulkUpdateUsersGroupsParams object

There are no default values defined in the spec.

func (*BulkUpdateUsersGroupsParams) BindRequest

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 NewBulkUpdateUsersGroupsParams() beforehand.

type BulkUpdateUsersGroupsURL

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

BulkUpdateUsersGroupsURL generates an URL for the bulk update users groups operation

func (*BulkUpdateUsersGroupsURL) Build

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

Build a url path and query string

func (*BulkUpdateUsersGroupsURL) BuildFull

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

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

func (*BulkUpdateUsersGroupsURL) Must

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

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

func (*BulkUpdateUsersGroupsURL) SetBasePath

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

func (o *BulkUpdateUsersGroupsURL) String() string

String returns the string representation of the path with query string

func (*BulkUpdateUsersGroupsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*BulkUpdateUsersGroupsURL) 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 CheckUserServiceAccounts

type CheckUserServiceAccounts struct {
	Context *middleware.Context
	Handler CheckUserServiceAccountsHandler
}
CheckUserServiceAccounts swagger:route POST /users/service-accounts User checkUserServiceAccounts

Check number of service accounts for each user specified

func NewCheckUserServiceAccounts

func NewCheckUserServiceAccounts(ctx *middleware.Context, handler CheckUserServiceAccountsHandler) *CheckUserServiceAccounts

NewCheckUserServiceAccounts creates a new http.Handler for the check user service accounts operation

func (*CheckUserServiceAccounts) ServeHTTP

type CheckUserServiceAccountsDefault

type CheckUserServiceAccountsDefault struct {

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

CheckUserServiceAccountsDefault Generic error response.

swagger:response checkUserServiceAccountsDefault

func NewCheckUserServiceAccountsDefault

func NewCheckUserServiceAccountsDefault(code int) *CheckUserServiceAccountsDefault

NewCheckUserServiceAccountsDefault creates CheckUserServiceAccountsDefault with default headers values

func (*CheckUserServiceAccountsDefault) SetPayload

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

SetPayload sets the payload to the check user service accounts default response

func (*CheckUserServiceAccountsDefault) SetStatusCode

func (o *CheckUserServiceAccountsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the check user service accounts default response

func (*CheckUserServiceAccountsDefault) WithPayload

WithPayload adds the payload to the check user service accounts default response

func (*CheckUserServiceAccountsDefault) WithStatusCode

WithStatusCode adds the status to the check user service accounts default response

func (*CheckUserServiceAccountsDefault) WriteResponse

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

WriteResponse to the client

type CheckUserServiceAccountsHandler

type CheckUserServiceAccountsHandler interface {
	Handle(CheckUserServiceAccountsParams, *models.Principal) middleware.Responder
}

CheckUserServiceAccountsHandler interface for that can handle valid check user service accounts params

type CheckUserServiceAccountsHandlerFunc

type CheckUserServiceAccountsHandlerFunc func(CheckUserServiceAccountsParams, *models.Principal) middleware.Responder

CheckUserServiceAccountsHandlerFunc turns a function with the right signature into a check user service accounts handler

func (CheckUserServiceAccountsHandlerFunc) Handle

Handle executing the request and returning a response

type CheckUserServiceAccountsOK

type CheckUserServiceAccountsOK struct {

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

CheckUserServiceAccountsOK A successful response.

swagger:response checkUserServiceAccountsOK

func NewCheckUserServiceAccountsOK

func NewCheckUserServiceAccountsOK() *CheckUserServiceAccountsOK

NewCheckUserServiceAccountsOK creates CheckUserServiceAccountsOK with default headers values

func (*CheckUserServiceAccountsOK) SetPayload

SetPayload sets the payload to the check user service accounts o k response

func (*CheckUserServiceAccountsOK) WithPayload

WithPayload adds the payload to the check user service accounts o k response

func (*CheckUserServiceAccountsOK) WriteResponse

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

WriteResponse to the client

type CheckUserServiceAccountsParams

type CheckUserServiceAccountsParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	SelectedUsers []string
}

CheckUserServiceAccountsParams contains all the bound params for the check user service accounts operation typically these are obtained from a http.Request

swagger:parameters CheckUserServiceAccounts

func NewCheckUserServiceAccountsParams

func NewCheckUserServiceAccountsParams() CheckUserServiceAccountsParams

NewCheckUserServiceAccountsParams creates a new CheckUserServiceAccountsParams object

There are no default values defined in the spec.

func (*CheckUserServiceAccountsParams) BindRequest

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 NewCheckUserServiceAccountsParams() beforehand.

type CheckUserServiceAccountsURL

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

CheckUserServiceAccountsURL generates an URL for the check user service accounts operation

func (*CheckUserServiceAccountsURL) Build

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

Build a url path and query string

func (*CheckUserServiceAccountsURL) BuildFull

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

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

func (*CheckUserServiceAccountsURL) Must

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

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

func (*CheckUserServiceAccountsURL) SetBasePath

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

func (o *CheckUserServiceAccountsURL) String() string

String returns the string representation of the path with query string

func (*CheckUserServiceAccountsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CheckUserServiceAccountsURL) 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 CreateAUserServiceAccount

type CreateAUserServiceAccount struct {
	Context *middleware.Context
	Handler CreateAUserServiceAccountHandler
}
CreateAUserServiceAccount swagger:route POST /user/{name}/service-accounts User createAUserServiceAccount

Create Service Account for User

func NewCreateAUserServiceAccount

func NewCreateAUserServiceAccount(ctx *middleware.Context, handler CreateAUserServiceAccountHandler) *CreateAUserServiceAccount

NewCreateAUserServiceAccount creates a new http.Handler for the create a user service account operation

func (*CreateAUserServiceAccount) ServeHTTP

type CreateAUserServiceAccountCreated

type CreateAUserServiceAccountCreated struct {

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

CreateAUserServiceAccountCreated A successful response.

swagger:response createAUserServiceAccountCreated

func NewCreateAUserServiceAccountCreated

func NewCreateAUserServiceAccountCreated() *CreateAUserServiceAccountCreated

NewCreateAUserServiceAccountCreated creates CreateAUserServiceAccountCreated with default headers values

func (*CreateAUserServiceAccountCreated) SetPayload

SetPayload sets the payload to the create a user service account created response

func (*CreateAUserServiceAccountCreated) WithPayload

WithPayload adds the payload to the create a user service account created response

func (*CreateAUserServiceAccountCreated) WriteResponse

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

WriteResponse to the client

type CreateAUserServiceAccountDefault

type CreateAUserServiceAccountDefault struct {

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

CreateAUserServiceAccountDefault Generic error response.

swagger:response createAUserServiceAccountDefault

func NewCreateAUserServiceAccountDefault

func NewCreateAUserServiceAccountDefault(code int) *CreateAUserServiceAccountDefault

NewCreateAUserServiceAccountDefault creates CreateAUserServiceAccountDefault with default headers values

func (*CreateAUserServiceAccountDefault) SetPayload

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

SetPayload sets the payload to the create a user service account default response

func (*CreateAUserServiceAccountDefault) SetStatusCode

func (o *CreateAUserServiceAccountDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create a user service account default response

func (*CreateAUserServiceAccountDefault) WithPayload

WithPayload adds the payload to the create a user service account default response

func (*CreateAUserServiceAccountDefault) WithStatusCode

WithStatusCode adds the status to the create a user service account default response

func (*CreateAUserServiceAccountDefault) WriteResponse

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

WriteResponse to the client

type CreateAUserServiceAccountHandler

type CreateAUserServiceAccountHandler interface {
	Handle(CreateAUserServiceAccountParams, *models.Principal) middleware.Responder
}

CreateAUserServiceAccountHandler interface for that can handle valid create a user service account params

type CreateAUserServiceAccountHandlerFunc

type CreateAUserServiceAccountHandlerFunc func(CreateAUserServiceAccountParams, *models.Principal) middleware.Responder

CreateAUserServiceAccountHandlerFunc turns a function with the right signature into a create a user service account handler

func (CreateAUserServiceAccountHandlerFunc) Handle

Handle executing the request and returning a response

type CreateAUserServiceAccountParams

type CreateAUserServiceAccountParams struct {

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

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

CreateAUserServiceAccountParams contains all the bound params for the create a user service account operation typically these are obtained from a http.Request

swagger:parameters CreateAUserServiceAccount

func NewCreateAUserServiceAccountParams

func NewCreateAUserServiceAccountParams() CreateAUserServiceAccountParams

NewCreateAUserServiceAccountParams creates a new CreateAUserServiceAccountParams object

There are no default values defined in the spec.

func (*CreateAUserServiceAccountParams) BindRequest

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 NewCreateAUserServiceAccountParams() beforehand.

type CreateAUserServiceAccountURL

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

CreateAUserServiceAccountURL generates an URL for the create a user service account operation

func (*CreateAUserServiceAccountURL) Build

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

Build a url path and query string

func (*CreateAUserServiceAccountURL) BuildFull

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

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

func (*CreateAUserServiceAccountURL) Must

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

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

func (*CreateAUserServiceAccountURL) SetBasePath

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

String returns the string representation of the path with query string

func (*CreateAUserServiceAccountURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateAUserServiceAccountURL) 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 CreateServiceAccountCredentials

type CreateServiceAccountCredentials struct {
	Context *middleware.Context
	Handler CreateServiceAccountCredentialsHandler
}
CreateServiceAccountCredentials swagger:route POST /user/{name}/service-account-credentials User createServiceAccountCredentials

Create Service Account for User With Credentials

func NewCreateServiceAccountCredentials

func NewCreateServiceAccountCredentials(ctx *middleware.Context, handler CreateServiceAccountCredentialsHandler) *CreateServiceAccountCredentials

NewCreateServiceAccountCredentials creates a new http.Handler for the create service account credentials operation

func (*CreateServiceAccountCredentials) ServeHTTP

type CreateServiceAccountCredentialsCreated

type CreateServiceAccountCredentialsCreated struct {

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

CreateServiceAccountCredentialsCreated A successful response.

swagger:response createServiceAccountCredentialsCreated

func NewCreateServiceAccountCredentialsCreated

func NewCreateServiceAccountCredentialsCreated() *CreateServiceAccountCredentialsCreated

NewCreateServiceAccountCredentialsCreated creates CreateServiceAccountCredentialsCreated with default headers values

func (*CreateServiceAccountCredentialsCreated) SetPayload

SetPayload sets the payload to the create service account credentials created response

func (*CreateServiceAccountCredentialsCreated) WithPayload

WithPayload adds the payload to the create service account credentials created response

func (*CreateServiceAccountCredentialsCreated) WriteResponse

WriteResponse to the client

type CreateServiceAccountCredentialsDefault

type CreateServiceAccountCredentialsDefault struct {

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

CreateServiceAccountCredentialsDefault Generic error response.

swagger:response createServiceAccountCredentialsDefault

func NewCreateServiceAccountCredentialsDefault

func NewCreateServiceAccountCredentialsDefault(code int) *CreateServiceAccountCredentialsDefault

NewCreateServiceAccountCredentialsDefault creates CreateServiceAccountCredentialsDefault with default headers values

func (*CreateServiceAccountCredentialsDefault) SetPayload

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

SetPayload sets the payload to the create service account credentials default response

func (*CreateServiceAccountCredentialsDefault) SetStatusCode

func (o *CreateServiceAccountCredentialsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create service account credentials default response

func (*CreateServiceAccountCredentialsDefault) WithPayload

WithPayload adds the payload to the create service account credentials default response

func (*CreateServiceAccountCredentialsDefault) WithStatusCode

WithStatusCode adds the status to the create service account credentials default response

func (*CreateServiceAccountCredentialsDefault) WriteResponse

WriteResponse to the client

type CreateServiceAccountCredentialsHandler

type CreateServiceAccountCredentialsHandler interface {
	Handle(CreateServiceAccountCredentialsParams, *models.Principal) middleware.Responder
}

CreateServiceAccountCredentialsHandler interface for that can handle valid create service account credentials params

type CreateServiceAccountCredentialsHandlerFunc

type CreateServiceAccountCredentialsHandlerFunc func(CreateServiceAccountCredentialsParams, *models.Principal) middleware.Responder

CreateServiceAccountCredentialsHandlerFunc turns a function with the right signature into a create service account credentials handler

func (CreateServiceAccountCredentialsHandlerFunc) Handle

Handle executing the request and returning a response

type CreateServiceAccountCredentialsParams

type CreateServiceAccountCredentialsParams struct {

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

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

CreateServiceAccountCredentialsParams contains all the bound params for the create service account credentials operation typically these are obtained from a http.Request

swagger:parameters CreateServiceAccountCredentials

func NewCreateServiceAccountCredentialsParams

func NewCreateServiceAccountCredentialsParams() CreateServiceAccountCredentialsParams

NewCreateServiceAccountCredentialsParams creates a new CreateServiceAccountCredentialsParams object

There are no default values defined in the spec.

func (*CreateServiceAccountCredentialsParams) BindRequest

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 NewCreateServiceAccountCredentialsParams() beforehand.

type CreateServiceAccountCredentialsURL

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

CreateServiceAccountCredentialsURL generates an URL for the create service account credentials operation

func (*CreateServiceAccountCredentialsURL) Build

Build a url path and query string

func (*CreateServiceAccountCredentialsURL) BuildFull

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

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

func (*CreateServiceAccountCredentialsURL) Must

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

func (*CreateServiceAccountCredentialsURL) SetBasePath

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

String returns the string representation of the path with query string

func (*CreateServiceAccountCredentialsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateServiceAccountCredentialsURL) 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 GetUserInfo

type GetUserInfo struct {
	Context *middleware.Context
	Handler GetUserInfoHandler
}
GetUserInfo swagger:route GET /user/{name} User getUserInfo

Get User Info

func NewGetUserInfo

func NewGetUserInfo(ctx *middleware.Context, handler GetUserInfoHandler) *GetUserInfo

NewGetUserInfo creates a new http.Handler for the get user info operation

func (*GetUserInfo) ServeHTTP

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

type GetUserInfoDefault

type GetUserInfoDefault struct {

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

GetUserInfoDefault Generic error response.

swagger:response getUserInfoDefault

func NewGetUserInfoDefault

func NewGetUserInfoDefault(code int) *GetUserInfoDefault

NewGetUserInfoDefault creates GetUserInfoDefault with default headers values

func (*GetUserInfoDefault) SetPayload

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

SetPayload sets the payload to the get user info default response

func (*GetUserInfoDefault) SetStatusCode

func (o *GetUserInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user info default response

func (*GetUserInfoDefault) WithPayload

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

WithPayload adds the payload to the get user info default response

func (*GetUserInfoDefault) WithStatusCode

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

WithStatusCode adds the status to the get user info default response

func (*GetUserInfoDefault) WriteResponse

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

WriteResponse to the client

type GetUserInfoHandler

type GetUserInfoHandler interface {
	Handle(GetUserInfoParams, *models.Principal) middleware.Responder
}

GetUserInfoHandler interface for that can handle valid get user info params

type GetUserInfoHandlerFunc

type GetUserInfoHandlerFunc func(GetUserInfoParams, *models.Principal) middleware.Responder

GetUserInfoHandlerFunc turns a function with the right signature into a get user info handler

func (GetUserInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserInfoOK

type GetUserInfoOK struct {

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

GetUserInfoOK A successful response.

swagger:response getUserInfoOK

func NewGetUserInfoOK

func NewGetUserInfoOK() *GetUserInfoOK

NewGetUserInfoOK creates GetUserInfoOK with default headers values

func (*GetUserInfoOK) SetPayload

func (o *GetUserInfoOK) SetPayload(payload *models.User)

SetPayload sets the payload to the get user info o k response

func (*GetUserInfoOK) WithPayload

func (o *GetUserInfoOK) WithPayload(payload *models.User) *GetUserInfoOK

WithPayload adds the payload to the get user info o k response

func (*GetUserInfoOK) WriteResponse

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

WriteResponse to the client

type GetUserInfoParams

type GetUserInfoParams struct {

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

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

GetUserInfoParams contains all the bound params for the get user info operation typically these are obtained from a http.Request

swagger:parameters GetUserInfo

func NewGetUserInfoParams

func NewGetUserInfoParams() GetUserInfoParams

NewGetUserInfoParams creates a new GetUserInfoParams object

There are no default values defined in the spec.

func (*GetUserInfoParams) BindRequest

func (o *GetUserInfoParams) 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 NewGetUserInfoParams() beforehand.

type GetUserInfoURL

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

GetUserInfoURL generates an URL for the get user info operation

func (*GetUserInfoURL) Build

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

Build a url path and query string

func (*GetUserInfoURL) BuildFull

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

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

func (*GetUserInfoURL) Must

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

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

func (*GetUserInfoURL) SetBasePath

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

func (o *GetUserInfoURL) String() string

String returns the string representation of the path with query string

func (*GetUserInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserInfoURL) WithBasePath

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

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 ListAUserServiceAccounts

type ListAUserServiceAccounts struct {
	Context *middleware.Context
	Handler ListAUserServiceAccountsHandler
}
ListAUserServiceAccounts swagger:route GET /user/{name}/service-accounts User listAUserServiceAccounts

returns a list of service accounts for a user

func NewListAUserServiceAccounts

func NewListAUserServiceAccounts(ctx *middleware.Context, handler ListAUserServiceAccountsHandler) *ListAUserServiceAccounts

NewListAUserServiceAccounts creates a new http.Handler for the list a user service accounts operation

func (*ListAUserServiceAccounts) ServeHTTP

type ListAUserServiceAccountsDefault

type ListAUserServiceAccountsDefault struct {

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

ListAUserServiceAccountsDefault Generic error response.

swagger:response listAUserServiceAccountsDefault

func NewListAUserServiceAccountsDefault

func NewListAUserServiceAccountsDefault(code int) *ListAUserServiceAccountsDefault

NewListAUserServiceAccountsDefault creates ListAUserServiceAccountsDefault with default headers values

func (*ListAUserServiceAccountsDefault) SetPayload

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

SetPayload sets the payload to the list a user service accounts default response

func (*ListAUserServiceAccountsDefault) SetStatusCode

func (o *ListAUserServiceAccountsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list a user service accounts default response

func (*ListAUserServiceAccountsDefault) WithPayload

WithPayload adds the payload to the list a user service accounts default response

func (*ListAUserServiceAccountsDefault) WithStatusCode

WithStatusCode adds the status to the list a user service accounts default response

func (*ListAUserServiceAccountsDefault) WriteResponse

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

WriteResponse to the client

type ListAUserServiceAccountsHandler

type ListAUserServiceAccountsHandler interface {
	Handle(ListAUserServiceAccountsParams, *models.Principal) middleware.Responder
}

ListAUserServiceAccountsHandler interface for that can handle valid list a user service accounts params

type ListAUserServiceAccountsHandlerFunc

type ListAUserServiceAccountsHandlerFunc func(ListAUserServiceAccountsParams, *models.Principal) middleware.Responder

ListAUserServiceAccountsHandlerFunc turns a function with the right signature into a list a user service accounts handler

func (ListAUserServiceAccountsHandlerFunc) Handle

Handle executing the request and returning a response

type ListAUserServiceAccountsOK

type ListAUserServiceAccountsOK struct {

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

ListAUserServiceAccountsOK A successful response.

swagger:response listAUserServiceAccountsOK

func NewListAUserServiceAccountsOK

func NewListAUserServiceAccountsOK() *ListAUserServiceAccountsOK

NewListAUserServiceAccountsOK creates ListAUserServiceAccountsOK with default headers values

func (*ListAUserServiceAccountsOK) SetPayload

func (o *ListAUserServiceAccountsOK) SetPayload(payload models.ServiceAccounts)

SetPayload sets the payload to the list a user service accounts o k response

func (*ListAUserServiceAccountsOK) WithPayload

WithPayload adds the payload to the list a user service accounts o k response

func (*ListAUserServiceAccountsOK) WriteResponse

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

WriteResponse to the client

type ListAUserServiceAccountsParams

type ListAUserServiceAccountsParams struct {

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

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

ListAUserServiceAccountsParams contains all the bound params for the list a user service accounts operation typically these are obtained from a http.Request

swagger:parameters ListAUserServiceAccounts

func NewListAUserServiceAccountsParams

func NewListAUserServiceAccountsParams() ListAUserServiceAccountsParams

NewListAUserServiceAccountsParams creates a new ListAUserServiceAccountsParams object

There are no default values defined in the spec.

func (*ListAUserServiceAccountsParams) BindRequest

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 NewListAUserServiceAccountsParams() beforehand.

type ListAUserServiceAccountsURL

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

ListAUserServiceAccountsURL generates an URL for the list a user service accounts operation

func (*ListAUserServiceAccountsURL) Build

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

Build a url path and query string

func (*ListAUserServiceAccountsURL) BuildFull

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

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

func (*ListAUserServiceAccountsURL) Must

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

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

func (*ListAUserServiceAccountsURL) SetBasePath

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

func (o *ListAUserServiceAccountsURL) String() string

String returns the string representation of the path with query string

func (*ListAUserServiceAccountsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListAUserServiceAccountsURL) 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 ListUsers

type ListUsers struct {
	Context *middleware.Context
	Handler ListUsersHandler
}
ListUsers swagger:route GET /users User listUsers

List Users

func NewListUsers

func NewListUsers(ctx *middleware.Context, handler ListUsersHandler) *ListUsers

NewListUsers creates a new http.Handler for the list users operation

func (*ListUsers) ServeHTTP

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

type ListUsersDefault

type ListUsersDefault struct {

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

ListUsersDefault Generic error response.

swagger:response listUsersDefault

func NewListUsersDefault

func NewListUsersDefault(code int) *ListUsersDefault

NewListUsersDefault creates ListUsersDefault with default headers values

func (*ListUsersDefault) SetPayload

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

SetPayload sets the payload to the list users default response

func (*ListUsersDefault) SetStatusCode

func (o *ListUsersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list users default response

func (*ListUsersDefault) WithPayload

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

WithPayload adds the payload to the list users default response

func (*ListUsersDefault) WithStatusCode

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

WithStatusCode adds the status to the list users default response

func (*ListUsersDefault) WriteResponse

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

WriteResponse to the client

type ListUsersHandler

type ListUsersHandler interface {
	Handle(ListUsersParams, *models.Principal) middleware.Responder
}

ListUsersHandler interface for that can handle valid list users params

type ListUsersHandlerFunc

type ListUsersHandlerFunc func(ListUsersParams, *models.Principal) middleware.Responder

ListUsersHandlerFunc turns a function with the right signature into a list users handler

func (ListUsersHandlerFunc) Handle

Handle executing the request and returning a response

type ListUsersOK

type ListUsersOK struct {

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

ListUsersOK A successful response.

swagger:response listUsersOK

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates ListUsersOK with default headers values

func (*ListUsersOK) SetPayload

func (o *ListUsersOK) SetPayload(payload *models.ListUsersResponse)

SetPayload sets the payload to the list users o k response

func (*ListUsersOK) WithPayload

func (o *ListUsersOK) WithPayload(payload *models.ListUsersResponse) *ListUsersOK

WithPayload adds the payload to the list users o k response

func (*ListUsersOK) WriteResponse

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

WriteResponse to the client

type ListUsersParams

type ListUsersParams struct {

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

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

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

swagger:parameters ListUsers

func NewListUsersParams

func NewListUsersParams() ListUsersParams

NewListUsersParams creates a new ListUsersParams object

There are no default values defined in the spec.

func (*ListUsersParams) BindRequest

func (o *ListUsersParams) 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 NewListUsersParams() beforehand.

type ListUsersURL

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

ListUsersURL generates an URL for the list users operation

func (*ListUsersURL) Build

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

Build a url path and query string

func (*ListUsersURL) BuildFull

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

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

func (*ListUsersURL) Must

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

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

func (*ListUsersURL) SetBasePath

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

func (o *ListUsersURL) String() string

String returns the string representation of the path with query string

func (*ListUsersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListUsersURL) WithBasePath

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

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 RemoveUser

type RemoveUser struct {
	Context *middleware.Context
	Handler RemoveUserHandler
}
RemoveUser swagger:route DELETE /user/{name} User removeUser

Remove user

func NewRemoveUser

func NewRemoveUser(ctx *middleware.Context, handler RemoveUserHandler) *RemoveUser

NewRemoveUser creates a new http.Handler for the remove user operation

func (*RemoveUser) ServeHTTP

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

type RemoveUserDefault

type RemoveUserDefault struct {

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

RemoveUserDefault Generic error response.

swagger:response removeUserDefault

func NewRemoveUserDefault

func NewRemoveUserDefault(code int) *RemoveUserDefault

NewRemoveUserDefault creates RemoveUserDefault with default headers values

func (*RemoveUserDefault) SetPayload

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

SetPayload sets the payload to the remove user default response

func (*RemoveUserDefault) SetStatusCode

func (o *RemoveUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the remove user default response

func (*RemoveUserDefault) WithPayload

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

WithPayload adds the payload to the remove user default response

func (*RemoveUserDefault) WithStatusCode

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

WithStatusCode adds the status to the remove user default response

func (*RemoveUserDefault) WriteResponse

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

WriteResponse to the client

type RemoveUserHandler

type RemoveUserHandler interface {
	Handle(RemoveUserParams, *models.Principal) middleware.Responder
}

RemoveUserHandler interface for that can handle valid remove user params

type RemoveUserHandlerFunc

type RemoveUserHandlerFunc func(RemoveUserParams, *models.Principal) middleware.Responder

RemoveUserHandlerFunc turns a function with the right signature into a remove user handler

func (RemoveUserHandlerFunc) Handle

Handle executing the request and returning a response

type RemoveUserNoContent

type RemoveUserNoContent struct {
}

RemoveUserNoContent A successful response.

swagger:response removeUserNoContent

func NewRemoveUserNoContent

func NewRemoveUserNoContent() *RemoveUserNoContent

NewRemoveUserNoContent creates RemoveUserNoContent with default headers values

func (*RemoveUserNoContent) WriteResponse

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

WriteResponse to the client

type RemoveUserParams

type RemoveUserParams struct {

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

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

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

swagger:parameters RemoveUser

func NewRemoveUserParams

func NewRemoveUserParams() RemoveUserParams

NewRemoveUserParams creates a new RemoveUserParams object

There are no default values defined in the spec.

func (*RemoveUserParams) BindRequest

func (o *RemoveUserParams) 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 NewRemoveUserParams() beforehand.

type RemoveUserURL

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

RemoveUserURL generates an URL for the remove user operation

func (*RemoveUserURL) Build

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

Build a url path and query string

func (*RemoveUserURL) BuildFull

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

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

func (*RemoveUserURL) Must

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

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

func (*RemoveUserURL) SetBasePath

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

func (o *RemoveUserURL) String() string

String returns the string representation of the path with query string

func (*RemoveUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RemoveUserURL) WithBasePath

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

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 UpdateUserGroups

type UpdateUserGroups struct {
	Context *middleware.Context
	Handler UpdateUserGroupsHandler
}
UpdateUserGroups swagger:route PUT /user/{name}/groups User updateUserGroups

Update Groups for a user

func NewUpdateUserGroups

func NewUpdateUserGroups(ctx *middleware.Context, handler UpdateUserGroupsHandler) *UpdateUserGroups

NewUpdateUserGroups creates a new http.Handler for the update user groups operation

func (*UpdateUserGroups) ServeHTTP

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

type UpdateUserGroupsDefault

type UpdateUserGroupsDefault struct {

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

UpdateUserGroupsDefault Generic error response.

swagger:response updateUserGroupsDefault

func NewUpdateUserGroupsDefault

func NewUpdateUserGroupsDefault(code int) *UpdateUserGroupsDefault

NewUpdateUserGroupsDefault creates UpdateUserGroupsDefault with default headers values

func (*UpdateUserGroupsDefault) SetPayload

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

SetPayload sets the payload to the update user groups default response

func (*UpdateUserGroupsDefault) SetStatusCode

func (o *UpdateUserGroupsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update user groups default response

func (*UpdateUserGroupsDefault) WithPayload

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

WithPayload adds the payload to the update user groups default response

func (*UpdateUserGroupsDefault) WithStatusCode

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

WithStatusCode adds the status to the update user groups default response

func (*UpdateUserGroupsDefault) WriteResponse

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

WriteResponse to the client

type UpdateUserGroupsHandler

type UpdateUserGroupsHandler interface {
	Handle(UpdateUserGroupsParams, *models.Principal) middleware.Responder
}

UpdateUserGroupsHandler interface for that can handle valid update user groups params

type UpdateUserGroupsHandlerFunc

type UpdateUserGroupsHandlerFunc func(UpdateUserGroupsParams, *models.Principal) middleware.Responder

UpdateUserGroupsHandlerFunc turns a function with the right signature into a update user groups handler

func (UpdateUserGroupsHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserGroupsOK

type UpdateUserGroupsOK struct {

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

UpdateUserGroupsOK A successful response.

swagger:response updateUserGroupsOK

func NewUpdateUserGroupsOK

func NewUpdateUserGroupsOK() *UpdateUserGroupsOK

NewUpdateUserGroupsOK creates UpdateUserGroupsOK with default headers values

func (*UpdateUserGroupsOK) SetPayload

func (o *UpdateUserGroupsOK) SetPayload(payload *models.User)

SetPayload sets the payload to the update user groups o k response

func (*UpdateUserGroupsOK) WithPayload

func (o *UpdateUserGroupsOK) WithPayload(payload *models.User) *UpdateUserGroupsOK

WithPayload adds the payload to the update user groups o k response

func (*UpdateUserGroupsOK) WriteResponse

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

WriteResponse to the client

type UpdateUserGroupsParams

type UpdateUserGroupsParams struct {

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

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

UpdateUserGroupsParams contains all the bound params for the update user groups operation typically these are obtained from a http.Request

swagger:parameters UpdateUserGroups

func NewUpdateUserGroupsParams

func NewUpdateUserGroupsParams() UpdateUserGroupsParams

NewUpdateUserGroupsParams creates a new UpdateUserGroupsParams object

There are no default values defined in the spec.

func (*UpdateUserGroupsParams) BindRequest

func (o *UpdateUserGroupsParams) 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 NewUpdateUserGroupsParams() beforehand.

type UpdateUserGroupsURL

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

UpdateUserGroupsURL generates an URL for the update user groups operation

func (*UpdateUserGroupsURL) Build

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

Build a url path and query string

func (*UpdateUserGroupsURL) BuildFull

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

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

func (*UpdateUserGroupsURL) Must

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

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

func (*UpdateUserGroupsURL) SetBasePath

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

func (o *UpdateUserGroupsURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserGroupsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUserGroupsURL) WithBasePath

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

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 UpdateUserInfo

type UpdateUserInfo struct {
	Context *middleware.Context
	Handler UpdateUserInfoHandler
}
UpdateUserInfo swagger:route PUT /user/{name} User updateUserInfo

Update User Info

func NewUpdateUserInfo

func NewUpdateUserInfo(ctx *middleware.Context, handler UpdateUserInfoHandler) *UpdateUserInfo

NewUpdateUserInfo creates a new http.Handler for the update user info operation

func (*UpdateUserInfo) ServeHTTP

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

type UpdateUserInfoDefault

type UpdateUserInfoDefault struct {

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

UpdateUserInfoDefault Generic error response.

swagger:response updateUserInfoDefault

func NewUpdateUserInfoDefault

func NewUpdateUserInfoDefault(code int) *UpdateUserInfoDefault

NewUpdateUserInfoDefault creates UpdateUserInfoDefault with default headers values

func (*UpdateUserInfoDefault) SetPayload

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

SetPayload sets the payload to the update user info default response

func (*UpdateUserInfoDefault) SetStatusCode

func (o *UpdateUserInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update user info default response

func (*UpdateUserInfoDefault) WithPayload

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

WithPayload adds the payload to the update user info default response

func (*UpdateUserInfoDefault) WithStatusCode

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

WithStatusCode adds the status to the update user info default response

func (*UpdateUserInfoDefault) WriteResponse

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

WriteResponse to the client

type UpdateUserInfoHandler

type UpdateUserInfoHandler interface {
	Handle(UpdateUserInfoParams, *models.Principal) middleware.Responder
}

UpdateUserInfoHandler interface for that can handle valid update user info params

type UpdateUserInfoHandlerFunc

type UpdateUserInfoHandlerFunc func(UpdateUserInfoParams, *models.Principal) middleware.Responder

UpdateUserInfoHandlerFunc turns a function with the right signature into a update user info handler

func (UpdateUserInfoHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserInfoOK

type UpdateUserInfoOK struct {

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

UpdateUserInfoOK A successful response.

swagger:response updateUserInfoOK

func NewUpdateUserInfoOK

func NewUpdateUserInfoOK() *UpdateUserInfoOK

NewUpdateUserInfoOK creates UpdateUserInfoOK with default headers values

func (*UpdateUserInfoOK) SetPayload

func (o *UpdateUserInfoOK) SetPayload(payload *models.User)

SetPayload sets the payload to the update user info o k response

func (*UpdateUserInfoOK) WithPayload

func (o *UpdateUserInfoOK) WithPayload(payload *models.User) *UpdateUserInfoOK

WithPayload adds the payload to the update user info o k response

func (*UpdateUserInfoOK) WriteResponse

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

WriteResponse to the client

type UpdateUserInfoParams

type UpdateUserInfoParams struct {

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

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

UpdateUserInfoParams contains all the bound params for the update user info operation typically these are obtained from a http.Request

swagger:parameters UpdateUserInfo

func NewUpdateUserInfoParams

func NewUpdateUserInfoParams() UpdateUserInfoParams

NewUpdateUserInfoParams creates a new UpdateUserInfoParams object

There are no default values defined in the spec.

func (*UpdateUserInfoParams) BindRequest

func (o *UpdateUserInfoParams) 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 NewUpdateUserInfoParams() beforehand.

type UpdateUserInfoURL

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

UpdateUserInfoURL generates an URL for the update user info operation

func (*UpdateUserInfoURL) Build

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

Build a url path and query string

func (*UpdateUserInfoURL) BuildFull

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

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

func (*UpdateUserInfoURL) Must

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

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

func (*UpdateUserInfoURL) SetBasePath

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

func (o *UpdateUserInfoURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUserInfoURL) WithBasePath

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

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