helmrepoindex

package
v0.0.0-...-e779149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const IndexYaml = "index.yaml"

Variables

This section is empty.

Functions

func IsBuiltInRepo

func IsBuiltInRepo(repoName string) bool

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 LoadChart

func LoadChart(ctx context.Context, u string, cred *v1alpha1.HelmRepoCredential) (*bytes.Buffer, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL