server

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByCatalogKindNameResourcePath

func ByCatalogKindNameResourcePath(catalog string, kind string, name string) string

ByCatalogKindNameResourcePath returns the URL path to the resource service ByCatalogKindName HTTP endpoint.

func ByCatalogKindNameVersionReadmeResourcePath

func ByCatalogKindNameVersionReadmeResourcePath(catalog string, kind string, name string, version string) string

ByCatalogKindNameVersionReadmeResourcePath returns the URL path to the resource service ByCatalogKindNameVersionReadme HTTP endpoint.

func ByCatalogKindNameVersionResourcePath

func ByCatalogKindNameVersionResourcePath(catalog string, kind string, name string, version string) string

ByCatalogKindNameVersionResourcePath returns the URL path to the resource service ByCatalogKindNameVersion HTTP endpoint.

func ByCatalogKindNameVersionYamlResourcePath

func ByCatalogKindNameVersionYamlResourcePath(catalog string, kind string, name string, version string) string

ByCatalogKindNameVersionYamlResourcePath returns the URL path to the resource service ByCatalogKindNameVersionYaml HTTP endpoint.

func ByIDResourcePath

func ByIDResourcePath(id uint) string

ByIDResourcePath returns the URL path to the resource service ById HTTP endpoint.

func ByVersionIDResourcePath

func ByVersionIDResourcePath(versionID uint) string

ByVersionIDResourcePath returns the URL path to the resource service ByVersionId HTTP endpoint.

func DecodeByCatalogKindNameRequest

func DecodeByCatalogKindNameRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByCatalogKindNameRequest returns a decoder for requests sent to the resource ByCatalogKindName endpoint.

func DecodeByCatalogKindNameVersionReadmeRequest

func DecodeByCatalogKindNameVersionReadmeRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByCatalogKindNameVersionReadmeRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersionReadme endpoint.

func DecodeByCatalogKindNameVersionRequest

func DecodeByCatalogKindNameVersionRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByCatalogKindNameVersionRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersion endpoint.

func DecodeByCatalogKindNameVersionYamlRequest

func DecodeByCatalogKindNameVersionYamlRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByCatalogKindNameVersionYamlRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersionYaml endpoint.

func DecodeByIDRequest

func DecodeByIDRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByIDRequest returns a decoder for requests sent to the resource ById endpoint.

func DecodeByVersionIDRequest

func DecodeByVersionIDRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeByVersionIDRequest returns a decoder for requests sent to the resource ByVersionId endpoint.

func DecodeListRequest

func DecodeListRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeListRequest returns a decoder for requests sent to the resource List endpoint.

func DecodeQueryRequest

func DecodeQueryRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeQueryRequest returns a decoder for requests sent to the resource Query endpoint.

func DecodeVersionsByIDRequest

func DecodeVersionsByIDRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)

DecodeVersionsByIDRequest returns a decoder for requests sent to the resource VersionsByID endpoint.

func EncodeByCatalogKindNameError

func EncodeByCatalogKindNameError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByCatalogKindNameError returns an encoder for errors returned by the ByCatalogKindName resource endpoint.

func EncodeByCatalogKindNameResponse

func EncodeByCatalogKindNameResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByCatalogKindNameResponse returns an encoder for responses returned by the resource ByCatalogKindName endpoint.

func EncodeByCatalogKindNameVersionError

func EncodeByCatalogKindNameVersionError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByCatalogKindNameVersionError returns an encoder for errors returned by the ByCatalogKindNameVersion resource endpoint.

func EncodeByCatalogKindNameVersionReadmeError

func EncodeByCatalogKindNameVersionReadmeError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByCatalogKindNameVersionReadmeError returns an encoder for errors returned by the ByCatalogKindNameVersionReadme resource endpoint.

func EncodeByCatalogKindNameVersionReadmeResponse

func EncodeByCatalogKindNameVersionReadmeResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByCatalogKindNameVersionReadmeResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersionReadme endpoint.

func EncodeByCatalogKindNameVersionResponse

func EncodeByCatalogKindNameVersionResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByCatalogKindNameVersionResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersion endpoint.

func EncodeByCatalogKindNameVersionYamlError

