Documentation ¶
Index ¶
- Constants
- func CalculateHash(interfaceToBeHashed any) (uint32, error)
- func CleanFilePathJoin(root, dest string) (string, error)
- func FilterExistingResources(resources kube.ResourceList) (kube.ResourceList, error)
- func GetConfigFilePath(config types.ImageSpec) string
- func GetFsChartPath(imageSpec types.ImageSpec) string
- func GetFsManifestChartPath(imageChartPath string) string
- func GetNamespaceObjBytes(clientNs string) ([]byte, error)
- func GetResourceLabel(resource client.Object, labelName string) (string, error)
- func GetStringifiedYamlFromFilePath(filePath string) (string, error)
- func GetYamlFileContent(filePath string) (interface{}, error)
- func ParseManifestStringToObjects(manifest string) (*types.ManifestResources, error)
- func Transform(ctx context.Context, manifestStringified string, object types.BaseCustomObject, ...) (*types.ManifestResources, error)
- func WriteToFile(filePath string, bytes []byte) error
Constants ¶
View Source
const ( ManifestDir = "manifest" YamlDecodeBufferSize = 2048 OthersReadExecuteFilePermission = 0o755 DebugLogLevel = 2 )
Variables ¶
This section is empty.
Functions ¶
func CalculateHash ¶
CalculateHash returns hash for interfaceToBeHashed.
func CleanFilePathJoin ¶
func FilterExistingResources ¶
func FilterExistingResources(resources kube.ResourceList) (kube.ResourceList, error)
func GetConfigFilePath ¶
func GetFsChartPath ¶
func GetFsManifestChartPath ¶
func GetNamespaceObjBytes ¶
func GetResourceLabel ¶
func GetYamlFileContent ¶
func ParseManifestStringToObjects ¶
func ParseManifestStringToObjects(manifest string) (*types.ManifestResources, error)
func Transform ¶
func Transform(ctx context.Context, manifestStringified string, object types.BaseCustomObject, transforms []types.ObjectTransform, ) (*types.ManifestResources, error)
Transform applies the passed object transformations to the manifest string passed.
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.