artifacts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const ArtifactListerBadRequestCode int = 400

ArtifactListerBadRequestCode is the HTTP code returned for type ArtifactListerBadRequest

View Source
const ArtifactListerInternalServerErrorCode int = 500

ArtifactListerInternalServerErrorCode is the HTTP code returned for type ArtifactListerInternalServerError

View Source
const ArtifactListerNotFoundCode int = 404

ArtifactListerNotFoundCode is the HTTP code returned for type ArtifactListerNotFound

View Source
const ArtifactListerOKCode int = 200

ArtifactListerOKCode is the HTTP code returned for type ArtifactListerOK

View Source
const ArtifactListerPartialContentCode int = 206

ArtifactListerPartialContentCode is the HTTP code returned for type ArtifactListerPartialContent

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactLister

type ArtifactLister struct {
	Context *middleware.Context
	Handler ArtifactListerHandler
}

ArtifactLister swagger:route POST /artifacts/list artifacts artifactLister

List artifacts with filter and sort features

ArtifactLister returns information on filtered Weles artifacts.

func NewArtifactLister

func NewArtifactLister(ctx *middleware.Context, handler ArtifactListerHandler) *ArtifactLister

NewArtifactLister creates a new http.Handler for the artifact lister operation

func (*ArtifactLister) ServeHTTP

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

type ArtifactListerBadRequest

type ArtifactListerBadRequest struct {

	/*
	  In: Body
	*/
	Payload *weles.ErrResponse `json:"body,omitempty"`
}

ArtifactListerBadRequest Bad Request

swagger:response artifactListerBadRequest

func NewArtifactListerBadRequest

func NewArtifactListerBadRequest() *ArtifactListerBadRequest

NewArtifactListerBadRequest creates ArtifactListerBadRequest with default headers values

func (*ArtifactListerBadRequest) SetPayload

func (o *ArtifactListerBadRequest) SetPayload(payload *weles.ErrResponse)

SetPayload sets the payload to the artifact lister bad request response

func (*ArtifactListerBadRequest) WithPayload

WithPayload adds the payload to the artifact lister bad request response

func (*ArtifactListerBadRequest) WriteResponse

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

WriteResponse to the client

type ArtifactListerBody

type ArtifactListerBody struct {

	// filter
	Filter *weles.ArtifactFilter `json:"Filter,omitempty"`

	// sorter
	Sorter *weles.ArtifactSorter `json:"Sorter,omitempty"`
}

ArtifactListerBody Data for filtering and sorting Weles Jobs lists. swagger:model ArtifactListerBody

func (*ArtifactListerBody) MarshalBinary

func (o *ArtifactListerBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArtifactListerBody) UnmarshalBinary

func (o *ArtifactListerBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArtifactListerBody) Validate

func (o *ArtifactListerBody) Validate(formats strfmt.Registry) error

Validate validates this artifact lister body

type ArtifactListerHandler

type ArtifactListerHandler interface {
	Handle(ArtifactListerParams) middleware.Responder
}

ArtifactListerHandler interface for that can handle valid artifact lister params

type ArtifactListerHandlerFunc

type ArtifactListerHandlerFunc func(ArtifactListerParams) middleware.Responder

ArtifactListerHandlerFunc turns a function with the right signature into a artifact lister handler

func (ArtifactListerHandlerFunc) Handle

Handle executing the request and returning a response

type ArtifactListerInternalServerError

type ArtifactListerInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *weles.ErrResponse `json:"body,omitempty"`
}

ArtifactListerInternalServerError Internal Server error

swagger:response artifactListerInternalServerError

func NewArtifactListerInternalServerError

func NewArtifactListerInternalServerError() *ArtifactListerInternalServerError

NewArtifactListerInternalServerError creates ArtifactListerInternalServerError with default headers values

func (*ArtifactListerInternalServerError) SetPayload

func (o *ArtifactListerInternalServerError) SetPayload(payload *weles.ErrResponse)

SetPayload sets the payload to the artifact lister internal server error response

