Documentation
¶
Index ¶
- Constants
- func DecryptAES(key, ciphertext []byte) ([]byte, error)
- func DecryptRSA(privateKey, ciphertext []byte) ([]byte, error)
- func GenerateRSAKeyPair() (public []byte, private []byte, err error)
- func GetIgnoreMatcherFn(ctx context.Context) (func(filePath string) bool, error)
- func MoveToRepositoryRoot() error
- func OpenWebBrowser(url string) error
- func PKCS7Unpad(msg []byte, blockSize int) ([]byte, error)
- func UploadArchive(ctx context.Context, uploadURL, path string) (err error)
Constants ¶
const UserProvidedRunMetadataHeader = "Spacelift-User-Provided-Run-Metadata"
UserProvidedRunMetadataHeader is the HTTP header used to pass arbitrary metadata to runs when creating or confirming them.
Variables ¶
This section is empty.
Functions ¶
func DecryptAES ¶
DecryptAES decrypts ciphertext in AES-256-CBC.
func DecryptRSA ¶
DecryptRSA decrypts ciphertext using private key (x509 format).
func GenerateRSAKeyPair ¶
GenerateRSAKeyPair generates a key pair suitable for encryption.
func GetIgnoreMatcherFn ¶ added in v0.18.0
GetIgnoreMatcherFn creates an ignore-matcher for archiving purposes. Respects gitignore and terraformignore.
func MoveToRepositoryRoot ¶ added in v0.18.0
func MoveToRepositoryRoot() error
MoveToRepositoryRoot moves the current workdir to the git repository root.
func OpenWebBrowser ¶ added in v0.18.0
OpenWebBrowser will try to open the default browser on a the callers machine. It supports windows, darwin and windows.
func PKCS7Unpad ¶
PKCS7Unpad provides PKCS #7 unpadding mechanism.
Types ¶
This section is empty.