func EncodeByCatalogKindNameVersionYamlError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByCatalogKindNameVersionYamlError returns an encoder for errors returned by the ByCatalogKindNameVersionYaml resource endpoint.

func EncodeByCatalogKindNameVersionYamlResponse

func EncodeByCatalogKindNameVersionYamlResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByCatalogKindNameVersionYamlResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersionYaml endpoint.

func EncodeByIDError

func EncodeByIDError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByIDError returns an encoder for errors returned by the ById resource endpoint.

func EncodeByIDResponse

func EncodeByIDResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByIDResponse returns an encoder for responses returned by the resource ById endpoint.

func EncodeByVersionIDError

func EncodeByVersionIDError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeByVersionIDError returns an encoder for errors returned by the ByVersionId resource endpoint.

func EncodeByVersionIDResponse

func EncodeByVersionIDResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeByVersionIDResponse returns an encoder for responses returned by the resource ByVersionId endpoint.

func EncodeListError

func EncodeListError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeListError returns an encoder for errors returned by the List resource endpoint.

func EncodeListResponse

func EncodeListResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeListResponse returns an encoder for responses returned by the resource List endpoint.

func EncodeQueryError

func EncodeQueryError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeQueryError returns an encoder for errors returned by the Query resource endpoint.

func EncodeQueryResponse

func EncodeQueryResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeQueryResponse returns an encoder for responses returned by the resource Query endpoint.

func EncodeVersionsByIDError

func EncodeVersionsByIDError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeVersionsByIDError returns an encoder for errors returned by the VersionsByID resource endpoint.

func EncodeVersionsByIDResponse

func EncodeVersionsByIDResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error

EncodeVersionsByIDResponse returns an encoder for responses returned by the resource VersionsByID endpoint.

func ListResourcePath

func ListResourcePath() string

ListResourcePath returns the URL path to the resource service List HTTP endpoint.

func Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the resource endpoints.

func MountByCatalogKindNameHandler

func MountByCatalogKindNameHandler(mux goahttp.Muxer, h http.Handler)

MountByCatalogKindNameHandler configures the mux to serve the "resource" service "ByCatalogKindName" endpoint.

func MountByCatalogKindNameVersionHandler

func MountByCatalogKindNameVersionHandler(mux goahttp.Muxer, h http.Handler)

MountByCatalogKindNameVersionHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersion" endpoint.

func MountByCatalogKindNameVersionReadmeHandler

func MountByCatalogKindNameVersionReadmeHandler(mux goahttp.Muxer, h http.Handler)

MountByCatalogKindNameVersionReadmeHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersionReadme" endpoint.

func MountByCatalogKindNameVersionYamlHandler

func MountByCatalogKindNameVersionYamlHandler(mux goahttp.Muxer, h http.Handler)

MountByCatalogKindNameVersionYamlHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersionYaml" endpoint.

func MountByIDHandler

func MountByIDHandler(mux goahttp.Muxer, h http.Handler)

MountByIDHandler configures the mux to serve the "resource" service "ById" endpoint.

func MountByVersionIDHandler

func MountByVersionIDHandler(mux goahttp.Muxer, h http.Handler)

MountByVersionIDHandler configures the mux to serve the "resource" service "ByVersionId" endpoint.

func MountCORSHandler

func MountCORSHandler(mux goahttp.Muxer, h http.Handler)

MountCORSHandler configures the mux to serve the CORS endpoints for the service resource.

func MountListHandler

func MountListHandler(mux goahttp.Muxer, h http.Handler)

MountListHandler configures the mux to serve the "resource" service "List" endpoint.

func MountQueryHandler

func MountQueryHandler(mux goahttp.Muxer, h http.Handler)

MountQueryHandler configures the mux to serve the "resource" service "Query" endpoint.

func MountVersionsByIDHandler

func MountVersionsByIDHandler(mux goahttp.Muxer, h http.Handler)

MountVersionsByIDHandler configures the mux to serve the "resource" service "VersionsByID" endpoint.

func NewByCatalogKindNameHandler

func NewByCatalogKindNameHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByCatalogKindNameHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindName" endpoint.

