Documentation ¶
Index ¶
- Variables
- type LambdaClientAWS
- func (l *LambdaClientAWS) CreateServerlessBLSLambdaFn(ctx context.Context) (*lambda.CreateFunctionOutput, error)
- func (l *LambdaClientAWS) CreateServerlessBLSLambdaFnKeystoreLayer(ctx context.Context, blsKeystoresZipFilePath filepaths.Path) (*lambda.PublishLayerVersionOutput, error)
- func (l *LambdaClientAWS) GetExternalLambdaFuncInfo(ctx context.Context) (*lambda.GetFunctionOutput, error)
- func (l *LambdaClientAWS) GetExternalLambdaSignerConfigURL(ctx context.Context) (*lambda.GetFunctionUrlConfigOutput, error)
- func (l *LambdaClientAWS) GetKeystoreLayerInfo(ctx context.Context) (*lambda.ListLayerVersionsOutput, error)
- func (l *LambdaClientAWS) GetLambdaExtensionARN() string
- func (l *LambdaClientAWS) GetLambdaKeystoreLayerARN(version string) string
- func (l *LambdaClientAWS) GetLambdaRole() string
- func (l *LambdaClientAWS) MakeEthereumSignerFuncAuthIAM(ctx context.Context) (*lambda.AddPermissionOutput, error)
- func (l *LambdaClientAWS) MakeEthereumSignerFuncPublic(ctx context.Context) (*lambda.AddPermissionOutput, error)
- func (l *LambdaClientAWS) MakeEthereumSignerURL(ctx context.Context) (*lambda.CreateFunctionUrlConfigOutput, error)
- func (l *LambdaClientAWS) UpdateServerlessBLSLambdaFnBinary(ctx context.Context) (*lambda.UpdateFunctionCodeOutput, error)
- func (l *LambdaClientAWS) UpdateServerlessBLSLambdaFnKeystoreLayer(ctx context.Context) (*lambda.UpdateFunctionConfigurationOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EthereumSignerFunctionName = "ethereumSignerBLS"
)
View Source
var (
KeystoresLayerName = "blsKeystores"
)
Functions ¶
This section is empty.
Types ¶
type LambdaClientAWS ¶
func InitLambdaClient ¶
func InitLambdaClient(ctx context.Context, auth aws_aegis_auth.AuthAWS) (LambdaClientAWS, error)
func (*LambdaClientAWS) CreateServerlessBLSLambdaFn ¶
func (l *LambdaClientAWS) CreateServerlessBLSLambdaFn(ctx context.Context) (*lambda.CreateFunctionOutput, error)
func (*LambdaClientAWS) CreateServerlessBLSLambdaFnKeystoreLayer ¶
func (l *LambdaClientAWS) CreateServerlessBLSLambdaFnKeystoreLayer(ctx context.Context, blsKeystoresZipFilePath filepaths.Path) (*lambda.PublishLayerVersionOutput, error)
func (*LambdaClientAWS) GetExternalLambdaFuncInfo ¶
func (l *LambdaClientAWS) GetExternalLambdaFuncInfo(ctx context.Context) (*lambda.GetFunctionOutput, error)
func (*LambdaClientAWS) GetExternalLambdaSignerConfigURL ¶
func (l *LambdaClientAWS) GetExternalLambdaSignerConfigURL(ctx context.Context) (*lambda.GetFunctionUrlConfigOutput, error)
func (*LambdaClientAWS) GetKeystoreLayerInfo ¶
func (l *LambdaClientAWS) GetKeystoreLayerInfo(ctx context.Context) (*lambda.ListLayerVersionsOutput, error)
func (*LambdaClientAWS) GetLambdaExtensionARN ¶
func (l *LambdaClientAWS) GetLambdaExtensionARN() string
GetLambdaExtensionARN uses the us-west-1 specific number more info: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-integration-lambda-extensions.html
func (*LambdaClientAWS) GetLambdaKeystoreLayerARN ¶
func (l *LambdaClientAWS) GetLambdaKeystoreLayerARN(version string) string
GetLambdaKeystoreLayerARN uses version 1, you'll need to update if you add new versions to this layer
func (*LambdaClientAWS) GetLambdaRole ¶
func (l *LambdaClientAWS) GetLambdaRole() string
GetLambdaRole references a role created in aegis_aws_iam
func (*LambdaClientAWS) MakeEthereumSignerFuncAuthIAM ¶
func (l *LambdaClientAWS) MakeEthereumSignerFuncAuthIAM(ctx context.Context) (*lambda.AddPermissionOutput, error)
MakeEthereumSignerFuncAuthIAM uses the EthereumSignerFunctionName to make the function public
func (*LambdaClientAWS) MakeEthereumSignerFuncPublic ¶
func (l *LambdaClientAWS) MakeEthereumSignerFuncPublic(ctx context.Context) (*lambda.AddPermissionOutput, error)
MakeEthereumSignerFuncPublic uses the EthereumSignerFunctionName to make the function public
func (*LambdaClientAWS) MakeEthereumSignerURL ¶
func (l *LambdaClientAWS) MakeEthereumSignerURL(ctx context.Context) (*lambda.CreateFunctionUrlConfigOutput, error)
MakeEthereumSignerURL uses the EthereumSignerFunctionName to make the function IAM authenticated
func (*LambdaClientAWS) UpdateServerlessBLSLambdaFnBinary ¶
func (l *LambdaClientAWS) UpdateServerlessBLSLambdaFnBinary(ctx context.Context) (*lambda.UpdateFunctionCodeOutput, error)
func (*LambdaClientAWS) UpdateServerlessBLSLambdaFnKeystoreLayer ¶
func (l *LambdaClientAWS) UpdateServerlessBLSLambdaFnKeystoreLayer(ctx context.Context) (*lambda.UpdateFunctionConfigurationOutput, error)
Click to show internal directories.
Click to hide internal directories.