Versions in this module Expand all Collapse all v0 v0.8.0 Aug 25, 2016 Changes in this version + const APIGatewayPrincipal + const CloudWatchEventsPrincipal + const EC2Principal + const LambdaPrincipal + const NodeJSVersion + const OutputAPIGatewayURL + const OutputS3SiteURL + const OutputSpartaBuildIDKey + const OutputSpartaHomeKey + const OutputSpartaVersionKey + const SESPrincipal + const SNSPrincipal + const SpartaVersion + const TagLogicalResourceID + const TagResourceType + const TagStackID + const TagStackName + const TagStackRegion + var AssumePolicyDocument = ArbitraryJSONObject + var CommandLineOptions = struct{ ... } + var CommonIAMStatements = struct{ ... } + var OptionsGlobal optionsGlobalStruct + var PushSourceConfigurationActions = struct{ ... } + func CloudFormationResourceName(prefix string, parts ...string) string + func Delete(serviceName string, logger *logrus.Logger) error + func Describe(serviceName string, serviceDescription string, lambdaAWSInfos []*LambdaAWSInfo, ...) error + func Execute(lambdaAWSInfos []*LambdaAWSInfo, port int, parentProcessPID int, ...) error + func Explore(lambdaAWSInfos []*LambdaAWSInfo, port int, logger *logrus.Logger) error + func Main(serviceName string, serviceDescription string, lambdaAWSInfos []*LambdaAWSInfo, ...) error + func MainEx(serviceName string, serviceDescription string, lambdaAWSInfos []*LambdaAWSInfo, ...) error + func NewLogger(level string) (*logrus.Logger, error) + func ParseOptions(handler CommandLineOptionsHook) error + func Provision(noop bool, serviceName string, serviceDescription string, ...) error + type API struct + CORSEnabled bool + CloneFrom string + Description string + func NewAPIGateway(name string, stage *Stage) *API + func (api *API) NewResource(pathPart string, parentLambda *LambdaAWSInfo) (*Resource, error) + type APIGatewayContext struct + APIID string + Identity APIGatewayIdentity + Method string + RequestID string + ResourceID string + ResourcePath string + Stage string + type APIGatewayIdentity struct + APIKey string + AccountID string + Caller string + CognitoAuthenticationProvider string + CognitoAuthenticationType string + CognitoIdentityID string + CognitoIdentityPoolID string + SourceIP string + User string + UserARN string + UserAgent string + type APIGatewayLambdaJSONEvent struct + Body json.RawMessage + Context APIGatewayContext + Headers map[string]string + Method string + PathParams map[string]string + QueryParams map[string]string + type ArbitraryJSONObject map[string]interface + type ArchiveHook func(context map[string]interface{}, serviceName string, zipWriter *zip.Writer, ...) error + type BasePermission struct + SourceAccount string + SourceArn interface{} + type CloudWatchEventsPermission struct + Rules map[string]CloudWatchEventsRule + type CloudWatchEventsRule struct + Description string + EventPattern map[string]interface{} + RuleTarget *CloudWatchEventsRuleTarget + ScheduleExpression string + func (rule CloudWatchEventsRule) MarshalJSON() ([]byte, error) + type CloudWatchEventsRuleTarget struct + Input string + InputPath string + type CloudWatchLogsPermission struct + Filters map[string]CloudWatchLogsSubscriptionFilter + type CloudWatchLogsSubscriptionFilter struct + FilterPattern string + LogGroupName string + type CommandLineOptionsHook func(command *cobra.Command) error + type CustomResourceFunction func(requestType string, stackID string, properties map[string]interface{}, ...) (map[string]interface{}, error) + type DiscoveryInfo struct + Region string + ResourceID string + Resources map[string]DiscoveryResource + StackID string + StackName string + func Discover() (*DiscoveryInfo, error) + func (discoveryInfo *DiscoveryInfo) UnmarshalJSON(data []byte) error + type DiscoveryResource struct + Properties map[string]string + ResourceID string + Tags map[string]string + type EventSourceMapping struct + BatchSize int64 + Disabled bool + EventSourceArn string + StartingPosition string + type IAMRoleDefinition struct + Privileges []IAMRolePrivilege + type IAMRolePrivilege struct + Actions []string + Resource interface{} + type Integration struct + CacheKeyParameters []string + CacheNamespace string + Credentials string + Parameters map[string]string + RequestTemplates map[string]string + Responses map[int]*IntegrationResponse + type IntegrationResponse struct + Parameters map[string]string + SelectionPattern string + Templates map[string]string + type LambdaAWSInfo struct + Decorator TemplateDecorator + DependsOn []string + EventSourceMappings []*EventSourceMapping + Options *LambdaFunctionOptions + Permissions []LambdaPermissionExporter + RoleDefinition *IAMRoleDefinition + RoleName string + func NewLambda(roleNameOrIAMRoleDefinition interface{}, fn LambdaFunction, ...) *LambdaAWSInfo + func (info *LambdaAWSInfo) RequireCustomResource(roleNameOrIAMRoleDefinition interface{}, userFunc CustomResourceFunction, ...) (string, error) + func (info *LambdaAWSInfo) URLPath() string + type LambdaContext struct + AWSRequestID string + FunctionName string + FunctionVersion string + InvokeID string + InvokedFunctionARN string + LogGroupName string + LogStreamName string + MemoryLimitInMB string + type LambdaFunction func(*json.RawMessage, *LambdaContext, http.ResponseWriter, *logrus.Logger) + type LambdaFunctionOptions struct + Description string + MemorySize int64 + Timeout int64 + VpcConfig *gocf.LambdaFunctionVPCConfig + type LambdaHTTPHandler struct + func NewLambdaHTTPHandler(lambdaAWSInfos []*LambdaAWSInfo, logger *logrus.Logger) *LambdaHTTPHandler + func (handler *LambdaHTTPHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type LambdaPermission struct + Principal string + type LambdaPermissionExporter interface + type MessageBodyStorage struct + func (storage *MessageBodyStorage) BucketArn() *gocf.StringExpr + func (storage *MessageBodyStorage) BucketArnAllKeys() *gocf.StringExpr + type MessageBodyStorageOptions struct + DisableStorage bool + KmsKeyArn string + ObjectKeyPrefix string + TopicArn string + type Method struct + APIKeyRequired bool + Integration Integration + Models map[string]*Model + Parameters map[string]bool + Responses map[int]*Response + type Model struct + Description string + Name string + Schema string + type ReceiptRule struct + BodyStorageOptions MessageBodyStorageOptions + Disabled bool + InvocationType string + Name string + Recipients []string + ScanDisabled bool + TLSPolicy string + TopicArn string + type Resource struct + Methods map[string]*Method + func (resource *Resource) NewAuthorizedMethod(httpMethod string, authorizationType string) (*Method, error) + func (resource *Resource) NewMethod(httpMethod string) (*Method, error) + type Response struct + Models map[string]*Model + Parameters map[string]bool + type RollbackHook func(context map[string]interface{}, serviceName string, ...) + type S3Permission struct + Events []string + Filter s3.NotificationConfigurationFilter + type S3Site struct + WebsiteConfiguration *s3.WebsiteConfiguration + func NewS3Site(resources string) (*S3Site, error) + type SESPermission struct + InvocationType string + MessageBodyStorage *MessageBodyStorage + ReceiptRules []ReceiptRule + func (perm *SESPermission) NewMessageBodyStorageReference(prexistingBucketName string) (*MessageBodyStorage, error) + func (perm *SESPermission) NewMessageBodyStorageResource(bucketLogicalName string) (*MessageBodyStorage, error) + type SNSPermission struct + type Stage struct + CacheClusterEnabled bool + CacheClusterSize string + Description string + Variables map[string]string + func NewStage(name string) *Stage + type TemplateDecorator func(serviceName string, lambdaResourceName string, ...) error + type WorkflowHook func(context map[string]interface{}, serviceName string, S3Bucket string, ...) error + type WorkflowHooks struct + Archive ArchiveHook + PostBuild WorkflowHook + PostMarshall WorkflowHook + PreBuild WorkflowHook + PreMarshall WorkflowHook + Rollback RollbackHook Other modules containing this package gopkg.in/mweagle/sparta.v1