func NewByCatalogKindNamePayload

func NewByCatalogKindNamePayload(catalog string, kind string, name string, pipelinesversion *string) *resource.ByCatalogKindNamePayload

NewByCatalogKindNamePayload builds a resource service ByCatalogKindName endpoint payload.

func NewByCatalogKindNameVersionHandler

func NewByCatalogKindNameVersionHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByCatalogKindNameVersionHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersion" endpoint.

func NewByCatalogKindNameVersionPayload

func NewByCatalogKindNameVersionPayload(catalog string, kind string, name string, version string) *resource.ByCatalogKindNameVersionPayload

NewByCatalogKindNameVersionPayload builds a resource service ByCatalogKindNameVersion endpoint payload.

func NewByCatalogKindNameVersionReadmeHandler

func NewByCatalogKindNameVersionReadmeHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByCatalogKindNameVersionReadmeHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersionReadme" endpoint.

func NewByCatalogKindNameVersionReadmePayload

func NewByCatalogKindNameVersionReadmePayload(catalog string, kind string, name string, version string) *resource.ByCatalogKindNameVersionReadmePayload

NewByCatalogKindNameVersionReadmePayload builds a resource service ByCatalogKindNameVersionReadme endpoint payload.

func NewByCatalogKindNameVersionYamlHandler

func NewByCatalogKindNameVersionYamlHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByCatalogKindNameVersionYamlHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersionYaml" endpoint.

func NewByCatalogKindNameVersionYamlPayload

func NewByCatalogKindNameVersionYamlPayload(catalog string, kind string, name string, version string) *resource.ByCatalogKindNameVersionYamlPayload

NewByCatalogKindNameVersionYamlPayload builds a resource service ByCatalogKindNameVersionYaml endpoint payload.

func NewByIDHandler

func NewByIDHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ById" endpoint.

func NewByIDPayload

func NewByIDPayload(id uint) *resource.ByIDPayload

NewByIDPayload builds a resource service ById endpoint payload.

func NewByVersionIDHandler

func NewByVersionIDHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewByVersionIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByVersionId" endpoint.

func NewByVersionIDPayload

func NewByVersionIDPayload(versionID uint) *resource.ByVersionIDPayload

NewByVersionIDPayload builds a resource service ByVersionId endpoint payload.

func NewCORSHandler

func NewCORSHandler() http.Handler

NewCORSHandler creates a HTTP handler which returns a simple 200 response.

func NewListHandler

func NewListHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewListHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "List" endpoint.

func NewListPayload

func NewListPayload(limit uint) *resource.ListPayload

NewListPayload builds a resource service List endpoint payload.

func NewQueryHandler

func NewQueryHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewQueryHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "Query" endpoint.

func NewQueryPayload

func NewQueryPayload(name string, catalogs []string, categories []string, kinds []string, tags []string, platforms []string, limit uint, match string) *resource.QueryPayload

NewQueryPayload builds a resource service Query endpoint payload.

func NewVersionsByIDHandler

func NewVersionsByIDHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) http.Handler

NewVersionsByIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "VersionsByID" endpoint.

func NewVersionsByIDPayload

func NewVersionsByIDPayload(id uint) *resource.VersionsByIDPayload

NewVersionsByIDPayload builds a resource service VersionsByID endpoint payload.

func QueryResourcePath

func QueryResourcePath() string

QueryResourcePath returns the URL path to the resource service Query HTTP endpoint.

func VersionsByIDResourcePath

func VersionsByIDResourcePath(id uint) string

VersionsByIDResourcePath returns the URL path to the resource service VersionsByID HTTP endpoint.

Types

type ByCatalogKindNameInternalErrorResponseBody

type ByCatalogKindNameInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body for the "internal-error" error.

func NewByCatalogKindNameInternalErrorResponseBody

func NewByCatalogKindNameInternalErrorResponseBody(res *goa.ServiceError) *ByCatalogKindNameInternalErrorResponseBody

NewByCatalogKindNameInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.

type ByCatalogKindNameNotFoundResponseBody

type ByCatalogKindNameNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameNotFoundResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body for the "not-found" error.

func NewByCatalogKindNameNotFoundResponseBody

