containers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreateContainerCreatedCode int = 201

CreateContainerCreatedCode is the HTTP code returned for type CreateContainerCreated

View Source
const DeleteContainerBynameOKCode int = 200

DeleteContainerBynameOKCode is the HTTP code returned for type DeleteContainerBynameOK

View Source
const DeleteContainerOKCode int = 200

DeleteContainerOKCode is the HTTP code returned for type DeleteContainerOK

View Source
const GetContainerBynameOKCode int = 200

GetContainerBynameOKCode is the HTTP code returned for type GetContainerBynameOK

View Source
const GetContainerOKCode int = 200

GetContainerOKCode is the HTTP code returned for type GetContainerOK

View Source
const ListContainersOKCode int = 200

ListContainersOKCode is the HTTP code returned for type ListContainersOK

View Source
const SetContainerStateBynameOKCode int = 200

SetContainerStateBynameOKCode is the HTTP code returned for type SetContainerStateBynameOK

View Source
const SetContainerStateOKCode int = 200

SetContainerStateOKCode is the HTTP code returned for type SetContainerStateOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateContainer

type CreateContainer struct {
	Context *middleware.Context
	Handler CreateContainerHandler
}

CreateContainer swagger:route POST /container containers createContainer

Create a container

func NewCreateContainer

func NewCreateContainer(ctx *middleware.Context, handler CreateContainerHandler) *CreateContainer

NewCreateContainer creates a new http.Handler for the create container operation

func (*CreateContainer) ServeHTTP

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

type CreateContainerCreated

