Documentation ¶
Index ¶
- Constants
- func NewFunctionDiscoveryFactory() fds.FunctionDiscoveryFactory
- type AWSLambdaFunctionDiscovery
- func (f *AWSLambdaFunctionDiscovery) DetectFunctions(ctx context.Context, url *url.URL, dependencies func() fds.Dependencies, ...) error
- func (f *AWSLambdaFunctionDiscovery) DetectFunctionsOnce(ctx context.Context, secrets v1.SecretList) ([]*glooaws.LambdaFunctionSpec, error)
- func (f *AWSLambdaFunctionDiscovery) DetectType(ctx context.Context, url *url.URL) (*plugins.ServiceSpec, error)
- func (f *AWSLambdaFunctionDiscovery) IsFunctional() bool
- type AWSLambdaFunctionDiscoveryFactory
Constants ¶
View Source
const ( AWS_WEB_IDENTITY_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE" AWS_ROLE_ARN = "AWS_ROLE_ARN" AWS_REGION = "AWS_REGION" )
Variables ¶
This section is empty.
Functions ¶
func NewFunctionDiscoveryFactory ¶ added in v1.9.25
func NewFunctionDiscoveryFactory() fds.FunctionDiscoveryFactory
Types ¶
type AWSLambdaFunctionDiscovery ¶
type AWSLambdaFunctionDiscovery struct {
// contains filtered or unexported fields
}
AWSLambdaFunctionDiscovery is a discovery that polls AWS Lambda for function discovery.
func (*AWSLambdaFunctionDiscovery) DetectFunctions ¶
func (f *AWSLambdaFunctionDiscovery) DetectFunctions(ctx context.Context, url *url.URL, dependencies func() fds.Dependencies, updatecb func(fds.UpstreamMutator) error) error
DetectFunctions perhaps the in param for the upstream should be a function? in func() *v1.Upstream TODO: how to handle changes in secret or upstream (like the upstream ref)?
func (*AWSLambdaFunctionDiscovery) DetectFunctionsOnce ¶
func (f *AWSLambdaFunctionDiscovery) DetectFunctionsOnce(ctx context.Context, secrets v1.SecretList) ([]*glooaws.LambdaFunctionSpec, error)
func (*AWSLambdaFunctionDiscovery) DetectType ¶
func (f *AWSLambdaFunctionDiscovery) DetectType(ctx context.Context, url *url.URL) (*plugins.ServiceSpec, error)
func (*AWSLambdaFunctionDiscovery) IsFunctional ¶
func (f *AWSLambdaFunctionDiscovery) IsFunctional() bool
type AWSLambdaFunctionDiscoveryFactory ¶
AWSLambdaFunctionDiscoveryFactory represents a factory for AWS Lambda function discovery.
func (*AWSLambdaFunctionDiscoveryFactory) NewFunctionDiscovery ¶
func (f *AWSLambdaFunctionDiscoveryFactory) NewFunctionDiscovery(u *v1.Upstream, _ fds.AdditionalClients) fds.UpstreamFunctionDiscovery
Click to show internal directories.
Click to hide internal directories.