octopus

package
v0.0.0-...-9acfab9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartPathFromArgs

func GetChartPathFromArgs(args []string) (string, error)

GetChartPathFromArgs Finds the chart's path from the argument list and ensures it exists

func IsValidSubcommand

func IsValidSubcommand(args []string) bool

IsValidSubcommand Checks whether subcommand is supported by octopus

func SwapHelmArgs

func SwapHelmArgs(args []string, copiedFiles []CopiedFile) []string

SwapHelmArgs Swaps arguments matching copied file source with copied file destination

Types

type CopiedFile

type CopiedFile struct {
	Src    string
	Dst    string
	Arg    string
	TmpDir string
}

type Randomizer

type Randomizer interface {
	GenerateRandomString(int) string
}

type StringRandomizer

type StringRandomizer struct {
}

func NewStringRandomizer

func NewStringRandomizer(seed int64) *StringRandomizer

func (*StringRandomizer) GenerateRandomString

func (sr *StringRandomizer) GenerateRandomString(n int) string

type Subchart

type Subchart struct {
	Name          string
	Alias         string
	TarFilename   string
	ArgName       string
	Id            string
	ValueFilePath string
	ChartPath     string
}

type SubchartParser

type SubchartParser struct {
	// contains filtered or unexported fields
}

func NewSubchartParser

func NewSubchartParser(basePath string) (*SubchartParser, error)

func (*SubchartParser) GetSubchartsValueFilesFromArgs

func (s *SubchartParser) GetSubchartsValueFilesFromArgs(args []string) ([]Subchart, error)

func (*SubchartParser) NewSubchart

func (s *SubchartParser) NewSubchart(arg string, dependencies []*chart.Dependency) (Subchart, error)

type TarHandler

type TarHandler struct {
	// contains filtered or unexported fields
}

func NewTarHandler

func NewTarHandler(basePath string) TarHandler

func NewTarHandlerWithRandomizer

func NewTarHandlerWithRandomizer(basePath string, randomizer Randomizer) TarHandler

func (*TarHandler) Cleanup

func (t *TarHandler) Cleanup(copiedFiles []CopiedFile) error

func (*TarHandler) CopyTarredfile

func (t *TarHandler) CopyTarredfile(sub Subchart) (CopiedFile, error)

func (*TarHandler) CreateTmpFiles

func (t *TarHandler) CreateTmpFiles(subchartValues []Subchart) ([]CopiedFile, error)

Jump to

Keyboard shortcuts

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