@@ -53,7 +53,7 @@ const (
5353	BIND_IP_V6                       =  "v6" 
5454)
5555
56- func  (handler  HTTPS ) bindList (h  haproxy.HAProxy ) (binds  []models.Bind ) {
56+ func  (handler  * HTTPS ) bindList (h  haproxy.HAProxy ) (binds  []models.Bind ) {
5757	if  handler .IPv4  {
5858		binds  =  append (binds , models.Bind {
5959			Address : handler .AddrIPv4 ,
@@ -78,7 +78,7 @@ func (handler HTTPS) bindList(h haproxy.HAProxy) (binds []models.Bind) {
7878	return  binds 
7979}
8080
81- func  (handler  HTTPS ) bindListPassthrough (h  haproxy.HAProxy ) (binds  []models.Bind ) {
81+ func  (handler  * HTTPS ) bindListPassthrough (h  haproxy.HAProxy ) (binds  []models.Bind ) {
8282	binds  =  append (binds , models.Bind {
8383		Address : "unix@"  +  handler .unixSocketPath (h ),
8484		BindParams : models.BindParams {
@@ -89,11 +89,11 @@ func (handler HTTPS) bindListPassthrough(h haproxy.HAProxy) (binds []models.Bind
8989	return  binds 
9090}
9191
92- func  (handler  HTTPS ) unixSocketPath (h  haproxy.HAProxy ) string  {
92+ func  (handler  * HTTPS ) unixSocketPath (h  haproxy.HAProxy ) string  {
9393	return  path .Join (h .Env .RuntimeDir , "ssl-frontend.sock" )
9494}
9595
96- func  (handler  HTTPS ) handleClientTLSAuth (k  store.K8s , h  haproxy.HAProxy ) (err  error ) {
96+ func  (handler  * HTTPS ) handleClientTLSAuth (k  store.K8s , h  haproxy.HAProxy ) (err  error ) {
9797	// Parsing 
9898	var  caFile  string 
9999	var  notFound  store.ErrNotFound 
@@ -158,7 +158,7 @@ func (handler HTTPS) handleClientTLSAuth(k store.K8s, h haproxy.HAProxy) (err er
158158	return 
159159}
160160
161- func  (handler  HTTPS ) Update (k  store.K8s , h  haproxy.HAProxy , a  annotations.Annotations ) (err  error ) {
161+ func  (handler  * HTTPS ) Update (k  store.K8s , h  haproxy.HAProxy , a  annotations.Annotations ) (err  error ) {
162162	if  ! handler .Enabled  {
163163		logger .Debug ("Cannot proceed with SSL Passthrough update, HTTPS is disabled" )
164164		return  nil 
@@ -204,7 +204,7 @@ func (handler HTTPS) Update(k store.K8s, h haproxy.HAProxy, a annotations.Annota
204204	return  nil 
205205}
206206
207- func  (handler  HTTPS ) enableSSLPassthrough (h  haproxy.HAProxy ) (err  error ) {
207+ func  (handler  * HTTPS ) enableSSLPassthrough (h  haproxy.HAProxy ) (err  error ) {
208208	// Create TCP frontend for ssl-passthrough 
209209	frontend  :=  models.Frontend {
210210		Name :           h .FrontSSL ,
@@ -242,7 +242,7 @@ func (handler HTTPS) enableSSLPassthrough(h haproxy.HAProxy) (err error) {
242242	return  errors .Result ()
243243}
244244
245- func  (handler  HTTPS ) disableSSLPassthrough (h  haproxy.HAProxy ) (err  error ) {
245+ func  (handler  * HTTPS ) disableSSLPassthrough (h  haproxy.HAProxy ) (err  error ) {
246246	err  =  h .FrontendDelete (h .FrontSSL )
247247	if  err  !=  nil  {
248248		return  err 
@@ -258,7 +258,7 @@ func (handler HTTPS) disableSSLPassthrough(h haproxy.HAProxy) (err error) {
258258	return  nil 
259259}
260260
261- func  (handler  HTTPS ) toggleSSLPassthrough (passthrough  bool , h  haproxy.HAProxy ) (err  error ) {
261+ func  (handler  * HTTPS ) toggleSSLPassthrough (passthrough  bool , h  haproxy.HAProxy ) (err  error ) {
262262	handler .deleteHTTPSFrontendBinds (h )
263263	bindListFunc  :=  handler .bindList 
264264	if  passthrough  {
@@ -275,7 +275,7 @@ func (handler HTTPS) toggleSSLPassthrough(passthrough bool, h haproxy.HAProxy) (
275275	return  nil 
276276}
277277
278- func  (handler  HTTPS ) deleteHTTPSFrontendBinds (h  haproxy.HAProxy ) {
278+ func  (handler  * HTTPS ) deleteHTTPSFrontendBinds (h  haproxy.HAProxy ) {
279279	bindsToDelete  :=  []string {BIND_IP_V4 , BIND_IP_V6 , BIND_UNIX_SOCKET }
280280	for  _ , bind  :=  range  bindsToDelete  {
281281		if  err  :=  h .FrontendBindDelete (h .FrontHTTPS , bind ); err  !=  nil  {
@@ -284,7 +284,7 @@ func (handler HTTPS) deleteHTTPSFrontendBinds(h haproxy.HAProxy) {
284284	}
285285}
286286
287- func  (handler  HTTPS ) sslPassthroughRules (k  store.K8s , h  haproxy.HAProxy , a  annotations.Annotations ) error  {
287+ func  (handler  * HTTPS ) sslPassthroughRules (k  store.K8s , h  haproxy.HAProxy , a  annotations.Annotations ) error  {
288288	inspectTimeout , err  :=  a .Timeout ("timeout-client" , k .ConfigMaps .Main .Annotations )
289289	if  inspectTimeout  ==  nil  {
290290		if  err  !=  nil  {
0 commit comments