secrets

package
v0.18.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAuthToLocalHypermodeModelRequest

func ApplyAuthToLocalHypermodeModelRequest(ctx context.Context, connection manifest.ConnectionInfo, req *http.Request) error

func ApplySecretsToHttpRequest

func ApplySecretsToHttpRequest(ctx context.Context, connection *manifest.HTTPConnectionInfo, req *http.Request) error

ApplySecretsToHttpRequest evaluates the given request and replaces any placeholders present in the query parameters and headers with their secret values for the given connection.

func ApplySecretsToString

func ApplySecretsToString(ctx context.Context, connection manifest.ConnectionInfo, str string) (string, error)

ApplySecretsToString evaluates the given string and replaces any placeholders present in the string with their secret values for the given connection.

func GetAppSecretValue added in v0.18.0

func GetAppSecretValue(ctx context.Context, name string) (*string, error)

GetAppSecretValue retrieves a secret value for the user's Modus app. It is invoked via the GetSecretValue API in the Modus SDK, which invokes this function as a host function. Note that app secrets distinguished from other secrets by being prefixed with "MODUS_APP_", which prevents exposing sensitive runtime secrets like "MODUS_DB" to the user.

func GetConnectionSecret

func GetConnectionSecret(ctx context.Context, connection manifest.ConnectionInfo, secretName string) (string, error)

func GetConnectionSecrets

func GetConnectionSecrets(ctx context.Context, connection manifest.ConnectionInfo) (map[string]string, error)

func GetSecretValue

func GetSecretValue(ctx context.Context, name string) (string, error)

func HasSecret

func HasSecret(ctx context.Context, name string) bool

func Initialize

func Initialize(ctx context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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