Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions providers-sdk/v1/plugin/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type Provider struct {
CrossProviderTypes []string
Connectors []Connector
AssetUrlTrees []*inventory.AssetUrlBranch
Dependencies []string
}

type Connector struct {
Expand Down
3 changes: 2 additions & 1 deletion providers-sdk/v1/util/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func goGen(configs []*plugin.Provider) ([]byte, error) {
conn := conf.Connectors[j]
conns.WriteString(fmt.Sprintf(connectorTemplate, conn.Name, conn.Use, conn.Short))
}
body.WriteString(fmt.Sprintf(providerTemplate, conf.Name, conf.Name, conf.ID, conf.ConnectionTypes, conns.String()))
body.WriteString(fmt.Sprintf(providerTemplate, conf.Name, conf.Name, conf.ID, conf.ConnectionTypes, conns.String(), conf.Dependencies))
}

res := fmt.Sprintf(template, body.String())
Expand Down Expand Up @@ -106,6 +106,7 @@ const providerTemplate = `
Connectors: []plugin.Connector{
%s
},
Dependencies: %#v,
},
},
`
Expand Down
Loading
Loading