Documentation
¶
Index ¶
- type AuthCredential
- func (c *AuthCredential) BuildRequestWithCredentials(ctx context.Context, endpoint string, method string, credentialValue string, ...) (*http.Request, error)
- func (c *AuthCredential) GetCredentialsFromReq(httpReq *envoyServiceAuthV3.AttributeContext_HttpRequest) (string, error)
- func (c *AuthCredential) GetCredentialsIn() string
- func (c *AuthCredential) GetCredentialsKeySelector() string
- type AuthCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCredential ¶
AuthCredential struct implements the AuthCredentials interface
func NewAuthCredential ¶
func NewAuthCredential(selector string, location string) *AuthCredential
NewAuthCredential creates a new instance of AuthCredential
func (*AuthCredential) BuildRequestWithCredentials ¶ added in v0.2.0
func (*AuthCredential) GetCredentialsFromReq ¶
func (c *AuthCredential) GetCredentialsFromReq(httpReq *envoyServiceAuthV3.AttributeContext_HttpRequest) (string, error)
GetCredentialsFromReq will retrieve the secrets from a given location
func (*AuthCredential) GetCredentialsIn ¶ added in v0.2.0
func (c *AuthCredential) GetCredentialsIn() string
func (*AuthCredential) GetCredentialsKeySelector ¶
func (c *AuthCredential) GetCredentialsKeySelector() string
type AuthCredentials ¶
type AuthCredentials interface { GetCredentialsFromReq(*envoyServiceAuthV3.AttributeContext_HttpRequest) (string, error) GetCredentialsKeySelector() string GetCredentialsIn() string BuildRequestWithCredentials(ctx context.Context, endpoint string, method string, credentialValue string, body io.Reader) (*http.Request, error) }
AuthCredentials interface represents the methods needed to fetch credentials from input
Click to show internal directories.
Click to hide internal directories.