Skip to content

Commit f90b4f1

Browse files
committed
update config validator comments
1 parent dcde327 commit f90b4f1

File tree

5 files changed

+10
-18
lines changed

5 files changed

+10
-18
lines changed

action/config_validator.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ type ConfigValidator interface {
2121

2222
// ValidateAction performs the validation.
2323
//
24-
// This method name is separate from the datasource.ConfigValidator
25-
// interface ValidateDataSource method name, provider.ConfigValidator
26-
// interface ValidateProvider method name, ephemeral.ConfigValidator
27-
// interface ValidateEphemeralResource method name, and resource.ConfigValidator
28-
// interface ValidateResource method name to allow generic validators.
24+
// This method name is separate from ConfigValidators in resource and other packages in
25+
// order to allow generic validators.
2926
ValidateAction(context.Context, ValidateConfigRequest, *ValidateConfigResponse)
3027
}

datasource/config_validator.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type ConfigValidator interface {
2121

2222
// ValidateDataSource performs the validation.
2323
//
24-
// This method name is separate from the provider.ConfigValidator
25-
// interface ValidateProvider method name and resource.ConfigValidator
26-
// interface ValidateResource method name to allow generic validators.
24+
// This method name is separate from ConfigValidators in resource and other packages in
25+
// order to allow generic validators.
2726
ValidateDataSource(context.Context, ValidateConfigRequest, *ValidateConfigResponse)
2827
}

ephemeral/config_validator.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ type ConfigValidator interface {
2121

2222
// ValidateEphemeralResource performs the validation.
2323
//
24-
// This method name is separate from the datasource.ConfigValidator
25-
// interface ValidateDataSource method name, provider.ConfigValidator
26-
// interface ValidateProvider method name, and resource.ConfigValidator
27-
// interface ValidateResource method name to allow generic validators.
24+
// This method name is separate from ConfigValidators in resource and other packages in
25+
// order to allow generic validators.
2826
ValidateEphemeralResource(context.Context, ValidateConfigRequest, *ValidateConfigResponse)
2927
}

provider/config_validator.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type ConfigValidator interface {
2121

2222
// ValidateProvider performs the validation.
2323
//
24-
// This method name is separate from the ConfigValidator
25-
// interface ValidateDataSource method name and ResourceConfigValidator
26-
// interface ValidateResource method name to allow generic validators.
24+
// This method name is separate from ConfigValidators in resource and other packages in
25+
// order to allow generic validators.
2726
ValidateProvider(context.Context, ValidateConfigRequest, *ValidateConfigResponse)
2827
}

resource/config_validator.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type ConfigValidator interface {
2121

2222
// ValidateResource performs the validation.
2323
//
24-
// This method name is separate from the datasource.ConfigValidator
25-
// interface ValidateDataSource method name and provider.ConfigValidator
26-
// interface ValidateProvider method name to allow generic validators.
24+
// This method name is separate from ConfigValidators in datasource and other packages in
25+
// order to allow generic validators.
2726
ValidateResource(context.Context, ValidateConfigRequest, *ValidateConfigResponse)
2827
}

0 commit comments

Comments
 (0)