Documentation ¶
Index ¶
- Variables
- func FetchEnabledTargets(ctx context.Context, cfg config.Config, transport *http.Transport) (*event.TargetList, error)
- func GetLambdaWebhook(webhookKVS map[string]config.KVS, transport *http.Transport) (map[string]target.WebhookArgs, error)
- func TestSubSysLambdaTargets(ctx context.Context, cfg config.Config, subSys string, ...) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLambdaKVS = map[string]config.KVS{ config.LambdaWebhookSubSys: DefaultWebhookKVS, } )
DefaultLambdaKVS - default notification list of kvs.
View Source
var ( DefaultWebhookKVS = config.KVS{ config.KV{ Key: config.Enable, Value: config.EnableOff, }, config.KV{ Key: target.WebhookEndpoint, Value: "", }, config.KV{ Key: target.WebhookAuthToken, Value: "", }, config.KV{ Key: target.WebhookClientCert, Value: "", }, config.KV{ Key: target.WebhookClientKey, Value: "", }, } )
DefaultWebhookKVS - default KV for webhook config
View Source
var ErrTargetsOffline = errors.New("one or more targets are offline. Please use `mc admin info --json` to check the offline targets")
ErrTargetsOffline - Indicates single/multiple target failures.
View Source
var ( HelpWebhook = config.HelpKVS{ config.HelpKV{ Key: target.WebhookEndpoint, Description: "webhook server endpoint e.g. http://localhost:8080/minio/lambda", Type: "url", Sensitive: true, }, config.HelpKV{ Key: target.WebhookAuthToken, Description: "opaque string or JWT authorization token", Optional: true, Type: "string", Sensitive: true, Secret: true, }, config.HelpKV{ Key: config.Comment, Description: config.DefaultComment, Optional: true, Type: "sentence", }, config.HelpKV{ Key: target.WebhookClientCert, Description: "client cert for Webhook mTLS auth", Optional: true, Type: "string", Sensitive: true, }, config.HelpKV{ Key: target.WebhookClientKey, Description: "client cert key for Webhook mTLS auth", Optional: true, Type: "string", Sensitive: true, }, } )
Help template inputs for all lambda targets
Functions ¶
func FetchEnabledTargets ¶
func FetchEnabledTargets(ctx context.Context, cfg config.Config, transport *http.Transport) (*event.TargetList, error)
FetchEnabledTargets - Returns a set of configured TargetList
Types ¶
Click to show internal directories.
Click to hide internal directories.