upstream

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMetadata = `` /* 194-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",
}

Functions

func GetApplicationMetadata

func GetApplicationMetadata(upstream *url.URL) ([]byte, error)

GetApplicationMetadata will return any available application yaml from the upstream. If there is no application.yaml, it will return a placeholder one

Types

type App

type App struct {
	Name string
}

type FetchOptions added in v0.9.0

type FetchOptions struct {
	HelmRepoName string
	HelmRepoURI  string
	LocalPath    string
	License      *kotsv1beta1.License
}

type Release

type Release struct {
	UpdateCursor string
	VersionLabel string
	Manifests    map[string][]byte
}

type ReplicatedUpstream

type ReplicatedUpstream struct {
	Channel      *string
	AppSlug      string
	VersionLabel *string
	Sequence     *int
}

type Upstream added in v0.9.0

type Upstream struct {
	URI          string
	Name         string
	Type         string
	Files        []UpstreamFile
	UpdateCursor string
	VersionLabel string
}

func FetchUpstream

func FetchUpstream(upstreamURI string, fetchOptions *FetchOptions) (*Upstream, error)

func (*Upstream) GetBaseDir added in v0.9.0

func (u *Upstream) GetBaseDir(options WriteOptions) string

func (*Upstream) WriteUpstream added in v0.9.0

func (u *Upstream) WriteUpstream(options WriteOptions) error

type UpstreamFile added in v0.9.0

type UpstreamFile struct {
	Path    string
	Content []byte
}

type WriteOptions added in v0.9.0

type WriteOptions struct {
	RootDir             string
	CreateAppDir        bool
	IncludeAdminConsole bool
	SharedPassword      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL