system

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AdminInfoOKCode int = 200

AdminInfoOKCode is the HTTP code returned for type AdminInfoOK

View Source
const ArnListOKCode int = 200

ArnListOKCode is the HTTP code returned for type ArnListOK

View Source
const CheckMinIOVersionOKCode int = 200

CheckMinIOVersionOKCode is the HTTP code returned for type CheckMinIOVersionOK

View Source
const DashboardWidgetDetailsOKCode int = 200

DashboardWidgetDetailsOKCode is the HTTP code returned for type DashboardWidgetDetailsOK

View Source
const ListNodesOKCode int = 200

ListNodesOKCode is the HTTP code returned for type ListNodesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminInfo

type AdminInfo struct {
	Context *middleware.Context
	Handler AdminInfoHandler
}
AdminInfo swagger:route GET /admin/info System adminInfo

Returns information about the deployment

func NewAdminInfo

func NewAdminInfo(ctx *middleware.Context, handler AdminInfoHandler) *AdminInfo

NewAdminInfo creates a new http.Handler for the admin info operation

func (*AdminInfo) ServeHTTP

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

type AdminInfoDefault

type AdminInfoDefault struct {

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

AdminInfoDefault Generic error response.

swagger:response adminInfoDefault

func NewAdminInfoDefault

func NewAdminInfoDefault(code int) *AdminInfoDefault

NewAdminInfoDefault creates AdminInfoDefault with default headers values

func (*AdminInfoDefault) SetPayload

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

SetPayload sets the payload to the admin info default response

func (*AdminInfoDefault) SetStatusCode

func (o *AdminInfoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the admin info default response

func (*AdminInfoDefault) WithPayload

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

WithPayload adds the payload to the admin info default response

func (*AdminInfoDefault) WithStatusCode

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

WithStatusCode adds the status to the admin info default response

func (*AdminInfoDefault) WriteResponse

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

WriteResponse to the client

type AdminInfoHandler

type AdminInfoHandler interface {
	Handle(AdminInfoParams, *models.Principal) middleware.Responder
}

AdminInfoHandler interface for that can handle valid admin info params

type AdminInfoHandlerFunc

type AdminInfoHandlerFunc func(AdminInfoParams, *models.Principal) middleware.Responder

AdminInfoHandlerFunc turns a function with the right signature into a admin info handler

func (AdminInfoHandlerFunc) Handle

Handle executing the request and returning a response

type AdminInfoOK

type AdminInfoOK struct {

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

AdminInfoOK A successful response.

swagger:response adminInfoOK

func NewAdminInfoOK

func NewAdminInfoOK() *AdminInfoOK

NewAdminInfoOK creates AdminInfoOK with default headers values

func (*AdminInfoOK) SetPayload

func (o *AdminInfoOK) SetPayload(payload *models.AdminInfoResponse)

SetPayload sets the payload to the admin info o k response

func (*AdminInfoOK) WithPayload

func (o *AdminInfoOK) WithPayload(payload *models.AdminInfoResponse) *AdminInfoOK

WithPayload adds the payload to the admin info o k response

func (*AdminInfoOK) WriteResponse

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

WriteResponse to the client

type AdminInfoParams

type AdminInfoParams struct {

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

	/*
	  In: query
	  Default: false
	*/
	DefaultOnly *bool
}

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

swagger:parameters AdminInfo

func NewAdminInfoParams

func NewAdminInfoParams() AdminInfoParams

NewAdminInfoParams creates a new AdminInfoParams object with the default values initialized.

func (*AdminInfoParams) BindRequest

func (o *AdminInfoParams) 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 NewAdminInfoParams() beforehand.

type AdminInfoURL

type AdminInfoURL struct {
	DefaultOnly *bool
	// contains filtered or unexported fields
}

AdminInfoURL generates an URL for the admin info operation

func (*AdminInfoURL) Build

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

Build a url path and query string

func (*AdminInfoURL) BuildFull

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

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

func (*AdminInfoURL) Must

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

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

func (*AdminInfoURL) SetBasePath

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

func (o *AdminInfoURL) String() string

String returns the string representation of the path with query string

func (*AdminInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AdminInfoURL) WithBasePath

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

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 ArnList

type ArnList struct {
	Context *middleware.Context
	Handler ArnListHandler
}
ArnList swagger:route GET /admin/arns System arnList

Returns a list of active ARNs in the instance

func NewArnList

func NewArnList(ctx *middleware.Context, handler ArnListHandler) *ArnList

NewArnList creates a new http.Handler for the arn list operation

func (*ArnList) ServeHTTP

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

type ArnListDefault

type ArnListDefault struct {

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

ArnListDefault Generic error response.

swagger:response arnListDefault

func NewArnListDefault

func NewArnListDefault(code int) *ArnListDefault

NewArnListDefault creates ArnListDefault with default headers values

func (*ArnListDefault) SetPayload

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

SetPayload sets the payload to the arn list default response

func (*ArnListDefault) SetStatusCode

func (o *ArnListDefault) SetStatusCode(code int)

SetStatusCode sets the status to the arn list default response

func (*ArnListDefault) WithPayload

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

WithPayload adds the payload to the arn list default response

func (*ArnListDefault) WithStatusCode

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

WithStatusCode adds the status to the arn list default response

func (*ArnListDefault) WriteResponse

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

WriteResponse to the client

type ArnListHandler

type ArnListHandler interface {
	Handle(ArnListParams, *models.Principal) middleware.Responder
}

ArnListHandler interface for that can handle valid arn list params

type ArnListHandlerFunc

type ArnListHandlerFunc func(ArnListParams, *models.Principal) middleware.Responder

ArnListHandlerFunc turns a function with the right signature into a arn list handler

func (ArnListHandlerFunc) Handle

func (fn ArnListHandlerFunc) Handle(params ArnListParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type ArnListOK

type ArnListOK struct {

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

ArnListOK A successful response.

swagger:response arnListOK

func NewArnListOK

func NewArnListOK() *ArnListOK

NewArnListOK creates ArnListOK with default headers values

func (*ArnListOK) SetPayload

func (o *ArnListOK) SetPayload(payload *models.ArnsResponse)

SetPayload sets the payload to the arn list o k response

func (*ArnListOK) WithPayload

func (o *ArnListOK) WithPayload(payload *models.ArnsResponse) *ArnListOK

WithPayload adds the payload to the arn list o k response

func (*ArnListOK) WriteResponse

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

WriteResponse to the client

type ArnListParams

type ArnListParams struct {

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

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

swagger:parameters ArnList

func NewArnListParams

func NewArnListParams() ArnListParams

NewArnListParams creates a new ArnListParams object

There are no default values defined in the spec.

func (*ArnListParams) BindRequest

func (o *ArnListParams) 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 NewArnListParams() beforehand.

type ArnListURL

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

ArnListURL generates an URL for the arn list operation

func (*ArnListURL) Build

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

Build a url path and query string

func (*ArnListURL) BuildFull

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

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

func (*ArnListURL) Must

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

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

func (*ArnListURL) SetBasePath

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

func (o *ArnListURL) String() string

String returns the string representation of the path with query string

func (*ArnListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ArnListURL) WithBasePath

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

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 CheckMinIOVersion

type CheckMinIOVersion struct {
	Context *middleware.Context
	Handler CheckMinIOVersionHandler
}
CheckMinIOVersion swagger:route GET /check-version System checkMinIOVersion

Checks the current MinIO version against the latest

func NewCheckMinIOVersion

func NewCheckMinIOVersion(ctx *middleware.Context, handler CheckMinIOVersionHandler) *CheckMinIOVersion

NewCheckMinIOVersion creates a new http.Handler for the check min i o version operation

func (*CheckMinIOVersion) ServeHTTP

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

type CheckMinIOVersionDefault

type CheckMinIOVersionDefault struct {

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

CheckMinIOVersionDefault Generic error response.

swagger:response checkMinIOVersionDefault

func NewCheckMinIOVersionDefault

func NewCheckMinIOVersionDefault(code int) *CheckMinIOVersionDefault

NewCheckMinIOVersionDefault creates CheckMinIOVersionDefault with default headers values

func (*CheckMinIOVersionDefault) SetPayload

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

SetPayload sets the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) SetStatusCode

func (o *CheckMinIOVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WithPayload

WithPayload adds the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) WithStatusCode

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

WithStatusCode adds the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WriteResponse

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

WriteResponse to the client

type CheckMinIOVersionHandler

type CheckMinIOVersionHandler interface {
	Handle(CheckMinIOVersionParams) middleware.Responder
}

CheckMinIOVersionHandler interface for that can handle valid check min i o version params

type CheckMinIOVersionHandlerFunc

type CheckMinIOVersionHandlerFunc func(CheckMinIOVersionParams) middleware.Responder

CheckMinIOVersionHandlerFunc turns a function with the right signature into a check min i o version handler

func (CheckMinIOVersionHandlerFunc) Handle

Handle executing the request and returning a response

type CheckMinIOVersionOK

type CheckMinIOVersionOK struct {

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

CheckMinIOVersionOK A successful response.

swagger:response checkMinIOVersionOK

func NewCheckMinIOVersionOK

func NewCheckMinIOVersionOK() *CheckMinIOVersionOK

NewCheckMinIOVersionOK creates CheckMinIOVersionOK with default headers values

func (*CheckMinIOVersionOK) SetPayload

func (o *CheckMinIOVersionOK) SetPayload(payload *models.CheckVersionResponse)

SetPayload sets the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WithPayload

WithPayload adds the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WriteResponse

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

WriteResponse to the client

type CheckMinIOVersionParams

type CheckMinIOVersionParams struct {

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

CheckMinIOVersionParams contains all the bound params for the check min i o version operation typically these are obtained from a http.Request

swagger:parameters CheckMinIOVersion

func NewCheckMinIOVersionParams

func NewCheckMinIOVersionParams() CheckMinIOVersionParams

NewCheckMinIOVersionParams creates a new CheckMinIOVersionParams object

There are no default values defined in the spec.

func (*CheckMinIOVersionParams) BindRequest

func (o *CheckMinIOVersionParams) 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 NewCheckMinIOVersionParams() beforehand.

type CheckMinIOVersionURL

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

CheckMinIOVersionURL generates an URL for the check min i o version operation

func (*CheckMinIOVersionURL) Build

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

Build a url path and query string

func (*CheckMinIOVersionURL) BuildFull

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

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

func (*CheckMinIOVersionURL) Must

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

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

func (*CheckMinIOVersionURL) SetBasePath

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

func (o *CheckMinIOVersionURL) String() string

String returns the string representation of the path with query string

func (*CheckMinIOVersionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CheckMinIOVersionURL) WithBasePath

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

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 DashboardWidgetDetails

type DashboardWidgetDetails struct {
	Context *middleware.Context
	Handler DashboardWidgetDetailsHandler
}
DashboardWidgetDetails swagger:route GET /admin/info/widgets/{widgetId} System dashboardWidgetDetails

Returns information about the deployment

func NewDashboardWidgetDetails

func NewDashboardWidgetDetails(ctx *middleware.Context, handler DashboardWidgetDetailsHandler) *DashboardWidgetDetails

NewDashboardWidgetDetails creates a new http.Handler for the dashboard widget details operation

func (*DashboardWidgetDetails) ServeHTTP

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

type DashboardWidgetDetailsDefault

type DashboardWidgetDetailsDefault struct {

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

DashboardWidgetDetailsDefault Generic error response.

swagger:response dashboardWidgetDetailsDefault

func NewDashboardWidgetDetailsDefault

func NewDashboardWidgetDetailsDefault(code int) *DashboardWidgetDetailsDefault

NewDashboardWidgetDetailsDefault creates DashboardWidgetDetailsDefault with default headers values

func (*DashboardWidgetDetailsDefault) SetPayload

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

SetPayload sets the payload to the dashboard widget details default response

func (*DashboardWidgetDetailsDefault) SetStatusCode

func (o *DashboardWidgetDetailsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the dashboard widget details default response

func (*DashboardWidgetDetailsDefault) WithPayload

WithPayload adds the payload to the dashboard widget details default response

func (*DashboardWidgetDetailsDefault) WithStatusCode

WithStatusCode adds the status to the dashboard widget details default response

func (*DashboardWidgetDetailsDefault) WriteResponse

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

WriteResponse to the client

type DashboardWidgetDetailsHandler

type DashboardWidgetDetailsHandler interface {
	Handle(DashboardWidgetDetailsParams, *models.Principal) middleware.Responder
}

DashboardWidgetDetailsHandler interface for that can handle valid dashboard widget details params

type DashboardWidgetDetailsHandlerFunc

type DashboardWidgetDetailsHandlerFunc func(DashboardWidgetDetailsParams, *models.Principal) middleware.Responder

DashboardWidgetDetailsHandlerFunc turns a function with the right signature into a dashboard widget details handler

func (DashboardWidgetDetailsHandlerFunc) Handle

Handle executing the request and returning a response

type DashboardWidgetDetailsOK

type DashboardWidgetDetailsOK struct {

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

DashboardWidgetDetailsOK A successful response.

swagger:response dashboardWidgetDetailsOK

func NewDashboardWidgetDetailsOK

func NewDashboardWidgetDetailsOK() *DashboardWidgetDetailsOK

NewDashboardWidgetDetailsOK creates DashboardWidgetDetailsOK with default headers values

func (*DashboardWidgetDetailsOK) SetPayload

func (o *DashboardWidgetDetailsOK) SetPayload(payload *models.WidgetDetails)

SetPayload sets the payload to the dashboard widget details o k response

func (*DashboardWidgetDetailsOK) WithPayload

WithPayload adds the payload to the dashboard widget details o k response

func (*DashboardWidgetDetailsOK) WriteResponse

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

WriteResponse to the client

type DashboardWidgetDetailsParams

type DashboardWidgetDetailsParams struct {

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

	/*
	  In: query
	*/
	End *int64
	/*
	  In: query
	*/
	Start *int64
	/*
	  In: query
	*/
	Step *int32
	/*
	  Required: true
	  In: path
	*/
	WidgetID int32
}

DashboardWidgetDetailsParams contains all the bound params for the dashboard widget details operation typically these are obtained from a http.Request

swagger:parameters DashboardWidgetDetails

func NewDashboardWidgetDetailsParams

func NewDashboardWidgetDetailsParams() DashboardWidgetDetailsParams

NewDashboardWidgetDetailsParams creates a new DashboardWidgetDetailsParams object

There are no default values defined in the spec.

func (*DashboardWidgetDetailsParams) 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 NewDashboardWidgetDetailsParams() beforehand.

type DashboardWidgetDetailsURL

type DashboardWidgetDetailsURL struct {
	WidgetID int32

	End   *int64
	Start *int64
	Step  *int32
	// contains filtered or unexported fields
}

DashboardWidgetDetailsURL generates an URL for the dashboard widget details operation

func (*DashboardWidgetDetailsURL) Build

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

Build a url path and query string

func (*DashboardWidgetDetailsURL) BuildFull

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

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

func (*DashboardWidgetDetailsURL) Must

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

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

func (*DashboardWidgetDetailsURL) SetBasePath

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

func (o *DashboardWidgetDetailsURL) String() string

String returns the string representation of the path with query string

func (*DashboardWidgetDetailsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DashboardWidgetDetailsURL) 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 ListNodes

type ListNodes struct {
	Context *middleware.Context
	Handler ListNodesHandler
}
ListNodes swagger:route GET /nodes System listNodes

Lists Nodes

func NewListNodes

func NewListNodes(ctx *middleware.Context, handler ListNodesHandler) *ListNodes

NewListNodes creates a new http.Handler for the list nodes operation

func (*ListNodes) ServeHTTP

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

type ListNodesDefault

type ListNodesDefault struct {

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

ListNodesDefault Generic error response.

swagger:response listNodesDefault

func NewListNodesDefault

func NewListNodesDefault(code int) *ListNodesDefault

NewListNodesDefault creates ListNodesDefault with default headers values

func (*ListNodesDefault) SetPayload

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

SetPayload sets the payload to the list nodes default response

func (*ListNodesDefault) SetStatusCode

func (o *ListNodesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list nodes default response

func (*ListNodesDefault) WithPayload

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

WithPayload adds the payload to the list nodes default response

func (*ListNodesDefault) WithStatusCode

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

WithStatusCode adds the status to the list nodes default response

func (*ListNodesDefault) WriteResponse

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

WriteResponse to the client

type ListNodesHandler

type ListNodesHandler interface {
	Handle(ListNodesParams, *models.Principal) middleware.Responder
}

ListNodesHandler interface for that can handle valid list nodes params

type ListNodesHandlerFunc

type ListNodesHandlerFunc func(ListNodesParams, *models.Principal) middleware.Responder

ListNodesHandlerFunc turns a function with the right signature into a list nodes handler

func (ListNodesHandlerFunc) Handle

Handle executing the request and returning a response

type ListNodesOK

type ListNodesOK struct {

	/*
	  In: Body
	*/
	Payload []string `json:"body,omitempty"`
}

ListNodesOK A successful response.

swagger:response listNodesOK

func NewListNodesOK

func NewListNodesOK() *ListNodesOK

NewListNodesOK creates ListNodesOK with default headers values

func (*ListNodesOK) SetPayload

func (o *ListNodesOK) SetPayload(payload []string)

SetPayload sets the payload to the list nodes o k response

func (*ListNodesOK) WithPayload

func (o *ListNodesOK) WithPayload(payload []string) *ListNodesOK

WithPayload adds the payload to the list nodes o k response

func (*ListNodesOK) WriteResponse

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

WriteResponse to the client

type ListNodesParams

type ListNodesParams struct {

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

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

swagger:parameters ListNodes

func NewListNodesParams

func NewListNodesParams() ListNodesParams

NewListNodesParams creates a new ListNodesParams object

There are no default values defined in the spec.

func (*ListNodesParams) BindRequest

func (o *ListNodesParams) 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 NewListNodesParams() beforehand.

type ListNodesURL

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

ListNodesURL generates an URL for the list nodes operation

func (*ListNodesURL) Build

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

Build a url path and query string

func (*ListNodesURL) BuildFull

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

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

func (*ListNodesURL) Must

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

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

func (*ListNodesURL) SetBasePath

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

func (o *ListNodesURL) String() string

String returns the string representation of the path with query string

func (*ListNodesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListNodesURL) WithBasePath

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

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