types

package
v0.0.0-...-87bf7db Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0

Index

Constants

This section is empty.

Variables

View Source
var ValidRuntimes = Runtimes{
	"nodejs",
	"nodejs4.3",
	"nodejs6.10",
	"nodejs8.10",
	"nodejs10.x",
	"java8",
	"python2.7",
	"python3.6",
	"python3.7",
	"dotnetcore1.0",
	"dotnetcore2.0",
	"dotnetcore2.1",
	"nodejs4.3-edge",
	"go1.x",
	"ruby2.5",
	"provided",
}

a list of aws supported runtimes as of 26/01/2019

Functions

This section is empty.

Types

type CmdOptions

type CmdOptions struct {
	Image              string   // Name of the container image
	ImageType          string   // Type of the container image
	Region             string   // AWS region
	Profile            string   // AWS credentials profile
	OutputDir          string   // Output directory for the Lambda layers
	DryRun             bool     // Dry-run (will not register with Lambda)
	LayerNamespace     string   // Prefix for published Lambda layers
	Description        string   // Description of the current layer version
	LicenseInfo        string   // Layer's software license
	CompatibleRuntimes []string // A list of function runtimes compatible with the current layer
}

type LambdaDeploymentPackage

type LambdaDeploymentPackage struct {
	FileCount int
	File      string
}

type LambdaLayer

type LambdaLayer struct {
	Digest string
	File   string
}

type PublishOptions

type PublishOptions struct {
	LambdaClient       lambdaiface.LambdaAPI
	LayerPrefix        string
	ResultsDir         string
	SourceImageName    string
	Description        string
	LicenseInfo        string
	CompatibleRuntimes []string
}

func ConvertToPublishOptions

func ConvertToPublishOptions(opts *CmdOptions) *PublishOptions

type Runtimes

type Runtimes []string

valid aws lambda function runtimes

func (Runtimes) Contains

func (r Runtimes) Contains(runtime string) bool

utility function to validate if a runtime is valid (supported by aws) or not

Jump to

Keyboard shortcuts

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