diff --git a/internal/uptimerobot/urtypes/httpmethod.go b/internal/uptimerobot/urtypes/http.go similarity index 100% rename from internal/uptimerobot/urtypes/httpmethod.go rename to internal/uptimerobot/urtypes/http.go diff --git a/internal/uptimerobot/urtypes/keywordtype.go b/internal/uptimerobot/urtypes/keyword.go similarity index 100% rename from internal/uptimerobot/urtypes/keywordtype.go rename to internal/uptimerobot/urtypes/keyword.go diff --git a/internal/uptimerobot/urtypes/monitortype.go b/internal/uptimerobot/urtypes/monitor.go similarity index 50% rename from internal/uptimerobot/urtypes/monitortype.go rename to internal/uptimerobot/urtypes/monitor.go index f0da4c1..f6d60e7 100644 --- a/internal/uptimerobot/urtypes/monitortype.go +++ b/internal/uptimerobot/urtypes/monitor.go @@ -1,5 +1,10 @@ package urtypes +const ( + MonitorPaused = iota + MonitorRunning +) + //go:generate enumer -type MonitorType -trimprefix Type -json -text //+kubebuilder:validation:Type:=string @@ -14,3 +19,15 @@ const ( TypePort TypeHeartbeat ) + +//go:generate enumer -type MonitorAuthType -trimprefix Auth -json -text + +//+kubebuilder:validation:Type:=string +//+kubebuilder:validation:Enum:=Basic;Digest + +type MonitorAuthType uint8 + +const ( + AuthBasic MonitorAuthType = iota + 1 + AuthDigest +) diff --git a/internal/uptimerobot/urtypes/monitorauthtype.go b/internal/uptimerobot/urtypes/monitorauthtype.go deleted file mode 100644 index 043cb97..0000000 --- a/internal/uptimerobot/urtypes/monitorauthtype.go +++ /dev/null @@ -1,13 +0,0 @@ -package urtypes - -//go:generate enumer -type MonitorAuthType -trimprefix Auth -json -text - -//+kubebuilder:validation:Type:=string -//+kubebuilder:validation:Enum:=Basic;Digest - -type MonitorAuthType uint8 - -const ( - AuthBasic MonitorAuthType = iota + 1 - AuthDigest -) diff --git a/internal/uptimerobot/urtypes/monitorstatus.go b/internal/uptimerobot/urtypes/monitorstatus.go deleted file mode 100644 index 85e55b4..0000000 --- a/internal/uptimerobot/urtypes/monitorstatus.go +++ /dev/null @@ -1,6 +0,0 @@ -package urtypes - -const ( - MonitorPaused = iota - MonitorRunning -) diff --git a/internal/uptimerobot/urtypes/porttype.go b/internal/uptimerobot/urtypes/port.go similarity index 100% rename from internal/uptimerobot/urtypes/porttype.go rename to internal/uptimerobot/urtypes/port.go diff --git a/internal/uptimerobot/urtypes/response_status.go b/internal/uptimerobot/urtypes/response.go similarity index 100% rename from internal/uptimerobot/urtypes/response_status.go rename to internal/uptimerobot/urtypes/response.go