fb83abab38
- move README per-type sections into docs/<type>/{remote,local,virtual}.md
- split provider.go capability and metadata types into cap_*.go and metadata_*.go
- register providers via internal/provider/all, one file per type
- declare each package type in its own file, registering via init()
- split the e2e caching table and UI type colours/snippets per type
31 lines
682 B
Go
31 lines
682 B
Go
package provider
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type HelmMetadataStore interface {
|
|
InsertHelmMetadata(ctx context.Context, meta *HelmMetadata) error
|
|
}
|
|
|
|
type HelmMetadataDeleter interface {
|
|
DeleteHelmMetadata(ctx context.Context, repoName, filePath string) error
|
|
}
|
|
|
|
type HelmMetadataReader interface {
|
|
ListHelmMetadataEntries(ctx context.Context, repoName string) ([]HelmMetadata, error)
|
|
}
|
|
|
|
// HelmMetadata is a local chart's Chart.yaml, kept verbatim so index.yaml
|
|
// entries carry every field helm reads.
|
|
type HelmMetadata struct {
|
|
RepoName string
|
|
FilePath string
|
|
ContentHash string
|
|
Name string
|
|
Version string
|
|
ChartYAML string
|
|
CreatedAt time.Time
|
|
}
|