secrets

package
v0.13.0-prerelease-test-1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAuthToLocalModelRequest

func ApplyAuthToLocalModelRequest(ctx context.Context, host manifest.HostInfo, req *http.Request) error

func ApplyHostSecretsToHttpRequest

func ApplyHostSecretsToHttpRequest(ctx context.Context, host *manifest.HTTPHostInfo, req *http.Request) error

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

func ApplyHostSecretsToString

func ApplyHostSecretsToString(ctx context.Context, host manifest.HostInfo, str string) (string, error)

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

func GetHostSecret

func GetHostSecret(host manifest.HostInfo, secretName string) (string, error)

func GetHostSecrets

func GetHostSecrets(host manifest.HostInfo) (map[string]string, error)

func GetSecretValue

func GetSecretValue(name string) (string, error)

func HasSecret

func HasSecret(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