Documentation ¶
Index ¶
- Constants
- Variables
- func FetchUpstream(upstreamURI string, fetchOptions *types.FetchOptions) (*types.Upstream, error)
- func GetApplicationMetadata(upstream *url.URL) ([]byte, error)
- func LoadApplication(upstreamDir string) (*kotsv1beta1.Application, error)
- func LoadInstallation(upstreamDir string) (*kotsv1beta1.Installation, error)
- func MustMarshalLicense(license *kotsv1beta1.License) []byte
- func ProcessUpstreamImages(u *types.Upstream, options ProcessUpstreamImagesOptions) ([]kustomizetypes.Image, error)
- func SaveInstallation(installation *kotsv1beta1.Installation, upstreamDir string) error
- func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
- type App
- type ChannelRelease
- type ProcessUpstreamImagesOptions
- type ProgressImage
- type ProgressReport
- type Release
- type ReplicatedCursor
- type ReplicatedUpstream
- type Update
- type UpstreamSettings
Constants ¶
View Source
const DefaultMetadata = `` /* 232-byte string literal not displayed */
Variables ¶
View Source
var KnownRepos = map[string]string{
"stable": "https://kubernetes-charts.storage.googleapis.com",
"local": "http://127.0.0.1:8879",
"elastic": "https://helm.elastic.co",
"gomods": "https://athens.blob.core.windows.net/charts",
"harbor": "https://helm.goharbor.io",
}
Functions ¶
func FetchUpstream ¶
func GetApplicationMetadata ¶
GetApplicationMetadata will return any available application yaml from the upstream. If there is no application.yaml, it will return a placeholder one
func LoadApplication ¶ added in v1.13.0
func LoadApplication(upstreamDir string) (*kotsv1beta1.Application, error)
func LoadInstallation ¶ added in v1.12.2
func LoadInstallation(upstreamDir string) (*kotsv1beta1.Installation, error)
func MustMarshalLicense ¶
func MustMarshalLicense(license *kotsv1beta1.License) []byte
func ProcessUpstreamImages ¶
func ProcessUpstreamImages(u *types.Upstream, options ProcessUpstreamImagesOptions) ([]kustomizetypes.Image, error)
func SaveInstallation ¶
func SaveInstallation(installation *kotsv1beta1.Installation, upstreamDir string) error
func WriteUpstream ¶
func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
Types ¶
type ChannelRelease ¶
type ProcessUpstreamImagesOptions ¶
type ProcessUpstreamImagesOptions struct { RootDir string ImagesDir string CreateAppDir bool SkipImagePush bool KnownImages []kustomizetypes.Image Log *logger.Logger ReplicatedRegistry registry.RegistryOptions ReportWriter io.Writer DestinationRegistry registry.RegistryOptions }
type ProgressImage ¶
type ProgressImage struct { // image name and tag, "nginx:latest" DisplayName string `json:"displayName"` // image upload status: queued, uploading, uploaded, failed Status string `json:"status"` // error string set when status is failed Error string `json:"error"` // amount currently uploaded (currently number of layers) Current int64 `json:"current"` // total amount that needs to be uploaded (currently number of layers) Total int64 `json:"total"` // time when image started uploading StartTime time.Time `json:"startTime"` // time when image finished uploading EndTime time.Time `json:"endTime"` }
type ProgressReport ¶
type ProgressReport struct { // set to "progressReport" Type string `json:"type"` // the same progress text that used to be sent in unstructured message CompatibilityMessage string `json:"compatibilityMessage"` // all images found in archive Images []ProgressImage `json:"images"` }
type ReplicatedCursor ¶
func (ReplicatedCursor) Equal ¶
func (this ReplicatedCursor) Equal(other ReplicatedCursor) bool
type ReplicatedUpstream ¶
type Update ¶ added in v1.2.0
func GetUpdatesUpstream ¶
func GetUpdatesUpstream(upstreamURI string, fetchOptions *types.FetchOptions) ([]Update, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.