Documentation
¶
Index ¶
- func CheckContext(ctx context.Context) error
- func FetchEnv(key string, def string) string
- func ReplaceJSONPlaceholders(source string, jsonData string) string
- func UnmashalJSONResponse(resp *http.Response, v interface{}, b *[]byte) error
- type APIKeySecretFinder
- type AuthConfigEvaluator
- type AuthPipeline
- type IdentityConfigEvaluator
- type NamedConfigEvaluator
- type WristbandIssuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContext ¶
CheckContext checks if a go context is still active or done When it's done, returns a generic error
func myFunc(ctx context.Context) error { if err := common.CheckContext(ctx); err != nil { return err } else { doSomething() } }
func ReplaceJSONPlaceholders ¶ added in v0.2.0
Types ¶
type APIKeySecretFinder ¶
type APIKeySecretFinder interface {
FindSecretByName(types.NamespacedName) *v1.Secret
}
type AuthConfigEvaluator ¶
type AuthConfigEvaluator interface {
Call(AuthPipeline, context.Context) (interface{}, error)
}
AuthConfigEvaluator interface represents the configuration pieces of Identity, Metadata and Authorization
type AuthPipeline ¶
type AuthPipeline interface { GetParentContext() *context.Context GetRequest() *envoy_auth.CheckRequest GetHttp() *envoy_auth.AttributeContext_HttpRequest GetAPI() interface{} GetResolvedIdentity() (interface{}, interface{}) GetResolvedMetadata() map[interface{}]interface{} GetDataForAuthorization() interface{} }
type IdentityConfigEvaluator ¶
type IdentityConfigEvaluator interface { GetAuthCredentials() auth_credentials.AuthCredentials GetOIDC() interface{} }
type NamedConfigEvaluator ¶
type NamedConfigEvaluator interface {
GetName() string
}
type WristbandIssuer ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.