Documentation ¶
Index ¶
- Constants
- Variables
- func GetApplicationMetadata(upstream *url.URL) ([]byte, error)
- func MustMarshalLicense(license *kotsv1beta1.License) []byte
- type App
- type ChannelRelease
- type FetchOptions
- type FindObjectsWithImagesOptions
- type FindPrivateImagesOptions
- type PushUpstreamImageOptions
- type Release
- type ReplicatedUpstream
- type Update
- type Upstream
- func (u *Upstream) CopyUpstreamImages(options WriteUpstreamImageOptions) ([]kustomizeimage.Image, error)
- func (u *Upstream) FindObjectsWithImages(options FindObjectsWithImagesOptions) ([]*k8sdoc.Doc, error)
- func (u *Upstream) FindPrivateImages(options FindPrivateImagesOptions) ([]kustomizeimage.Image, []*k8sdoc.Doc, error)
- func (u *Upstream) GetBaseDir(options WriteOptions) string
- func (u *Upstream) TagAndPushUpstreamImages(options PushUpstreamImageOptions) ([]kustomizeimage.Image, error)
- func (u *Upstream) WriteUpstream(options WriteOptions) error
- type UpstreamFile
- type UpstreamSettings
- type WriteOptions
- type WriteUpstreamImageOptions
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 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
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 CurrentVersionLabel string }
type FindObjectsWithImagesOptions ¶ added in v0.9.13
type FindPrivateImagesOptions ¶ added in v0.9.10
type PushUpstreamImageOptions ¶ added in v0.9.5
type ReplicatedUpstream ¶
type Update ¶ added in v1.2.0
func GetUpdatesUpstream ¶
func GetUpdatesUpstream(upstreamURI string, fetchOptions *FetchOptions) ([]Update, error)
type Upstream ¶ added in v0.9.0
type Upstream struct { URI string Name string Type string Files []UpstreamFile UpdateCursor string VersionLabel string ReleaseNotes string EncryptionKey string }
func FetchUpstream ¶
func FetchUpstream(upstreamURI string, fetchOptions *FetchOptions) (*Upstream, error)
func (*Upstream) CopyUpstreamImages ¶ added in v1.6.0
func (u *Upstream) CopyUpstreamImages(options WriteUpstreamImageOptions) ([]kustomizeimage.Image, error)
func (*Upstream) FindObjectsWithImages ¶ added in v0.9.13
func (u *Upstream) FindObjectsWithImages(options FindObjectsWithImagesOptions) ([]*k8sdoc.Doc, error)
func (*Upstream) FindPrivateImages ¶ added in v0.9.10
func (u *Upstream) FindPrivateImages(options FindPrivateImagesOptions) ([]kustomizeimage.Image, []*k8sdoc.Doc, error)
func (*Upstream) GetBaseDir ¶ added in v0.9.0
func (u *Upstream) GetBaseDir(options WriteOptions) string
func (*Upstream) TagAndPushUpstreamImages ¶ added in v0.9.5
func (u *Upstream) TagAndPushUpstreamImages(options PushUpstreamImageOptions) ([]kustomizeimage.Image, error)
func (*Upstream) WriteUpstream ¶ added in v0.9.0
func (u *Upstream) WriteUpstream(options WriteOptions) error
type UpstreamFile ¶ added in v0.9.0
type UpstreamSettings ¶
type WriteOptions ¶ added in v0.9.0
type WriteUpstreamImageOptions ¶ added in v0.9.5
Click to show internal directories.
Click to hide internal directories.