Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BizAppAuthToken ¶
func BizAppAuthToken() string
func CommandExecutorID ¶
func CommandExecutorID() string
func IsCloudRunner ¶
func IsCloudRunner() bool
Types ¶
type Decryptor ¶
func NewDecryptor ¶
func NewDecryptor() Decryptor
func NewNoopDecryptor ¶
func NewNoopDecryptor() Decryptor
func NewReaperDecryptor ¶
NewReaperDecryptor returns a Decryptor implementation that will call out to the reaper service to decrypt any encrypted arguments.
type NoopDecryptor ¶
type NoopDecryptor struct{}
func (*NoopDecryptor) DecryptArguments ¶
func (n *NoopDecryptor) DecryptArguments(args []string) ([]string, error)
type ReaperDecryptor ¶
ReaperDecryptor will call out to the reaper service to decrypt arguments passed into a BizApp. It will use a one-off signing key to handle authorizing a request to decrypt arguments associated with a particular CommandExecutor. The reaper will return a list of decrypted arguments, given a list of arguments in the body of the request
func (*ReaperDecryptor) DecryptArguments ¶
func (r *ReaperDecryptor) DecryptArguments(args []string) ([]string, error)
DecryptArguments replaces any encrypted values with their decrypted values using the reaper service.
Click to show internal directories.
Click to hide internal directories.