Documentation ¶
Overview ¶
Copyright © 2022-2023 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- func ChartFile(s ...string) []*chart.File
- func ChartFileB(s []byte) []*chart.File
- func ChartFileS(s string) []*chart.File
- func ChartFiles(path []string) ([]*chart.File, error)
- func Contains(s []string, e string) bool
- func ContainsElem(a *[]string, e string) bool
- func Exec(cmd string, args []string, env []string) error
- func Factorial(n uint64) (result uint64)
- func GetHomeDir() (ans string)
- func RenderFiles(files []*chart.File, valuesFile string, defaultFile ...string) (string, error)
- func RenderHelm(files []*chart.File, values, d map[string]interface{}) (string, error)
- func StripRegistryFromImage(image string) string
- func Tar(src, dest string) error
- func UnMarshalValues(values []string) (templatedata, error)
- func Untar(src, dest string, sameOwner, overwriteDirPerms bool) error
- func UntarProtect(src, dst string, sameOwner, overwriteDirPerms bool, protectedFiles []string, ...) error
- func UntarProtectSpec(src, dst string, protectedFiles []string, modifier tarf.TarFileHandlerFunc, ...) error
- func UntarProtectSpecCompress(dst string, protectedFiles []string, modifier tarf.TarFileHandlerFunc, ...) error
- type ChannelError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartFile ¶
ChartFile reads all the given files and returns a slice of []*chart.File containing the raw content and the file name for each file
func ChartFileB ¶
ChartFileB is an helper that takes a slice of bytes and construct a chart.File slice from it
func ChartFileS ¶
ChartFileS is an helper that takes a string and construct a chart.File slice from it
func ChartFiles ¶
ChartFiles reads a list of paths and reads all yaml file inside. It returns a slice of pointers of chart.File(s) with the raw content of the yaml
func ContainsElem ¶
func GetHomeDir ¶
func GetHomeDir() (ans string)
func RenderFiles ¶
func RenderHelm ¶
RenderHelm renders the template string with helm
func StripRegistryFromImage ¶
func UnMarshalValues ¶
UnMarshalValues unmarshal values files and joins them into a unique templatedata the join happens from right to left, so any rightmost value file overwrites the content of the ones before it.
func UntarProtect ¶
func UntarProtectSpec ¶
func UntarProtectSpec(src, dst string, protectedFiles []string, modifier tarf.TarFileHandlerFunc, spec *tarf_specs.SpecFile) error
func UntarProtectSpecCompress ¶
func UntarProtectSpecCompress(dst string, protectedFiles []string, modifier tarf.TarFileHandlerFunc, spec *tarf_specs.SpecFile, compressStream io.Reader) error
Types ¶
type ChannelError ¶
type ChannelError struct { Error error Closure interface{} }