Documentation
¶
Index ¶
- Constants
- func DownloadKOTSBinary(license *licensewrapper.LicenseWrapper, versionLabel string) (string, error)
- func GetECVersionForRelease(license *licensewrapper.LicenseWrapper, versionLabel string) (string, error)
- func SendCustomAppMetricsData(license *licensewrapper.LicenseWrapper, app *apptypes.App, ...) error
- type ApplicationMetadata
- type LicenseData
- type ReplicatedCursor
- type ReplicatedUpstream
Constants ¶
View Source
const DefaultMetadata = `` /* 232-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func DownloadKOTSBinary ¶ added in v1.112.0
func DownloadKOTSBinary(license *licensewrapper.LicenseWrapper, versionLabel string) (string, error)
func GetECVersionForRelease ¶ added in v1.112.0
func GetECVersionForRelease(license *licensewrapper.LicenseWrapper, versionLabel string) (string, error)
func SendCustomAppMetricsData ¶ added in v1.103.2
func SendCustomAppMetricsData(license *licensewrapper.LicenseWrapper, app *apptypes.App, data map[string]interface{}) error
Types ¶
type ApplicationMetadata ¶ added in v1.86.2
func GetApplicationMetadata ¶
func GetApplicationMetadata(host string, upstream *url.URL, versionLabel string) (*ApplicationMetadata, error)
GetApplicationMetadata will return any available application yaml from the upstream. If there is no application.yaml, it will return a placeholder one
type LicenseData ¶
type LicenseData struct {
LicenseBytes []byte
License *licensewrapper.LicenseWrapper
}
func GetLatestLicense ¶
func GetLatestLicense(license *licensewrapper.LicenseWrapper, selectedChannelID string) (*LicenseData, error)
GetLatestLicense will return the latest license from the replicated api, if selectedChannelID is provided it will be passed along to the api. Note: The Replicated API can return v1beta1 or v1beta2 licenses, which are wrapped in a LicenseWrapper.
type ReplicatedCursor ¶
func (ReplicatedCursor) Equal ¶
func (this ReplicatedCursor) Equal(other ReplicatedCursor) bool
type ReplicatedUpstream ¶
func ParseReplicatedURL ¶
func ParseReplicatedURL(u *url.URL) (*ReplicatedUpstream, error)
func (*ReplicatedUpstream) GetRequest ¶
func (r *ReplicatedUpstream) GetRequest(method string, license *licensewrapper.LicenseWrapper, cursor string, selectedChannelID string) (*retryablehttp.Request, error)
Click to show internal directories.
Click to hide internal directories.