Documentation ¶
Index ¶
- Constants
- func FileExist(fpath string) bool
- func GetClient(configpath string) (*kubernetes.Clientset, *rest.Config, error)
- func QueryAPI(url, requestType, bearerToken string, data map[string]interface{}) (string, error)
- func RetriveDesiredManifest(appName string) (string, error)
- func Sha256Hash(filePath string) (string, error)
- func WriteToFile(str, dirPath, filename string) error
Constants ¶
View Source
const ( CONFIG_FILE_NAME = "manifest-bundle.yaml" MANIFEST_FILE_NAME = "manifest.yaml" MANIFEST_DIR = "manifest-bundles" SIGNED_MANIFEST_FILE_NAME = "manifest.signed" PROVENANCE_FILE_NAME = "provenance.yaml" ATTESTATION_FILE_NAME = "attestation.json" TMP_DIR = "/tmp/output" PRIVATE_KEY_PATH = "/etc/signing-secrets/cosign.key" PUB_KEY_PATH = "/etc/signing-secrets/cosign.pub" )
Variables ¶
This section is empty.
Functions ¶
func RetriveDesiredManifest ¶
func Sha256Hash ¶
func WriteToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.