Skip to content

Commit

Permalink
feat: hook up new resource to the provider
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer committed Dec 10, 2024
1 parent 14f9460 commit 063ae34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/provider/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ import (
//
// @module=juju.resource-application
const (
LogDataSourceMachine = "datasource-machine"
LogDataSourceModel = "datasource-model"
LogDataSourceOffer = "datasource-offer"
LogDataSourceSecret = "datasource-secret"
LogDataSourceApplication = "datasource-application"
LogDataSourceMachine = "datasource-machine"
LogDataSourceModel = "datasource-model"
LogDataSourceOffer = "datasource-offer"
LogDataSourceSecret = "datasource-secret"

LogResourceApplication = "resource-application"
LogResourceAccessModel = "resource-access-model"
Expand Down
1 change: 1 addition & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func (p *jujuProvider) Resources(_ context.Context) []func() resource.Resource {
// the Metadata method. All data sources must have unique names.
func (p *jujuProvider) DataSources(_ context.Context) []func() datasource.DataSource {
return []func() datasource.DataSource{
func() datasource.DataSource { return NewApplicationDataSource() },
func() datasource.DataSource { return NewMachineDataSource() },
func() datasource.DataSource { return NewModelDataSource() },
func() datasource.DataSource { return NewOfferDataSource() },
Expand Down

0 comments on commit 063ae34

Please sign in to comment.