upstream

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

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

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 FindObjectsWithImagesOptions added in v0.9.13

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

type FindPrivateImagesOptions added in v0.9.10

type FindPrivateImagesOptions struct {
	RootDir            string
	CreateAppDir       bool
	AppSlug            string
	ReplicatedRegistry registry.RegistryOptions
	Log                *logger.Logger
}

type PushUpstreamImageOptions added in v0.9.5

type PushUpstreamImageOptions struct {
	RootDir             string
	ImagesDir           string
	CreateAppDir        bool
	Log                 *logger.Logger
	ReplicatedRegistry  registry.RegistryOptions
	ReportWriter        io.Writer
	DestinationRegistry registry.RegistryOptions
}

type Release

type Release struct {
	UpdateCursor string
	VersionLabel string
	ReleaseNotes 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
	ReleaseNotes  string
	EncryptionKey string
}

func FetchUpstream

func FetchUpstream(upstreamURI string, fetchOptions *FetchOptions) (*Upstream, 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

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
	AppSlug        string
	SourceRegistry registry.RegistryOptions
	Log            *logger.Logger
}

Jump to

Keyboard shortcuts

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