helm

package
v0.0.0-...-b9037bf Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(portalProxy api.PortalProxy) error

Init performs plugin initialization

func ListConnectedKubernetes

func ListConnectedKubernetes() ([]*api.ConnectedEndpoint, error)

ListConnectedCloudFoundry will list Cloud Foundry endpoints configured locally (can be only one)

func ListHelmRepositories

func ListHelmRepositories() ([]*api.CNSIRecord, error)

ListHelmRepositories will list Helm Repositories configured locally

func RegisterRoutes

func RegisterRoutes(echoGroup *echo.Group)

RegisterRoutes adss the routes needed to serve chart info for the local Helm repositories

Types

type CFConfigFile

type CFConfigFile struct {
	APIEndpoint            string `json:"Target"`
	AuthorizationEndpoint  string `json:"AuthorizationEndpoint"`
	TokenEndpoint          string `json:"UaaEndpoint"`
	DopplerLoggingEndpoint string `json:"DopplerEndPoint"`
	SkipSSLValidation      bool   `json:"SSLDisabled"`
	ClientID               string `json:"UAAOAuthClient"`
	ClientSecret           string `json:"UAAOAuthClientSecret"`
	AccessToken            string `json:"AccessToken"`
	RefreshToken           string `json:"RefreshToken"`
}

CFConfigFile represents the data we need for CF config file

type ChartMaintainer

type ChartMaintainer struct {
	// Name is a user name or organization name
	Name string `json:"name,omitempty"`
	// Email is an optional email address to contact the named maintainer
	Email string `json:"email,omitempty"`
	// URL is an optional URL to an address for the named maintainer
	URL string `json:"url,omitempty"`
}

ChartMaintainer describes a Chart maintainer.

type ChartMetadata

type ChartMetadata struct {
	// The name of the chart
	Name string `json:"name,omitempty"`
	// The URL to a relevant project page, git repo, or contact person
	Home string `json:"home,omitempty"`
	// Source is the URL to the source code of this chart
	Sources []string `json:"sources,omitempty"`
	// A SemVer 2 conformant version string of the chart
	Version string `json:"version,omitempty"`
	// A one-sentence description of the chart
	Description string `json:"description,omitempty"`
	// A list of string keywords
	Keywords []string `json:"keywords,omitempty"`
	// A list of name and URL/email address combinations for the maintainer(s)
	Maintainers []*ChartMaintainer `json:"maintainers,omitempty"`
	// The URL to an icon file.
	Icon string `json:"icon,omitempty"`
	// The API Version of this chart.
	APIVersion string `json:"apiVersion,omitempty"`
	// The condition to check to enable chart
	Condition string `json:"condition,omitempty"`
	// The tags to check to enable chart
	Tags string `json:"tags,omitempty"`
	// The version of the application enclosed inside of this chart.
	AppVersion string `json:"appVersion,omitempty"`
	// Whether or not this chart is deprecated
	Deprecated bool `json:"deprecated,omitempty"`
	// Annotations are additional mappings uninterpreted by Helm,
	// made available for inspection by other applications.
	Annotations map[string]string `json:"annotations,omitempty"`
	// KubeVersion is a SemVer constraint specifying the version of Kubernetes required.
	KubeVersion string `json:"kubeVersion,omitempty"`
	// Specifies the chart type: application or library
	Type string `json:"type,omitempty"`
}

ChartMetadata for a Chart file. This models the structure of a Chart.yaml file.

type Desktop

type Desktop struct {
	// contains filtered or unexported fields
}

Desktop - Desktop hosting for Helm Repositories

func (*Desktop) EndpointStore

func (br *Desktop) EndpointStore() (api.EndpointRepository, error)

EndpointStore gets store for obtaining endpoint information

func (*Desktop) TokenStore

func (br *Desktop) TokenStore() (api.TokenRepository, error)

TokenStore gets store for obtaining endpoint information

type EndpointStore

type EndpointStore struct {
	// contains filtered or unexported fields
}

func (*EndpointStore) Delete

func (d *EndpointStore) Delete(guid string) error

func (*EndpointStore) Find

func (d *EndpointStore) Find(guid string, encryptionKey []byte) (api.CNSIRecord, error)

func (*EndpointStore) FindByAPIEndpoint

func (d *EndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (api.CNSIRecord, error)

func (*EndpointStore) List

func (d *EndpointStore) List(encryptionKey []byte) ([]*api.CNSIRecord, error)

func (*EndpointStore) ListByAPIEndpoint

func (d *EndpointStore) ListByAPIEndpoint(endpoint string, encriptionKey []byte) ([]*api.CNSIRecord, error)

func (*EndpointStore) ListByCreator

func (d *EndpointStore) ListByCreator(userGUID string, encriptionKey []byte) ([]*api.CNSIRecord, error)

func (*EndpointStore) ListByUser

func (d *EndpointStore) ListByUser(userGUID string) ([]*api.ConnectedEndpoint, error)

func (*EndpointStore) Save

func (d *EndpointStore) Save(guid string, cnsiRecord api.CNSIRecord, encryptionKey []byte) error

func (*EndpointStore) SaveOrUpdate

func (d *EndpointStore) SaveOrUpdate(endpoint api.CNSIRecord, encryptionKey []byte) error

func (*EndpointStore) Update

func (d *EndpointStore) Update(endpoint api.CNSIRecord, encryptionKey []byte) error

func (*EndpointStore) UpdateMetadata

func (d *EndpointStore) UpdateMetadata(guid string, metadata string) error

type IndexFile

type IndexFile struct {
	APIVersion string                         `json:"apiVersion,omitempty"`
	Entries    map[string][]IndexFileMetadata `json:"entries,omitempty"`
}

type IndexFileMetadata

type IndexFileMetadata struct {
	Name        string    `json:"name,omitempty"`
	AppVersion  string    `json:"appVersion" yaml:"appVersion"`
	Description string    `json:"description,omitempty"`
	Digest      string    `json:"digest,omitempty"`
	Version     string    `json:"version,omitempty"`
	Created     time.Time `json:"created"`
	Icon        string    `json:"icon,omitempty"`
	Repo        Repo      `json:"-"`
	URLs        []string  `json:"-" yaml:"urls"`
}

type Repo

type Repo struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Repo holds the App repository details

type TokenStore

type TokenStore struct {
	// contains filtered or unexported fields
}

TokenStore is a token store that combines local tokens with the usual database stored tokens

func (*TokenStore) DeleteCNSIToken

func (d *TokenStore) DeleteCNSIToken(cnsiGUID string, userGUID string) error

func (*TokenStore) DeleteCNSITokens

func (d *TokenStore) DeleteCNSITokens(cnsiGUID string) error

func (*TokenStore) FindAllCNSITokenBackup

func (d *TokenStore) FindAllCNSITokenBackup(cnsiGUID string, encryptionKey []byte) ([]api.BackupTokenRecord, error)

func (*TokenStore) FindAuthToken

func (d *TokenStore) FindAuthToken(userGUID string, encryptionKey []byte) (api.TokenRecord, error)

func (*TokenStore) FindCNSIToken

func (d *TokenStore) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)

func (*TokenStore) FindCNSITokenIncludeDisconnected

func (d *TokenStore) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)

func (*TokenStore) SaveAuthToken

func (d *TokenStore) SaveAuthToken(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error

func (*TokenStore) SaveCNSIToken

func (d *TokenStore) SaveCNSIToken(cnsiGUID string, userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error

func (*TokenStore) UpdateTokenAuth

func (d *TokenStore) UpdateTokenAuth(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error

UpdateTokenAuth will update a token's auth data

Jump to

Keyboard shortcuts

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