-
Notifications
You must be signed in to change notification settings - Fork 2
/
clients.go
28 lines (22 loc) · 863 Bytes
/
clients.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
package clients
import (
"io"
"github.com/awslabs/aws-cloudformation-controller-for-flux/internal/clients/types"
)
type CloudFormationClient interface {
// Stack methods
CreateStack(stack *types.Stack) (changeSetArn string, err error)
UpdateStack(stack *types.Stack) (changeSetArn string, err error)
DescribeStack(stack *types.Stack) (*types.StackDescription, error)
DeleteStack(stack *types.Stack) error
ContinueStackRollback(stack *types.Stack) error
// Change set methods
ExecuteChangeSet(stack *types.Stack) error
DeleteChangeSet(stack *types.Stack) error
DescribeChangeSet(stack *types.Stack) (*types.ChangeSetDescription, error)
}
type S3Client interface {
UploadTemplate(bucket, region, key string, data io.Reader) (string, error)
}