tiering

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddTierCreatedCode int = 201

AddTierCreatedCode is the HTTP code returned for type AddTierCreated

View Source
const EditTierCredentialsOKCode int = 200

EditTierCredentialsOKCode is the HTTP code returned for type EditTierCredentialsOK

View Source
const GetTierOKCode int = 200

GetTierOKCode is the HTTP code returned for type GetTierOK

View Source
const TiersListOKCode int = 200

TiersListOKCode is the HTTP code returned for type TiersListOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTier

type AddTier struct {
	Context *middleware.Context
	Handler AddTierHandler
}
AddTier swagger:route POST /admin/tiers Tiering addTier

Allows to configure a new tier

func NewAddTier

func NewAddTier(ctx *middleware.Context, handler AddTierHandler) *AddTier

NewAddTier creates a new http.Handler for the add tier operation

func (*AddTier) ServeHTTP

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

type AddTierCreated

type AddTierCreated struct {
}

AddTierCreated A successful response.

swagger:response addTierCreated

func NewAddTierCreated

func NewAddTierCreated() *AddTierCreated

NewAddTierCreated creates AddTierCreated with default headers values

func (*AddTierCreated) WriteResponse

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

WriteResponse to the client

type AddTierDefault

type AddTierDefault struct {

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

AddTierDefault Generic error response.

swagger:response addTierDefault

func NewAddTierDefault

func NewAddTierDefault(code int) *AddTierDefault

NewAddTierDefault creates AddTierDefault with default headers values

func (*AddTierDefault) SetPayload

func (o *AddTierDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the add tier default response

func (*AddTierDefault) SetStatusCode

func (o *AddTierDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add tier default response

func (*AddTierDefault) WithPayload

func (o *AddTierDefault) WithPayload(payload *models.APIError) *AddTierDefault

WithPayload adds the payload to the add tier default response

func (*AddTierDefault) WithStatusCode

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

WithStatusCode adds the status to the add tier default response

func (*AddTierDefault) WriteResponse

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

WriteResponse to the client

type AddTierHandler

type AddTierHandler interface {
	Handle(AddTierParams, *models.Principal) middleware.Responder
}

AddTierHandler interface for that can handle valid add tier params

type AddTierHandlerFunc

type AddTierHandlerFunc func(AddTierParams, *models.Principal) middleware.Responder

AddTierHandlerFunc turns a function with the right signature into a add tier handler

func (AddTierHandlerFunc) Handle

func (fn AddTierHandlerFunc) Handle(params AddTierParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type AddTierParams

type AddTierParams struct {

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

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

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

swagger:parameters AddTier

func NewAddTierParams

func NewAddTierParams() AddTierParams

NewAddTierParams creates a new AddTierParams object

There are no default values defined in the spec.

func (*AddTierParams) BindRequest

func (o *AddTierParams) 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 NewAddTierParams() beforehand.

type AddTierURL

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

AddTierURL generates an URL for the add tier operation

func (*AddTierURL) Build

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

Build a url path and query string

func (*AddTierURL) BuildFull

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

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

func (*AddTierURL) Must

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

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

func (*AddTierURL) SetBasePath

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

func (o *AddTierURL) String() string

String returns the string representation of the path with query string

func (*AddTierURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddTierURL) WithBasePath

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

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 EditTierCredentials

type EditTierCredentials struct {
	Context *middleware.Context
	Handler EditTierCredentialsHandler
}
EditTierCredentials swagger:route PUT /admin/tiers/{type}/{name}/credentials Tiering editTierCredentials

Edit Tier Credentials

func NewEditTierCredentials

func NewEditTierCredentials(ctx *middleware.Context, handler EditTierCredentialsHandler) *EditTierCredentials

NewEditTierCredentials creates a new http.Handler for the edit tier credentials operation

func (*EditTierCredentials) ServeHTTP

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

type EditTierCredentialsDefault

type EditTierCredentialsDefault struct {

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

EditTierCredentialsDefault Generic error response.

swagger:response editTierCredentialsDefault

func NewEditTierCredentialsDefault

func NewEditTierCredentialsDefault(code int) *EditTierCredentialsDefault

NewEditTierCredentialsDefault creates EditTierCredentialsDefault with default headers values

func (*EditTierCredentialsDefault) SetPayload

func (o *EditTierCredentialsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the edit tier credentials default response

func (*EditTierCredentialsDefault) SetStatusCode

func (o *EditTierCredentialsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the edit tier credentials default response

func (*EditTierCredentialsDefault) WithPayload

WithPayload adds the payload to the edit tier credentials default response

func (*EditTierCredentialsDefault) WithStatusCode

WithStatusCode adds the status to the edit tier credentials default response

func (*EditTierCredentialsDefault) WriteResponse

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

WriteResponse to the client

type EditTierCredentialsHandler

type EditTierCredentialsHandler interface {
	Handle(EditTierCredentialsParams, *models.Principal) middleware.Responder
}

EditTierCredentialsHandler interface for that can handle valid edit tier credentials params

type EditTierCredentialsHandlerFunc

type EditTierCredentialsHandlerFunc func(EditTierCredentialsParams, *models.Principal) middleware.Responder

EditTierCredentialsHandlerFunc turns a function with the right signature into a edit tier credentials handler

func (EditTierCredentialsHandlerFunc) Handle

Handle executing the request and returning a response

type EditTierCredentialsOK

type EditTierCredentialsOK struct {
}

EditTierCredentialsOK A successful response.

swagger:response editTierCredentialsOK

func NewEditTierCredentialsOK

func NewEditTierCredentialsOK() *EditTierCredentialsOK

NewEditTierCredentialsOK creates EditTierCredentialsOK with default headers values

func (*EditTierCredentialsOK) WriteResponse

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

WriteResponse to the client

type EditTierCredentialsParams

type EditTierCredentialsParams struct {

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

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

EditTierCredentialsParams contains all the bound params for the edit tier credentials operation typically these are obtained from a http.Request

swagger:parameters EditTierCredentials

func NewEditTierCredentialsParams

func NewEditTierCredentialsParams() EditTierCredentialsParams

NewEditTierCredentialsParams creates a new EditTierCredentialsParams object

There are no default values defined in the spec.

func (*EditTierCredentialsParams) 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 NewEditTierCredentialsParams() beforehand.

type EditTierCredentialsURL

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

EditTierCredentialsURL generates an URL for the edit tier credentials operation

func (*EditTierCredentialsURL) Build

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

Build a url path and query string

func (*EditTierCredentialsURL) BuildFull

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

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

func (*EditTierCredentialsURL) Must

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

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

func (*EditTierCredentialsURL) SetBasePath

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

func (o *EditTierCredentialsURL) String() string

String returns the string representation of the path with query string

func (*EditTierCredentialsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*EditTierCredentialsURL) 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 GetTier

type GetTier struct {
	Context *middleware.Context
	Handler GetTierHandler
}
GetTier swagger:route GET /admin/tiers/{type}/{name} Tiering getTier

Get Tier

func NewGetTier

func NewGetTier(ctx *middleware.Context, handler GetTierHandler) *GetTier

NewGetTier creates a new http.Handler for the get tier operation

func (*GetTier) ServeHTTP

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

type GetTierDefault

type GetTierDefault struct {

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

GetTierDefault Generic error response.

swagger:response getTierDefault

func NewGetTierDefault

func NewGetTierDefault(code int) *GetTierDefault

NewGetTierDefault creates GetTierDefault with default headers values

func (*GetTierDefault) SetPayload

func (o *GetTierDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the get tier default response

func (*GetTierDefault) SetStatusCode

func (o *GetTierDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get tier default response

func (*GetTierDefault) WithPayload

func (o *GetTierDefault) WithPayload(payload *models.APIError) *GetTierDefault

WithPayload adds the payload to the get tier default response

func (*GetTierDefault) WithStatusCode

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

WithStatusCode adds the status to the get tier default response

func (*GetTierDefault) WriteResponse

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

WriteResponse to the client

type GetTierHandler

type GetTierHandler interface {
	Handle(GetTierParams, *models.Principal) middleware.Responder
}

GetTierHandler interface for that can handle valid get tier params

type GetTierHandlerFunc

type GetTierHandlerFunc func(GetTierParams, *models.Principal) middleware.Responder

GetTierHandlerFunc turns a function with the right signature into a get tier handler

func (GetTierHandlerFunc) Handle

func (fn GetTierHandlerFunc) Handle(params GetTierParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type GetTierOK

type GetTierOK struct {

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

GetTierOK A successful response.

swagger:response getTierOK

func NewGetTierOK

func NewGetTierOK() *GetTierOK

NewGetTierOK creates GetTierOK with default headers values

func (*GetTierOK) SetPayload

func (o *GetTierOK) SetPayload(payload *models.Tier)

SetPayload sets the payload to the get tier o k response

func (*GetTierOK) WithPayload

func (o *GetTierOK) WithPayload(payload *models.Tier) *GetTierOK

WithPayload adds the payload to the get tier o k response

func (*GetTierOK) WriteResponse

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

WriteResponse to the client

type GetTierParams

type GetTierParams struct {

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

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

GetTierParams contains all the bound params for the get tier operation typically these are obtained from a http.Request

swagger:parameters GetTier

func NewGetTierParams

func NewGetTierParams() GetTierParams

NewGetTierParams creates a new GetTierParams object

There are no default values defined in the spec.

func (*GetTierParams) BindRequest

func (o *GetTierParams) 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 NewGetTierParams() beforehand.

type GetTierURL

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

GetTierURL generates an URL for the get tier operation

func (*GetTierURL) Build

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

Build a url path and query string

func (*GetTierURL) BuildFull

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

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

func (*GetTierURL) Must

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

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

func (*GetTierURL) SetBasePath

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

func (o *GetTierURL) String() string

String returns the string representation of the path with query string

func (*GetTierURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTierURL) WithBasePath

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

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 TiersList

type TiersList struct {
	Context *middleware.Context
	Handler TiersListHandler
}
TiersList swagger:route GET /admin/tiers Tiering tiersList

Returns a list of tiers for ilm

func NewTiersList

func NewTiersList(ctx *middleware.Context, handler TiersListHandler) *TiersList

NewTiersList creates a new http.Handler for the tiers list operation

func (*TiersList) ServeHTTP

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

type TiersListDefault

type TiersListDefault struct {

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

TiersListDefault Generic error response.

swagger:response tiersListDefault

func NewTiersListDefault

func NewTiersListDefault(code int) *TiersListDefault

NewTiersListDefault creates TiersListDefault with default headers values

func (*TiersListDefault) SetPayload

func (o *TiersListDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the tiers list default response

func (*TiersListDefault) SetStatusCode

func (o *TiersListDefault) SetStatusCode(code int)

SetStatusCode sets the status to the tiers list default response

func (*TiersListDefault) WithPayload

func (o *TiersListDefault) WithPayload(payload *models.APIError) *TiersListDefault

WithPayload adds the payload to the tiers list default response

func (*TiersListDefault) WithStatusCode

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

WithStatusCode adds the status to the tiers list default response

func (*TiersListDefault) WriteResponse

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

WriteResponse to the client

type TiersListHandler

type TiersListHandler interface {
	Handle(TiersListParams, *models.Principal) middleware.Responder
}

TiersListHandler interface for that can handle valid tiers list params

type TiersListHandlerFunc

type TiersListHandlerFunc func(TiersListParams, *models.Principal) middleware.Responder

TiersListHandlerFunc turns a function with the right signature into a tiers list handler

func (TiersListHandlerFunc) Handle

Handle executing the request and returning a response

type TiersListOK

type TiersListOK struct {

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

TiersListOK A successful response.

swagger:response tiersListOK

func NewTiersListOK

func NewTiersListOK() *TiersListOK

NewTiersListOK creates TiersListOK with default headers values

func (*TiersListOK) SetPayload

func (o *TiersListOK) SetPayload(payload *models.TierListResponse)

SetPayload sets the payload to the tiers list o k response

func (*TiersListOK) WithPayload

func (o *TiersListOK) WithPayload(payload *models.TierListResponse) *TiersListOK

WithPayload adds the payload to the tiers list o k response

func (*TiersListOK) WriteResponse

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

WriteResponse to the client

type TiersListParams

type TiersListParams struct {

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

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

swagger:parameters TiersList

func NewTiersListParams

func NewTiersListParams() TiersListParams

NewTiersListParams creates a new TiersListParams object

There are no default values defined in the spec.

func (*TiersListParams) BindRequest

func (o *TiersListParams) 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 NewTiersListParams() beforehand.

type TiersListURL

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

TiersListURL generates an URL for the tiers list operation

func (*TiersListURL) Build

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

Build a url path and query string

func (*TiersListURL) BuildFull

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

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

func (*TiersListURL) Must

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

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

func (*TiersListURL) SetBasePath

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

func (o *TiersListURL) String() string

String returns the string representation of the path with query string

func (*TiersListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TiersListURL) WithBasePath

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

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