replicatedapp

package
v1.122.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 *kotsv1beta1.License, versionLabel string) (string, error)

func GetECVersionForRelease added in v1.112.0

func GetECVersionForRelease(license *kotsv1beta1.License, versionLabel string) (string, error)

func SendCustomAppMetricsData added in v1.103.2

func SendCustomAppMetricsData(license *kotsv1beta1.License, app *apptypes.App, data map[string]interface{}) error

Types

type ApplicationMetadata added in v1.86.2

type ApplicationMetadata struct {
	Manifest []byte
	Branding []byte
}

func GetApplicationMetadata

func GetApplicationMetadata(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      *kotsv1beta1.License
}

func GetLatestLicense

func GetLatestLicense(license *kotsv1beta1.License, 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.

type ReplicatedCursor

type ReplicatedCursor struct {
	ChannelID   string
	ChannelName string
	Cursor      string
}

func (ReplicatedCursor) Equal

func (this ReplicatedCursor) Equal(other ReplicatedCursor) bool

type ReplicatedUpstream

type ReplicatedUpstream struct {
	Channel      *string
	AppSlug      string
	VersionLabel *string
}

func ParseReplicatedURL

func ParseReplicatedURL(u *url.URL) (*ReplicatedUpstream, error)

func (*ReplicatedUpstream) GetRequest

func (r *ReplicatedUpstream) GetRequest(method string, license *kotsv1beta1.License, cursor ReplicatedCursor, selectedChannelID string) (*http.Request, error)

Jump to

Keyboard shortcuts

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