shared

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallPackagesSSM

func InstallPackagesSSM(ctx context.Context, ssmClient *ssm.Client, instanceID string, packages []string)

InstallPackagesSSM tries to install packages using yum, falling back to apt.

func NewKubernetesClient

func NewKubernetesClient() (*kubernetes.Clientset, *rest.Config, error)

NewKubernetesClient creates a Kubernetes clientset and REST config from the KUBECONFIG environment variable. This is set by the k8s connector system before pack execution. The REST config is returned alongside the clientset for operations that need it directly (e.g. exec via remotecommand).

func RunCredentialScanners

func RunCredentialScanners(ctx context.Context, log *logrus.Entry, sshClient *pack.SSHClient, credsDir string)

RunCredentialScanners executes TruffleHog and Kingfisher against a credentials directory.

func RunSSHCommands

func RunSSHCommands(ctx context.Context, log *logrus.Entry, sshClient *pack.SSHClient, commands []string) error

RunSSHCommands executes a list of commands via SSH with a delay between each.

func RunSSMCommands

func RunSSMCommands(ctx context.Context, log *logrus.Entry, ssmClient *ssm.Client, instanceID string, commands []string, timeout, delay time.Duration) error

RunSSMCommands executes a list of commands via SSM with a delay between each. Errors on individual commands are logged but do not stop execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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