amiage

package
v0.0.0-...-6ef1471 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package amiage contains a helper function to return the age of an AMI in days.

Caching is supported.

Index

Constants

This section is empty.

Variables

View Source
var NotFound error

NotFound is the error returned when an AMI isn't found

Functions

func AMIAge

func AMIAge(svc *ec2.EC2, id string) (int, error)

AMIAge returns the number of days since the specified image was created, using AMICreation as a helper (that will cache the creation time).

func AMICreation

func AMICreation(svc *ec2.EC2, id string) (string, error)

AMICreation returns the creation-date of the given AMI as a string.

Values are cached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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