Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HttpClient (0.15 sec)

  1. istioctl/pkg/admin/istiodconfig.go

    		}
    		scopeInfos = append(scopeInfos, si)
    	}
    	return scopeInfos, nil
    }
    
    type ControlzClient struct {
    	baseURL    *url.URL
    	httpClient *http.Client
    }
    
    func (c *ControlzClient) GetScopes() ([]*ScopeInfo, error) {
    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. istioctl/pkg/admin/istiodconfig_test.go

    			}
    		})
    	}
    }
    
    func Test_chooseClientFlag(t *testing.T) {
    	url, _ := url.Parse("http://localhost/scopej/resource")
    
    	ctrzClient := &ControlzClient{
    		baseURL:    url,
    		httpClient: &http.Client{},
    	}
    
    	type args struct {
    		ctrzClient      *ControlzClient
    		reset           bool
    		outputLogLevel  string
    		stackTraceLevel string
    		outputFormat    string
    	}
    	tests := []struct {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top