Documentation
¶
Index ¶
- func BuildByCatalogKindNamePayload(resourceByCatalogKindNameCatalog string, resourceByCatalogKindNameKind string, ...) (*resource.ByCatalogKindNamePayload, error)
- func BuildByCatalogKindNameVersionPayload(resourceByCatalogKindNameVersionCatalog string, ...) (*resource.ByCatalogKindNameVersionPayload, error)
- func BuildByIDPayload(resourceByIDID string) (*resource.ByIDPayload, error)
- func BuildByVersionIDPayload(resourceByVersionIDVersionID string) (*resource.ByVersionIDPayload, error)
- func BuildQueryPayload(resourceQueryName string, resourceQueryCatalogs string, ...) (*resource.QueryPayload, error)
- func BuildVersionsByIDPayload(resourceVersionsByIDID string) (*resource.VersionsByIDPayload, error)
- func ByCatalogKindNameResourcePath(catalog string, kind string, name string) string
- func ByCatalogKindNameVersionResourcePath(catalog string, kind string, name string, version string) string
- func ByIDResourcePath(id uint) string
- func ByVersionIDResourcePath(versionID uint) string
- func DecodeByCatalogKindNameResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeByCatalogKindNameVersionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeByVersionIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeQueryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeVersionsByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeByCatalogKindNameRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeQueryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func ListResourcePath() string
- func NewByCatalogKindNameResultFound(location string) *resource.ByCatalogKindNameResult
- func NewByCatalogKindNameVersionResultFound(location string) *resource.ByCatalogKindNameVersionResult
- func NewByIDResultFound(location string) *resource.ByIDResult
- func NewByVersionIDResultFound(location string) *resource.ByVersionIDResult
- func NewListResourcesMovedPermanently(body *ListResponseBody) *resourceviews.ResourcesView
- func NewQueryResultFound(location string) *resource.QueryResult
- func NewVersionsByIDResultFound(location string) *resource.VersionsByIDResult
- func QueryResourcePath() string
- func ValidateCatalogResponseBody(body *CatalogResponseBody) (err error)
- func ValidateCategoryResponseBody(body *CategoryResponseBody) (err error)
- func ValidatePlatformResponseBody(body *PlatformResponseBody) (err error)
- func ValidateResourceDataCollectionResponseBody(body ResourceDataCollectionResponseBody) (err error)
- func ValidateResourceDataResponseBody(body *ResourceDataResponseBody) (err error)
- func ValidateResourceVersionDataResponseBody(body *ResourceVersionDataResponseBody) (err error)
- func ValidateTagResponseBody(body *TagResponseBody) (err error)
- func VersionsByIDResourcePath(id uint) string
- type CatalogResponseBody
- type CategoryResponseBody
- type Client
- func (c *Client) BuildByCatalogKindNameRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildByCatalogKindNameVersionRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildByIDRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildByVersionIDRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildQueryRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildVersionsByIDRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) ByCatalogKindName() goa.Endpoint
- func (c *Client) ByCatalogKindNameVersion() goa.Endpoint
- func (c *Client) ByID() goa.Endpoint
- func (c *Client) ByVersionID() goa.Endpoint
- func (c *Client) List() goa.Endpoint
- func (c *Client) Query() goa.Endpoint
- func (c *Client) VersionsByID() goa.Endpoint
- type ListResponseBody
- type PlatformResponseBody
- type ResourceDataCollectionResponseBody
- type ResourceDataResponseBody
- type ResourceVersionDataResponseBody
- type TagResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildByCatalogKindNamePayload ¶ added in v1.7.2
func BuildByCatalogKindNamePayload(resourceByCatalogKindNameCatalog string, resourceByCatalogKindNameKind string, resourceByCatalogKindNameName string, resourceByCatalogKindNamePipelinesversion string) (*resource.ByCatalogKindNamePayload, error)
BuildByCatalogKindNamePayload builds the payload for the resource ByCatalogKindName endpoint from CLI flags.
func BuildByCatalogKindNameVersionPayload ¶ added in v1.7.2
func BuildByCatalogKindNameVersionPayload(resourceByCatalogKindNameVersionCatalog string, resourceByCatalogKindNameVersionKind string, resourceByCatalogKindNameVersionName string, resourceByCatalogKindNameVersionVersion string) (*resource.ByCatalogKindNameVersionPayload, error)
BuildByCatalogKindNameVersionPayload builds the payload for the resource ByCatalogKindNameVersion endpoint from CLI flags.
func BuildByIDPayload ¶ added in v1.7.2
func BuildByIDPayload(resourceByIDID string) (*resource.ByIDPayload, error)
BuildByIDPayload builds the payload for the resource ById endpoint from CLI flags.
func BuildByVersionIDPayload ¶ added in v1.7.2
func BuildByVersionIDPayload(resourceByVersionIDVersionID string) (*resource.ByVersionIDPayload, error)
BuildByVersionIDPayload builds the payload for the resource ByVersionId endpoint from CLI flags.
func BuildQueryPayload ¶ added in v1.7.2
func BuildQueryPayload(resourceQueryName string, resourceQueryCatalogs string, resourceQueryCategories string, resourceQueryKinds string, resourceQueryTags string, resourceQueryPlatforms string, resourceQueryLimit string, resourceQueryMatch string) (*resource.QueryPayload, error)
BuildQueryPayload builds the payload for the resource Query endpoint from CLI flags.
func BuildVersionsByIDPayload ¶
func BuildVersionsByIDPayload(resourceVersionsByIDID string) (*resource.VersionsByIDPayload, error)
BuildVersionsByIDPayload builds the payload for the resource VersionsByID endpoint from CLI flags.
func ByCatalogKindNameResourcePath ¶ added in v1.7.2
ByCatalogKindNameResourcePath returns the URL path to the resource service ByCatalogKindName HTTP endpoint.
func ByCatalogKindNameVersionResourcePath ¶ added in v1.7.2
func ByCatalogKindNameVersionResourcePath(catalog string, kind string, name string, version string) string
ByCatalogKindNameVersionResourcePath returns the URL path to the resource service ByCatalogKindNameVersion HTTP endpoint.
func ByIDResourcePath ¶ added in v1.7.2
ByIDResourcePath returns the URL path to the resource service ById HTTP endpoint.
func ByVersionIDResourcePath ¶ added in v1.7.2
ByVersionIDResourcePath returns the URL path to the resource service ByVersionId HTTP endpoint.
func DecodeByCatalogKindNameResponse ¶ added in v1.7.2
func DecodeByCatalogKindNameResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeByCatalogKindNameResponse returns a decoder for responses returned by the resource ByCatalogKindName endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeByCatalogKindNameVersionResponse ¶ added in v1.7.2
func DecodeByCatalogKindNameVersionResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeByCatalogKindNameVersionResponse returns a decoder for responses returned by the resource ByCatalogKindNameVersion endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeByIDResponse ¶ added in v1.7.2
func DecodeByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeByIDResponse returns a decoder for responses returned by the resource ById endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeByVersionIDResponse ¶ added in v1.7.2
func DecodeByVersionIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeByVersionIDResponse returns a decoder for responses returned by the resource ByVersionId endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeListResponse ¶
func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListResponse returns a decoder for responses returned by the resource List endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeQueryResponse ¶ added in v1.7.2
func DecodeQueryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeQueryResponse returns a decoder for responses returned by the resource Query endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeVersionsByIDResponse ¶
func DecodeVersionsByIDResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeVersionsByIDResponse returns a decoder for responses returned by the resource VersionsByID endpoint. restoreBody controls whether the response body should be restored after having been read.
func EncodeByCatalogKindNameRequest ¶ added in v1.7.2
func EncodeByCatalogKindNameRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeByCatalogKindNameRequest returns an encoder for requests sent to the resource ByCatalogKindName server.
func EncodeQueryRequest ¶ added in v1.7.2
func EncodeQueryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeQueryRequest returns an encoder for requests sent to the resource Query server.
func ListResourcePath ¶
func ListResourcePath() string
ListResourcePath returns the URL path to the resource service List HTTP endpoint.
func NewByCatalogKindNameResultFound ¶ added in v1.7.2
func NewByCatalogKindNameResultFound(location string) *resource.ByCatalogKindNameResult
NewByCatalogKindNameResultFound builds a "resource" service "ByCatalogKindName" endpoint result from a HTTP "Found" response.
func NewByCatalogKindNameVersionResultFound ¶ added in v1.7.2
func NewByCatalogKindNameVersionResultFound(location string) *resource.ByCatalogKindNameVersionResult
NewByCatalogKindNameVersionResultFound builds a "resource" service "ByCatalogKindNameVersion" endpoint result from a HTTP "Found" response.
func NewByIDResultFound ¶ added in v1.7.2
func NewByIDResultFound(location string) *resource.ByIDResult
NewByIDResultFound builds a "resource" service "ById" endpoint result from a HTTP "Found" response.
func NewByVersionIDResultFound ¶ added in v1.7.2
func NewByVersionIDResultFound(location string) *resource.ByVersionIDResult
NewByVersionIDResultFound builds a "resource" service "ByVersionId" endpoint result from a HTTP "Found" response.
func NewListResourcesMovedPermanently ¶
func NewListResourcesMovedPermanently(body *ListResponseBody) *resourceviews.ResourcesView
NewListResourcesMovedPermanently builds a "resource" service "List" endpoint result from a HTTP "MovedPermanently" response.
func NewQueryResultFound ¶ added in v1.7.2
func NewQueryResultFound(location string) *resource.QueryResult
NewQueryResultFound builds a "resource" service "Query" endpoint result from a HTTP "Found" response.
func NewVersionsByIDResultFound ¶ added in v1.7.2
func NewVersionsByIDResultFound(location string) *resource.VersionsByIDResult
NewVersionsByIDResultFound builds a "resource" service "VersionsByID" endpoint result from a HTTP "Found" response.
func QueryResourcePath ¶ added in v1.7.2
func QueryResourcePath() string
QueryResourcePath returns the URL path to the resource service Query HTTP endpoint.
func ValidateCatalogResponseBody ¶
func ValidateCatalogResponseBody(body *CatalogResponseBody) (err error)
ValidateCatalogResponseBody runs the validations defined on CatalogResponseBody
func ValidateCategoryResponseBody ¶
func ValidateCategoryResponseBody(body *CategoryResponseBody) (err error)
ValidateCategoryResponseBody runs the validations defined on CategoryResponseBody
func ValidatePlatformResponseBody ¶
func ValidatePlatformResponseBody(body *PlatformResponseBody) (err error)
ValidatePlatformResponseBody runs the validations defined on PlatformResponseBody
func ValidateResourceDataCollectionResponseBody ¶
func ValidateResourceDataCollectionResponseBody(body ResourceDataCollectionResponseBody) (err error)
ValidateResourceDataCollectionResponseBody runs the validations defined on ResourceDataCollectionResponseBody
func ValidateResourceDataResponseBody ¶
func ValidateResourceDataResponseBody(body *ResourceDataResponseBody) (err error)
ValidateResourceDataResponseBody runs the validations defined on ResourceDataResponseBody
func ValidateResourceVersionDataResponseBody ¶
func ValidateResourceVersionDataResponseBody(body *ResourceVersionDataResponseBody) (err error)
ValidateResourceVersionDataResponseBody runs the validations defined on ResourceVersionDataResponseBody
func ValidateTagResponseBody ¶
func ValidateTagResponseBody(body *TagResponseBody) (err error)
ValidateTagResponseBody runs the validations defined on TagResponseBody
func VersionsByIDResourcePath ¶
VersionsByIDResourcePath returns the URL path to the resource service VersionsByID HTTP endpoint.
Types ¶
type CatalogResponseBody ¶
type CatalogResponseBody struct { // ID is the unique id of the catalog ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Name of catalog Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Type of catalog Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"` // URL of catalog URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"` // Provider of catalog Provider *string `form:"provider,omitempty" json:"provider,omitempty" xml:"provider,omitempty"` }
CatalogResponseBody 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,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Name of category Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` }
CategoryResponseBody is used to define fields on response body types.
type Client ¶
type Client struct { // Query Doer is the HTTP client used to make requests to the Query endpoint. QueryDoer goahttp.Doer // List Doer is the HTTP client used to make requests to the List endpoint. ListDoer goahttp.Doer // VersionsByID Doer is the HTTP client used to make requests to the // VersionsByID endpoint. VersionsByIDDoer goahttp.Doer // ByCatalogKindNameVersion Doer is the HTTP client used to make requests to // the ByCatalogKindNameVersion endpoint. ByCatalogKindNameVersionDoer goahttp.Doer // ByVersionID Doer is the HTTP client used to make requests to the ByVersionId // endpoint. ByVersionIDDoer goahttp.Doer // ByCatalogKindName Doer is the HTTP client used to make requests to the // ByCatalogKindName endpoint. ByCatalogKindNameDoer goahttp.Doer // ByID Doer is the HTTP client used to make requests to the ById endpoint. ByIDDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the resource service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the resource service servers.
func (*Client) BuildByCatalogKindNameRequest ¶ added in v1.7.2
func (c *Client) BuildByCatalogKindNameRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildByCatalogKindNameRequest instantiates a HTTP request object with method and path set to call the "resource" service "ByCatalogKindName" endpoint
func (*Client) BuildByCatalogKindNameVersionRequest ¶ added in v1.7.2
func (c *Client) BuildByCatalogKindNameVersionRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildByCatalogKindNameVersionRequest instantiates a HTTP request object with method and path set to call the "resource" service "ByCatalogKindNameVersion" endpoint
func (*Client) BuildByIDRequest ¶ added in v1.7.2
BuildByIDRequest instantiates a HTTP request object with method and path set to call the "resource" service "ById" endpoint
func (*Client) BuildByVersionIDRequest ¶ added in v1.7.2
BuildByVersionIDRequest instantiates a HTTP request object with method and path set to call the "resource" service "ByVersionId" endpoint
func (*Client) BuildListRequest ¶
BuildListRequest instantiates a HTTP request object with method and path set to call the "resource" service "List" endpoint
func (*Client) BuildQueryRequest ¶ added in v1.7.2
BuildQueryRequest instantiates a HTTP request object with method and path set to call the "resource" service "Query" endpoint
func (*Client) BuildVersionsByIDRequest ¶
func (c *Client) BuildVersionsByIDRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildVersionsByIDRequest instantiates a HTTP request object with method and path set to call the "resource" service "VersionsByID" endpoint
func (*Client) ByCatalogKindName ¶ added in v1.7.2
ByCatalogKindName returns an endpoint that makes HTTP requests to the resource service ByCatalogKindName server.
func (*Client) ByCatalogKindNameVersion ¶ added in v1.7.2
ByCatalogKindNameVersion returns an endpoint that makes HTTP requests to the resource service ByCatalogKindNameVersion server.
func (*Client) ByID ¶ added in v1.7.2
ByID returns an endpoint that makes HTTP requests to the resource service ById server.
func (*Client) ByVersionID ¶ added in v1.7.2
ByVersionID returns an endpoint that makes HTTP requests to the resource service ByVersionId server.
func (*Client) List ¶
List returns an endpoint that makes HTTP requests to the resource service List server.
func (*Client) Query ¶ added in v1.7.2
Query returns an endpoint that makes HTTP requests to the resource service Query server.
func (*Client) VersionsByID ¶
VersionsByID returns an endpoint that makes HTTP requests to the resource service VersionsByID server.
type ListResponseBody ¶
type ListResponseBody struct {
Data ResourceDataCollectionResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"`
}
ListResponseBody is the type of the "resource" service "List" endpoint HTTP response body.
type PlatformResponseBody ¶
type PlatformResponseBody struct { // ID is the unique id of platform ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Name of platform Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` }
PlatformResponseBody is used to define fields on response body types.
type ResourceDataCollectionResponseBody ¶
type ResourceDataCollectionResponseBody []*ResourceDataResponseBody
ResourceDataCollectionResponseBody 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,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Name of resource Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Type of catalog to which resource belongs Catalog *CatalogResponseBody `form:"catalog,omitempty" json:"catalog,omitempty" xml:"catalog,omitempty"` // Categories related to resource Categories []*CategoryResponseBody `form:"categories,omitempty" json:"categories,omitempty" xml:"categories,omitempty"` // Kind of resource Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"` // Url path of the resource in hub HubURLPath *string `form:"hubURLPath,omitempty" json:"hubURLPath,omitempty" xml:"hubURLPath,omitempty"` // Latest version of resource LatestVersion *ResourceVersionDataResponseBody `form:"latestVersion,omitempty" json:"latestVersion,omitempty" xml:"latestVersion,omitempty"` // Tags related to resource Tags []*TagResponseBody `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"` // Platforms related to resource Platforms []*PlatformResponseBody `form:"platforms,omitempty" json:"platforms,omitempty" xml:"platforms,omitempty"` // Rating of resource Rating *float64 `form:"rating,omitempty" json:"rating,omitempty" xml:"rating,omitempty"` // List of all versions of a resource Versions []*ResourceVersionDataResponseBody `form:"versions,omitempty" json:"versions,omitempty" xml:"versions,omitempty"` }
ResourceDataResponseBody 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,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Version of resource Version *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"` // Display name of version DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" xml:"displayName,omitempty"` // Deprecation status of a version Deprecated *bool `form:"deprecated,omitempty" json:"deprecated,omitempty" xml:"deprecated,omitempty"` // Description of version Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Minimum pipelines version the resource's version is compatible with MinPipelinesVersion *string `form:"minPipelinesVersion,omitempty" json:"minPipelinesVersion,omitempty" xml:"minPipelinesVersion,omitempty"` // Raw URL of resource's yaml file of the version RawURL *string `form:"rawURL,omitempty" json:"rawURL,omitempty" xml:"rawURL,omitempty"` // Web URL of resource's yaml file of the version WebURL *string `form:"webURL,omitempty" json:"webURL,omitempty" xml:"webURL,omitempty"` // Timestamp when version was last updated UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` // Platforms related to resource version Platforms []*PlatformResponseBody `form:"platforms,omitempty" json:"platforms,omitempty" xml:"platforms,omitempty"` // Url path of the resource in hub HubURLPath *string `form:"hubURLPath,omitempty" json:"hubURLPath,omitempty" xml:"hubURLPath,omitempty"` // Resource to which the version belongs Resource *ResourceDataResponseBody `form:"resource,omitempty" json:"resource,omitempty" xml:"resource,omitempty"` }
ResourceVersionDataResponseBody is used to define fields on response body types.
type TagResponseBody ¶
type TagResponseBody struct { // ID is the unique id of tag ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Name of tag Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` }
TagResponseBody is used to define fields on response body types.