Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- func NewCategoriesRequest(server string) (*http.Request, error)
- func NewIdentifierByTypeRequest(server string, identifierType string) (*http.Request, error)
- func NewIdentifierTypesRequest(server string) (*http.Request, error)
- func NewIndexRequest(server string) (*http.Request, error)
- func NewProductReleaseLatestRequest(server string, product string) (*http.Request, error)
- func NewProductReleaseRequest(server string, product string, release string) (*http.Request, error)
- func NewProductRequest(server string, product string) (*http.Request, error)
- func NewProductsCategoryRequest(server string, category string) (*http.Request, error)
- func NewProductsFullRequest(server string) (*http.Request, error)
- func NewProductsRequest(server string) (*http.Request, error)
- func NewProductsTagRequest(server string, tag string) (*http.Request, error)
- func NewTagsRequest(server string) (*http.Request, error)
- type CategoriesClientResponse
- type Client
- func (c *Client) Categories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IdentifierByType(ctx context.Context, identifierType string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IdentifierTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Index(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Product(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProductRelease(ctx context.Context, product string, release string, ...) (*http.Response, error)
- func (c *Client) ProductReleaseLatest(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Products(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProductsCategory(ctx context.Context, category string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProductsFull(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProductsTag(ctx context.Context, tag string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Tags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CategoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CategoriesClientResponse, error)
- func (c *ClientWithResponses) IdentifierByTypeWithResponse(ctx context.Context, identifierType string, reqEditors ...RequestEditorFn) (*IdentifierByTypeClientResponse, error)
- func (c *ClientWithResponses) IdentifierTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IdentifierTypesClientResponse, error)
- func (c *ClientWithResponses) IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexClientResponse, error)
- func (c *ClientWithResponses) ProductReleaseLatestWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductReleaseLatestClientResponse, error)
- func (c *ClientWithResponses) ProductReleaseWithResponse(ctx context.Context, product string, release string, ...) (*ProductReleaseClientResponse, error)
- func (c *ClientWithResponses) ProductWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductClientResponse, error)
- func (c *ClientWithResponses) ProductsCategoryWithResponse(ctx context.Context, category string, reqEditors ...RequestEditorFn) (*ProductsCategoryClientResponse, error)
- func (c *ClientWithResponses) ProductsFullWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsFullClientResponse, error)
- func (c *ClientWithResponses) ProductsTagWithResponse(ctx context.Context, tag string, reqEditors ...RequestEditorFn) (*ProductsTagClientResponse, error)
- func (c *ClientWithResponses) ProductsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsClientResponse, error)
- func (c *ClientWithResponses) TagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TagsClientResponse, error)
- type ClientWithResponsesInterface
- type FullProductListResponse
- type HttpRequestDoer
- type Identifier
- type IdentifierByTypeClientResponse
- type IdentifierListResponse
- type IdentifierTypesClientResponse
- type IndexClientResponse
- type ProductClientResponse
- type ProductDetails
- type ProductListResponse
- type ProductRelease
- type ProductReleaseClientResponse
- type ProductReleaseLatestClientResponse
- type ProductReleaseResponse
- type ProductResponse
- type ProductSummary
- type ProductVersion
- type ProductsCategoryClientResponse
- type ProductsClientResponse
- type ProductsFullClientResponse
- type ProductsTagClientResponse
- type RequestEditorFn
- type TagsClientResponse
- type UnknownProperties
- type Uri
- type UriListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCategoriesRequest ¶ added in v0.117.0
NewCategoriesRequest generates requests for Categories
func NewIdentifierByTypeRequest ¶ added in v0.121.0
NewIdentifierByTypeRequest generates requests for IdentifierByType
func NewIdentifierTypesRequest ¶ added in v0.121.0
NewIdentifierTypesRequest generates requests for IdentifierTypes
func NewIndexRequest ¶ added in v0.117.0
NewIndexRequest generates requests for Index
func NewProductReleaseLatestRequest ¶ added in v0.117.0
NewProductReleaseLatestRequest generates requests for ProductReleaseLatest
func NewProductReleaseRequest ¶ added in v0.117.0
NewProductReleaseRequest generates requests for ProductRelease
func NewProductRequest ¶ added in v0.117.0
NewProductRequest generates requests for Product
func NewProductsCategoryRequest ¶ added in v0.117.0
NewProductsCategoryRequest generates requests for ProductsCategory
func NewProductsFullRequest ¶ added in v0.117.0
NewProductsFullRequest generates requests for ProductsFull
func NewProductsRequest ¶ added in v0.117.0
NewProductsRequest generates requests for Products
func NewProductsTagRequest ¶ added in v0.117.0
NewProductsTagRequest generates requests for ProductsTag
Types ¶
type CategoriesClientResponse ¶ added in v0.117.0
type CategoriesClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UriListResponse
}
func ParseCategoriesClientResponse ¶ added in v0.117.0
func ParseCategoriesClientResponse(rsp *http.Response) (*CategoriesClientResponse, error)
ParseCategoriesClientResponse parses an HTTP response from a CategoriesWithResponse call
func (CategoriesClientResponse) Status ¶ added in v0.117.0
func (r CategoriesClientResponse) Status() string
Status returns HTTPResponse.Status
func (CategoriesClientResponse) StatusCode ¶ added in v0.117.0
func (r CategoriesClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Categories ¶ added in v0.117.0
func (*Client) IdentifierByType ¶ added in v0.121.0
func (*Client) IdentifierTypes ¶ added in v0.121.0
func (*Client) ProductRelease ¶ added in v0.117.0
func (*Client) ProductReleaseLatest ¶ added in v0.117.0
func (*Client) ProductsCategory ¶ added in v0.117.0
func (*Client) ProductsFull ¶ added in v0.117.0
func (*Client) ProductsTag ¶ added in v0.117.0
type ClientInterface ¶
type ClientInterface interface {
// Index request
Index(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// Categories request
Categories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProductsCategory request
ProductsCategory(ctx context.Context, category string, reqEditors ...RequestEditorFn) (*http.Response, error)
// IdentifierTypes request
IdentifierTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// IdentifierByType request
IdentifierByType(ctx context.Context, identifierType string, reqEditors ...RequestEditorFn) (*http.Response, error)
// Products request
Products(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProductsFull request
ProductsFull(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// Product request
Product(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProductReleaseLatest request
ProductReleaseLatest(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProductRelease request
ProductRelease(ctx context.Context, product string, release string, reqEditors ...RequestEditorFn) (*http.Response, error)
// Tags request
Tags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ProductsTag request
ProductsTag(ctx context.Context, tag string, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CategoriesWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) CategoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CategoriesClientResponse, error)
CategoriesWithResponse request returning *CategoriesClientResponse
func (*ClientWithResponses) IdentifierByTypeWithResponse ¶ added in v0.121.0
func (c *ClientWithResponses) IdentifierByTypeWithResponse(ctx context.Context, identifierType string, reqEditors ...RequestEditorFn) (*IdentifierByTypeClientResponse, error)
IdentifierByTypeWithResponse request returning *IdentifierByTypeClientResponse
func (*ClientWithResponses) IdentifierTypesWithResponse ¶ added in v0.121.0
func (c *ClientWithResponses) IdentifierTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IdentifierTypesClientResponse, error)
IdentifierTypesWithResponse request returning *IdentifierTypesClientResponse
func (*ClientWithResponses) IndexWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexClientResponse, error)
IndexWithResponse request returning *IndexClientResponse
func (*ClientWithResponses) ProductReleaseLatestWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductReleaseLatestWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductReleaseLatestClientResponse, error)
ProductReleaseLatestWithResponse request returning *ProductReleaseLatestClientResponse
func (*ClientWithResponses) ProductReleaseWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductReleaseWithResponse(ctx context.Context, product string, release string, reqEditors ...RequestEditorFn) (*ProductReleaseClientResponse, error)
ProductReleaseWithResponse request returning *ProductReleaseClientResponse
func (*ClientWithResponses) ProductWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductClientResponse, error)
ProductWithResponse request returning *ProductClientResponse
func (*ClientWithResponses) ProductsCategoryWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductsCategoryWithResponse(ctx context.Context, category string, reqEditors ...RequestEditorFn) (*ProductsCategoryClientResponse, error)
ProductsCategoryWithResponse request returning *ProductsCategoryClientResponse
func (*ClientWithResponses) ProductsFullWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductsFullWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsFullClientResponse, error)
ProductsFullWithResponse request returning *ProductsFullClientResponse
func (*ClientWithResponses) ProductsTagWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductsTagWithResponse(ctx context.Context, tag string, reqEditors ...RequestEditorFn) (*ProductsTagClientResponse, error)
ProductsTagWithResponse request returning *ProductsTagClientResponse
func (*ClientWithResponses) ProductsWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) ProductsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsClientResponse, error)
ProductsWithResponse request returning *ProductsClientResponse
func (*ClientWithResponses) TagsWithResponse ¶ added in v0.117.0
func (c *ClientWithResponses) TagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TagsClientResponse, error)
TagsWithResponse request returning *TagsClientResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// IndexWithResponse request
IndexWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IndexClientResponse, error)
// CategoriesWithResponse request
CategoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CategoriesClientResponse, error)
// ProductsCategoryWithResponse request
ProductsCategoryWithResponse(ctx context.Context, category string, reqEditors ...RequestEditorFn) (*ProductsCategoryClientResponse, error)
// IdentifierTypesWithResponse request
IdentifierTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*IdentifierTypesClientResponse, error)
// IdentifierByTypeWithResponse request
IdentifierByTypeWithResponse(ctx context.Context, identifierType string, reqEditors ...RequestEditorFn) (*IdentifierByTypeClientResponse, error)
// ProductsWithResponse request
ProductsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsClientResponse, error)
// ProductsFullWithResponse request
ProductsFullWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProductsFullClientResponse, error)
// ProductWithResponse request
ProductWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductClientResponse, error)
// ProductReleaseLatestWithResponse request
ProductReleaseLatestWithResponse(ctx context.Context, product string, reqEditors ...RequestEditorFn) (*ProductReleaseLatestClientResponse, error)
// ProductReleaseWithResponse request
ProductReleaseWithResponse(ctx context.Context, product string, release string, reqEditors ...RequestEditorFn) (*ProductReleaseClientResponse, error)
// TagsWithResponse request
TagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TagsClientResponse, error)
// ProductsTagWithResponse request
ProductsTagWithResponse(ctx context.Context, tag string, reqEditors ...RequestEditorFn) (*ProductsTagClientResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type FullProductListResponse ¶ added in v0.117.0
type FullProductListResponse struct {
// Result The products.
Result []ProductDetails `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
// Total Number of products in the list.
Total int32 `json:"total"`
}
FullProductListResponse A response containing a list of products (full).
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Identifier ¶ added in v0.117.0
type Identifier struct {
// Id Identifier.
Id string `json:"id"`
// Type Type of the identifier.
Type string `json:"type"`
}
Identifier A product identifier, such as a purl, repology or cpe identifier.
type IdentifierByTypeClientResponse ¶ added in v0.121.0
type IdentifierByTypeClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IdentifierListResponse
}
func ParseIdentifierByTypeClientResponse ¶ added in v0.121.0
func ParseIdentifierByTypeClientResponse(rsp *http.Response) (*IdentifierByTypeClientResponse, error)
ParseIdentifierByTypeClientResponse parses an HTTP response from a IdentifierByTypeWithResponse call
func (IdentifierByTypeClientResponse) Status ¶ added in v0.121.0
func (r IdentifierByTypeClientResponse) Status() string
Status returns HTTPResponse.Status
func (IdentifierByTypeClientResponse) StatusCode ¶ added in v0.121.0
func (r IdentifierByTypeClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IdentifierListResponse ¶ added in v0.121.0
type IdentifierListResponse struct {
// Result The identifiers.
Result []struct {
// Identifier The identifier.
Identifier string `json:"identifier"`
// Product A link to a resource.
Product Uri `json:"product"`
} `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
// Total Number of identifiers in the list.
Total int32 `json:"total"`
}
IdentifierListResponse A response containing all identifiers for a given type.
type IdentifierTypesClientResponse ¶ added in v0.121.0
type IdentifierTypesClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UriListResponse
}
func ParseIdentifierTypesClientResponse ¶ added in v0.121.0
func ParseIdentifierTypesClientResponse(rsp *http.Response) (*IdentifierTypesClientResponse, error)
ParseIdentifierTypesClientResponse parses an HTTP response from a IdentifierTypesWithResponse call
func (IdentifierTypesClientResponse) Status ¶ added in v0.121.0
func (r IdentifierTypesClientResponse) Status() string
Status returns HTTPResponse.Status
func (IdentifierTypesClientResponse) StatusCode ¶ added in v0.121.0
func (r IdentifierTypesClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IndexClientResponse ¶ added in v0.117.0
type IndexClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UriListResponse
}
func ParseIndexClientResponse ¶ added in v0.117.0
func ParseIndexClientResponse(rsp *http.Response) (*IndexClientResponse, error)
ParseIndexClientResponse parses an HTTP response from a IndexWithResponse call
func (IndexClientResponse) Status ¶ added in v0.117.0
func (r IndexClientResponse) Status() string
Status returns HTTPResponse.Status
func (IndexClientResponse) StatusCode ¶ added in v0.117.0
func (r IndexClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductClientResponse ¶ added in v0.117.0
type ProductClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductResponse
}
func ParseProductClientResponse ¶ added in v0.117.0
func ParseProductClientResponse(rsp *http.Response) (*ProductClientResponse, error)
ParseProductClientResponse parses an HTTP response from a ProductWithResponse call
func (ProductClientResponse) Status ¶ added in v0.117.0
func (r ProductClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductDetails ¶ added in v0.117.0
type ProductDetails struct {
// Aliases Aliases declared for the product (derived from alternate_urls).
// The array is empty when no alias is declared.
Aliases []string `json:"aliases"`
// Category Category of the product.
Category string `json:"category"`
// Identifiers Known identifiers (purl, repology, cpe...) associated to the product.
// The array is empty when no identifier is declared.
Identifiers []Identifier `json:"identifiers"`
// Label Label of the product.
Label string `json:"label"`
// Labels Product labels.
Labels struct {
// Discontinued Label used to denote the discontinuation of the product.
// This field is mainly used for hardware, it is always null for software.
Discontinued *string `json:"discontinued"`
// Eoas Label used to denote the phase before the end of active support of the product.
// This field is null when the product does not have an active support phase.
Eoas *string `json:"eoas"`
// Eoes Label used to denote the phase before the end of extended support of the product.
// This field is null when the product does not have an extended support phase.
Eoes *string `json:"eoes"`
// Eol Label used to denote the phase before the end of life of the product.
Eol string `json:"eol"`
} `json:"labels"`
// Links Product links.
Links struct {
// Html Link to the product page on endoflife.date.
Html string `json:"html"`
// Icon Link to the product icon on https://simpleicons.org.
// This field is null when the product does not have an icon on simpleicons.org.
Icon *string `json:"icon"`
// ReleasePolicy Link to the product release policy.
// This field is null when the product does not have a publicly available release policy.
ReleasePolicy *string `json:"releasePolicy"`
} `json:"links"`
// Name Name of the product.
Name string `json:"name"`
// Releases A list of all product releases.
Releases []ProductRelease `json:"releases"`
// Tags Tags associated to the product.
// Given the category is also a tag, the array will always contain at least one tag.
Tags []string `json:"tags"`
// VersionCommand Command that can be used to check the current product version.
// This field is null when the command is not known.
VersionCommand *string `json:"versionCommand"`
}
ProductDetails Full details of a product.
type ProductListResponse ¶ added in v0.117.0
type ProductListResponse struct {
// Result The products.
Result []ProductSummary `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
// Total Number of products in the list.
Total int32 `json:"total"`
}
ProductListResponse A response containing a list of products (summary).
type ProductRelease ¶ added in v0.117.0
type ProductRelease struct {
// Codename Codename of the product release cycle.
// This field is null when the release cycle does not have a codename, or when the information is not known.
Codename *string `json:"codename"`
// Custom Group properties with name not know in advance, such as custom properties.
Custom *UnknownProperties `json:"custom,omitempty"`
// DiscontinuedFrom Discontinuation date for the release cycle.
// This field is mainly used for hardware, it is not provided when not applicable. It is null when the date is not known.
DiscontinuedFrom *openapi_types.Date `json:"discontinuedFrom"`
// EndOfActiveSupportFrom End of active support date for the release cycle.
// This field is not provided when the product does not have an active support phase. It is null when the date is not known.
EndOfActiveSupportFrom *openapi_types.Date `json:"eoasFrom"`
// EoesFrom End of extended support date for the release cycle.
// This field is not provided when the product does not have an extended support phase. It is null when the release cycle is not eligible for extended support or when the date is not known.
EoesFrom *openapi_types.Date `json:"eoesFrom"`
// EndOfLifeFrom End of life date for the release cycle.
// This field is null when the date is not known.
EndOfLifeFrom *openapi_types.Date `json:"eolFrom"`
// IsDiscontinued Whether the release cycle is discontinued.
// This field is mainly used for hardware, it is not provided when not applicable.
IsDiscontinued *bool `json:"isDiscontinued,omitempty"`
// IsEndOfActiveSupport Whether the active support phase is over for the release cycle.
// This field is not provided when the product does not have an active support phase.
IsEndOfActiveSupport *bool `json:"isEoas,omitempty"`
// IsEoes Whether the extended support phase is over for the release cycle.
// This field is not provided when the product does not have an extended support phase. This field is null when the release cycle is not eligible for extended support.
IsEoes *bool `json:"isEoes"`
// IsEndOfLife Whether the release cycle is EOL.
IsEndOfLife bool `json:"isEol"`
// IsLongTermSupport Whether the product release cycle receives long-term support (LTS).
IsLongTermSupport bool `json:"isLts"`
// IsMaintained Whether this release cycle still have some level of support.
// This can be any level of support, even extended support.
IsMaintained bool `json:"isMaintained"`
// Label Label of the product release cycle.
Label string `json:"label"`
// Latest Information about a product version.
Latest ProductVersion `json:"latest"`
// LongTermSupportFrom Start date of the LTS phase for the release cycle.
// This field is null when the isLts field is set to false, when the LTS phase does not start later than the release date, or when the date is not known.
LongTermSupportFrom *openapi_types.Date `json:"ltsFrom"`
// Name Name of the product release cycle.
Name string `json:"name"`
// ReleaseDate Release date of the release cycle.
ReleaseDate openapi_types.Date `json:"releaseDate"`
}
ProductRelease Full information about a product release cycle.
type ProductReleaseClientResponse ¶ added in v0.117.0
type ProductReleaseClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductReleaseResponse
}
func ParseProductReleaseClientResponse ¶ added in v0.117.0
func ParseProductReleaseClientResponse(rsp *http.Response) (*ProductReleaseClientResponse, error)
ParseProductReleaseClientResponse parses an HTTP response from a ProductReleaseWithResponse call
func (ProductReleaseClientResponse) Status ¶ added in v0.117.0
func (r ProductReleaseClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductReleaseClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductReleaseClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductReleaseLatestClientResponse ¶ added in v0.117.0
type ProductReleaseLatestClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductReleaseResponse
}
func ParseProductReleaseLatestClientResponse ¶ added in v0.117.0
func ParseProductReleaseLatestClientResponse(rsp *http.Response) (*ProductReleaseLatestClientResponse, error)
ParseProductReleaseLatestClientResponse parses an HTTP response from a ProductReleaseLatestWithResponse call
func (ProductReleaseLatestClientResponse) Status ¶ added in v0.117.0
func (r ProductReleaseLatestClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductReleaseLatestClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductReleaseLatestClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductReleaseResponse ¶ added in v0.117.0
type ProductReleaseResponse struct {
// Result Full information about a product release cycle.
Result ProductRelease `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
}
ProductReleaseResponse A response containing a release cycle.
type ProductResponse ¶ added in v0.117.0
type ProductResponse struct {
// LastModified The time this product was last modified.
LastModified time.Time `json:"last_modified"`
// Result Full details of a product.
Result ProductDetails `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
}
ProductResponse A response containing a product.
type ProductSummary ¶ added in v0.117.0
type ProductSummary struct {
// Aliases Aliases declared for the product (derived from alternate_urls).
// The array is empty when no alias is declared.
Aliases []string `json:"aliases"`
// Category Category of the product.
Category string `json:"category"`
// Label Label of the product.
Label string `json:"label"`
// Name Name of the product.
Name string `json:"name"`
// Tags Tags associated to the product.
// Given the category is also a tag, the array will always contain at least one tag.
Tags []string `json:"tags"`
// Uri Link to the full product details.
Uri string `json:"uri"`
}
ProductSummary Summary of a product.
type ProductVersion ¶ added in v0.117.0
type ProductVersion struct {
// Date Release date of the version.
// This field is null when the information is not known.
Date *openapi_types.Date `json:"date"`
// Link Link to the changelog or release notes.
// This field is null when there is no public link available, or when the information is not known.
Link *string `json:"link"`
// Name Name of the version.
Name string `json:"name"`
}
ProductVersion Information about a product version.
type ProductsCategoryClientResponse ¶ added in v0.117.0
type ProductsCategoryClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductListResponse
}
func ParseProductsCategoryClientResponse ¶ added in v0.117.0
func ParseProductsCategoryClientResponse(rsp *http.Response) (*ProductsCategoryClientResponse, error)
ParseProductsCategoryClientResponse parses an HTTP response from a ProductsCategoryWithResponse call
func (ProductsCategoryClientResponse) Status ¶ added in v0.117.0
func (r ProductsCategoryClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductsCategoryClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductsCategoryClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductsClientResponse ¶ added in v0.117.0
type ProductsClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductListResponse
}
func ParseProductsClientResponse ¶ added in v0.117.0
func ParseProductsClientResponse(rsp *http.Response) (*ProductsClientResponse, error)
ParseProductsClientResponse parses an HTTP response from a ProductsWithResponse call
func (ProductsClientResponse) Status ¶ added in v0.117.0
func (r ProductsClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductsClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductsClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductsFullClientResponse ¶ added in v0.117.0
type ProductsFullClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FullProductListResponse
}
func ParseProductsFullClientResponse ¶ added in v0.117.0
func ParseProductsFullClientResponse(rsp *http.Response) (*ProductsFullClientResponse, error)
ParseProductsFullClientResponse parses an HTTP response from a ProductsFullWithResponse call
func (ProductsFullClientResponse) Status ¶ added in v0.117.0
func (r ProductsFullClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductsFullClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductsFullClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductsTagClientResponse ¶ added in v0.117.0
type ProductsTagClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ProductListResponse
}
func ParseProductsTagClientResponse ¶ added in v0.117.0
func ParseProductsTagClientResponse(rsp *http.Response) (*ProductsTagClientResponse, error)
ParseProductsTagClientResponse parses an HTTP response from a ProductsTagWithResponse call
func (ProductsTagClientResponse) Status ¶ added in v0.117.0
func (r ProductsTagClientResponse) Status() string
Status returns HTTPResponse.Status
func (ProductsTagClientResponse) StatusCode ¶ added in v0.117.0
func (r ProductsTagClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type TagsClientResponse ¶ added in v0.117.0
type TagsClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UriListResponse
}
func ParseTagsClientResponse ¶ added in v0.117.0
func ParseTagsClientResponse(rsp *http.Response) (*TagsClientResponse, error)
ParseTagsClientResponse parses an HTTP response from a TagsWithResponse call
func (TagsClientResponse) Status ¶ added in v0.117.0
func (r TagsClientResponse) Status() string
Status returns HTTPResponse.Status
func (TagsClientResponse) StatusCode ¶ added in v0.117.0
func (r TagsClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnknownProperties ¶ added in v0.121.0
UnknownProperties Group properties with name not know in advance, such as custom properties.
type Uri ¶ added in v0.117.0
type Uri struct {
// Name Name of the URI.
Name string `json:"name"`
// Uri URI.
Uri string `json:"uri"`
}
Uri A link to a resource.
type UriListResponse ¶ added in v0.117.0
type UriListResponse struct {
// Result The URIs.
Result []Uri `json:"result"`
// SchemaVersion Version of this schema.
SchemaVersion string `json:"schema_version"`
// Total Number of URIs in the list.
Total int32 `json:"total"`
}
UriListResponse A response containing a list of URIs.