Documentation
¶
Index ¶
- Constants
- Variables
- func FetchUpstream(upstreamURI string, fetchOptions *FetchOptions) (*types.Upstream, error)
- func GetApplicationMetadata(upstream *url.URL) ([]byte, error)
- func MustMarshalLicense(license *kotsv1beta1.License) []byte
- func TagAndPushUpstreamImages(u *types.Upstream, options PushUpstreamImageOptions) ([]kustomizeimage.Image, error)
- func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
- type App
- type ChannelRelease
- type FetchOptions
- type PushUpstreamImageOptions
- 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 FetchUpstream(upstreamURI string, fetchOptions *FetchOptions) (*types.Upstream, error)
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 MustMarshalLicense ¶
func MustMarshalLicense(license *kotsv1beta1.License) []byte
func TagAndPushUpstreamImages ¶ added in v1.8.0
func TagAndPushUpstreamImages(u *types.Upstream, options PushUpstreamImageOptions) ([]kustomizeimage.Image, error)
func WriteUpstream ¶
func WriteUpstream(u *types.Upstream, options types.WriteOptions) error
Types ¶
type ChannelRelease ¶
type FetchOptions ¶ added in v0.9.0
type FetchOptions struct { RootDir string UseAppDir bool HelmRepoName string HelmRepoURI string HelmOptions []string LocalPath string License *kotsv1beta1.License ConfigValues *kotsv1beta1.ConfigValues Airgap *kotsv1beta1.Airgap EncryptionKey string CurrentCursor string CurrentChannel string CurrentVersionLabel string }
type PushUpstreamImageOptions ¶ added in v0.9.5
type Release ¶
type Release struct { UpdateCursor ReplicatedCursor VersionLabel string ReleaseNotes string Manifests map[string][]byte }
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 *FetchOptions) ([]Update, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.