deployopts

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDecodedDeployerId

func GetDecodedDeployerId(deployerCode string) (string, bool)

GetDecodedDeployerId - by default provides the decoding utilizing the simple succinctly library decoding. This code is used in trcsh communications Override if you wish to provide a different encoding.

func GetEncodedDeployerId

func GetEncodedDeployerId(deployer string, env string) (string, bool)

GetEncodedDeployerId - by default provides the encoding utilizing the simple succinctly library encoding. This code is used in trcsh communications Override if you wish to provide a different encoding.

func InitSupportedDeployers

func InitSupportedDeployers(supportedDeployers []string) []string

InitSupportedDeployers - initializes a list of supported deployers. These are the plugins defined under: super-secrets/Index/TrcVault/trcplugin/ where the trctype is defined as trcshservice.

func NewOptionsBuilder

func NewOptionsBuilder(opts ...Option)

Types

type Option

type Option func(*OptionsBuilder)

func LoadOptions

func LoadOptions() Option

type OptionsBuilder

type OptionsBuilder struct {
	// Deploy
	InitSupportedDeployers func(supportedDeployers []string) []string
	GetDecodedDeployerId   func(sessionId string) (string, bool)
	GetEncodedDeployerId   func(deployment string, env string) (string, bool)
}
var BuildOptions *OptionsBuilder

Jump to

Keyboard shortcuts

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