Skip to content

Commit

Permalink
🚨 Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Jan 29, 2022
1 parent b8772f1 commit 10653ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/cloudflare_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"
)

// cloudflared configuration yaml model
// Configuration is a cloudflared configuration yaml model
type Configuration struct {
TunnelId string `yaml:"tunnel"`
Ingress []UnvalidatedIngressRule `yaml:"ingress,omitempty"`
Expand All @@ -15,20 +15,20 @@ type Configuration struct {
NoAutoUpdate bool `yaml:"no-autoupdate,omitempty"`
}

// cloudflared ingress entry model
// UnvalidatedIngressRule is a cloudflared ingress entry model
type UnvalidatedIngressRule struct {
Hostname string `yaml:"hostname,omitempty"`
Path string `yaml:"path,omitempty"`
Service string
OriginRequest OriginRequestConfig `yaml:"originRequest,omitempty"`
}

// cloudflared warp routing model
// WarpRoutingConfig is a cloudflared warp routing model
type WarpRoutingConfig struct {
Enabled bool `yaml:"enabled,omitempty"`
}

// cloudflared origin request configuration model
// OriginRequestConfig is a cloudflared origin request configuration model
type OriginRequestConfig struct {
// HTTP proxy timeout for establishing a new connection
ConnectTimeout *time.Duration `yaml:"connectTimeout,omitempty"`
Expand Down Expand Up @@ -68,7 +68,7 @@ type OriginRequestConfig struct {
IPRules []IngressIPRule `yaml:"ipRules,omitempty"`
}

// cloudflared origin ingress IP rule config model
// IngressIPRule is a cloudflared origin ingress IP rule config model
type IngressIPRule struct {
Prefix *string `yaml:"prefix,omitempty"`
Ports []int `yaml:"ports,omitempty"`
Expand Down

0 comments on commit 10653ca

Please sign in to comment.