upstream

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 38 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",
	"harbor":  "https://helm.goharbor.io",
}

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
	HelmOptions  []string
	LocalPath    string
	License      *kotsv1beta1.License
}

type PushUpstreamImageOptions added in v0.9.5

type PushUpstreamImageOptions struct {
	RootDir           string
	ImagesDir         string
	CreateAppDir      bool
	Log               *logger.Logger
	RegistryHost      string
	RegistryNamespace string
}

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
	EncryptionKey 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) 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

func (*Upstream) WriteUpstreamImages added in v0.9.5

func (u *Upstream) WriteUpstreamImages(options WriteUpstreamImageOptions) 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
}

type WriteUpstreamImageOptions added in v0.9.5

type WriteUpstreamImageOptions struct {
	RootDir      string
	CreateAppDir bool
	Log          *logger.Logger
}

Jump to

Keyboard shortcuts

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