Skip to content

Commit

Permalink
use iota and camel case for constants
Browse files Browse the repository at this point in the history
Co-authored-by: Liam Cervante <[email protected]>
  • Loading branch information
DanielMSchmidt and liamcervante authored Apr 2, 2024
1 parent dcf668b commit 0cde250
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions internal/providers/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,19 @@ type ReadResourceRequest struct {
DeferralAllowed bool
}


type DeferredReason int32

const (
DEFERRED_REASON_UNKNOWN = 0
DEFERRED_REASON_RESOURCE_CONFIG_UNKNOWN = 1
DEFERRED_REASON_PROVIDER_CONFIG_UNKNOWN = 2
DEFERRED_REASON_ABSENT_PREREQ = 3
DeferredReasonUnknown DeferredReason = iota
DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / End-to-end Tests

other declaration of DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / End-to-end Tests

other declaration of DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Race Tests

other declaration of DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Race Tests

other declaration of DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Unit Tests

other declaration of DeferredReasonResourceConfigUnknown

Check failure on line 251 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Unit Tests

other declaration of DeferredReasonResourceConfigUnknown
DeferredReasonProviderConfigUnknown
DeferredReasonResourceConfigUnknown

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / End-to-end Tests

DeferredReasonResourceConfigUnknown redeclared in this block

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / End-to-end Tests

DeferredReasonResourceConfigUnknown redeclared in this block

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Race Tests

DeferredReasonResourceConfigUnknown redeclared in this block

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Race Tests

DeferredReasonResourceConfigUnknown redeclared in this block

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Unit Tests

DeferredReasonResourceConfigUnknown redeclared in this block

Check failure on line 253 in internal/providers/provider.go

View workflow job for this annotation

GitHub Actions / Unit Tests

DeferredReasonResourceConfigUnknown redeclared in this block
DeferredReasonAbsentPrereq
)

type Deferred struct {
Reason int32
Reason DeferredReason
}

type ReadResourceResponse struct {
Expand Down

0 comments on commit 0cde250

Please sign in to comment.