Versions in this module Expand all Collapse all v3 v3.3.0 Jul 18, 2024 Changes in this version + func GetTemplatePathsFromSecretFile(file string) ([]string, error) + func SupportedAuthTypes() []string + type AuthFileInfo struct + Author string + Description string + Name string + Severity string + type AuthStrategy interface + Apply func(*http.Request) + ApplyOnRR func(*retryablehttp.Request) + type AuthType string + const BasicAuth + const BearerTokenAuth + const CookiesAuth + const HeadersAuth + const QueryAuth + type Authx struct + Dynamic []Dynamic + ID string + Info AuthFileInfo + Secrets []Secret + func GetAuthDataFromFile(file string) (*Authx, error) + func GetAuthDataFromJSON(data []byte) (*Authx, error) + func GetAuthDataFromYAML(data []byte) (*Authx, error) + type BasicAuthStrategy struct + Data *Secret + func NewBasicAuthStrategy(data *Secret) *BasicAuthStrategy + func (s *BasicAuthStrategy) Apply(req *http.Request) + func (s *BasicAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type BearerTokenAuthStrategy struct + Data *Secret + func NewBearerTokenAuthStrategy(data *Secret) *BearerTokenAuthStrategy + func (s *BearerTokenAuthStrategy) Apply(req *http.Request) + func (s *BearerTokenAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type Cookie struct + Key string + Raw string + Value string + func (c *Cookie) Parse() error + func (c *Cookie) Validate() error + type CookiesAuthStrategy struct + Data *Secret + func NewCookiesAuthStrategy(data *Secret) *CookiesAuthStrategy + func (s *CookiesAuthStrategy) Apply(req *http.Request) + func (s *CookiesAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type Dynamic struct + Extracted map[string]interface{} + Input string + TemplatePath string + Variables []KV + func (d *Dynamic) Error() error + func (d *Dynamic) Fetch(isFatal bool) error + func (d *Dynamic) GetStrategy() AuthStrategy + func (d *Dynamic) SetLazyFetchCallback(callback LazyFetchSecret) + func (d *Dynamic) UnmarshalJSON(data []byte) error + func (d *Dynamic) Validate() error + type DynamicAuthStrategy struct + Dynamic Dynamic + func (d *DynamicAuthStrategy) Apply(req *http.Request) + func (d *DynamicAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type HeadersAuthStrategy struct + Data *Secret + func NewHeadersAuthStrategy(data *Secret) *HeadersAuthStrategy + func (s *HeadersAuthStrategy) Apply(req *http.Request) + func (s *HeadersAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type KV struct + Key string + Value string + func (k *KV) Validate() error + type LazyFetchSecret func(d *Dynamic) error + type QueryAuthStrategy struct + Data *Secret + func NewQueryAuthStrategy(data *Secret) *QueryAuthStrategy + func (s *QueryAuthStrategy) Apply(req *http.Request) + func (s *QueryAuthStrategy) ApplyOnRR(req *retryablehttp.Request) + type Secret struct + Cookies []Cookie + Domains []string + DomainsRegex []string + Headers []KV + Params []KV + Password string + Token string + Type string + Username string + func (s *Secret) GetStrategy() AuthStrategy + func (s *Secret) Validate() error