func NewByCatalogKindNameNotFoundResponseBody(res *goa.ServiceError) *ByCatalogKindNameNotFoundResponseBody

NewByCatalogKindNameNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.

type ByCatalogKindNameResponseBody

type ByCatalogKindNameResponseBody struct {
	Data *ResourceDataResponseBody `form:"data" json:"data" xml:"data"`
}

ByCatalogKindNameResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body.

func NewByCatalogKindNameResponseBody

func NewByCatalogKindNameResponseBody(res *resourceviews.ResourceView) *ByCatalogKindNameResponseBody

NewByCatalogKindNameResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.

type ByCatalogKindNameVersionInternalErrorResponseBody

type ByCatalogKindNameVersionInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body for the "internal-error" error.

func NewByCatalogKindNameVersionInternalErrorResponseBody

func NewByCatalogKindNameVersionInternalErrorResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionInternalErrorResponseBody

NewByCatalogKindNameVersionInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.

type ByCatalogKindNameVersionNotFoundResponseBody

type ByCatalogKindNameVersionNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body for the "not-found" error.

func NewByCatalogKindNameVersionNotFoundResponseBody

func NewByCatalogKindNameVersionNotFoundResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionNotFoundResponseBody

NewByCatalogKindNameVersionNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.

type ByCatalogKindNameVersionReadmeInternalErrorResponseBody

type ByCatalogKindNameVersionReadmeInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionReadmeInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body for the "internal-error" error.

func NewByCatalogKindNameVersionReadmeInternalErrorResponseBody

func NewByCatalogKindNameVersionReadmeInternalErrorResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionReadmeInternalErrorResponseBody

NewByCatalogKindNameVersionReadmeInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.

type ByCatalogKindNameVersionReadmeNotFoundResponseBody

type ByCatalogKindNameVersionReadmeNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionReadmeNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body for the "not-found" error.

func NewByCatalogKindNameVersionReadmeNotFoundResponseBody

func NewByCatalogKindNameVersionReadmeNotFoundResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionReadmeNotFoundResponseBody

NewByCatalogKindNameVersionReadmeNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.

type ByCatalogKindNameVersionReadmeResponseBody

type ByCatalogKindNameVersionReadmeResponseBody struct {
	Data *ResourceContentResponseBodyReadme `form:"data" json:"data" xml:"data"`
}

ByCatalogKindNameVersionReadmeResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body.

func NewByCatalogKindNameVersionReadmeResponseBody

func NewByCatalogKindNameVersionReadmeResponseBody(res *resourceviews.ResourceVersionReadmeView) *ByCatalogKindNameVersionReadmeResponseBody

NewByCatalogKindNameVersionReadmeResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.

type ByCatalogKindNameVersionResponseBody

type ByCatalogKindNameVersionResponseBody struct {
	Data *ResourceVersionDataResponseBody `form:"data" json:"data" xml:"data"`
}

ByCatalogKindNameVersionResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body.

func NewByCatalogKindNameVersionResponseBody

func NewByCatalogKindNameVersionResponseBody(res *resourceviews.ResourceVersionView) *ByCatalogKindNameVersionResponseBody

NewByCatalogKindNameVersionResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.

type ByCatalogKindNameVersionYamlInternalErrorResponseBody

type ByCatalogKindNameVersionYamlInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionYamlInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body for the "internal-error" error.

func NewByCatalogKindNameVersionYamlInternalErrorResponseBody

func NewByCatalogKindNameVersionYamlInternalErrorResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionYamlInternalErrorResponseBody

NewByCatalogKindNameVersionYamlInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.

type ByCatalogKindNameVersionYamlNotFoundResponseBody

type ByCatalogKindNameVersionYamlNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByCatalogKindNameVersionYamlNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body for the "not-found" error.

func NewByCatalogKindNameVersionYamlNotFoundResponseBody

func NewByCatalogKindNameVersionYamlNotFoundResponseBody(res *goa.ServiceError) *ByCatalogKindNameVersionYamlNotFoundResponseBody

NewByCatalogKindNameVersionYamlNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.

type ByCatalogKindNameVersionYamlResponseBody

