template

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAPIEvent

func ValidateAPIEvent(template *cloudformation.Template, event *serverless.Function_ApiEvent) error

func ValidateAWSCloudFrontDistribution

func ValidateAWSCloudFrontDistribution(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *cloudfront.Distribution,
) error

func ValidateAWSCloudWatchAlarm

func ValidateAWSCloudWatchAlarm(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *cloudwatch.Alarm,
) error

func ValidateAWSElasticLoadBalancingV2Listener

func ValidateAWSElasticLoadBalancingV2Listener(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *elasticloadbalancingv2.Listener,
) error

func ValidateAWSElasticLoadBalancingV2ListenerRule

func ValidateAWSElasticLoadBalancingV2ListenerRule(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *elasticloadbalancingv2.ListenerRule,
) error

func ValidateAWSElasticLoadBalancingV2LoadBalancer

func ValidateAWSElasticLoadBalancingV2LoadBalancer(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	ec2c aws.EC2API,
	res *elasticloadbalancingv2.LoadBalancer,
) error

func ValidateAWSElasticLoadBalancingV2TargetGroup

func ValidateAWSElasticLoadBalancingV2TargetGroup(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	lambdac aws.LambdaAPI,
	res *elasticloadbalancingv2.TargetGroup,
) error

func ValidateAWSLambdaPermission

func ValidateAWSLambdaPermission(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *lambda.Permission,
) error

func ValidateAWSSQSQueue

func ValidateAWSSQSQueue(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *sqs.Queue,
) error

func ValidateAWSServerlessApi

func ValidateAWSServerlessApi(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *serverless.Api,
	s3shas map[string]string,
) error

func ValidateAWSServerlessFunction

func ValidateAWSServerlessFunction(
	projectName, configName, region, accountId, resourceName string,
	template *cloudformation.Template,
	fun *serverless.Function,
	s3shas map[string]string,
	iamc aws.IAMAPI,
	ec2c aws.EC2API,
	s3c aws.S3API,
	kinc aws.KINAPI,
	ddbc aws.DDBAPI,
	sqsc aws.SQSAPI,
	snsc aws.SNSAPI,
	kmsc aws.KMSAPI,
	cwlc aws.CWLAPI,
) error

func ValidateAWSServerlessLayerVersion

func ValidateAWSServerlessLayerVersion(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *serverless.LayerVersion,
	s3shas map[string]string,
) error

func ValidateAWSServerlessSimpleTable

func ValidateAWSServerlessSimpleTable(
	projectName, configName, resourceName string,
	template *cloudformation.Template,
	res *serverless.SimpleTable,
) error

func ValidateCloudWatchEventEvent

func ValidateCloudWatchEventEvent(event *serverless.Function_CloudWatchEventEvent) error

func ValidateCloudWatchLogsEvent

func ValidateCloudWatchLogsEvent(projectName, configName string, event *serverless.Function_CloudWatchLogsEvent, cwlc aws.CWLAPI) error

func ValidateDynamoDBEvent

func ValidateDynamoDBEvent(projectName, configName string, event *serverless.Function_DynamoDBEvent, ddbc aws.DDBAPI) error

func ValidateFunctionEvents

func ValidateFunctionEvents(
	template *cloudformation.Template,
	projectName, configName, region, accountId, resourceName string,
	fun *serverless.Function,
	s3c aws.S3API,
	kinc aws.KINAPI,
	ddbc aws.DDBAPI,
	sqsc aws.SQSAPI,
	snsc aws.SNSAPI,
	cwlc aws.CWLAPI,
) error

func ValidateFunctionIAM

func ValidateFunctionIAM(
	projectName, configName, accountId, resourceName string,
	fun *serverless.Function,
	iamc aws.IAMAPI,
	kmsc aws.KMSAPI,
) error

func ValidateKinesisEvent

func ValidateKinesisEvent(projectName, configName, region, accountId string, event *serverless.Function_KinesisEvent, kinc aws.KINAPI) error

func ValidateLoadbalancerSecurityGroups

func ValidateLoadbalancerSecurityGroups(
	projectName, configName, resourceName string,
	res *elasticloadbalancingv2.LoadBalancer,
	ec2c aws.EC2API,
) error

func ValidateLoadbalancerSubnets

func ValidateLoadbalancerSubnets(
	projectName, configName, resourceName string,
	res *elasticloadbalancingv2.LoadBalancer,
	ec2c aws.EC2API,
) error

func ValidateResource

func ValidateResource(prefix, projectName, configName, serviceName string, res interface {
	ProjectName() *string
	ConfigName() *string
	ServiceName() *string
}) error

UTILS

func ValidateS3Event

func ValidateS3Event(projectName, configName string, event *serverless.Function_S3Event, s3c aws.S3API) error

func ValidateSNSEvent

func ValidateSNSEvent(projectName, configName, region, accountId string, event *serverless.Function_SNSEvent, snsc aws.SNSAPI) error

func ValidateSQSEvent

func ValidateSQSEvent(projectName, configName, region, accountId string, event *serverless.Function_SQSEvent, sqsc aws.SQSAPI) error

func ValidateScheduleEvent

func ValidateScheduleEvent(event *serverless.Function_ScheduleEvent) error

func ValidateSubnet

func ValidateSubnet(sub *subnet.Subnet) error

func ValidateTemplateResources

func ValidateTemplateResources(
	projectName, configName, region, accountId string,
	template *cloudformation.Template,
	s3shas map[string]string,
	iamc aws.IAMAPI,
	ec2c aws.EC2API,
	s3c aws.S3API,
	kinc aws.KINAPI,
	ddbc aws.DDBAPI,
	sqsc aws.SQSAPI,
	snsc aws.SNSAPI,
	kmsc aws.KMSAPI,
	lambdac aws.LambdaAPI,
	cwlc aws.CWLAPI,
) error

func ValidateVPCConfig

func ValidateVPCConfig(
	projectName, configName, resourceName string,
	fun *serverless.Function,
	ec2c aws.EC2API,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL