Documentation
¶
Index ¶
- func InstallPackagesSSM(ctx context.Context, ssmClient *ssm.Client, instanceID string, ...)
- func NewKubernetesClient() (*kubernetes.Clientset, *rest.Config, error)
- func RunCredentialScanners(ctx context.Context, log *logrus.Entry, sshClient *pack.SSHClient, ...)
- func RunSSHCommands(ctx context.Context, log *logrus.Entry, sshClient *pack.SSHClient, ...) error
- func RunSSMCommands(ctx context.Context, log *logrus.Entry, ssmClient *ssm.Client, ...) error
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.