Documentation
¶
Index ¶
- func ApplyAuthToLocalHypermodeModelRequest(ctx context.Context, connection manifest.ConnectionInfo, req *http.Request) error
- func ApplySecretsToHttpRequest(ctx context.Context, connection *manifest.HTTPConnectionInfo, ...) error
- func ApplySecretsToString(ctx context.Context, connection manifest.ConnectionInfo, str string) (string, error)
- func GetAppSecretValue(ctx context.Context, name string) (*string, error)
- func GetConnectionSecret(ctx context.Context, connection manifest.ConnectionInfo, secretName string) (string, error)
- func GetConnectionSecrets(ctx context.Context, connection manifest.ConnectionInfo) (map[string]string, error)
- func GetSecretValue(ctx context.Context, name string) (string, error)
- func HasSecret(ctx context.Context, name string) bool
- func Initialize(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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 GetConnectionSecrets ¶
func Initialize ¶
Types ¶
This section is empty.