Documentation ¶
Index ¶
- Constants
- func CalculateHash(interfaceToBeHashed any) (uint32, error)
- func CleanFilePathJoin(root, destDir string) (string, error)
- func DecodeUncompressedYAMLLayer(ctx context.Context, imageSpec types.ImageSpec, insecureRegistry bool, ...) (interface{}, error)
- func GetCacheFunc() cache.NewCacheFunc
- func GetConfigFilePath(config types.ImageSpec) string
- func GetFsChartPath(imageSpec types.ImageSpec) string
- func GetPathFromExtractedTarGz(ctx context.Context, imageSpec types.ImageSpec, insecureRegistry bool, ...) (string, error)
- func GetResourceLabel(resource client.Object, labelName string) (string, error)
- func GetStringifiedYamlFromFilePath(filePath string) (string, error)
- func GetYamlFileContent(filePath string) (interface{}, error)
- func JoinYAMLDocuments(yamlDocs [][]byte) string
- func ManifestRateLimiter(failureBaseDelay time.Duration, failureMaxDelay time.Duration, frequency int, ...) ratelimiter.RateLimiter
- func ParseManifestStringToObjects(manifest string) (*types.ManifestResources, error)
- func WriteToFile(filePath string, bytes []byte) error
Constants ¶
View Source
const ( YamlDecodeBufferSize = 2048 OthersReadExecuteFilePermission = 0o755 DebugLogLevel = 2 TraceLogLevel = 3 )
Variables ¶
This section is empty.
Functions ¶
func CalculateHash ¶
CalculateHash returns hash for interfaceToBeHashed.
func CleanFilePathJoin ¶
func GetCacheFunc ¶
func GetCacheFunc() cache.NewCacheFunc
func GetConfigFilePath ¶
func GetFsChartPath ¶
func GetResourceLabel ¶
func GetYamlFileContent ¶
func JoinYAMLDocuments ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.