Documentation ¶
Index ¶
- Constants
- func ParseManifests(out string) ([]*v1.Carp, error)
- type Application
- type ArtifactHubRepo
- type ArtifactHubResult
- type ArtifactHubResults
- type Cache
- type CacheKey
- type DataLayer
- type HelmConfigGetter
- type HelmNSConfigGetter
- type HelmRepo
- type K8s
- func (k *K8s) DescribeResource(kind string, ns string, name string) (string, error)
- func (k *K8s) GetNameSpaces() (res *corev1.NamespaceList, err error)
- func (k *K8s) GetResource(kind string, namespace string, name string) (*runtime.Object, error)
- func (k *K8s) GetResourceInfo(kind string, namespace string, name string) (*testapiv1.Carp, error)
- func (k *K8s) GetResourceYAML(kind string, namespace string, name string) (string, error)
- type KubeContext
- type LocalChart
- type Release
- func (r *Release) GetRev(revNo int) (*Release, error)
- func (r *Release) History() ([]*Release, error)
- func (r *Release) ParsedManifests() ([]*v1.Carp, error)
- func (r *Release) Rollback(toRevision int) error
- func (r *Release) RunTests() (string, error)
- func (r *Release) Uninstall() error
- func (r *Release) Upgrade(repoChart string, version string, justTemplate bool, ...) (*release.Release, error)
- type Releases
- type Repositories
- func (r *Repositories) Add(name string, url string, username string, password string) error
- func (r *Repositories) Containing(name string) (repo.ChartVersions, error)
- func (r *Repositories) Delete(name string) error
- func (r *Repositories) Get(name string) (Repository, error)
- func (r *Repositories) GetChartValues(chart string, ver string) (string, error)
- func (r *Repositories) List() ([]Repository, error)
- type Repository
- type SectionFn
- type StatusInfo
Constants ¶
View Source
const AnnRepo = "helm-dashboard/repository-name"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Settings *cli.EnvSettings HelmConfig HelmNSConfigGetter K8s *K8s Releases *Releases Repositories *Repositories }
func NewApplication ¶
func NewApplication(settings *cli.EnvSettings, helmConfig HelmNSConfigGetter, namespaces []string, devel bool) (*Application, error)
type ArtifactHubRepo ¶ added in v1.2.0
type ArtifactHubRepo struct { Url string `json:"url"` Kind int `json:"kind"` Name string `json:"name"` Official bool `json:"official"` DisplayName string `json:"display_name"` RepositoryId string `json:"repository_id"` ScannerDisabled bool `json:"scanner_disabled"` OrganizationName string `json:"organization_name"` VerifiedPublisher bool `json:"verified_publisher"` OrganizationDisplayName string `json:"organization_display_name"` }
type ArtifactHubResult ¶ added in v1.2.0
type ArtifactHubResult struct { PackageId string `json:"package_id"` Name string `json:"name"` NormalizedName string `json:"normalized_name"` LogoImageId string `json:"logo_image_id"` Stars int `json:"stars"` Description string `json:"description"` Version string `json:"version"` AppVersion string `json:"app_version"` Deprecated bool `json:"deprecated"` Signed bool `json:"signed"` ProductionOrganizationsCount int `json:"production_organizations_count"` Ts int `json:"ts"` Repository ArtifactHubRepo `json:"repository"` }
func QueryArtifactHub ¶ added in v1.2.0
func QueryArtifactHub(chartName string) ([]*ArtifactHubResult, error)
type ArtifactHubResults ¶ added in v1.2.0
type ArtifactHubResults struct {
Packages []*ArtifactHubResult `json:"packages"`
}
type Cache ¶
func (*Cache) Invalidate ¶
type DataLayer ¶
type DataLayer struct { KubeContext string Scanners []subproc.Scanner StatusInfo *StatusInfo Namespaces []string Cache *Cache ConfGen HelmConfigGetter LocalCharts []string // contains filtered or unexported fields }
func NewDataLayer ¶
func (*DataLayer) GetStatus ¶
func (d *DataLayer) GetStatus() *StatusInfo
func (*DataLayer) ListContexts ¶
func (d *DataLayer) ListContexts() ([]KubeContext, error)
func (*DataLayer) PeriodicTasks ¶
func (*DataLayer) SetContext ¶
type HelmConfigGetter ¶
type HelmConfigGetter = func(sett *cli.EnvSettings, ns string) (*action.Configuration, error)
type HelmNSConfigGetter ¶
type HelmNSConfigGetter = func(ns string) (*action.Configuration, error)
type HelmRepo ¶ added in v1.1.0
type HelmRepo struct { Settings *cli.EnvSettings Orig *repo.Entry // contains filtered or unexported fields }
type K8s ¶
type K8s struct { Namespaces []string Factory kube.Factory RestClientGetter genericclioptions.RESTClientGetter }
func (*K8s) DescribeResource ¶
func (*K8s) GetNameSpaces ¶
func (k *K8s) GetNameSpaces() (res *corev1.NamespaceList, err error)
func (*K8s) GetResource ¶
func (*K8s) GetResourceInfo ¶
type KubeContext ¶
type LocalChart ¶ added in v1.1.0
type LocalChart struct { LocalCharts []string // contains filtered or unexported fields }
func (*LocalChart) ByName ¶ added in v1.1.0
func (l *LocalChart) ByName(name string) (repo.ChartVersions, error)
func (*LocalChart) Charts ¶ added in v1.1.0
func (l *LocalChart) Charts() (repo.ChartVersions, error)
func (*LocalChart) Name ¶ added in v1.1.0
func (l *LocalChart) Name() string
func (*LocalChart) URL ¶ added in v1.1.0
func (l *LocalChart) URL() string
func (*LocalChart) Update ¶ added in v1.1.0
func (l *LocalChart) Update() error
Update reloads the chart information from disk
type Release ¶
type Release struct { Settings *cli.EnvSettings HelmConfig HelmNSConfigGetter Orig *release.Release // contains filtered or unexported fields }
type Releases ¶
type Releases struct { Namespaces []string HelmConfig HelmNSConfigGetter Settings *cli.EnvSettings // contains filtered or unexported fields }
type Repositories ¶
type Repositories struct { Settings *cli.EnvSettings HelmConfig *action.Configuration LocalCharts []string // contains filtered or unexported fields }
func (*Repositories) Containing ¶
func (r *Repositories) Containing(name string) (repo.ChartVersions, error)
Containing returns list of chart versions for the given chart name, across all repositories
func (*Repositories) Delete ¶
func (r *Repositories) Delete(name string) error
func (*Repositories) Get ¶
func (r *Repositories) Get(name string) (Repository, error)
func (*Repositories) GetChartValues ¶
func (r *Repositories) GetChartValues(chart string, ver string) (string, error)
func (*Repositories) List ¶
func (r *Repositories) List() ([]Repository, error)
type Repository ¶
type Repository interface { Name() string URL() string Update() error Charts() (repo.ChartVersions, error) ByName(name string) (repo.ChartVersions, error) }
Click to show internal directories.
Click to hide internal directories.