helpers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors. This code is based on github.com/MottainaiCI/lxd-compose

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.5.0

func CopyFile(source, target string) error

func EnsureDir

func EnsureDir(dir string, uid, gid int, perm os.FileMode) error

func EnsureDirWithoutIds added in v0.5.0

func EnsureDirWithoutIds(dir string, perm os.FileMode) error

func GetFileBlake2b added in v0.8.0

func GetFileBlake2b(f string) (string, error)

func GetFileMd5 added in v0.5.0

func GetFileMd5(f string) (string, error)

func GetFileSha512 added in v0.8.0

func GetFileSha512(f string) (string, error)

func GetTemplates

func GetTemplates(templateDirs []string) ([]*chart.File, error)

func RenderContent

func RenderContent(raw, valuesFile, defaultFile, originFile string,
	overrideValues map[string]interface{}) (string, error)

func RenderContentWithTemplates

func RenderContentWithTemplates(
	raw, valuesFile, defaultFile, originFile string,
	overrideValues map[string]interface{},
	templateDirs []string) (string, error)

Types

type FileHashesReader added in v0.8.0

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

func GetFileHashes added in v0.8.0

func GetFileHashes(f string) (*FileHashesReader, error)

func NewFileHashesReader added in v0.8.0

func NewFileHashesReader(file string) (*FileHashesReader, error)

func (*FileHashesReader) Blake2b added in v0.8.0

func (f *FileHashesReader) Blake2b() string

func (*FileHashesReader) Close added in v0.8.0

func (f *FileHashesReader) Close() error

func (*FileHashesReader) MD5 added in v0.8.0

func (f *FileHashesReader) MD5() string

func (*FileHashesReader) Read added in v0.8.0

func (f *FileHashesReader) Read(b []byte) (int, error)

func (*FileHashesReader) Sha512 added in v0.8.0

func (f *FileHashesReader) Sha512() string

Jump to

Keyboard shortcuts

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