Skip to content

Commit

Permalink
refactor(segment): rename segment download client name
Browse files Browse the repository at this point in the history
  • Loading branch information
jskelin committed Dec 20, 2024
1 parent 78fc9f5 commit a84aae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/monaco/download/download_configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ type downloadFn struct {
bucketDownload func(client.BucketClient, string) (projectv2.ConfigsPerType, error)
documentDownload func(client.DocumentClient, string) (projectv2.ConfigsPerType, error)
openPipelineDownload func(client.OpenPipelineClient, string) (projectv2.ConfigsPerType, error)
segmentDownload func(segment.Client, string) (projectv2.ConfigsPerType, error)
segmentDownload func(segment.DownloadSegmentClient, string) (projectv2.ConfigsPerType, error)
}

var defaultDownloadFn = downloadFn{
Expand Down
4 changes: 2 additions & 2 deletions pkg/download/segment/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import (
project "github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/project/v2"
)

type Client interface {
type DownloadSegmentClient interface {
GetAll(ctx context.Context) ([]segments.Response, error)
}

func Download(client Client, projectName string) (project.ConfigsPerType, error) {
func Download(client DownloadSegmentClient, projectName string) (project.ConfigsPerType, error) {
result := project.ConfigsPerType{}

downloadedConfigs, err := client.GetAll(context.TODO())
Expand Down

0 comments on commit a84aae5

Please sign in to comment.