trcshbase

package
v0.0.0-...-4cce76e Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YOU_SHALL_NOT_PASS = "you shall not pass"
)

Variables

View Source
var (
	MODE_PERCH_STR string = string([]byte{cap.MODE_PERCH})
)

Functions

func CommonMain

func CommonMain(envPtr *string, addrPtr *string, envCtxPtr *string,
	secretIDPtr *string,
	appRoleIDPtr *string,
	flagset *flag.FlagSet,
	argLines []string,
	driverConfigPtr *config.DriverConfig) error

func CreateLogFile

func CreateLogFile() (*log.Logger, error)

func EnableDeployer

func EnableDeployer(driverConfigPtr *config.DriverConfig,
	env string, region string,
	token string,
	trcPath string,
	secretId *string,
	approleId *string,
	useMemCache bool,
	outputMemCache bool,
	deployment string,
	dronePtr *bool,
	projectService ...*string)

EnableDeploy - initializes and starts running deployer for provided deployment and environment.

func ProcessDeploy

func ProcessDeploy(featherCtx *cap.FeatherContext,
	trcshDriverConfig *capauth.TrcshDriverConfig,
	deployment string,
	trcPath string,
	projectService string,
	secretId *string,
	approleId *string,
	dronePtr *bool)

ProcessDeploy

Parameters:

  • env: Current environment context
  • region: a region
  • token: An environment token
  • deployment: name of deployment
  • trcPath: Path to the current deployment script...
  • secretId: trcsh secret.
  • approleId: trcsh app role.

Returns:

Nothing.

func TrcshInitConfig

func TrcshInitConfig(driverConfigPtr *config.DriverConfig,
	env string, region string,
	pathParam string,
	useMemCache bool,
	outputMemCache bool,
	logger ...*log.Logger) (*capauth.TrcshDriverConfig, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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