Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHandler ¶
func NewHTTPHandler ¶
func (*HTTPHandler) RegisterRepoRoutes ¶
func (h *HTTPHandler) RegisterRepoRoutes(r chi.Router)
func (*HTTPHandler) RegisterRoutes ¶
func (h *HTTPHandler) RegisterRoutes(r chi.Router, prefix string)
type HTTPStore ¶ added in v0.15.0
type HTTPStore interface {
quarantine.Checker
BlobReferenceCount(ctx context.Context, sha256 string) (int, error)
CreateHelmChart(ctx context.Context, chart *models.HelmChart) error
DecrementStorageUsage(ctx context.Context, repoID string, sizeBytes int64, artifactCount int) error
DeleteHelmChart(ctx context.Context, repoID string, name string, version string) error
GetHelmChart(ctx context.Context, repoID string, name string, version string) (*models.HelmChart, error)
GetRawArtifact(ctx context.Context, repoID string, path string) (*models.RawArtifact, error)
GetRepositoryByName(ctx context.Context, name string) (*models.Repository, error)
HelmIndexStamp(ctx context.Context, repoID string) (string, error)
ListHelmCharts(ctx context.Context, repoID string) ([]*models.HelmChart, error)
ListLicensePolicies(ctx context.Context, repoID string) ([]*models.LicensePolicy, error)
ReserveStorageUsage(ctx context.Context, repoID string, sizeBytes int64, artifactCount int) (bool, error)
UpsertRawArtifact(ctx context.Context, artifact *models.RawArtifact) error
}
HTTPStore is the part of the database HTTPHandler needs.
type HelmChartEntry ¶
type HelmChartEntry struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
AppVersion string `yaml:"appVersion,omitempty"`
Description string `yaml:"description,omitempty"`
Digest string `yaml:"digest"`
URLs []string `yaml:"urls"`
Created string `yaml:"created"`
Home string `yaml:"home,omitempty"`
Sources []string `yaml:"sources,omitempty"`
Maintainers []map[string]string `yaml:"maintainers,omitempty"`
Icon string `yaml:"icon,omitempty"`
APIVersion string `yaml:"apiVersion,omitempty"`
Type string `yaml:"type,omitempty"`
Keywords []string `yaml:"keywords,omitempty"`
}
HelmChartEntry is one chart version in index.yaml.
Click to show internal directories.
Click to hide internal directories.