Documentation
¶
Overview ¶
This package holds http client wrapper for cloud access.
Index ¶
- func BackgroundMetric(kind, name, value string)
- func BatchMetric(filename string) error
- func Download(url, filename string) error
- func EnsureHttps(endpoint string) (string, error)
- func InternalBackgroundMetric(kind, name, value string)
- func ReadFile(resource string) ([]byte, error)
- func WaitTelemetry()
- type Client
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackgroundMetric ¶
func BackgroundMetric(kind, name, value string)
func BatchMetric ¶
func EnsureHttps ¶
func InternalBackgroundMetric ¶
func InternalBackgroundMetric(kind, name, value string)
func WaitTelemetry ¶
func WaitTelemetry()
Types ¶
type Client ¶
type Client interface { Endpoint() string NewRequest(string) *Request Head(request *Request) *Response Get(request *Request) *Response Post(request *Request) *Response Put(request *Request) *Response Delete(request *Request) *Response NewClient(endpoint string) (Client, error) WithTimeout(time.Duration) Client WithTracing() Client Uncritical() Client }
func NewUnsafeClient ¶
Click to show internal directories.
Click to hide internal directories.