upstream

package
v1.2.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 45 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

func MustMarshalLicense

func MustMarshalLicense(license *kotsv1beta1.License) []byte

Types

type App

type App struct {
	Name string
}

type ChannelRelease

type ChannelRelease struct {
	ChannelSequence int    `json:"channelSequence"`
	ReleaseSequence int    `json:"releaseSequence"`
	VersionLabel    string `json:"versionLabel"`
	CreatedAt       string `json:"createdAt"`
}

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
	CurrentCursor string
}

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 Update added in v1.2.0

type Update struct {
	Cursor string `json:"cursor"`
}

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

type UpstreamSettings struct {
	SharedPassword       string
	SharedPasswordBcrypt string
	S3AccessKey          string
	S3SecretKey          string
	JWT                  string
	PostgresPassword     string
	APIEncryptionKey     string

	AutoCreateClusterToken string
}

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
	ReportWriter   io.Writer
}

Jump to

Keyboard shortcuts

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