upstream

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 44 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 CopyUpstreamImages added in v1.8.0

func CopyUpstreamImages(u *types.Upstream, options WriteUpstreamImageOptions) ([]kustomizeimage.Image, error)

func FetchUpstream

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

func FindObjectsWithImages added in v1.8.0

func FindObjectsWithImages(u *types.Upstream, options FindObjectsWithImagesOptions) ([]*k8sdoc.Doc, error)

func FindPrivateImages added in v1.8.0

func FindPrivateImages(u *types.Upstream, options FindPrivateImagesOptions) ([]kustomizeimage.Image, []*k8sdoc.Doc, error)

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

func TagAndPushUpstreamImages added in v1.8.0

func TagAndPushUpstreamImages(u *types.Upstream, options PushUpstreamImageOptions) ([]kustomizeimage.Image, error)

func WriteUpstream

func WriteUpstream(u *types.Upstream, options types.WriteOptions) error

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
	Airgap              *kotsv1beta1.Airgap
	EncryptionKey       string
	CurrentCursor       string
	CurrentVersionLabel 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"`
	VersionLabel string `json:"versionLabel"`
}

func GetUpdatesUpstream

func GetUpdatesUpstream(upstreamURI string, fetchOptions *FetchOptions) ([]Update, error)

type UpstreamSettings

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

	AutoCreateClusterToken string
}

type WriteUpstreamImageOptions added in v0.9.5

type WriteUpstreamImageOptions struct {
	RootDir        string
	CreateAppDir   bool
	AppSlug        string
	SourceRegistry registry.RegistryOptions
	DestRegistry   registry.RegistryOptions
	Log            *logger.Logger
	ReportWriter   io.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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