package
Version:
v3.0.2
Opens a new window with list of versions in this module.
Published: Apr 22, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type CheckRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
}
type InParams struct {
Globs []string `json:"globs"`
Unpack bool `json:"unpack"`
}
type InRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
Params InParams `json:"params"`
}
type InResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata,omitempty"`
}
type Metadata struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
}
type OutParams struct {
FileGlob string `json:"file_glob"`
MetadataFile string `json:"metadata_file"`
SkipProductFilePolling bool `json:"skip_product_file_polling"`
Override bool `json:"override"`
}
type OutRequest struct {
Params OutParams `json:"params"`
Source Source `json:"source"`
}
type OutResponse struct {
Version Version `json:"version"`
Metadata []Metadata `json:"metadata,omitempty"`
}
const (
SortByNone SortBy = "none"
SortBySemver SortBy = "semver"
SortByLastUpdated SortBy = "last_updated"
)
type Source struct {
APIToken string `json:"api_token"`
ProductSlug string `json:"product_slug"`
ProductVersion string `json:"product_version"`
Endpoint string `json:"endpoint"`
ReleaseType string `json:"release_type"`
SortBy SortBy `json:"sort_by"`
SkipSSLValidation bool `json:"skip_ssl_verification"`
CopyMetadata bool `json:"copy_metadata"`
Verbose bool `json:"verbose"`
}
type Version struct {
ProductVersion string `json:"product_version"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.