internal

package
v0.0.0-...-b82b62a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YamlDecodeBufferSize            = 2048
	OthersReadExecuteFilePermission = 0o755
	DebugLogLevel                   = 2
	TraceLogLevel                   = 3
)

Variables

This section is empty.

Functions

func CalculateHash

func CalculateHash(interfaceToBeHashed any) (uint32, error)

CalculateHash returns hash for interfaceToBeHashed.

func CleanFilePathJoin

func CleanFilePathJoin(root, destDir string) (string, error)

func DecodeUncompressedYAMLLayer

func DecodeUncompressedYAMLLayer(
	ctx context.Context,
	imageSpec types.ImageSpec,
	insecureRegistry bool,
	keyChain authn.Keychain,
) (interface{}, error)

func GetCacheFunc

func GetCacheFunc() cache.NewCacheFunc

func GetConfigFilePath

func GetConfigFilePath(config types.ImageSpec) string

func GetFsChartPath

func GetFsChartPath(imageSpec types.ImageSpec) string

func GetPathFromExtractedTarGz

func GetPathFromExtractedTarGz(
	ctx context.Context,
	imageSpec types.ImageSpec,
	insecureRegistry bool,
	keyChain authn.Keychain,
) (string, error)

func GetResourceLabel

func GetResourceLabel(resource client.Object, labelName string) (string, error)

func GetStringifiedYamlFromFilePath

func GetStringifiedYamlFromFilePath(filePath string) (string, error)

func GetYamlFileContent

func GetYamlFileContent(filePath string) (interface{}, error)

func JoinYAMLDocuments

func JoinYAMLDocuments(yamlDocs [][]byte) string

JoinYAMLDocuments joins provided documents by replacing any leading/trailing markers and whitespaces with a single YAML marker between any two documents.

func ManifestRateLimiter

func ManifestRateLimiter(
	failureBaseDelay time.Duration, failureMaxDelay time.Duration,
	frequency int, burst int,
) ratelimiter.RateLimiter

func ParseManifestStringToObjects

func ParseManifestStringToObjects(manifest string) (*types.ManifestResources, error)

func WriteToFile

func WriteToFile(filePath string, bytes []byte) error

Types

This section is empty.

Directories

Path Synopsis
manifest

Jump to

Keyboard shortcuts

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