Documentation ¶
Overview ¶
Package artifactpath holds functions to generate the S3 object path for artifacts.
Index ¶
- func AddonAsset(workloadName, hash string) string
- func Addons(key string, content []byte) string
- func CFNTemplate(key string, content []byte) string
- func CustomResource(key string, zipFile []byte) string
- func EnvFiles(key string, content []byte) string
- func EnvironmentAddonAsset(hash string) string
- func EnvironmentAddons(content []byte) string
- func MkdirSHA256(key string, content []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddonAsset ¶ added in v1.21.0
AddonAsset returns the path to store an addon asset file. Example: manual/addons/frontend/assets/668e2b73ac.
func Addons ¶
Addons returns the path to store addon artifact files with sha256 of the content. Example: manual/addons/key/sha.yml.
func CFNTemplate ¶
CFNTemplate returns the path to store cloudformation templates with sha256 of the content. Example: manual/templates/key/sha.yml.
func CustomResource ¶ added in v1.19.0
CustomResource returns the path to store a custom resource with a sha256 of the contents of the file. Example: manual/scripts/custom-resources/key/sha.zip
func EnvFiles ¶
EnvFiles returns the path to store an env file artifact with sha256 of the content.. Example: manual/env-files/key/sha.env.
func EnvironmentAddonAsset ¶ added in v1.25.0
EnvironmentAddonAsset returns the path to store an addon asset file for an environment addon. Example: manual/addons/environments/assets/668e2b73ac.
func EnvironmentAddons ¶ added in v1.25.0
EnvironmentAddons returns the path to store environment addon artifact files with sha256 of the content. Example: manual/addons/environments/sha.yml.
func MkdirSHA256 ¶
MkdirSHA256 prefixes the key with the SHA256 hash of the contents of "manual/<hash>/key".
Types ¶
This section is empty.