internal

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
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

func DecryptAES(key, ciphertext []byte) ([]byte, error)

DecryptAES decrypts ciphertext in AES-256-CBC.

func DecryptRSA

func DecryptRSA(privateKey, ciphertext []byte) ([]byte, error)

DecryptRSA decrypts ciphertext using private key (x509 format).

func GenerateRSAKeyPair

func GenerateRSAKeyPair() (public []byte, private []byte, err error)

GenerateRSAKeyPair generates a key pair suitable for encryption.

func MoveToRepositoryRoot added in v0.18.0

func MoveToRepositoryRoot() error

MoveToRepositoryRoot moves the current workdir to the git repository root.

func PKCS7Unpad

func PKCS7Unpad(msg []byte, blockSize int) ([]byte, error)

PKCS7Unpad provides PKCS #7 unpadding mechanism.

func Ptr added in v1.3.2

func Ptr[T any](v T) *T

func UploadArchive added in v0.18.0

func UploadArchive(ctx context.Context, uploadURL, path string, uploadHeaders map[string]string, showProgress bool) (err error)

UploadArchive uploads a tarball to the target endpoint and displays a fancy progress bar.

Types

type IgnoreMatcherFn added in v1.12.0

type IgnoreMatcherFn func(filePath string) bool

func GetIgnoreMatcherFn added in v0.18.0

func GetIgnoreMatcherFn(ctx context.Context, projectRoot *string, ignoreFiles []string, withGitDir bool) (IgnoreMatcherFn, error)

Jump to

Keyboard shortcuts

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