type ByCatalogKindNameVersionYamlResponseBody struct {
	Data *ResourceContentResponseBodyYaml `form:"data" json:"data" xml:"data"`
}

ByCatalogKindNameVersionYamlResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body.

func NewByCatalogKindNameVersionYamlResponseBody

func NewByCatalogKindNameVersionYamlResponseBody(res *resourceviews.ResourceVersionYamlView) *ByCatalogKindNameVersionYamlResponseBody

NewByCatalogKindNameVersionYamlResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.

type ByIDInternalErrorResponseBody

type ByIDInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByIDInternalErrorResponseBody is the type of the "resource" service "ById" endpoint HTTP response body for the "internal-error" error.

func NewByIDInternalErrorResponseBody

func NewByIDInternalErrorResponseBody(res *goa.ServiceError) *ByIDInternalErrorResponseBody

NewByIDInternalErrorResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.

type ByIDNotFoundResponseBody

type ByIDNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByIDNotFoundResponseBody is the type of the "resource" service "ById" endpoint HTTP response body for the "not-found" error.

func NewByIDNotFoundResponseBody

func NewByIDNotFoundResponseBody(res *goa.ServiceError) *ByIDNotFoundResponseBody

NewByIDNotFoundResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.

type ByIDResponseBody

type ByIDResponseBody struct {
	Data *ResourceDataResponseBody `form:"data" json:"data" xml:"data"`
}

ByIDResponseBody is the type of the "resource" service "ById" endpoint HTTP response body.

func NewByIDResponseBody

func NewByIDResponseBody(res *resourceviews.ResourceView) *ByIDResponseBody

NewByIDResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.

type ByVersionIDInternalErrorResponseBody

type ByVersionIDInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByVersionIDInternalErrorResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body for the "internal-error" error.

func NewByVersionIDInternalErrorResponseBody

func NewByVersionIDInternalErrorResponseBody(res *goa.ServiceError) *ByVersionIDInternalErrorResponseBody

NewByVersionIDInternalErrorResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.

type ByVersionIDNotFoundResponseBody

type ByVersionIDNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ByVersionIDNotFoundResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body for the "not-found" error.

func NewByVersionIDNotFoundResponseBody

func NewByVersionIDNotFoundResponseBody(res *goa.ServiceError) *ByVersionIDNotFoundResponseBody

NewByVersionIDNotFoundResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.

type ByVersionIDResponseBody

type ByVersionIDResponseBody struct {
	Data *ResourceVersionDataResponseBody `form:"data" json:"data" xml:"data"`
}

ByVersionIDResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body.

func NewByVersionIDResponseBody

func NewByVersionIDResponseBody(res *resourceviews.ResourceVersionView) *ByVersionIDResponseBody

NewByVersionIDResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.

type CatalogResponseBodyMin

type CatalogResponseBodyMin struct {
	// ID is the unique id of the catalog
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of catalog
	Name string `form:"name" json:"name" xml:"name"`
	// Type of catalog
	Type string `form:"type" json:"type" xml:"type"`
}

CatalogResponseBodyMin is used to define fields on response body types.

type CategoryResponseBody

type CategoryResponseBody struct {
	// ID is the unique id of the category
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of category
	Name string `form:"name" json:"name" xml:"name"`
}

CategoryResponseBody is used to define fields on response body types.

type ErrorNamer

type ErrorNamer interface {
	ErrorName() string
}

ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.

type ListInternalErrorResponseBody

type ListInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ListInternalErrorResponseBody is the type of the "resource" service "List" endpoint HTTP response body for the "internal-error" error.

func NewListInternalErrorResponseBody

func NewListInternalErrorResponseBody(res *goa.ServiceError) *ListInternalErrorResponseBody

NewListInternalErrorResponseBody builds the HTTP response body from the result of the "List" endpoint of the "resource" service.

type ListResponseBody

type ListResponseBody struct {
	Data ResourceDataResponseBodyWithoutVersionCollection `form:"data" json:"data" xml:"data"`
}

ListResponseBody is the type of the "resource" service "List" endpoint HTTP response body.

func NewListResponseBody

func NewListResponseBody(res *resourceviews.ResourcesView) *ListResponseBody

