deployopts

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 3 Imported by: 5

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