Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("builder AMI not found")
)
Functions ¶
This section is empty.
Types ¶
type CopyImageAPI ¶
type CopyImageAPI interface {
CopyImage(
ctx context.Context,
params *ec2.CopyImageInput,
optFns ...func(*ec2.Options),
) (*ec2.CopyImageOutput, error)
}
type DescribeImagesAPI ¶
type DescribeImagesAPI interface {
DescribeImages(
ctx context.Context,
params *ec2.DescribeImagesInput,
optFns ...func(*ec2.Options),
) (*ec2.DescribeImagesOutput, error)
}
type EC2Client ¶
type EC2Client interface {
DescribeImagesAPI
CopyImageAPI
ModifyImageAttributeAPI
ModifySnapshotAttributeAPI
}
type ImageWaiter ¶
type ImageWaiter interface {
Wait(
ctx context.Context,
params *ec2.DescribeImagesInput,
maxWaitDur time.Duration,
optFns ...func(*ec2.ImageAvailableWaiterOptions),
) error
}
type ModifyImageAttributeAPI ¶
type ModifyImageAttributeAPI interface {
ModifyImageAttribute(
ctx context.Context,
params *ec2.ModifyImageAttributeInput,
optFns ...func(*ec2.Options),
) (*ec2.ModifyImageAttributeOutput, error)
}
type ModifySnapshotAttributeAPI ¶
type ModifySnapshotAttributeAPI interface {
ModifySnapshotAttribute(
ctx context.Context,
params *ec2.ModifySnapshotAttributeInput,
optFns ...func(*ec2.Options),
) (*ec2.ModifySnapshotAttributeOutput, error)
}
type Result ¶
func CopyWithClients ¶
func CopyWithClients( ctx context.Context, cfg Config, sourceClient DescribeImagesAPI, destClient CopyImageAPI, destEC2Client EC2Client, waiter ImageWaiter, ) (*Result, error)
Click to show internal directories.
Click to hide internal directories.