Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultReleaseLatest switch for human-readable DefaultReleaseLatest string = "latest" // DefaultReleaseStable switch for human-readable DefaultReleaseStable string = "stable" )
Release related constants
View Source
const ( // DefaultAppCrdFilename is the default App Crd filename DefaultAppCrdFilename string = "extension.yaml" )
Addon related constants
Variables ¶
View Source
var ( // ErrExtensionNotFound is extension not found ErrExtensionNotFound = errors.New("extension not found") // ErrVersionNotFound is version not found ErrVersionNotFound = errors.New("version not found") )
Functions ¶
Types ¶
type Extension ¶
type Extension struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Version string `json:"version"`
KubernetesMinSupported string `json:"minsupported,omitempty"`
KubernetesMaxSupported string `json:"maxsupported,omitempty"`
Files []File `json:"files"`
}
Extension - yep, it's that
type File ¶
type File struct {
Name string `json:"filename"`
Description string `json:"description,omitempty"`
}
File - yep, it's that
type IManager ¶
type IManager interface {
RawMetadata() ([]byte, error)
InitMetadata() (*Metadata, error)
InitRelease() (*Release, error)
}
IManager interface for Manager
type Metadata ¶
type Metadata struct {
Extensions []Extension `json:"extensions"`
Version string `json:"version"`
GitHubRepo string `json:"repo,omitempty"`
GitHubBranchTag string `json:"branch,omitempty"`
ExtensionLookup map[string]*Extension
}
Metadata outer container for metadata
Click to show internal directories.
Click to hide internal directories.