NewListResponseBody builds the HTTP response body from the result of the "List" endpoint of the "resource" service.

type MountPoint

type MountPoint struct {
	// Method is the name of the service method served by the mounted HTTP handler.
	Method string
	// Verb is the HTTP method used to match requests to the mounted handler.
	Verb string
	// Pattern is the HTTP request path pattern used to match requests to the
	// mounted handler.
	Pattern string
}

MountPoint holds information about the mounted endpoints.

type PlatformResponseBody

type PlatformResponseBody struct {
	// ID is the unique id of platform
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of platform
	Name string `form:"name" json:"name" xml:"name"`
}

PlatformResponseBody is used to define fields on response body types.

type QueryInternalErrorResponseBody

type QueryInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

QueryInternalErrorResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "internal-error" error.

func NewQueryInternalErrorResponseBody

func NewQueryInternalErrorResponseBody(res *goa.ServiceError) *QueryInternalErrorResponseBody

NewQueryInternalErrorResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.

type QueryInvalidKindResponseBody

type QueryInvalidKindResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

QueryInvalidKindResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "invalid-kind" error.

func NewQueryInvalidKindResponseBody

func NewQueryInvalidKindResponseBody(res *goa.ServiceError) *QueryInvalidKindResponseBody

NewQueryInvalidKindResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.

type QueryNotFoundResponseBody

type QueryNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

QueryNotFoundResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "not-found" error.

func NewQueryNotFoundResponseBody

func NewQueryNotFoundResponseBody(res *goa.ServiceError) *QueryNotFoundResponseBody

NewQueryNotFoundResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.

type QueryResponseBody

type QueryResponseBody struct {
	Data ResourceDataResponseBodyWithoutVersionCollection `form:"data" json:"data" xml:"data"`
}

QueryResponseBody is the type of the "resource" service "Query" endpoint HTTP response body.

func NewQueryResponseBody

func NewQueryResponseBody(res *resourceviews.ResourcesView) *QueryResponseBody

NewQueryResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.

type ResourceContentResponseBodyReadme

type ResourceContentResponseBodyReadme struct {
	// Readme
	Readme *string `form:"readme,omitempty" json:"readme,omitempty" xml:"readme,omitempty"`
}

ResourceContentResponseBodyReadme is used to define fields on response body types.

type ResourceContentResponseBodyYaml

type ResourceContentResponseBodyYaml struct {
	// Yaml
	Yaml *string `form:"yaml,omitempty" json:"yaml,omitempty" xml:"yaml,omitempty"`
}

ResourceContentResponseBodyYaml is used to define fields on response body types.

type ResourceDataResponseBody

type ResourceDataResponseBody struct {
	// ID is the unique id of the resource
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of resource
	Name string `form:"name" json:"name" xml:"name"`
	// Type of catalog to which resource belongs
	Catalog *CatalogResponseBodyMin `form:"catalog" json:"catalog" xml:"catalog"`
	// Categories related to resource
	Categories []*CategoryResponseBody `form:"categories" json:"categories" xml:"categories"`
	// Kind of resource
	Kind string `form:"kind" json:"kind" xml:"kind"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Latest version of resource
	LatestVersion *ResourceVersionDataResponseBodyWithoutResource `form:"latestVersion" json:"latestVersion" xml:"latestVersion"`
	// Tags related to resource
	Tags []*TagResponseBody `form:"tags" json:"tags" xml:"tags"`
	// Platforms related to resource
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
	// Rating of resource
	Rating float64 `form:"rating" json:"rating" xml:"rating"`
	// List of all versions of a resource
	Versions []*ResourceVersionDataResponseBodyTiny `form:"versions" json:"versions" xml:"versions"`
}

ResourceDataResponseBody is used to define fields on response body types.

type ResourceDataResponseBodyInfo

type ResourceDataResponseBodyInfo struct {
	// ID is the unique id of the resource
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of resource
	Name string `form:"name" json:"name" xml:"name"`
	// Type of catalog to which resource belongs
	Catalog *CatalogResponseBodyMin `form:"catalog" json:"catalog" xml:"catalog"`
	// Categories related to resource
	Categories []*CategoryResponseBody `form:"categories" json:"categories" xml:"categories"`
	// Kind of resource
	Kind string `form:"kind" json:"kind" xml:"kind"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Tags related to resource
	Tags []*TagResponseBody `form:"tags" json:"tags" xml:"tags"`
	// Platforms related to resource
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
	// Rating of resource
	Rating float64 `form:"rating" json:"rating" xml:"rating"`
}

