operations

package
v0.0.0-...-43166c5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAllCharts

type GetAllCharts struct {
	Context *middleware.Context
	Handler GetAllChartsHandler
}

GetAllCharts swagger:route GET /v1/charts getAllCharts

get all charts from all repos

func NewGetAllCharts

func NewGetAllCharts(ctx *middleware.Context, handler GetAllChartsHandler) *GetAllCharts

NewGetAllCharts creates a new http.Handler for the get all charts operation

func (*GetAllCharts) ServeHTTP

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

type GetAllChartsDefault

type GetAllChartsDefault struct {

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

GetAllChartsDefault unexpected error

swagger:response getAllChartsDefault

func NewGetAllChartsDefault

func NewGetAllChartsDefault(code int) *GetAllChartsDefault

NewGetAllChartsDefault creates GetAllChartsDefault with default headers values

func (*GetAllChartsDefault) SetPayload

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

SetPayload sets the payload to the get all charts default response

func (*GetAllChartsDefault) SetStatusCode

func (o *GetAllChartsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get all charts default response

func (*GetAllChartsDefault) WithPayload

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

WithPayload adds the payload to the get all charts default response

func (*GetAllChartsDefault) WithStatusCode

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

WithStatusCode adds the status to the get all charts default response

func (*GetAllChartsDefault) WriteResponse

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

WriteResponse to the client

type GetAllChartsHandler

type GetAllChartsHandler interface {
	Handle(GetAllChartsParams) middleware.Responder
}

GetAllChartsHandler interface for that can handle valid get all charts params

type GetAllChartsHandlerFunc

type GetAllChartsHandlerFunc func(GetAllChartsParams) middleware.Responder

GetAllChartsHandlerFunc turns a function with the right signature into a get all charts handler

func (GetAllChartsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAllChartsOK

type GetAllChartsOK struct {

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

GetAllChartsOK charts response

swagger:response getAllChartsOK

func NewGetAllChartsOK

func NewGetAllChartsOK() *GetAllChartsOK

NewGetAllChartsOK creates GetAllChartsOK with default headers values

func (*GetAllChartsOK) SetPayload

func (o *GetAllChartsOK) SetPayload(payload *models.ResourceArrayData)

SetPayload sets the payload to the get all charts o k response

func (*GetAllChartsOK) WithPayload

func (o *GetAllChartsOK) WithPayload(payload *models.ResourceArrayData) *GetAllChartsOK

WithPayload adds the payload to the get all charts o k response

func (*GetAllChartsOK) WriteResponse

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

WriteResponse to the client

type GetAllChartsParams

type GetAllChartsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

swagger:parameters getAllCharts

func NewGetAllChartsParams

func NewGetAllChartsParams() GetAllChartsParams

NewGetAllChartsParams creates a new GetAllChartsParams object with the default values initialized.

func (*GetAllChartsParams) BindRequest

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

type GetAllRepos

type GetAllRepos struct {
	Context *middleware.Context
	Handler GetAllReposHandler
}

GetAllRepos swagger:route GET /v1/repos getAllRepos

get all repositories enabled in the backend

func NewGetAllRepos

func NewGetAllRepos(ctx *middleware.Context, handler GetAllReposHandler) *GetAllRepos

NewGetAllRepos creates a new http.Handler for the get all repos operation

func (*GetAllRepos) ServeHTTP

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

type GetAllReposDefault

type GetAllReposDefault struct {

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

GetAllReposDefault unexpected error

swagger:response getAllReposDefault

func NewGetAllReposDefault

func NewGetAllReposDefault(code int) *GetAllReposDefault

NewGetAllReposDefault creates GetAllReposDefault with default headers values

func (*GetAllReposDefault) SetPayload

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

SetPayload sets the payload to the get all repos default response

func (*GetAllReposDefault) SetStatusCode

func (o *GetAllReposDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get all repos default response

func (*GetAllReposDefault) WithPayload

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

WithPayload adds the payload to the get all repos default response

func (*GetAllReposDefault) WithStatusCode

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

WithStatusCode adds the status to the get all repos default response

func (*GetAllReposDefault) WriteResponse

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

WriteResponse to the client

type GetAllReposHandler

type GetAllReposHandler interface {
	Handle(GetAllReposParams) middleware.Responder
}

GetAllReposHandler interface for that can handle valid get all repos params

type GetAllReposHandlerFunc

type GetAllReposHandlerFunc func(GetAllReposParams) middleware.Responder

GetAllReposHandlerFunc turns a function with the right signature into a get all repos handler

func (GetAllReposHandlerFunc) Handle

Handle executing the request and returning a response

type GetAllReposOK

type GetAllReposOK struct {

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

GetAllReposOK repositories response

swagger:response getAllReposOK

func NewGetAllReposOK

func NewGetAllReposOK() *GetAllReposOK

NewGetAllReposOK creates GetAllReposOK with default headers values

func (*GetAllReposOK) SetPayload

func (o *GetAllReposOK) SetPayload(payload *models.ResourceArrayData)

SetPayload sets the payload to the get all repos o k response

func (*GetAllReposOK) WithPayload

func (o *GetAllReposOK) WithPayload(payload *models.ResourceArrayData) *GetAllReposOK

WithPayload adds the payload to the get all repos o k response

func (*GetAllReposOK) WriteResponse

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

WriteResponse to the client

type GetAllReposParams

type GetAllReposParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

swagger:parameters getAllRepos

func NewGetAllReposParams

func NewGetAllReposParams() GetAllReposParams

NewGetAllReposParams creates a new GetAllReposParams object with the default values initialized.

func (*GetAllReposParams) BindRequest

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

type GetChart

type GetChart struct {
	Context *middleware.Context
	Handler GetChartHandler
}

GetChart swagger:route GET /v1/charts/{repo}/{chartName} getChart

get chart by repo/name

func NewGetChart

func NewGetChart(ctx *middleware.Context, handler GetChartHandler) *GetChart

NewGetChart creates a new http.Handler for the get chart operation

func (*GetChart) ServeHTTP

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

type GetChartDefault

type GetChartDefault struct {

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

GetChartDefault unexpected error

swagger:response getChartDefault

func NewGetChartDefault

func NewGetChartDefault(code int) *GetChartDefault

NewGetChartDefault creates GetChartDefault with default headers values

func (*GetChartDefault) SetPayload

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

SetPayload sets the payload to the get chart default response

func (*GetChartDefault) SetStatusCode

func (o *GetChartDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get chart default response

func (*GetChartDefault) WithPayload

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

WithPayload adds the payload to the get chart default response

func (*GetChartDefault) WithStatusCode

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

WithStatusCode adds the status to the get chart default response

func (*GetChartDefault) WriteResponse

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

WriteResponse to the client

type GetChartHandler

type GetChartHandler interface {
	Handle(GetChartParams) middleware.Responder
}

GetChartHandler interface for that can handle valid get chart params

type GetChartHandlerFunc

type GetChartHandlerFunc func(GetChartParams) middleware.Responder

GetChartHandlerFunc turns a function with the right signature into a get chart handler

func (GetChartHandlerFunc) Handle

Handle executing the request and returning a response

type GetChartOK

type GetChartOK struct {

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

GetChartOK chart response

swagger:response getChartOK

func NewGetChartOK

func NewGetChartOK() *GetChartOK

NewGetChartOK creates GetChartOK with default headers values

func (*GetChartOK) SetPayload

func (o *GetChartOK) SetPayload(payload *models.ResourceData)

SetPayload sets the payload to the get chart o k response

func (*GetChartOK) WithPayload

func (o *GetChartOK) WithPayload(payload *models.ResourceData) *GetChartOK

WithPayload adds the payload to the get chart o k response

func (*GetChartOK) WriteResponse

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

WriteResponse to the client

type GetChartParams

type GetChartParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ChartName string
	/*
	  Required: true
	  In: path
	*/
	Repo string
}

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

swagger:parameters getChart

func NewGetChartParams

func NewGetChartParams() GetChartParams

NewGetChartParams creates a new GetChartParams object with the default values initialized.

func (*GetChartParams) BindRequest

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

type GetChartVersion

type GetChartVersion struct {
	Context *middleware.Context
	Handler GetChartVersionHandler
}

GetChartVersion swagger:route GET /v1/charts/{repo}/{chartName}/versions/{version} getChartVersion

get specific chart version by repo/name

func NewGetChartVersion

func NewGetChartVersion(ctx *middleware.Context, handler GetChartVersionHandler) *GetChartVersion

NewGetChartVersion creates a new http.Handler for the get chart version operation

func (*GetChartVersion) ServeHTTP

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

type GetChartVersionDefault

type GetChartVersionDefault struct {

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

GetChartVersionDefault unexpected error

swagger:response getChartVersionDefault

func NewGetChartVersionDefault

func NewGetChartVersionDefault(code int) *GetChartVersionDefault

NewGetChartVersionDefault creates GetChartVersionDefault with default headers values

func (*GetChartVersionDefault) SetPayload

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

SetPayload sets the payload to the get chart version default response

func (*GetChartVersionDefault) SetStatusCode

func (o *GetChartVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get chart version default response

func (*GetChartVersionDefault) WithPayload

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

WithPayload adds the payload to the get chart version default response

func (*GetChartVersionDefault) WithStatusCode

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

WithStatusCode adds the status to the get chart version default response

func (*GetChartVersionDefault) WriteResponse

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

WriteResponse to the client

type GetChartVersionHandler

type GetChartVersionHandler interface {
	Handle(GetChartVersionParams) middleware.Responder
}

GetChartVersionHandler interface for that can handle valid get chart version params

type GetChartVersionHandlerFunc

type GetChartVersionHandlerFunc func(GetChartVersionParams) middleware.Responder

GetChartVersionHandlerFunc turns a function with the right signature into a get chart version handler

func (GetChartVersionHandlerFunc) Handle

Handle executing the request and returning a response

type GetChartVersionOK

type GetChartVersionOK struct {

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

GetChartVersionOK charts response

swagger:response getChartVersionOK

func NewGetChartVersionOK

func NewGetChartVersionOK() *GetChartVersionOK

NewGetChartVersionOK creates GetChartVersionOK with default headers values

func (*GetChartVersionOK) SetPayload

func (o *GetChartVersionOK) SetPayload(payload *models.ResourceArrayData)

SetPayload sets the payload to the get chart version o k response

func (*GetChartVersionOK) WithPayload

func (o *GetChartVersionOK) WithPayload(payload *models.ResourceArrayData) *GetChartVersionOK

WithPayload adds the payload to the get chart version o k response

func (*GetChartVersionOK) WriteResponse

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

WriteResponse to the client

type GetChartVersionParams

type GetChartVersionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ChartName string
	/*
	  Required: true
	  In: path
	*/
	Repo string
	/*
	  Required: true
	  In: path
	*/
	Version string
}

GetChartVersionParams contains all the bound params for the get chart version operation typically these are obtained from a http.Request

swagger:parameters getChartVersion

func NewGetChartVersionParams

func NewGetChartVersionParams() GetChartVersionParams

NewGetChartVersionParams creates a new GetChartVersionParams object with the default values initialized.

func (*GetChartVersionParams) BindRequest

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

type GetChartVersionReadme

type GetChartVersionReadme struct {
	Context *middleware.Context
	Handler GetChartVersionReadmeHandler
}

GetChartVersionReadme swagger:route GET /v1/charts/{repo}/{chartName}/versions/{version}/readme getChartVersionReadme

get Readme.md file for specific chart version

func NewGetChartVersionReadme

func NewGetChartVersionReadme(ctx *middleware.Context, handler GetChartVersionReadmeHandler) *GetChartVersionReadme

NewGetChartVersionReadme creates a new http.Handler for the get chart version readme operation

func (*GetChartVersionReadme) ServeHTTP

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

type GetChartVersionReadmeDefault

type GetChartVersionReadmeDefault struct {

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

GetChartVersionReadmeDefault unexpected error

swagger:response getChartVersionReadmeDefault

func NewGetChartVersionReadmeDefault

func NewGetChartVersionReadmeDefault(code int) *GetChartVersionReadmeDefault

NewGetChartVersionReadmeDefault creates GetChartVersionReadmeDefault with default headers values

func (*GetChartVersionReadmeDefault) SetPayload

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

SetPayload sets the payload to the get chart version readme default response

func (*GetChartVersionReadmeDefault) SetStatusCode

func (o *GetChartVersionReadmeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get chart version readme default response

func (*GetChartVersionReadmeDefault) WithPayload

WithPayload adds the payload to the get chart version readme default response

func (*GetChartVersionReadmeDefault) WithStatusCode

WithStatusCode adds the status to the get chart version readme default response

func (*GetChartVersionReadmeDefault) WriteResponse

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

WriteResponse to the client

type GetChartVersionReadmeHandler

type GetChartVersionReadmeHandler interface {
	Handle(GetChartVersionReadmeParams) middleware.Responder
}

GetChartVersionReadmeHandler interface for that can handle valid get chart version readme params

type GetChartVersionReadmeHandlerFunc

type GetChartVersionReadmeHandlerFunc func(GetChartVersionReadmeParams) middleware.Responder

GetChartVersionReadmeHandlerFunc turns a function with the right signature into a get chart version readme handler

func (GetChartVersionReadmeHandlerFunc) Handle

Handle executing the request and returning a response

type GetChartVersionReadmeOK

type GetChartVersionReadmeOK struct {

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

GetChartVersionReadmeOK Readme.md file content

swagger:response getChartVersionReadmeOK

func NewGetChartVersionReadmeOK

func NewGetChartVersionReadmeOK() *GetChartVersionReadmeOK

NewGetChartVersionReadmeOK creates GetChartVersionReadmeOK with default headers values

func (*GetChartVersionReadmeOK) SetPayload

func (o *GetChartVersionReadmeOK) SetPayload(payload *models.ResourceData)

SetPayload sets the payload to the get chart version readme o k response

func (*GetChartVersionReadmeOK) WithPayload

WithPayload adds the payload to the get chart version readme o k response

func (*GetChartVersionReadmeOK) WriteResponse

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

WriteResponse to the client

type GetChartVersionReadmeParams

type GetChartVersionReadmeParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ChartName string
	/*
	  Required: true
	  In: path
	*/
	Repo string
	/*
	  Required: true
	  In: path
	*/
	Version string
}

GetChartVersionReadmeParams contains all the bound params for the get chart version readme operation typically these are obtained from a http.Request

swagger:parameters getChartVersionReadme

func NewGetChartVersionReadmeParams

func NewGetChartVersionReadmeParams() GetChartVersionReadmeParams

NewGetChartVersionReadmeParams creates a new GetChartVersionReadmeParams object with the default values initialized.

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

type GetChartVersions

type GetChartVersions struct {
	Context *middleware.Context
	Handler GetChartVersionsHandler
}

GetChartVersions swagger:route GET /v1/charts/{repo}/{chartName}/versions getChartVersions

get all chart versions by repo/name

func NewGetChartVersions

func NewGetChartVersions(ctx *middleware.Context, handler GetChartVersionsHandler) *GetChartVersions

NewGetChartVersions creates a new http.Handler for the get chart versions operation

func (*GetChartVersions) ServeHTTP

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

type GetChartVersionsDefault

type GetChartVersionsDefault struct {

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

GetChartVersionsDefault unexpected error

swagger:response getChartVersionsDefault

func NewGetChartVersionsDefault

func NewGetChartVersionsDefault(code int) *GetChartVersionsDefault

NewGetChartVersionsDefault creates GetChartVersionsDefault with default headers values

func (*GetChartVersionsDefault) SetPayload

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

SetPayload sets the payload to the get chart versions default response

func (*GetChartVersionsDefault) SetStatusCode

func (o *GetChartVersionsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get chart versions default response

func (*GetChartVersionsDefault) WithPayload

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

WithPayload adds the payload to the get chart versions default response

func (*GetChartVersionsDefault) WithStatusCode

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

WithStatusCode adds the status to the get chart versions default response

func (*GetChartVersionsDefault) WriteResponse

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

WriteResponse to the client

type GetChartVersionsHandler

type GetChartVersionsHandler interface {
	Handle(GetChartVersionsParams) middleware.Responder
}

GetChartVersionsHandler interface for that can handle valid get chart versions params

type GetChartVersionsHandlerFunc

type GetChartVersionsHandlerFunc func(GetChartVersionsParams) middleware.Responder

GetChartVersionsHandlerFunc turns a function with the right signature into a get chart versions handler

func (GetChartVersionsHandlerFunc) Handle

Handle executing the request and returning a response

type GetChartVersionsOK

type GetChartVersionsOK struct {

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

GetChartVersionsOK chart response

swagger:response getChartVersionsOK

func NewGetChartVersionsOK

func NewGetChartVersionsOK() *GetChartVersionsOK

NewGetChartVersionsOK creates GetChartVersionsOK with default headers values

func (*GetChartVersionsOK) SetPayload

func (o *GetChartVersionsOK) SetPayload(payload *models.ResourceData)

SetPayload sets the payload to the get chart versions o k response

func (*GetChartVersionsOK) WithPayload

func (o *GetChartVersionsOK) WithPayload(payload *models.ResourceData) *GetChartVersionsOK

WithPayload adds the payload to the get chart versions o k response

func (*GetChartVersionsOK) WriteResponse

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

WriteResponse to the client

type GetChartVersionsParams

type GetChartVersionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ChartName string
	/*
	  Required: true
	  In: path
	*/
	Repo string
}

GetChartVersionsParams contains all the bound params for the get chart versions operation typically these are obtained from a http.Request

swagger:parameters getChartVersions

func NewGetChartVersionsParams

func NewGetChartVersionsParams() GetChartVersionsParams

NewGetChartVersionsParams creates a new GetChartVersionsParams object with the default values initialized.

func (*GetChartVersionsParams) BindRequest

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

type GetChartsInRepo

type GetChartsInRepo struct {
	Context *middleware.Context
	Handler GetChartsInRepoHandler
}

GetChartsInRepo swagger:route GET /v1/charts/{repo} getChartsInRepo

get all charts by repo

func NewGetChartsInRepo

func NewGetChartsInRepo(ctx *middleware.Context, handler GetChartsInRepoHandler) *GetChartsInRepo

NewGetChartsInRepo creates a new http.Handler for the get charts in repo operation

func (*GetChartsInRepo) ServeHTTP

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

type GetChartsInRepoDefault

type GetChartsInRepoDefault struct {

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

GetChartsInRepoDefault unexpected error

swagger:response getChartsInRepoDefault

func NewGetChartsInRepoDefault

func NewGetChartsInRepoDefault(code int) *GetChartsInRepoDefault

NewGetChartsInRepoDefault creates GetChartsInRepoDefault with default headers values

func (*GetChartsInRepoDefault) SetPayload

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

SetPayload sets the payload to the get charts in repo default response

func (*GetChartsInRepoDefault) SetStatusCode

func (o *GetChartsInRepoDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get charts in repo default response

func (*GetChartsInRepoDefault) WithPayload

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

WithPayload adds the payload to the get charts in repo default response

func (*GetChartsInRepoDefault) WithStatusCode

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

WithStatusCode adds the status to the get charts in repo default response

func (*GetChartsInRepoDefault) WriteResponse

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

WriteResponse to the client

type GetChartsInRepoHandler

type GetChartsInRepoHandler interface {
	Handle(GetChartsInRepoParams) middleware.Responder
}

GetChartsInRepoHandler interface for that can handle valid get charts in repo params

type GetChartsInRepoHandlerFunc

type GetChartsInRepoHandlerFunc func(GetChartsInRepoParams) middleware.Responder

GetChartsInRepoHandlerFunc turns a function with the right signature into a get charts in repo handler

func (GetChartsInRepoHandlerFunc) Handle

Handle executing the request and returning a response

type GetChartsInRepoOK

type GetChartsInRepoOK struct {

	// In: body
	Payload GetChartsInRepoOKBodyBody `json:"body,omitempty"`
}

GetChartsInRepoOK charts by repo response

swagger:response getChartsInRepoOK

func NewGetChartsInRepoOK

func NewGetChartsInRepoOK() *GetChartsInRepoOK

NewGetChartsInRepoOK creates GetChartsInRepoOK with default headers values

func (*GetChartsInRepoOK) SetPayload

func (o *GetChartsInRepoOK) SetPayload(payload GetChartsInRepoOKBodyBody)

SetPayload sets the payload to the get charts in repo o k response

func (*GetChartsInRepoOK) WithPayload

WithPayload adds the payload to the get charts in repo o k response

func (*GetChartsInRepoOK) WriteResponse

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

WriteResponse to the client

type GetChartsInRepoOKBodyBody

type GetChartsInRepoOKBodyBody struct {

	/* data

	Required: true
	*/
	Data *models.Resource `json:"data"`
}

GetChartsInRepoOKBodyBody get charts in repo o k body body

swagger:model GetChartsInRepoOKBodyBody

func (*GetChartsInRepoOKBodyBody) Validate

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

Validate validates this get charts in repo o k body body

type GetChartsInRepoParams

type GetChartsInRepoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	Repo string
}

GetChartsInRepoParams contains all the bound params for the get charts in repo operation typically these are obtained from a http.Request

swagger:parameters getChartsInRepo

func NewGetChartsInRepoParams

func NewGetChartsInRepoParams() GetChartsInRepoParams

NewGetChartsInRepoParams creates a new GetChartsInRepoParams object with the default values initialized.

func (*GetChartsInRepoParams) BindRequest

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

type Healthz

type Healthz struct {
	Context *middleware.Context
	Handler HealthzHandler
}

Healthz swagger:route GET /healthz healthz

health check

func NewHealthz

func NewHealthz(ctx *middleware.Context, handler HealthzHandler) *Healthz

NewHealthz creates a new http.Handler for the healthz operation

func (*Healthz) ServeHTTP

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

type HealthzDefault

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

HealthzDefault unexpected error

swagger:response healthzDefault

func NewHealthzDefault

func NewHealthzDefault(code int) *HealthzDefault

NewHealthzDefault creates HealthzDefault with default headers values

func (*HealthzDefault) SetStatusCode

func (o *HealthzDefault) SetStatusCode(code int)

SetStatusCode sets the status to the healthz default response

func (*HealthzDefault) WithStatusCode

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

WithStatusCode adds the status to the healthz default response

func (*HealthzDefault) WriteResponse

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

WriteResponse to the client

type HealthzHandler

type HealthzHandler interface {
	Handle(HealthzParams) middleware.Responder
}

HealthzHandler interface for that can handle valid healthz params

type HealthzHandlerFunc

type HealthzHandlerFunc func(HealthzParams) middleware.Responder

HealthzHandlerFunc turns a function with the right signature into a healthz handler

func (HealthzHandlerFunc) Handle

Handle executing the request and returning a response

type HealthzOK

type HealthzOK struct {
}

HealthzOK healthy

swagger:response healthzOK

func NewHealthzOK

func NewHealthzOK() *HealthzOK

NewHealthzOK creates HealthzOK with default headers values

func (*HealthzOK) WriteResponse

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

WriteResponse to the client

type HealthzParams

type HealthzParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

HealthzParams contains all the bound params for the healthz operation typically these are obtained from a http.Request

swagger:parameters healthz

func NewHealthzParams

func NewHealthzParams() HealthzParams

NewHealthzParams creates a new HealthzParams object with the default values initialized.

func (*HealthzParams) BindRequest

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

type MonocularAPI

type MonocularAPI struct {

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// GetAllChartsHandler sets the operation handler for the get all charts operation
	GetAllChartsHandler GetAllChartsHandler
	// GetAllReposHandler sets the operation handler for the get all repos operation
	GetAllReposHandler GetAllReposHandler
	// GetChartHandler sets the operation handler for the get chart operation
	GetChartHandler GetChartHandler
	// GetChartVersionHandler sets the operation handler for the get chart version operation
	GetChartVersionHandler GetChartVersionHandler
	// GetChartVersionsHandler sets the operation handler for the get chart versions operation
	GetChartVersionsHandler GetChartVersionsHandler
	// GetChartsInRepoHandler sets the operation handler for the get charts in repo operation
	GetChartsInRepoHandler GetChartsInRepoHandler
	// HealthzHandler sets the operation handler for the healthz operation
	HealthzHandler HealthzHandler
	// SearchChartsHandler sets the operation handler for the search charts operation
	SearchChartsHandler SearchChartsHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

MonocularAPI the monocular API

func NewMonocularAPI

func NewMonocularAPI(spec *loads.Document) *MonocularAPI

NewMonocularAPI creates a new Monocular instance

func (*MonocularAPI) AuthenticatorsFor

func (o *MonocularAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*MonocularAPI) ConsumersFor

func (o *MonocularAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*MonocularAPI) DefaultConsumes

func (o *MonocularAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*MonocularAPI) DefaultProduces

func (o *MonocularAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*MonocularAPI) Formats

func (o *MonocularAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*MonocularAPI) HandlerFor

func (o *MonocularAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*MonocularAPI) ProducersFor

func (o *MonocularAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*MonocularAPI) RegisterFormat

func (o *MonocularAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*MonocularAPI) Serve

func (o *MonocularAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*MonocularAPI) ServeErrorFor

func (o *MonocularAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*MonocularAPI) SetDefaultConsumes

func (o *MonocularAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*MonocularAPI) SetDefaultProduces

func (o *MonocularAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*MonocularAPI) SetSpec

func (o *MonocularAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*MonocularAPI) Validate

func (o *MonocularAPI) Validate() error

Validate validates the registrations in the MonocularAPI

type SearchCharts

type SearchCharts struct {
	Context *middleware.Context
	Handler SearchChartsHandler
}

SearchCharts swagger:route GET /v1/charts/search searchCharts

search charts

func NewSearchCharts

func NewSearchCharts(ctx *middleware.Context, handler SearchChartsHandler) *SearchCharts

NewSearchCharts creates a new http.Handler for the search charts operation

func (*SearchCharts) ServeHTTP

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

type SearchChartsDefault

type SearchChartsDefault struct {

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

SearchChartsDefault unexpected error

swagger:response searchChartsDefault

func NewSearchChartsDefault

func NewSearchChartsDefault(code int) *SearchChartsDefault

NewSearchChartsDefault creates SearchChartsDefault with default headers values

func (*SearchChartsDefault) SetPayload

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

SetPayload sets the payload to the search charts default response

func (*SearchChartsDefault) SetStatusCode

func (o *SearchChartsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the search charts default response

func (*SearchChartsDefault) WithPayload

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

WithPayload adds the payload to the search charts default response

func (*SearchChartsDefault) WithStatusCode

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

WithStatusCode adds the status to the search charts default response

func (*SearchChartsDefault) WriteResponse

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

WriteResponse to the client

type SearchChartsHandler

type SearchChartsHandler interface {
	Handle(SearchChartsParams) middleware.Responder
}

SearchChartsHandler interface for that can handle valid search charts params

type SearchChartsHandlerFunc

type SearchChartsHandlerFunc func(SearchChartsParams) middleware.Responder

SearchChartsHandlerFunc turns a function with the right signature into a search charts handler

func (SearchChartsHandlerFunc) Handle

Handle executing the request and returning a response

type SearchChartsOK

type SearchChartsOK struct {

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

SearchChartsOK charts response

swagger:response searchChartsOK

func NewSearchChartsOK

func NewSearchChartsOK() *SearchChartsOK

NewSearchChartsOK creates SearchChartsOK with default headers values

func (*SearchChartsOK) SetPayload

func (o *SearchChartsOK) SetPayload(payload *models.ResourceArrayData)

SetPayload sets the payload to the search charts o k response

func (*SearchChartsOK) WithPayload

func (o *SearchChartsOK) WithPayload(payload *models.ResourceArrayData) *SearchChartsOK

WithPayload adds the payload to the search charts o k response

func (*SearchChartsOK) WriteResponse

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

WriteResponse to the client

type SearchChartsParams

type SearchChartsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*chart name substring pattern match
	  Required: true
	  In: query
	*/
	Name string
}

SearchChartsParams contains all the bound params for the search charts operation typically these are obtained from a http.Request

swagger:parameters searchCharts

func NewSearchChartsParams

func NewSearchChartsParams() SearchChartsParams

NewSearchChartsParams creates a new SearchChartsParams object with the default values initialized.

func (*SearchChartsParams) BindRequest

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL