aws-toolkit-vscode / packages /core /src /shared /lambdaHandlerSearch.ts
AbdulElahGwaith's picture
Upload folder using huggingface_hub
6582e08 verified
Raw
History Blame Contribute Delete
830 Bytes
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { Range, Uri } from 'vscode'
export interface AbsoluteCharOffset {
positionStart: number
positionEnd: number
}
export type RangeOrCharOffset = Range | AbsoluteCharOffset
export interface LambdaHandlerCandidate extends RootlessLambdaHandlerCandidate {
rootUri: Uri
}
export interface RootlessLambdaHandlerCandidate {
handlerName: string
filename: string
range: RangeOrCharOffset
}
export interface LambdaHandlerSearch {
/**
* @description Looks for functions that appear to be valid Lambda Function Handlers.
* @returns A collection of information for each detected candidate.
*/
findCandidateLambdaHandlers(): Promise<RootlessLambdaHandlerCandidate[]>
}