func (*ArtifactListerInternalServerError) WithPayload

WithPayload adds the payload to the artifact lister internal server error response

func (*ArtifactListerInternalServerError) WriteResponse

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

WriteResponse to the client

type ArtifactListerNotFound

type ArtifactListerNotFound struct {

	/*
	  In: Body
	*/
	Payload *weles.ErrResponse `json:"body,omitempty"`
}

ArtifactListerNotFound Not Found

swagger:response artifactListerNotFound

func NewArtifactListerNotFound

func NewArtifactListerNotFound() *ArtifactListerNotFound

NewArtifactListerNotFound creates ArtifactListerNotFound with default headers values

func (*ArtifactListerNotFound) SetPayload

func (o *ArtifactListerNotFound) SetPayload(payload *weles.ErrResponse)

SetPayload sets the payload to the artifact lister not found response

func (*ArtifactListerNotFound) WithPayload

WithPayload adds the payload to the artifact lister not found response

func (*ArtifactListerNotFound) WriteResponse

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

WriteResponse to the client

type ArtifactListerOK

type ArtifactListerOK struct {
	/*URI to request next page of data. Please note that the same body must be used as in initial request.


	 */
	Next string `json:"Next"`
	/*URI to request next page of data. Please note that the same body must be used as in initial request.


	 */
	Previous string `json:"Previous"`
	/*count of records currently fulfilling the requested ArtifactFilter. Please note that this value may change when requesting for the same data at a different moment in time.


	 */
	TotalRecords uint64 `json:"TotalRecords"`

	/*
	  In: Body
	*/
	Payload []*weles.ArtifactInfo `json:"body,omitempty"`
}

ArtifactListerOK OK

swagger:response artifactListerOK

func NewArtifactListerOK

func NewArtifactListerOK() *ArtifactListerOK

NewArtifactListerOK creates ArtifactListerOK with default headers values

func (*ArtifactListerOK) SetNext

func (o *ArtifactListerOK) SetNext(next string)

SetNext sets the next to the artifact lister o k response

func (*ArtifactListerOK) SetPayload

func (o *ArtifactListerOK) SetPayload(payload []*weles.ArtifactInfo)

SetPayload sets the payload to the artifact lister o k response

func (*ArtifactListerOK) SetPrevious

func (o *ArtifactListerOK) SetPrevious(previous string)

SetPrevious sets the previous to the artifact lister o k response

func (*ArtifactListerOK) SetTotalRecords

func (o *ArtifactListerOK) SetTotalRecords(totalRecords uint64)

SetTotalRecords sets the totalRecords to the artifact lister o k response

func (*ArtifactListerOK) WithNext

func (o *ArtifactListerOK) WithNext(next string) *ArtifactListerOK

WithNext adds the next to the artifact lister o k response

func (*ArtifactListerOK) WithPayload

func (o *ArtifactListerOK) WithPayload(payload []*weles.ArtifactInfo) *ArtifactListerOK

WithPayload adds the payload to the artifact lister o k response

func (*ArtifactListerOK) WithPrevious

func (o *ArtifactListerOK) WithPrevious(previous string) *ArtifactListerOK

WithPrevious adds the previous to the artifact lister o k response

func (*ArtifactListerOK) WithTotalRecords

func (o *ArtifactListerOK) WithTotalRecords(totalRecords uint64) *ArtifactListerOK

WithTotalRecords adds the totalRecords to the artifact lister o k response

func (*ArtifactListerOK) WriteResponse

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

WriteResponse to the client

type ArtifactListerParams

type ArtifactListerParams struct {

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

	/*ID of the last element from previous page.
	  In: query
	*/
	After *int64
	/*Artifact Filter and Sort object.
	  In: body
	*/
	ArtifactFilterAndSort ArtifactListerBody
	/*ID of first element from next page.
	  In: query
	*/
	Before *int64
	/*Custom page limit. Denotes number of ArtifactInfo structures that will be returned.
	  In: query
	*/
	Limit *int32
}

ArtifactListerParams contains all the bound params for the artifact lister operation typically these are obtained from a http.Request

