Documentation
¶
Index ¶
- Variables
- func FindAirgapMetaInDir(root string) (*kotsv1beta1.Airgap, error)
- func GetAppMetadataFromAirgap(airgapArchive string) ([]byte, error)
- func GetAppPublicKey(license *kotsv1beta1.License) ([]byte, error)
- func GetUpdates(upstreamURI string, getUpdatesOptions GetUpdatesOptions) ([]upstreamtypes.Update, error)
- func LicenseIsExpired(license *kotsv1beta1.License) (bool, error)
- func ParseConfigValuesFromFile(filename string) (*kotsv1beta1.ConfigValues, error)
- func ParseIdentityConfigFromFile(filename string) (*kotsv1beta1.IdentityConfig, error)
- func ParseLicenseFromBytes(licenseData []byte) (*kotsv1beta1.License, error)
- func ParseLicenseFromFile(filename string) (*kotsv1beta1.License, error)
- func Pull(upstreamURI string, pullOptions PullOptions) (string, error)
- func PullApplicationMetadata(upstreamURI string, versionLabel string) ([]byte, error)
- func RewriteUpstream(upstreamURI string) string
- func VerifyOldSignature(license *kotsv1beta1.License) (*kotsv1beta1.License, error)
- func VerifySignature(license *kotsv1beta1.License) (*kotsv1beta1.License, error)
- type GetUpdatesOptions
- type InnerSignature
- type KeySignature
- type OuterSignature
- type PullOptions
- type RewriteImageOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSignatureInvalid = errors.New("signature is invalid") ErrSignatureMissing = errors.New("signature is missing") )
Functions ¶
func FindAirgapMetaInDir ¶
func FindAirgapMetaInDir(root string) (*kotsv1beta1.Airgap, error)
func GetAppPublicKey ¶ added in v1.7.0
func GetAppPublicKey(license *kotsv1beta1.License) ([]byte, error)
func GetUpdates ¶
func GetUpdates(upstreamURI string, getUpdatesOptions GetUpdatesOptions) ([]upstreamtypes.Update, 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 LicenseIsExpired ¶ added in v1.17.0
func LicenseIsExpired(license *kotsv1beta1.License) (bool, error)
func ParseConfigValuesFromFile ¶
func ParseConfigValuesFromFile(filename string) (*kotsv1beta1.ConfigValues, error)
func ParseIdentityConfigFromFile ¶
func ParseIdentityConfigFromFile(filename string) (*kotsv1beta1.IdentityConfig, error)
func ParseLicenseFromBytes ¶ added in v1.24.2
func ParseLicenseFromBytes(licenseData []byte) (*kotsv1beta1.License, error)
func ParseLicenseFromFile ¶ added in v1.15.0
func ParseLicenseFromFile(filename string) (*kotsv1beta1.License, 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 ¶
PullApplicationMetadata will return the application metadata yaml, if one is available for the upstream
func RewriteUpstream ¶
func VerifyOldSignature ¶ added in v1.2.0
func VerifyOldSignature(license *kotsv1beta1.License) (*kotsv1beta1.License, error)
func VerifySignature ¶ added in v1.1.0
func VerifySignature(license *kotsv1beta1.License) (*kotsv1beta1.License, error)
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 InnerSignature ¶ added in v1.2.0
type KeySignature ¶ added in v0.9.15
type OuterSignature ¶ added in v1.2.0
type PullOptions ¶
type PullOptions struct {
HelmRepoURI string
RootDir string
Namespace string
Downstreams []string
LocalPath string
LicenseObj *kotsv1beta1.License
LicenseFile string
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
HelmVersion string
HelmOptions []string
SkipHelmChartCheck bool
ReportWriter io.Writer
AppSlug string
AppSequence int64
AppVersionLabel string
IsGitOps bool
HTTPProxyEnvValue string
HTTPSProxyEnvValue string
NoProxyEnvValue string
ReportingInfo *reportingtypes.ReportingInfo
IdentityPostgresConfig *kotsv1beta1.IdentityPostgresConfig
SkipCompatibilityCheck bool
}
Click to show internal directories.
Click to hide internal directories.