image

package
v0.0.0-...-e371549 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteImageNoContentCode int = 204

DeleteImageNoContentCode is the HTTP code returned for type DeleteImageNoContent

View Source
const GetImagesOKCode int = 200

GetImagesOKCode is the HTTP code returned for type GetImagesOK

View Source
const PostNewImageCreatedCode int = 201

PostNewImageCreatedCode is the HTTP code returned for type PostNewImageCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteImage

type DeleteImage struct {
	Context *middleware.Context
	Handler DeleteImageHandler
}

DeleteImage swagger:route DELETE /images image deleteImage

delete a specified local image

func NewDeleteImage

func NewDeleteImage(ctx *middleware.Context, handler DeleteImageHandler) *DeleteImage

NewDeleteImage creates a new http.Handler for the delete image operation

func (*DeleteImage) ServeHTTP

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

type DeleteImageBody

type DeleteImageBody struct {

	// Docker image name
	// Required: true
	Image *string `json:"image"`
}

DeleteImageBody ImageName

swagger:model DeleteImageBody

func (*DeleteImageBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteImageBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteImageBody) Validate

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

Validate validates this delete image body

type DeleteImageDefault

type DeleteImageDefault struct {

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

DeleteImageDefault Unexpected error

swagger:response deleteImageDefault

func NewDeleteImageDefault

func NewDeleteImageDefault(code int) *DeleteImageDefault

NewDeleteImageDefault creates DeleteImageDefault with default headers values

func (*DeleteImageDefault) SetPayload

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

SetPayload sets the payload to the delete image default response

func (*DeleteImageDefault) SetStatusCode

func (o *DeleteImageDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete image default response

func (*DeleteImageDefault) WithPayload

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

WithPayload adds the payload to the delete image default response

func (*DeleteImageDefault) WithStatusCode

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

WithStatusCode adds the status to the delete image default response

func (*DeleteImageDefault) WriteResponse

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

WriteResponse to the client

type DeleteImageHandler

type DeleteImageHandler interface {
	Handle(DeleteImageParams) middleware.Responder
}

DeleteImageHandler interface for that can handle valid delete image params

type DeleteImageHandlerFunc

type DeleteImageHandlerFunc func(DeleteImageParams) middleware.Responder

DeleteImageHandlerFunc turns a function with the right signature into a delete image handler

func (DeleteImageHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteImageNoContent

type DeleteImageNoContent struct {
}

DeleteImageNoContent OK

swagger:response deleteImageNoContent

func NewDeleteImageNoContent

func NewDeleteImageNoContent() *DeleteImageNoContent

NewDeleteImageNoContent creates DeleteImageNoContent with default headers values

func (*DeleteImageNoContent) WriteResponse

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

WriteResponse to the client

type DeleteImageParams

type DeleteImageParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body DeleteImageBody
}

DeleteImageParams contains all the bound params for the delete image operation typically these are obtained from a http.Request

swagger:parameters deleteImage

func NewDeleteImageParams

func NewDeleteImageParams() DeleteImageParams

NewDeleteImageParams creates a new DeleteImageParams object no default values defined in spec.

func (*DeleteImageParams) BindRequest

func (o *DeleteImageParams) 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 NewDeleteImageParams() beforehand.

type DeleteImageURL

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

DeleteImageURL generates an URL for the delete image operation

func (*DeleteImageURL) Build

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

Build a url path and query string

func (*DeleteImageURL) BuildFull

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

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

func (*DeleteImageURL) Must

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

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

func (*DeleteImageURL) SetBasePath

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

func (o *DeleteImageURL) String() string

String returns the string representation of the path with query string

func (*DeleteImageURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteImageURL) WithBasePath

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

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 GetImages

type GetImages struct {
	Context *middleware.Context
	Handler GetImagesHandler
}

GetImages swagger:route GET /images image getImages

returns local images

func NewGetImages

func NewGetImages(ctx *middleware.Context, handler GetImagesHandler) *GetImages

NewGetImages creates a new http.Handler for the get images operation

func (*GetImages) ServeHTTP

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

type GetImagesDefault

type GetImagesDefault struct {

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

GetImagesDefault Unexpected error

swagger:response getImagesDefault

func NewGetImagesDefault

func NewGetImagesDefault(code int) *GetImagesDefault

NewGetImagesDefault creates GetImagesDefault with default headers values

func (*GetImagesDefault) SetPayload

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

SetPayload sets the payload to the get images default response

func (*GetImagesDefault) SetStatusCode

func (o *GetImagesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get images default response

func (*GetImagesDefault) WithPayload

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

WithPayload adds the payload to the get images default response

func (*GetImagesDefault) WithStatusCode

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

WithStatusCode adds the status to the get images default response

func (*GetImagesDefault) WriteResponse

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

WriteResponse to the client

type GetImagesHandler

type GetImagesHandler interface {
	Handle(GetImagesParams) middleware.Responder
}

GetImagesHandler interface for that can handle valid get images params

type GetImagesHandlerFunc

type GetImagesHandlerFunc func(GetImagesParams) middleware.Responder

GetImagesHandlerFunc turns a function with the right signature into a get images handler

func (GetImagesHandlerFunc) Handle

Handle executing the request and returning a response

type GetImagesOK

type GetImagesOK struct {

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

GetImagesOK OK

swagger:response getImagesOK

func NewGetImagesOK

func NewGetImagesOK() *GetImagesOK

NewGetImagesOK creates GetImagesOK with default headers values

func (*GetImagesOK) SetPayload

func (o *GetImagesOK) SetPayload(payload []*models.Image)

SetPayload sets the payload to the get images o k response

func (*GetImagesOK) WithPayload

func (o *GetImagesOK) WithPayload(payload []*models.Image) *GetImagesOK

WithPayload adds the payload to the get images o k response

func (*GetImagesOK) WriteResponse

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

WriteResponse to the client

type GetImagesParams

type GetImagesParams struct {

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

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

swagger:parameters getImages

func NewGetImagesParams

func NewGetImagesParams() GetImagesParams

NewGetImagesParams creates a new GetImagesParams object no default values defined in spec.

func (*GetImagesParams) BindRequest

func (o *GetImagesParams) 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 NewGetImagesParams() beforehand.

type GetImagesURL

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

GetImagesURL generates an URL for the get images operation

func (*GetImagesURL) Build

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

Build a url path and query string

func (*GetImagesURL) BuildFull

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

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

func (*GetImagesURL) Must

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

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

func (*GetImagesURL) SetBasePath

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

func (o *GetImagesURL) String() string

String returns the string representation of the path with query string

func (*GetImagesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetImagesURL) WithBasePath

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

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 PostNewImage

type PostNewImage struct {
	Context *middleware.Context
	Handler PostNewImageHandler
}

PostNewImage swagger:route POST /images image postNewImage

pull a specified image from Docker registry

func NewPostNewImage

func NewPostNewImage(ctx *middleware.Context, handler PostNewImageHandler) *PostNewImage

NewPostNewImage creates a new http.Handler for the post new image operation

func (*PostNewImage) ServeHTTP

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

type PostNewImageBody

type PostNewImageBody struct {

	// Docker image name
	// Required: true
	Image *string `json:"image"`
}

PostNewImageBody ImageName

swagger:model PostNewImageBody

func (*PostNewImageBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostNewImageBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostNewImageBody) Validate

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

Validate validates this post new image body

type PostNewImageCreated

type PostNewImageCreated struct {
}

PostNewImageCreated OK

swagger:response postNewImageCreated

func NewPostNewImageCreated

func NewPostNewImageCreated() *PostNewImageCreated

NewPostNewImageCreated creates PostNewImageCreated with default headers values

func (*PostNewImageCreated) WriteResponse

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

WriteResponse to the client

type PostNewImageDefault

type PostNewImageDefault struct {

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

PostNewImageDefault Unexpected error

swagger:response postNewImageDefault

func NewPostNewImageDefault

func NewPostNewImageDefault(code int) *PostNewImageDefault

NewPostNewImageDefault creates PostNewImageDefault with default headers values

func (*PostNewImageDefault) SetPayload

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

SetPayload sets the payload to the post new image default response

func (*PostNewImageDefault) SetStatusCode

func (o *PostNewImageDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post new image default response

func (*PostNewImageDefault) WithPayload

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

WithPayload adds the payload to the post new image default response

func (*PostNewImageDefault) WithStatusCode

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

WithStatusCode adds the status to the post new image default response

func (*PostNewImageDefault) WriteResponse

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

WriteResponse to the client

type PostNewImageHandler

type PostNewImageHandler interface {
	Handle(PostNewImageParams) middleware.Responder
}

PostNewImageHandler interface for that can handle valid post new image params

type PostNewImageHandlerFunc

type PostNewImageHandlerFunc func(PostNewImageParams) middleware.Responder

PostNewImageHandlerFunc turns a function with the right signature into a post new image handler

func (PostNewImageHandlerFunc) Handle

Handle executing the request and returning a response

type PostNewImageParams

type PostNewImageParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body PostNewImageBody
}

PostNewImageParams contains all the bound params for the post new image operation typically these are obtained from a http.Request

swagger:parameters postNewImage

func NewPostNewImageParams

func NewPostNewImageParams() PostNewImageParams

NewPostNewImageParams creates a new PostNewImageParams object no default values defined in spec.

func (*PostNewImageParams) BindRequest

func (o *PostNewImageParams) 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 NewPostNewImageParams() beforehand.

type PostNewImageURL

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

PostNewImageURL generates an URL for the post new image operation

func (*PostNewImageURL) Build

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

Build a url path and query string

func (*PostNewImageURL) BuildFull

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

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

func (*PostNewImageURL) Must

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

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

func (*PostNewImageURL) SetBasePath

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

func (o *PostNewImageURL) String() string

String returns the string representation of the path with query string

func (*PostNewImageURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostNewImageURL) WithBasePath

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

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