Skip to content

Commit

Permalink
remove cloudflare prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Sep 2, 2024
1 parent 60c1805 commit 03cc98f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/framework/service/dcv_delegation/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
)

var _ datasource.DataSource = &CloudflareDCVDelegationDataSource{}
var _ datasource.DataSource = &DCVDelegationDataSource{}

Check failure on line 13 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / test

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in variable declaration: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 13 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in variable declaration: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 13 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in variable declaration: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 13 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in variable declaration: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 13 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in variable declaration: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

func NewDataSource() datasource.DataSource {
return &CloudflareDCVDelegationDataSource{}
return &DCVDelegationDataSource{}

Check failure on line 16 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / test

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in return statement: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 16 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in return statement: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 16 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in return statement: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 16 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in return statement: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)

Check failure on line 16 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

cannot use &DCVDelegationDataSource{} (value of type *DCVDelegationDataSource) as datasource.DataSource value in return statement: *DCVDelegationDataSource does not implement datasource.DataSource (missing method Schema)
}

type CloudflareDCVDelegationDataSource struct {
type DCVDelegationDataSource struct {
client *muxclient.Client
}

func (r *CloudflareDCVDelegationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
func (r *DCVDelegationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_dcv_delegation"
}

func (r *CloudflareDCVDelegationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
func (r *DCVDelegationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
if req.ProviderData == nil {
return
}
Expand All @@ -43,8 +43,8 @@ func (r *CloudflareDCVDelegationDataSource) Configure(ctx context.Context, req d
r.client = client
}

func (r *CloudflareDCVDelegationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
var data CloudflareDCVDelegationModel
func (r *DCVDelegationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
var data DCVDelegationModel

Check failure on line 47 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / test

undefined: DCVDelegationModel

Check failure on line 47 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: DCVDelegationModel

Check failure on line 47 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: DCVDelegationModel

Check failure on line 47 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

undefined: DCVDelegationModel

Check failure on line 47 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

undefined: DCVDelegationModel
resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)
if resp.Diagnostics.HasError() {
return
Expand All @@ -56,7 +56,7 @@ func (r *CloudflareDCVDelegationDataSource) Read(ctx context.Context, req dataso
return
}

data = CloudflareDCVDelegationModel{
data = DCVDelegationModel{

Check failure on line 59 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / test

undefined: DCVDelegationModel

Check failure on line 59 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: DCVDelegationModel

Check failure on line 59 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: DCVDelegationModel

Check failure on line 59 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

undefined: DCVDelegationModel

Check failure on line 59 in internal/framework/service/dcv_delegation/data_source.go

View workflow job for this annotation

GitHub Actions / tfproviderlint (ubuntu-latest)

undefined: DCVDelegationModel
ZoneID: types.StringValue(data.ZoneID.ValueString()),
ID: types.StringValue(dcv.UUID),
Hostname: types.StringValue(fmt.Sprintf("%s.dcv.cloudflare.com", dcv.UUID)),
Expand Down

0 comments on commit 03cc98f

Please sign in to comment.