type CreateContainerCreated struct {

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

CreateContainerCreated Container creation succeed

swagger:response createContainerCreated

func NewCreateContainerCreated

func NewCreateContainerCreated() *CreateContainerCreated

NewCreateContainerCreated creates CreateContainerCreated with default headers values

func (*CreateContainerCreated) SetPayload

func (o *CreateContainerCreated) SetPayload(payload *models.Container)

SetPayload sets the payload to the create container created response

func (*CreateContainerCreated) WithPayload

WithPayload adds the payload to the create container created response

func (*CreateContainerCreated) WriteResponse

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

WriteResponse to the client

type CreateContainerDefault

type CreateContainerDefault struct {

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

CreateContainerDefault error

swagger:response createContainerDefault

func NewCreateContainerDefault

func NewCreateContainerDefault(code int) *CreateContainerDefault

NewCreateContainerDefault creates CreateContainerDefault with default headers values

func (*CreateContainerDefault) SetPayload

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

SetPayload sets the payload to the create container default response

func (*CreateContainerDefault) SetStatusCode

func (o *CreateContainerDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create container default response

func (*CreateContainerDefault) WithPayload

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

WithPayload adds the payload to the create container default response

func (*CreateContainerDefault) WithStatusCode

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

WithStatusCode adds the status to the create container default response

func (*CreateContainerDefault) WriteResponse

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

WriteResponse to the client

type CreateContainerHandler

type CreateContainerHandler interface {
	Handle(CreateContainerParams) middleware.Responder
}

CreateContainerHandler interface for that can handle valid create container params

type CreateContainerHandlerFunc

type CreateContainerHandlerFunc func(CreateContainerParams) middleware.Responder

CreateContainerHandlerFunc turns a function with the right signature into a create container handler

func (CreateContainerHandlerFunc) Handle

Handle executing the request and returning a response

type CreateContainerParams

type CreateContainerParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Container *models.Container
}

CreateContainerParams contains all the bound params for the create container operation typically these are obtained from a http.Request

swagger:parameters create_container

func NewCreateContainerParams

func NewCreateContainerParams() CreateContainerParams

NewCreateContainerParams creates a new CreateContainerParams object no default values defined in spec.

func (*CreateContainerParams) BindRequest

func (o *CreateContainerParams) 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 NewCreateContainerParams() beforehand.

type CreateContainerURL

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

CreateContainerURL generates an URL for the create container operation

func (*CreateContainerURL) Build

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

Build a url path and query string

func (*CreateContainerURL) BuildFull

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

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

func (*CreateContainerURL) Must

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

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

func (*CreateContainerURL) SetBasePath

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

func (o *CreateContainerURL) String() string

String returns the string representation of the path with query string

func (*CreateContainerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateContainerURL) WithBasePath

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

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 DeleteContainer

type DeleteContainer struct {
	Context *middleware.Context
	Handler DeleteContainerHandler
}

DeleteContainer swagger:route DELETE /container/{id} containers deleteContainer

Delete a container defition. This will stop running containers.

func NewDeleteContainer

func NewDeleteContainer(ctx *middleware.Context, handler DeleteContainerHandler) *DeleteContainer

NewDeleteContainer creates a new http.Handler for the delete container operation

func (*DeleteContainer) ServeHTTP

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

type DeleteContainerByname

type DeleteContainerByname struct {
	Context *middleware.Context
	Handler DeleteContainerBynameHandler
}

DeleteContainerByname swagger:route DELETE /container/byname/{name} containers deleteContainerByname

Delete a container defition. This will stop running containers.

func NewDeleteContainerByname

func NewDeleteContainerByname(ctx *middleware.Context, handler DeleteContainerBynameHandler) *DeleteContainerByname

NewDeleteContainerByname creates a new http.Handler for the delete container byname operation

func (*DeleteContainerByname) ServeHTTP

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

type DeleteContainerBynameDefault

type DeleteContainerBynameDefault struct {

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

DeleteContainerBynameDefault error

swagger:response deleteContainerBynameDefault

func NewDeleteContainerBynameDefault

func NewDeleteContainerBynameDefault(code int) *DeleteContainerBynameDefault

NewDeleteContainerBynameDefault creates DeleteContainerBynameDefault with default headers values

func (*DeleteContainerBynameDefault) SetPayload

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

SetPayload sets the payload to the delete container byname default response

func (*DeleteContainerBynameDefault) SetStatusCode

func (o *DeleteContainerBynameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete container byname default response

func (*DeleteContainerBynameDefault) WithPayload

WithPayload adds the payload to the delete container byname default response

func (*DeleteContainerBynameDefault) WithStatusCode

WithStatusCode adds the status to the delete container byname default response

func (*DeleteContainerBynameDefault) WriteResponse

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

WriteResponse to the client

type DeleteContainerBynameHandler

type DeleteContainerBynameHandler interface {
	Handle(DeleteContainerBynameParams) middleware.Responder
}

DeleteContainerBynameHandler interface for that can handle valid delete container byname params

type DeleteContainerBynameHandlerFunc

type DeleteContainerBynameHandlerFunc func(DeleteContainerBynameParams) middleware.Responder

DeleteContainerBynameHandlerFunc turns a function with the right signature into a delete container byname handler

func (DeleteContainerBynameHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteContainerBynameOK

type DeleteContainerBynameOK struct {

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

DeleteContainerBynameOK Container deleted

swagger:response deleteContainerBynameOK

func NewDeleteContainerBynameOK

func NewDeleteContainerBynameOK() *DeleteContainerBynameOK

NewDeleteContainerBynameOK creates DeleteContainerBynameOK with default headers values

func (*DeleteContainerBynameOK) SetPayload

func (o *DeleteContainerBynameOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the delete container byname o k response

func (*DeleteContainerBynameOK) WithPayload

WithPayload adds the payload to the delete container byname o k response

func (*DeleteContainerBynameOK) WriteResponse

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

WriteResponse to the client

type DeleteContainerBynameParams

type DeleteContainerBynameParams struct {

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

	/*
	  Required: true
	  Pattern: ^[a-zA-Z0-9._-]*$
	  In: path
	*/
	Name string
}

DeleteContainerBynameParams contains all the bound params for the delete container byname operation typically these are obtained from a http.Request

swagger:parameters delete_container_byname

func NewDeleteContainerBynameParams

func NewDeleteContainerBynameParams() DeleteContainerBynameParams

NewDeleteContainerBynameParams creates a new DeleteContainerBynameParams object no default values defined in spec.

func (*DeleteContainerBynameParams) 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 NewDeleteContainerBynameParams() beforehand.

type DeleteContainerBynameURL

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

DeleteContainerBynameURL generates an URL for the delete container byname operation

func (*DeleteContainerBynameURL) Build

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

Build a url path and query string

func (*DeleteContainerBynameURL) BuildFull

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

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

func (*DeleteContainerBynameURL) Must

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

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

func (*DeleteContainerBynameURL) SetBasePath

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

func (o *DeleteContainerBynameURL) String() string

String returns the string representation of the path with query string

func (*DeleteContainerBynameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteContainerBynameURL) 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 DeleteContainerDefault

type DeleteContainerDefault struct {

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

DeleteContainerDefault error

swagger:response deleteContainerDefault

func NewDeleteContainerDefault

func NewDeleteContainerDefault(code int) *DeleteContainerDefault

NewDeleteContainerDefault creates DeleteContainerDefault with default headers values

func (*DeleteContainerDefault) SetPayload

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

SetPayload sets the payload to the delete container default response

func (*DeleteContainerDefault) SetStatusCode

func (o *DeleteContainerDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete container default response

func (*DeleteContainerDefault) WithPayload

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

WithPayload adds the payload to the delete container default response

func (*DeleteContainerDefault) WithStatusCode

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

WithStatusCode adds the status to the delete container default response

func (*DeleteContainerDefault) WriteResponse

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

WriteResponse to the client

type DeleteContainerHandler

type DeleteContainerHandler interface {
	Handle(DeleteContainerParams) middleware.Responder
}

DeleteContainerHandler interface for that can handle valid delete container params

type DeleteContainerHandlerFunc

type DeleteContainerHandlerFunc func(DeleteContainerParams) middleware.Responder

DeleteContainerHandlerFunc turns a function with the right signature into a delete container handler

func (DeleteContainerHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteContainerOK

type DeleteContainerOK struct {

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

DeleteContainerOK Container deleted

swagger:response deleteContainerOK

func NewDeleteContainerOK

func NewDeleteContainerOK() *DeleteContainerOK

NewDeleteContainerOK creates DeleteContainerOK with default headers values

func (*DeleteContainerOK) SetPayload

func (o *DeleteContainerOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the delete container o k response

func (*DeleteContainerOK) WithPayload

func (o *DeleteContainerOK) WithPayload(payload *models.Container) *DeleteContainerOK

WithPayload adds the payload to the delete container o k response

func (*DeleteContainerOK) WriteResponse

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

WriteResponse to the client

type DeleteContainerParams

type DeleteContainerParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

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

swagger:parameters delete_container

func NewDeleteContainerParams

func NewDeleteContainerParams() DeleteContainerParams

NewDeleteContainerParams creates a new DeleteContainerParams object no default values defined in spec.

func (*DeleteContainerParams) BindRequest

func (o *DeleteContainerParams) 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 NewDeleteContainerParams() beforehand.

type DeleteContainerURL

type DeleteContainerURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteContainerURL generates an URL for the delete container operation

func (*DeleteContainerURL) Build

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

Build a url path and query string

func (*DeleteContainerURL) BuildFull

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

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

func (*DeleteContainerURL) Must

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

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

func (*DeleteContainerURL) SetBasePath

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

func (o *DeleteContainerURL) String() string

String returns the string representation of the path with query string

func (*DeleteContainerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteContainerURL) WithBasePath

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

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 GetContainer

type GetContainer struct {
	Context *middleware.Context
	Handler GetContainerHandler
}

GetContainer swagger:route GET /container/{id} containers getContainer

Get a container definition

func NewGetContainer

func NewGetContainer(ctx *middleware.Context, handler GetContainerHandler) *GetContainer

NewGetContainer creates a new http.Handler for the get container operation

func (*GetContainer) ServeHTTP

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

type GetContainerByname

type GetContainerByname struct {
	Context *middleware.Context
	Handler GetContainerBynameHandler
}

GetContainerByname swagger:route GET /container/byname/{name} containers getContainerByname

Get a container definition

func NewGetContainerByname

func NewGetContainerByname(ctx *middleware.Context, handler GetContainerBynameHandler) *GetContainerByname

NewGetContainerByname creates a new http.Handler for the get container byname operation

func (*GetContainerByname) ServeHTTP

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

type GetContainerBynameDefault

type GetContainerBynameDefault struct {

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

GetContainerBynameDefault error

swagger:response getContainerBynameDefault

func NewGetContainerBynameDefault

func NewGetContainerBynameDefault(code int) *GetContainerBynameDefault

NewGetContainerBynameDefault creates GetContainerBynameDefault with default headers values

func (*GetContainerBynameDefault) SetPayload

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

SetPayload sets the payload to the get container byname default response

func (*GetContainerBynameDefault) SetStatusCode

func (o *GetContainerBynameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get container byname default response

func (*GetContainerBynameDefault) WithPayload

WithPayload adds the payload to the get container byname default response

func (*GetContainerBynameDefault) WithStatusCode

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

WithStatusCode adds the status to the get container byname default response

func (*GetContainerBynameDefault) WriteResponse

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

WriteResponse to the client

type GetContainerBynameHandler

type GetContainerBynameHandler interface {
	Handle(GetContainerBynameParams) middleware.Responder
}

GetContainerBynameHandler interface for that can handle valid get container byname params

type GetContainerBynameHandlerFunc

type GetContainerBynameHandlerFunc func(GetContainerBynameParams) middleware.Responder

GetContainerBynameHandlerFunc turns a function with the right signature into a get container byname handler

func (GetContainerBynameHandlerFunc) Handle

Handle executing the request and returning a response

type GetContainerBynameOK

type GetContainerBynameOK struct {

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

GetContainerBynameOK Container entry

swagger:response getContainerBynameOK

func NewGetContainerBynameOK

func NewGetContainerBynameOK() *GetContainerBynameOK

NewGetContainerBynameOK creates GetContainerBynameOK with default headers values

func (*GetContainerBynameOK) SetPayload

func (o *GetContainerBynameOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the get container byname o k response

func (*GetContainerBynameOK) WithPayload

func (o *GetContainerBynameOK) WithPayload(payload *models.Container) *GetContainerBynameOK

WithPayload adds the payload to the get container byname o k response

func (*GetContainerBynameOK) WriteResponse

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

WriteResponse to the client

type GetContainerBynameParams

type GetContainerBynameParams struct {

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

	/*
	  Required: true
	  Pattern: ^[a-zA-Z0-9._-]*$
	  In: path
	*/
	Name string
}

GetContainerBynameParams contains all the bound params for the get container byname operation typically these are obtained from a http.Request

swagger:parameters get_container_byname

func NewGetContainerBynameParams

func NewGetContainerBynameParams() GetContainerBynameParams

NewGetContainerBynameParams creates a new GetContainerBynameParams object no default values defined in spec.

func (*GetContainerBynameParams) 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 NewGetContainerBynameParams() beforehand.

type GetContainerBynameURL

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

GetContainerBynameURL generates an URL for the get container byname operation

func (*GetContainerBynameURL) Build

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

Build a url path and query string

func (*GetContainerBynameURL) BuildFull

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

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

func (*GetContainerBynameURL) Must

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

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

func (*GetContainerBynameURL) SetBasePath

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

func (o *GetContainerBynameURL) String() string

String returns the string representation of the path with query string

func (*GetContainerBynameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetContainerBynameURL) WithBasePath

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

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 GetContainerDefault

type GetContainerDefault struct {

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

GetContainerDefault error

swagger:response getContainerDefault

func NewGetContainerDefault

func NewGetContainerDefault(code int) *GetContainerDefault

NewGetContainerDefault creates GetContainerDefault with default headers values

func (*GetContainerDefault) SetPayload

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

SetPayload sets the payload to the get container default response

func (*GetContainerDefault) SetStatusCode

func (o *GetContainerDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get container default response

func (*GetContainerDefault) WithPayload

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

WithPayload adds the payload to the get container default response

func (*GetContainerDefault) WithStatusCode

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

WithStatusCode adds the status to the get container default response

func (*GetContainerDefault) WriteResponse

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

WriteResponse to the client

type GetContainerHandler

type GetContainerHandler interface {
	Handle(GetContainerParams) middleware.Responder
}

GetContainerHandler interface for that can handle valid get container params

type GetContainerHandlerFunc

type GetContainerHandlerFunc func(GetContainerParams) middleware.Responder

GetContainerHandlerFunc turns a function with the right signature into a get container handler

func (GetContainerHandlerFunc) Handle

Handle executing the request and returning a response

type GetContainerOK

type GetContainerOK struct {

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

GetContainerOK Container entry

swagger:response getContainerOK

func NewGetContainerOK

func NewGetContainerOK() *GetContainerOK

NewGetContainerOK creates GetContainerOK with default headers values

func (*GetContainerOK) SetPayload

func (o *GetContainerOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the get container o k response

func (*GetContainerOK) WithPayload

func (o *GetContainerOK) WithPayload(payload *models.Container) *GetContainerOK

WithPayload adds the payload to the get container o k response

func (*GetContainerOK) WriteResponse

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

WriteResponse to the client

type GetContainerParams

type GetContainerParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

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

swagger:parameters get_container

func NewGetContainerParams

func NewGetContainerParams() GetContainerParams

NewGetContainerParams creates a new GetContainerParams object no default values defined in spec.

func (*GetContainerParams) BindRequest

func (o *GetContainerParams) 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 NewGetContainerParams() beforehand.

type GetContainerURL

type GetContainerURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetContainerURL generates an URL for the get container operation

func (*GetContainerURL) Build

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

Build a url path and query string

func (*GetContainerURL) BuildFull

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

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

func (*GetContainerURL) Must

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

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

func (*GetContainerURL) SetBasePath

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

func (o *GetContainerURL) String() string

String returns the string representation of the path with query string

func (*GetContainerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetContainerURL) WithBasePath

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

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 ListContainers

type ListContainers struct {
	Context *middleware.Context
	Handler ListContainersHandler
}

ListContainers swagger:route GET /container containers listContainers

Get a list of containers

func NewListContainers

func NewListContainers(ctx *middleware.Context, handler ListContainersHandler) *ListContainers

NewListContainers creates a new http.Handler for the list containers operation

func (*ListContainers) ServeHTTP

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

type ListContainersDefault

type ListContainersDefault struct {

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

ListContainersDefault error

swagger:response listContainersDefault

func NewListContainersDefault

func NewListContainersDefault(code int) *ListContainersDefault

NewListContainersDefault creates ListContainersDefault with default headers values

func (*ListContainersDefault) SetPayload

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

SetPayload sets the payload to the list containers default response

func (*ListContainersDefault) SetStatusCode

func (o *ListContainersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list containers default response

func (*ListContainersDefault) WithPayload

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

WithPayload adds the payload to the list containers default response

func (*ListContainersDefault) WithStatusCode

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

WithStatusCode adds the status to the list containers default response

func (*ListContainersDefault) WriteResponse

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

WriteResponse to the client

type ListContainersHandler

type ListContainersHandler interface {
	Handle(ListContainersParams) middleware.Responder
}

ListContainersHandler interface for that can handle valid list containers params

type ListContainersHandlerFunc

type ListContainersHandlerFunc func(ListContainersParams) middleware.Responder

ListContainersHandlerFunc turns a function with the right signature into a list containers handler

func (ListContainersHandlerFunc) Handle

Handle executing the request and returning a response

type ListContainersOK

type ListContainersOK struct {

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

ListContainersOK List of containers

swagger:response listContainersOK

func NewListContainersOK

func NewListContainersOK() *ListContainersOK

NewListContainersOK creates ListContainersOK with default headers values

func (*ListContainersOK) SetPayload

func (o *ListContainersOK) SetPayload(payload []*models.Container)

SetPayload sets the payload to the list containers o k response

func (*ListContainersOK) WithPayload

func (o *ListContainersOK) WithPayload(payload []*models.Container) *ListContainersOK

WithPayload adds the payload to the list containers o k response

func (*ListContainersOK) WriteResponse

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

WriteResponse to the client

type ListContainersParams

type ListContainersParams struct {

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

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

swagger:parameters list_containers

func NewListContainersParams

func NewListContainersParams() ListContainersParams

NewListContainersParams creates a new ListContainersParams object no default values defined in spec.

func (*ListContainersParams) BindRequest

func (o *ListContainersParams) 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 NewListContainersParams() beforehand.

type ListContainersURL

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

ListContainersURL generates an URL for the list containers operation

func (*ListContainersURL) Build

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

Build a url path and query string

func (*ListContainersURL) BuildFull

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

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

func (*ListContainersURL) Must

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

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

func (*ListContainersURL) SetBasePath

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

func (o *ListContainersURL) String() string

String returns the string representation of the path with query string

func (*ListContainersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListContainersURL) WithBasePath

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

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 SetContainerState

type SetContainerState struct {
	Context *middleware.Context
	Handler SetContainerStateHandler
}

SetContainerState swagger:route GET /container/{id}/{state} containers setContainerState

Request a (valid) state for a container. Valid states to request include: `running`, `exited`, `paused` (paused is not yet implemented)

func NewSetContainerState

func NewSetContainerState(ctx *middleware.Context, handler SetContainerStateHandler) *SetContainerState

NewSetContainerState creates a new http.Handler for the set container state operation

func (*SetContainerState) ServeHTTP

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

type SetContainerStateByname

type SetContainerStateByname struct {
	Context *middleware.Context
	Handler SetContainerStateBynameHandler
}

SetContainerStateByname swagger:route GET /container/byname/{name}/{state} containers setContainerStateByname

Request a (valid) state for a container. Valid states to request include: `running`, `exited`, `paused` (paused is not yet implemented)

func NewSetContainerStateByname

func NewSetContainerStateByname(ctx *middleware.Context, handler SetContainerStateBynameHandler) *SetContainerStateByname

NewSetContainerStateByname creates a new http.Handler for the set container state byname operation

func (*SetContainerStateByname) ServeHTTP

type SetContainerStateBynameDefault

type SetContainerStateBynameDefault struct {

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

SetContainerStateBynameDefault error

swagger:response setContainerStateBynameDefault

func NewSetContainerStateBynameDefault

func NewSetContainerStateBynameDefault(code int) *SetContainerStateBynameDefault

NewSetContainerStateBynameDefault creates SetContainerStateBynameDefault with default headers values

func (*SetContainerStateBynameDefault) SetPayload

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

SetPayload sets the payload to the set container state byname default response

func (*SetContainerStateBynameDefault) SetStatusCode

func (o *SetContainerStateBynameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the set container state byname default response

func (*SetContainerStateBynameDefault) WithPayload

WithPayload adds the payload to the set container state byname default response

func (*SetContainerStateBynameDefault) WithStatusCode

WithStatusCode adds the status to the set container state byname default response

func (*SetContainerStateBynameDefault) WriteResponse

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

WriteResponse to the client

type SetContainerStateBynameHandler

type SetContainerStateBynameHandler interface {
	Handle(SetContainerStateBynameParams) middleware.Responder
}

SetContainerStateBynameHandler interface for that can handle valid set container state byname params

type SetContainerStateBynameHandlerFunc

type SetContainerStateBynameHandlerFunc func(SetContainerStateBynameParams) middleware.Responder

SetContainerStateBynameHandlerFunc turns a function with the right signature into a set container state byname handler

func (SetContainerStateBynameHandlerFunc) Handle

Handle executing the request and returning a response

type SetContainerStateBynameOK

type SetContainerStateBynameOK struct {

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

SetContainerStateBynameOK Container state changed

swagger:response setContainerStateBynameOK

func NewSetContainerStateBynameOK

func NewSetContainerStateBynameOK() *SetContainerStateBynameOK

NewSetContainerStateBynameOK creates SetContainerStateBynameOK with default headers values

func (*SetContainerStateBynameOK) SetPayload

func (o *SetContainerStateBynameOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the set container state byname o k response

func (*SetContainerStateBynameOK) WithPayload

WithPayload adds the payload to the set container state byname o k response

func (*SetContainerStateBynameOK) WriteResponse

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

WriteResponse to the client

type SetContainerStateBynameParams

type SetContainerStateBynameParams struct {

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

	/*
	  Required: true
	  Pattern: ^[a-zA-Z0-9.\-_]*$
	  In: path
	*/
	Name string
	/*
	  Required: true
	  In: path
	*/
	State string
}

SetContainerStateBynameParams contains all the bound params for the set container state byname operation typically these are obtained from a http.Request

swagger:parameters set_container_state_byname

func NewSetContainerStateBynameParams

func NewSetContainerStateBynameParams() SetContainerStateBynameParams

NewSetContainerStateBynameParams creates a new SetContainerStateBynameParams object no default values defined in spec.

func (*SetContainerStateBynameParams) 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 NewSetContainerStateBynameParams() beforehand.

type SetContainerStateBynameURL

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

SetContainerStateBynameURL generates an URL for the set container state byname operation

func (*SetContainerStateBynameURL) Build

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

Build a url path and query string

func (*SetContainerStateBynameURL) BuildFull

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

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

func (*SetContainerStateBynameURL) Must

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

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

func (*SetContainerStateBynameURL) SetBasePath

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

func (o *SetContainerStateBynameURL) String() string

String returns the string representation of the path with query string

func (*SetContainerStateBynameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SetContainerStateBynameURL) 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 SetContainerStateDefault

type SetContainerStateDefault struct {

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

SetContainerStateDefault error

swagger:response setContainerStateDefault

func NewSetContainerStateDefault

func NewSetContainerStateDefault(code int) *SetContainerStateDefault

NewSetContainerStateDefault creates SetContainerStateDefault with default headers values

func (*SetContainerStateDefault) SetPayload

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

SetPayload sets the payload to the set container state default response

func (*SetContainerStateDefault) SetStatusCode

func (o *SetContainerStateDefault) SetStatusCode(code int)

SetStatusCode sets the status to the set container state default response

func (*SetContainerStateDefault) WithPayload

WithPayload adds the payload to the set container state default response

func (*SetContainerStateDefault) WithStatusCode

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

WithStatusCode adds the status to the set container state default response

func (*SetContainerStateDefault) WriteResponse

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

WriteResponse to the client

type SetContainerStateHandler

type SetContainerStateHandler interface {
	Handle(SetContainerStateParams) middleware.Responder
}

SetContainerStateHandler interface for that can handle valid set container state params

type SetContainerStateHandlerFunc

type SetContainerStateHandlerFunc func(SetContainerStateParams) middleware.Responder

SetContainerStateHandlerFunc turns a function with the right signature into a set container state handler

func (SetContainerStateHandlerFunc) Handle

Handle executing the request and returning a response

type SetContainerStateOK

type SetContainerStateOK struct {

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

SetContainerStateOK Container state changed

swagger:response setContainerStateOK

func NewSetContainerStateOK

func NewSetContainerStateOK() *SetContainerStateOK

NewSetContainerStateOK creates SetContainerStateOK with default headers values

func (*SetContainerStateOK) SetPayload

func (o *SetContainerStateOK) SetPayload(payload *models.Container)

SetPayload sets the payload to the set container state o k response

func (*SetContainerStateOK) WithPayload

func (o *SetContainerStateOK) WithPayload(payload *models.Container) *SetContainerStateOK

WithPayload adds the payload to the set container state o k response

func (*SetContainerStateOK) WriteResponse

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

WriteResponse to the client

type SetContainerStateParams

type SetContainerStateParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID int64
	/*
	  Required: true
	  In: path
	*/
	State string
}

SetContainerStateParams contains all the bound params for the set container state operation typically these are obtained from a http.Request

swagger:parameters set_container_state

func NewSetContainerStateParams

func NewSetContainerStateParams() SetContainerStateParams

NewSetContainerStateParams creates a new SetContainerStateParams object no default values defined in spec.

func (*SetContainerStateParams) BindRequest

func (o *SetContainerStateParams) 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 NewSetContainerStateParams() beforehand.

type SetContainerStateURL

type SetContainerStateURL struct {
	ID    int64
	State string
	// contains filtered or unexported fields
}

SetContainerStateURL generates an URL for the set container state operation

func (*SetContainerStateURL) Build

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

Build a url path and query string

func (*SetContainerStateURL) BuildFull

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

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

func (*SetContainerStateURL) Must

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

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

func (*SetContainerStateURL) SetBasePath

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

func (o *SetContainerStateURL) String() string

String returns the string representation of the path with query string

func (*SetContainerStateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SetContainerStateURL) WithBasePath

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

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