Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportBuiltinSeedData ¶
func ImportBuiltinSeedData(ctx context.Context, registry service.RegistryService) error
Types ¶
type ReadmeEntry ¶
type ReadmeEntry struct {
Content string `json:"content"`
ContentType string `json:"content_type,omitempty"`
SizeBytes int `json:"size_bytes,omitempty"`
Sha256 string `json:"sha256,omitempty"`
}
ReadmeEntry represents a README blob stored in a seed file.
func EncodeReadme ¶
func EncodeReadme(content []byte, contentType string) ReadmeEntry
EncodeReadme produces a ReadmeEntry from raw README bytes and content type.
type ReadmeFile ¶
type ReadmeFile map[string]ReadmeEntry
ReadmeFile is the JSON structure persisted for README seeds. Each entry is keyed by server name and version.
Click to show internal directories.
Click to hide internal directories.