Skip to content

Commit cc68b16

Browse files
Documentation
1 parent 8774596 commit cc68b16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stack_deployment_groups.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"net/url"
77
)
88

9+
// StackDeploymentGroups describes all the stack-deployment-groups related methods that the HCP Terraform API supports.
910
type StackDeploymentGroups interface {
1011
// List returns a list of Deployment Groups in a stack.
1112
List(ctx context.Context, stackConfigID string, options *StackDeploymentGroupListOptions) (*StackDeploymentGroupList, error)
@@ -21,12 +22,14 @@ const (
2122
DeploymentGroupStatusAbandoned DeploymentGroupStatus = "abandoned"
2223
)
2324

25+
// stackDeploymentGroups implements StackDeploymentGroups.
2426
type stackDeploymentGroups struct {
2527
client *Client
2628
}
2729

2830
var _ StackDeploymentGroups = &stackDeploymentGroups{}
2931

32+
// StackDeploymentGroup represents a stack deployment group.
3033
type StackDeploymentGroup struct {
3134
ID string `jsonapi:"primary,stacks-deployment-groups"`
3235
Name string `jsonapi:"attr,name"`
@@ -44,10 +47,12 @@ type StackDeploymentGroupList struct {
4447
Items []*StackDeploymentGroup
4548
}
4649

50+
// StackDeploymentGroupListOptions represents additional options when listing stack deployment groups.
4751
type StackDeploymentGroupListOptions struct {
4852
ListOptions
4953
}
5054

55+
// List returns a list of Deployment Groups in a stack, optionally filtered by additional parameters.
5156
func (s stackDeploymentGroups) List(ctx context.Context, stackConfigID string, options *StackDeploymentGroupListOptions) (*StackDeploymentGroupList, error) {
5257
if !validStringID(&stackConfigID) {
5358
return nil, fmt.Errorf("invalid stack configuration ID: %s", stackConfigID)

0 commit comments

Comments
 (0)