artifactpath

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package artifactpath holds functions to generate the S3 object path for artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddonAsset added in v1.21.0

func AddonAsset(workloadName, hash string) string

AddonAsset returns the path to store an addon asset file. Example: manual/addons/frontend/assets/668e2b73ac.

func Addons

func Addons(key string, content []byte) string

Addons returns the path to store addon artifact files with sha256 of the content. Example: manual/addons/key/sha.yml.

func CFNTemplate

func CFNTemplate(key string, content []byte) string

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

func CustomResource(key string, zipFile []byte) string

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

func EnvFiles(key string, content []byte) string

EnvFiles returns the path to store an env file artifact with sha256 of the content.. Example: manual/env-files/key/sha.env.

func MkdirSHA256

func MkdirSHA256(key string, content []byte) string

MkdirSHA256 prefixes the key with the SHA256 hash of the contents of "manual/<hash>/key".

Types

This section is empty.

Jump to

Keyboard shortcuts

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