Documentation
¶
Index ¶
- func GetAppMetadataFromAirgap(airgapArchive string) (*replicatedapp.ApplicationMetadata, error)
- func GetUpdates(upstreamURI string, getUpdatesOptions GetUpdatesOptions) (*upstreamtypes.UpdateCheckResult, error)
- func ParseConfigValuesFromFile(filename string) (*kotsv1beta1.ConfigValues, error)
- func ParseIdentityConfigFromFile(filename string) (*kotsv1beta1.IdentityConfig, error)
- func Pull(upstreamURI string, pullOptions PullOptions) (string, error)
- func PullApplicationMetadata(upstreamURI string, versionLabel string) (*replicatedapp.ApplicationMetadata, error)
- func RewriteUpstream(upstreamURI string) string
- type GetUpdatesOptions
- type PullOptions
- type RewriteImageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppMetadataFromAirgap ¶
func GetAppMetadataFromAirgap(airgapArchive string) (*replicatedapp.ApplicationMetadata, error)
func GetUpdates ¶
func GetUpdates(upstreamURI string, getUpdatesOptions GetUpdatesOptions) (*upstreamtypes.UpdateCheckResult, error)
GetUpdates will retrieve all later versions of the application specified in upstreamURI using the options specified in getUpdatesOptions. It returns a list of versions.
func ParseConfigValuesFromFile ¶
func ParseConfigValuesFromFile(filename string) (*kotsv1beta1.ConfigValues, error)
func ParseIdentityConfigFromFile ¶
func ParseIdentityConfigFromFile(filename string) (*kotsv1beta1.IdentityConfig, error)
func Pull ¶
func Pull(upstreamURI string, pullOptions PullOptions) (string, error)
Pull will download the application specified in upstreamURI using the options specified in pullOptions. It returns the directory that the app was pulled to
func PullApplicationMetadata ¶
func PullApplicationMetadata(upstreamURI string, versionLabel string) (*replicatedapp.ApplicationMetadata, error)
PullApplicationMetadata will return the application metadata yaml, if one is available for the upstream
func RewriteUpstream ¶
Types ¶
type GetUpdatesOptions ¶
type GetUpdatesOptions struct { HelmRepoURI string Namespace string LocalPath string License *kotsv1beta1.License LastUpdateCheckAt *time.Time CurrentCursor string CurrentChannelID string CurrentChannelName string CurrentVersionLabel string CurrentVersionIsRequired bool ChannelChanged bool ReportingInfo *reportingtypes.ReportingInfo Silent bool }
type PullOptions ¶
type PullOptions struct { RootDir string Namespace string Downstreams []string LocalPath string LicenseObj *kotsv1beta1.License LicenseFile string LicenseEndpointOverride string // only used for testing InstallationFile string AirgapRoot string AirgapBundle string ConfigFile string IdentityConfigFile string UpdateCursor string ExcludeKotsKinds bool ExcludeAdminConsole bool IncludeMinio bool CreateAppDir bool Silent bool RewriteImages bool RewriteImageOptions RewriteImageOptions SkipHelmChartCheck bool ReportWriter io.Writer AppSlug string AppSequence int64 AppVersionLabel string IsGitOps bool HTTPProxyEnvValue string HTTPSProxyEnvValue string NoProxyEnvValue string ReportingInfo *reportingtypes.ReportingInfo SkipCompatibilityCheck bool }
Click to show internal directories.
Click to hide internal directories.