swagger:parameters ArtifactLister

func NewArtifactListerParams

func NewArtifactListerParams() ArtifactListerParams

NewArtifactListerParams creates a new ArtifactListerParams object no default values defined in spec.

func (*ArtifactListerParams) BindRequest

func (o *ArtifactListerParams) 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 NewArtifactListerParams() beforehand.

type ArtifactListerPartialContent

type ArtifactListerPartialContent struct {
	/*URI to request next page of data. Please note that the same body must be used as in initial request.


	 */
	Next string `json:"Next"`
	/*URI to request next page of data. Please note that the same body must be used as in initial request.


	 */
	Previous string `json:"Previous"`
	/*number of records after current page. Please note that this value may change when requesting for the same data at a different moment in time.


	 */
	RemainingRecords uint64 `json:"RemainingRecords"`
	/*count of records currently fulfilling the requested ArtifactFilter. Please note that this value may change when requesting for the same data at a different moment in time.


	 */
	TotalRecords uint64 `json:"TotalRecords"`

	/*
	  In: Body
	*/
	Payload []*weles.ArtifactInfo `json:"body,omitempty"`
}

ArtifactListerPartialContent Partial Content

swagger:response artifactListerPartialContent

func NewArtifactListerPartialContent

func NewArtifactListerPartialContent() *ArtifactListerPartialContent

NewArtifactListerPartialContent creates ArtifactListerPartialContent with default headers values

func (*ArtifactListerPartialContent) SetNext

func (o *ArtifactListerPartialContent) SetNext(next string)

SetNext sets the next to the artifact lister partial content response

func (*ArtifactListerPartialContent) SetPayload

func (o *ArtifactListerPartialContent) SetPayload(payload []*weles.ArtifactInfo)

SetPayload sets the payload to the artifact lister partial content response

func (*ArtifactListerPartialContent) SetPrevious

func (o *ArtifactListerPartialContent) SetPrevious(previous string)

SetPrevious sets the previous to the artifact lister partial content response

func (*ArtifactListerPartialContent) SetRemainingRecords

func (o *ArtifactListerPartialContent) SetRemainingRecords(remainingRecords uint64)

SetRemainingRecords sets the remainingRecords to the artifact lister partial content response

func (*ArtifactListerPartialContent) SetTotalRecords

func (o *ArtifactListerPartialContent) SetTotalRecords(totalRecords uint64)

SetTotalRecords sets the totalRecords to the artifact lister partial content response

func (*ArtifactListerPartialContent) WithNext

WithNext adds the next to the artifact lister partial content response

func (*ArtifactListerPartialContent) WithPayload

WithPayload adds the payload to the artifact lister partial content response

func (*ArtifactListerPartialContent) WithPrevious

WithPrevious adds the previous to the artifact lister partial content response

func (*ArtifactListerPartialContent) WithRemainingRecords

func (o *ArtifactListerPartialContent) WithRemainingRecords(remainingRecords uint64) *ArtifactListerPartialContent

WithRemainingRecords adds the remainingRecords to the artifact lister partial content response

func (*ArtifactListerPartialContent) WithTotalRecords

func (o *ArtifactListerPartialContent) WithTotalRecords(totalRecords uint64) *ArtifactListerPartialContent

WithTotalRecords adds the totalRecords to the artifact lister partial content response

func (*ArtifactListerPartialContent) WriteResponse

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

WriteResponse to the client

type ArtifactListerURL

type ArtifactListerURL struct {
	After  *int64
	Before *int64
	Limit  *int32
	// contains filtered or unexported fields
}

ArtifactListerURL generates an URL for the artifact lister operation

func (*ArtifactListerURL) Build

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

Build a url path and query string

func (*ArtifactListerURL) BuildFull

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

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

func (*ArtifactListerURL) Must

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

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

func (*ArtifactListerURL) SetBasePath

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

func (o *ArtifactListerURL) String() string

String returns the string representation of the path with query string

func (*ArtifactListerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ArtifactListerURL) WithBasePath

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

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