Documentation ¶
Index ¶
- Variables
- func FetchUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.Upstream, error)
- func GenerateAdminConsoleFiles(renderDir string, options types.WriteOptions) ([]types.UpstreamFile, error)
- func GetUpdatesUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.UpdateCheckResult, error)
- func LoadIdentity(upstreamDir string) (*kotsv1beta1.Identity, error)
- func LoadIdentityConfig(upstreamDir string) (*kotsv1beta1.IdentityConfig, error)
- func MustMarshalLicense(license *kotsv1beta1.License) []byte
- func SaveIdentityConfig(identityConfig *kotsv1beta1.IdentityConfig, upstreamDir string) error
- func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
- type App
- type ChannelRelease
- type IncompatibleAppError
- type Release
- type UpgradeOptions
- type UpgradeRelease
- type UpgradeResponse
- type UpstreamSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownRepos = map[string]string{
"stable": "https://kubernetes-charts.storage.googleapis.com",
"local": "http://127.0.0.1:8879",
"elastic": "https://helm.elastic.co",
"gomods": "https://athens.blob.core.windows.net/charts",
"harbor": "https://helm.goharbor.io",
}
Functions ¶
func FetchUpstream ¶
func GenerateAdminConsoleFiles ¶
func GenerateAdminConsoleFiles(renderDir string, options types.WriteOptions) ([]types.UpstreamFile, error)
func GetUpdatesUpstream ¶
func GetUpdatesUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.UpdateCheckResult, error)
func LoadIdentity ¶
func LoadIdentity(upstreamDir string) (*kotsv1beta1.Identity, error)
func LoadIdentityConfig ¶
func LoadIdentityConfig(upstreamDir string) (*kotsv1beta1.IdentityConfig, error)
func MustMarshalLicense ¶
func MustMarshalLicense(license *kotsv1beta1.License) []byte
func SaveIdentityConfig ¶
func SaveIdentityConfig(identityConfig *kotsv1beta1.IdentityConfig, upstreamDir string) error
func WriteUpstream ¶
func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
Types ¶
type ChannelRelease ¶
type IncompatibleAppError ¶
type IncompatibleAppError struct { KotsApplication *kotsv1beta1.Application License *kotsv1beta1.License Message string }
func (IncompatibleAppError) Error ¶
func (e IncompatibleAppError) Error() string
type Release ¶
type Release struct { UpdateCursor replicatedapp.ReplicatedCursor VersionLabel string IsRequired bool ReleaseNotes string ReleasedAt *time.Time ReplicatedRegistryDomain string ReplicatedProxyDomain string ReplicatedChartNames []string EmbeddedClusterArtifacts *kotsv1beta1.EmbeddedClusterArtifacts Manifests map[string][]byte }
type UpgradeOptions ¶
type UpgradeRelease ¶
type UpgradeResponse ¶
type UpgradeResponse struct { Success bool `json:"success"` AvailableUpdates int64 `json:"availableUpdates"` CurrentRelease *UpgradeRelease `json:"currentRelease,omitempty"` AvailableReleases []UpgradeRelease `json:"availableReleases,omitempty"` DeployingRelease *UpgradeRelease `json:"deployingRelease,omitempty"` Error string `json:"error,omitempty"` }
func Upgrade ¶
func Upgrade(appSlug string, options UpgradeOptions) (*UpgradeResponse, error)
type UpstreamSettings ¶
type UpstreamSettings struct { Namespace string S3AccessKey string S3SecretKey string JWT string RqlitePassword string APIEncryptionKey string HTTPProxyEnvValue string HTTPSProxyEnvValue string NoProxyEnvValue string AutoCreateClusterToken string IsOpenShift bool IsGKEAutopilot bool IncludeMinio bool IsMinimalRBAC bool MigrateToMinioXl bool CurrentMinioImage string AdditionalNamespaces []string RegistryConfig kotsadmtypes.RegistryConfig }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.