lib

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrUnknownFlag = "unknown shorthand flag"
	ErrNoFile      = "no such file or directory"
	ErrNotFound    = "not found"
	ErrForkExec    = "fork/exec"
)

Error message constants for error detection

Variables

This section is empty.

Functions

func ConnectSSH

func ConnectSSH(profile, cluster, taskDefinitionName, containerName, shell, service, instanceUser string, pushSSHKey bool) (exitCode int, err error)

ConnectSSH runs ssh with some magic parameters to connect to running containers on AWS ECS

func DeployServices

func DeployServices(profile, cluster, imageTag string, imageTags, services []string, workDir string) (exitCode int, err error)

DeployServices deploys specified services in parallel

func EcrEndpoint

func EcrEndpoint(profile string) (err error)

EcrEndpoint prints endpoint for docker

func EcrLogin

func EcrLogin(profile string) (err error)

EcrLogin prints login cmd for docker

func ExecFargate

func ExecFargate(cfg ExecConfig) error

ExecFargate executes a command in a specified container on an ECS Fargate service taskID, taskDefinitionName and containerName are optional - if provided, will extract entrypoint from task definition

func InitAWS

func InitAWS(profile string) error

InitAWS initializes a new AWS session with the specified profile for Ecsta realization

func RunFargate

func RunFargate(profile, cluster, service, taskDefinitionName, imageTag string, imageTags []string, workDir, containerName, awslogGroup, launchType string, securityGroupFilter string, args []string) (exitCode int, err error)

RunFargate runs the specified one-off task in the cluster using the task definition

func RunTask

func RunTask(profile, cluster, service, taskDefinitionName, imageTag string, imageTags []string, workDir, containerName, awslogGroup, launchType string, args []string) (exitCode int, err error)

RunTask runs the specified one-off task in the cluster using the task definition

func WriteSSMParameter

func WriteSSMParameter(profile, parameterName, kmsKey, value string, processor []string, pickJsonKeys []string) error

Types

type ExecConfig

type ExecConfig struct {
	Profile            string
	Cluster            string
	Command            string
	TaskID             string
	TaskDefinitionName string
	ContainerName      string
}

ExecConfig holds configuration for ExecFargate

type SSMParentConfig

type SSMParentConfig struct {
	EntrypointPaths     []string
	ConfigPaths         []string
	SupportsCFlag       bool
	ExtractionSucceeded bool
}

SSMParentConfig holds the configuration for ssm-parent execution

Jump to

Keyboard shortcuts

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