Documentation ¶
Index ¶
- Constants
- 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) 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 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"` 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) 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(index *helmrepo.IndexFile, existsSavedIndex *SavedIndex) *SavedIndex
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 GetKeywords() string GetMaintainers() string 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.