internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	File     []byte
	Location string
}

Content represents the lambda layer content stored.

type Layer

type Layer struct {
	Name string
	// contains filtered or unexported fields
}

Layer represents a lambda layer.

func LoadLayer

func LoadLayer(cfg aws.Config, name string) *Layer

LoadLayer loads the layer information.

func (*Layer) DownloadVersion

func (l *Layer) DownloadVersion(ctx context.Context, v *Version, w io.Writer) error

DownloadVersion downloads the lambda layer version by region.

func (*Layer) FetchVersion

func (l *Layer) FetchVersion(ctx context.Context, version int64, region string) (*Version, error)

FetchVersion retrieves a version of lambda layer by region.

func (*Layer) GreatestVersion

func (l *Layer) GreatestVersion(ctx context.Context, regions []string) (*Version, error)

GreatestVersion retrieves the greatest version of the lambda layer across regions.

func (*Layer) LatestVersion

func (l *Layer) LatestVersion(ctx context.Context, region string) (*Version, error)

LatestVersion retrieves the latest version of a lambda layer by region.

func (*Layer) LatestVersions

func (l *Layer) LatestVersions(ctx context.Context, regions []string) ([]*Version, error)

LatestVersions retrieves the latest version of all lambda layer regions.

func (*Layer) PublishVersion

func (l *Layer) PublishVersion(ctx context.Context, v *Version) error

PublishVersion publishes a new lambda layer version.

type Version

type Version struct {
	Description   string
	Number        int64
	Region        string
	Content       *Content
	Architectures []types.Architecture
	Runtimes      []types.Runtime
	License       string
}

Version represents the lambda layer version.

Jump to

Keyboard shortcuts

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