@@ -21,6 +21,9 @@ type StackConfigurations interface {
21
21
// configuration files in association with a Stack.
22
22
CreateAndUpload (ctx context.Context , stackID string , path string , opts * CreateStackConfigurationOptions ) (* StackConfiguration , error )
23
23
24
+ // Upload a tar gzip archive to the specified stack configuration upload URL.
25
+ UploadTarGzip (ctx context.Context , url string , archive io.Reader ) error
26
+
24
27
// ReadConfiguration returns a stack configuration by its ID.
25
28
Read (ctx context.Context , id string ) (* StackConfiguration , error )
26
29
@@ -195,7 +198,7 @@ func (s stackConfigurations) CreateAndUpload(ctx context.Context, stackID, path
195
198
return nil , err
196
199
}
197
200
198
- err = s .uploadTarGzip (ctx , uploadURL , body )
201
+ err = s .UploadTarGzip (ctx , uploadURL , body )
199
202
if err != nil {
200
203
return nil , err
201
204
}
@@ -250,6 +253,6 @@ func (s stackConfigurations) pollForUploadURL(ctx context.Context, stackConfigur
250
253
//
251
254
// **Note**: This method does not validate the content being uploaded and is therefore the caller's
252
255
// responsibility to ensure the raw content is a valid Terraform configuration.
253
- func (s stackConfigurations ) uploadTarGzip (ctx context.Context , uploadURL string , archive io.Reader ) error {
256
+ func (s stackConfigurations ) UploadTarGzip (ctx context.Context , uploadURL string , archive io.Reader ) error {
254
257
return s .client .doForeignPUTRequest (ctx , uploadURL , archive )
255
258
}
0 commit comments