helmrepoindex

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const IndexYaml = "index.yaml"

Variables

This section is empty.

Functions

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"`

	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)

Jump to

Keyboard shortcuts

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