ResourceDataResponseBodyInfo is used to define fields on response body types.

type ResourceDataResponseBodyWithoutVersion

type ResourceDataResponseBodyWithoutVersion struct {
	// ID is the unique id of the resource
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of resource
	Name string `form:"name" json:"name" xml:"name"`
	// Type of catalog to which resource belongs
	Catalog *CatalogResponseBodyMin `form:"catalog" json:"catalog" xml:"catalog"`
	// Categories related to resource
	Categories []*CategoryResponseBody `form:"categories" json:"categories" xml:"categories"`
	// Kind of resource
	Kind string `form:"kind" json:"kind" xml:"kind"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Latest version of resource
	LatestVersion *ResourceVersionDataResponseBodyWithoutResource `form:"latestVersion" json:"latestVersion" xml:"latestVersion"`
	// Tags related to resource
	Tags []*TagResponseBody `form:"tags" json:"tags" xml:"tags"`
	// Platforms related to resource
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
	// Rating of resource
	Rating float64 `form:"rating" json:"rating" xml:"rating"`
}

ResourceDataResponseBodyWithoutVersion is used to define fields on response body types.

type ResourceDataResponseBodyWithoutVersionCollection

type ResourceDataResponseBodyWithoutVersionCollection []*ResourceDataResponseBodyWithoutVersion

ResourceDataResponseBodyWithoutVersionCollection is used to define fields on response body types.

type ResourceVersionDataResponseBody

type ResourceVersionDataResponseBody struct {
	// ID is the unique id of resource's version
	ID uint `form:"id" json:"id" xml:"id"`
	// Version of resource
	Version string `form:"version" json:"version" xml:"version"`
	// Display name of version
	DisplayName string `form:"displayName" json:"displayName" xml:"displayName"`
	// Deprecation status of a version
	Deprecated *bool `form:"deprecated,omitempty" json:"deprecated,omitempty" xml:"deprecated,omitempty"`
	// Description of version
	Description string `form:"description" json:"description" xml:"description"`
	// Minimum pipelines version the resource's version is compatible with
	MinPipelinesVersion string `form:"minPipelinesVersion" json:"minPipelinesVersion" xml:"minPipelinesVersion"`
	// Raw URL of resource's yaml file of the version
	RawURL string `form:"rawURL" json:"rawURL" xml:"rawURL"`
	// Web URL of resource's yaml file of the version
	WebURL string `form:"webURL" json:"webURL" xml:"webURL"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Timestamp when version was last updated
	UpdatedAt string `form:"updatedAt" json:"updatedAt" xml:"updatedAt"`
	// Resource to which the version belongs
	Resource *ResourceDataResponseBodyInfo `form:"resource" json:"resource" xml:"resource"`
	// Platforms related to resource version
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
}

ResourceVersionDataResponseBody is used to define fields on response body types.

type ResourceVersionDataResponseBodyMin

