Documentation ¶
Index ¶
- Constants
- func IsBuiltInRepo(repoName string) bool
- func LoadChart(ctx context.Context, u string, cred *v1alpha1.HelmRepoCredential) (*bytes.Buffer, error)
- func LoadRepoIndex(ctx context.Context, u string, cred *v1alpha1.HelmRepoCredential) (*helmrepo.IndexFile, error)
- type Application
- type ChartVersion
- type HelmVersionWrapper
- func (h HelmVersionWrapper) GetAppVersion() string
- func (h HelmVersionWrapper) GetCreateTime() time.Time
- func (h HelmVersionWrapper) GetDescription() string
- func (h HelmVersionWrapper) GetHome() string
- func (h HelmVersionWrapper) GetIcon() string
- func (h HelmVersionWrapper) GetKeywords() string
- func (h HelmVersionWrapper) GetMaintainers() string
- func (h HelmVersionWrapper) GetName() string
- func (h HelmVersionWrapper) GetPackageName() string
- func (h HelmVersionWrapper) GetRawKeywords() []string
- func (h HelmVersionWrapper) GetRawMaintainers() []*v1alpha1.Maintainer
- func (h HelmVersionWrapper) GetRawSources() []string
- func (h HelmVersionWrapper) GetScreenshots() string
- func (h HelmVersionWrapper) GetSources() string
- func (h HelmVersionWrapper) GetUrls() string
- func (h HelmVersionWrapper) GetVersion() string
- func (h HelmVersionWrapper) GetVersionName() string
- type SavedIndex
- type VersionInterface
Constants ¶
View Source
const IndexYaml = "index.yaml"
Variables ¶
This section is empty.
Functions ¶
func IsBuiltInRepo ¶
IsBuiltInRepo checks whether a repo is a built-in repo. All the built-in repos are located in the workspace system-workspace and the name starts with 'built-in' to differentiate from the repos created by the user.
func LoadRepoIndex ¶
Types ¶
type Application ¶
type Application struct { // application name Name string `json:"name"` ApplicationId string `json:"appId"` // chart description Description string `json:"desc"` // application status Status string `json:"status"` // The URL to an icon file. Icon string `json:"icon,omitempty"` Created time.Time `json:"created"` Charts []*ChartVersion `json:"charts"` }
type ChartVersion ¶
type ChartVersion struct { // Do not save ApplicationId into crd ApplicationId string `json:"-"` ApplicationVersionId string `json:"verId"` helmrepo.ChartVersion `json:",inline"` }
chart version with app id and app version id
type HelmVersionWrapper ¶
type HelmVersionWrapper struct {
*repo.ChartVersion
}
func (HelmVersionWrapper) GetAppVersion ¶
func (h HelmVersionWrapper) GetAppVersion() string
func (HelmVersionWrapper) GetCreateTime ¶
func (h HelmVersionWrapper) GetCreateTime() time.Time
func (HelmVersionWrapper) GetDescription ¶
func (h HelmVersionWrapper) GetDescription() string
func (HelmVersionWrapper) GetHome ¶
func (h HelmVersionWrapper) GetHome() string
func (HelmVersionWrapper) GetIcon ¶
func (h HelmVersionWrapper) GetIcon() string
func (HelmVersionWrapper) GetKeywords ¶
func (h HelmVersionWrapper) GetKeywords() string
func (HelmVersionWrapper) GetMaintainers ¶
func (h HelmVersionWrapper) GetMaintainers() string
func (HelmVersionWrapper) GetName ¶
func (h HelmVersionWrapper) GetName() string
func (HelmVersionWrapper) GetPackageName ¶
func (h HelmVersionWrapper) GetPackageName() string
func (HelmVersionWrapper) GetRawKeywords ¶
func (h HelmVersionWrapper) GetRawKeywords() []string
func (HelmVersionWrapper) GetRawMaintainers ¶
func (h HelmVersionWrapper) GetRawMaintainers() []*v1alpha1.Maintainer
func (HelmVersionWrapper) GetRawSources ¶
func (h HelmVersionWrapper) GetRawSources() []string
func (HelmVersionWrapper) GetScreenshots ¶
func (h HelmVersionWrapper) GetScreenshots() string
func (HelmVersionWrapper) GetSources ¶
func (h HelmVersionWrapper) GetSources() string
func (HelmVersionWrapper) GetUrls ¶
func (h HelmVersionWrapper) GetUrls() string
func (HelmVersionWrapper) GetVersion ¶
func (h HelmVersionWrapper) GetVersion() string
func (HelmVersionWrapper) GetVersionName ¶
func (h HelmVersionWrapper) GetVersionName() string
type SavedIndex ¶
type SavedIndex struct { APIVersion string `json:"apiVersion"` Generated time.Time `json:"generated"` Applications map[string]*Application `json:"apps"` PublicKeys []string `json:"publicKeys,omitempty"` // Annotations are additional mappings uninterpreted by Helm. They are made available for // other applications to add information to the index file. Annotations map[string]string `json:"annotations,omitempty"` }
func ByteArrayToSavedIndex ¶
func ByteArrayToSavedIndex(data []byte) (*SavedIndex, error)
func MergeRepoIndex ¶
func MergeRepoIndex(repo *v1alpha1.HelmRepo, index *helmrepo.IndexFile, existsSavedIndex *SavedIndex) *SavedIndex
MergeRepoIndex merge new index with index from crd
func (*SavedIndex) Bytes ¶
func (i *SavedIndex) Bytes() ([]byte, error)
func (*SavedIndex) GetApplicationVersion ¶
func (i *SavedIndex) GetApplicationVersion(appId, versionId string) *v1alpha1.HelmApplicationVersion
type VersionInterface ¶
type VersionInterface interface { GetName() string GetVersion() string GetAppVersion() string GetDescription() string GetUrls() string GetVersionName() string GetIcon() string GetHome() string GetSources() string GetRawSources() []string GetKeywords() string GetMaintainers() string GetRawMaintainers() []*v1alpha1.Maintainer GetScreenshots() string GetPackageName() string GetCreateTime() time.Time }
func LoadPackage ¶
func LoadPackage(pkg []byte) (VersionInterface, error)
Click to show internal directories.
Click to hide internal directories.