bundle

package
v0.0.0-...-274c51d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleEnv = "SKUPPER_BUNDLE"
)

Variables

View Source
var (
	//go:embed router_free_port.py
	FreePortScript string
)

Functions

func CreateStartupScripts

func CreateStartupScripts(siteState *api.SiteState, platform types.Platform) error

func CreateSystemdServices

func CreateSystemdServices(siteState *api.SiteState) error

func GetBundleStrategy

func GetBundleStrategy(strategyFlag string) string

GetBundleStrategy returns the provided strategy (argument) if it is a valid strategy. If not, it returns the SKUPPER_BUNDLE environment variable's value if it is valid, or empty otherwise.

func IsValidBundle

func IsValidBundle(strategy string) bool

Types

type BundleGenerator

type BundleGenerator interface {
	Generate(tarball *utils.Tarball, defaultPlatform string) error
}

type BundleStrategy

type BundleStrategy string
var (
	BundleStrategyExtract BundleStrategy = "bundle"
	BundleStrategyTarball BundleStrategy = "tarball"
)

type SelfExtractingBundle

type SelfExtractingBundle struct {
	SiteName   string
	Namespace  string
	OutputPath string
}

func (*SelfExtractingBundle) Generate

func (s *SelfExtractingBundle) Generate(tarBall *utils.Tarball, defaultPlatform string) error

func (*SelfExtractingBundle) InstallFile

func (s *SelfExtractingBundle) InstallFile() string

type SiteStateRenderer

type SiteStateRenderer struct {
	Strategy BundleStrategy
	Platform types.Platform
	// contains filtered or unexported fields
}

func (*SiteStateRenderer) Render

func (s *SiteStateRenderer) Render(loadedSiteState *api.SiteState, reload bool) error

type TarballBundle

type TarballBundle struct {
	SiteName   string
	OutputPath string
	Namespace  string
}

func (*TarballBundle) Generate

func (s *TarballBundle) Generate(tarBall *utils.Tarball, defaultPlatform string) error

func (*TarballBundle) InstallFile

func (s *TarballBundle) InstallFile() string

Jump to

Keyboard shortcuts

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