type ResourceVersionDataResponseBodyMin struct {
	// ID is the unique id of resource's version
	ID uint `form:"id" json:"id" xml:"id"`
	// Version of resource
	Version string `form:"version" json:"version" xml:"version"`
	// Raw URL of resource's yaml file of the version
	RawURL string `form:"rawURL" json:"rawURL" xml:"rawURL"`
	// Web URL of resource's yaml file of the version
	WebURL string `form:"webURL" json:"webURL" xml:"webURL"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Platforms related to resource version
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
}

ResourceVersionDataResponseBodyMin is used to define fields on response body types.

type ResourceVersionDataResponseBodyTiny

type ResourceVersionDataResponseBodyTiny struct {
	// ID is the unique id of resource's version
	ID uint `form:"id" json:"id" xml:"id"`
	// Version of resource
	Version string `form:"version" json:"version" xml:"version"`
}

ResourceVersionDataResponseBodyTiny is used to define fields on response body types.

type ResourceVersionDataResponseBodyWithoutResource

type ResourceVersionDataResponseBodyWithoutResource struct {
	// ID is the unique id of resource's version
	ID uint `form:"id" json:"id" xml:"id"`
	// Version of resource
	Version string `form:"version" json:"version" xml:"version"`
	// Display name of version
	DisplayName string `form:"displayName" json:"displayName" xml:"displayName"`
	// Deprecation status of a version
	Deprecated *bool `form:"deprecated,omitempty" json:"deprecated,omitempty" xml:"deprecated,omitempty"`
	// Description of version
	Description string `form:"description" json:"description" xml:"description"`
	// Minimum pipelines version the resource's version is compatible with
	MinPipelinesVersion string `form:"minPipelinesVersion" json:"minPipelinesVersion" xml:"minPipelinesVersion"`
	// Raw URL of resource's yaml file of the version
	RawURL string `form:"rawURL" json:"rawURL" xml:"rawURL"`
	// Web URL of resource's yaml file of the version
	WebURL string `form:"webURL" json:"webURL" xml:"webURL"`
	// Url path of the resource in hub
	HubURLPath string `form:"hubURLPath" json:"hubURLPath" xml:"hubURLPath"`
	// Timestamp when version was last updated
	UpdatedAt string `form:"updatedAt" json:"updatedAt" xml:"updatedAt"`
	// Platforms related to resource version
	Platforms []*PlatformResponseBody `form:"platforms" json:"platforms" xml:"platforms"`
}

ResourceVersionDataResponseBodyWithoutResource is used to define fields on response body types.

type Server

type Server struct {
	Mounts                         []*MountPoint
	Query                          http.Handler
	List                           http.Handler
	VersionsByID                   http.Handler
	ByCatalogKindNameVersion       http.Handler
	ByCatalogKindNameVersionReadme http.Handler
	ByCatalogKindNameVersionYaml   http.Handler
	ByVersionID                    http.Handler
	ByCatalogKindName              http.Handler
	ByID                           http.Handler
	CORS                           http.Handler
}

Server lists the resource service endpoint HTTP handlers.

func New

func New(
	e *resource.Endpoints,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(err error) goahttp.Statuser,
) *Server

New instantiates HTTP handlers for all the resource service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

type TagResponseBody

type TagResponseBody struct {
	// ID is the unique id of tag
	ID uint `form:"id" json:"id" xml:"id"`
	// Name of tag
	Name string `form:"name" json:"name" xml:"name"`
}

TagResponseBody is used to define fields on response body types.

type VersionsByIDInternalErrorResponseBody

type VersionsByIDInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

VersionsByIDInternalErrorResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body for the "internal-error" error.

func NewVersionsByIDInternalErrorResponseBody

func NewVersionsByIDInternalErrorResponseBody(res *goa.ServiceError) *VersionsByIDInternalErrorResponseBody

NewVersionsByIDInternalErrorResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.

type VersionsByIDNotFoundResponseBody

type VersionsByIDNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

VersionsByIDNotFoundResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body for the "not-found" error.

func NewVersionsByIDNotFoundResponseBody

func NewVersionsByIDNotFoundResponseBody(res *goa.ServiceError) *VersionsByIDNotFoundResponseBody

NewVersionsByIDNotFoundResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.

type VersionsByIDResponseBody

type VersionsByIDResponseBody struct {
	Data *VersionsResponseBody `form:"data" json:"data" xml:"data"`
}

VersionsByIDResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body.

func NewVersionsByIDResponseBody

func NewVersionsByIDResponseBody(res *resourceviews.ResourceVersionsView) *VersionsByIDResponseBody

NewVersionsByIDResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.

type VersionsResponseBody

type VersionsResponseBody struct {
	// Latest Version of resource
	Latest *ResourceVersionDataResponseBodyMin `form:"latest" json:"latest" xml:"latest"`
	// List of all versions of resource
	Versions []*ResourceVersionDataResponseBodyMin `form:"versions" json:"versions" xml:"versions"`
}

VersionsResponseBody is used to define fields on response body types.

Jump to

Keyboard shortcuts

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