{"modulePath":"github.com/UnityTech/client-go","version":"v11.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package rest\n\n## Constants\n\n```go\nconst (\n\tDefaultQPS   float32 = 5.0\n\tDefaultBurst int     = 10\n)\n```\n\n## Variables\n\n```go\nvar ErrNotInCluster = errors.New(\"unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined\")\n```\n\n```go\nvar NameMayNotBe = []string{\".\", \"..\"}\n```\nNameMayNotBe specifies strings that cannot be used as names specified as path segments (like the REST API or etcd store)\n\n```go\nvar NameMayNotContain = []string{\"/\", \"%\"}\n```\nNameMayNotContain specifies substrings that cannot be used in names specified as path segments (like the REST API or etcd store)\n\n## Functions\n\n```go\nfunc DefaultKubernetesUserAgent() string\n```\nDefaultKubernetesUserAgent returns a User-Agent string built from static global vars.\n\n```go\nfunc DefaultServerURL(host, apiPath string, groupVersion schema.GroupVersion, defaultTLS bool) (*url.URL, string, error)\n```\nDefaultServerURL converts a host, host:port, or URL string to the default base server API path to use with a Client at a given API version following the standard conventions for a Kubernetes API.\n\n```go\nfunc DefaultVersionedAPIPath(apiPath string, groupVersion schema.GroupVersion) string\n```\nDefaultVersionedAPIPathFor constructs the default path for the given group version, assuming the given API path, following the standard conventions of the Kubernetes API.\n\n```go\nfunc HTTPWrappersForConfig(config *Config, rt http.RoundTripper) (http.RoundTripper, error)\n```\nHTTPWrappersForConfig wraps a round tripper with any relevant layered behavior from the config. Exposed to allow more clients that need HTTP-like behavior but then must hijack the underlying connection (like WebSocket or HTTP2 clients). Pure HTTP clients should use the higher level TransportFor or RESTClientFor methods.\n\n```go\nfunc IsConfigTransportTLS(config Config) bool\n```\nIsConfigTransportTLS returns true if and only if the provided config will result in a protected connection to the server when it is passed to restclient.RESTClientFor().  Use to determine when to send credentials over the wire.\n\nNote: the Insecure flag is ignored when testing for this value, so MITM attacks are still possible.\n\n```go\nfunc IsValidPathSegmentName(name string) []string\n```\nIsValidPathSegmentName validates the name can be safely encoded as a path segment\n\n```go\nfunc IsValidPathSegmentPrefix(name string) []string\n```\nIsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid\n\n```go\nfunc LoadTLSFiles(c *Config) error\n```\nLoadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, KeyData, and CAFile fields, or returns an error. If no error is returned, all three fields are either populated or were empty to start.\n\n```go\nfunc RegisterAuthProviderPlugin(name string, plugin Factory) error\n```\n\n```go\nfunc SetKubernetesDefaults(config *Config) error\n```\nSetKubernetesDefaults sets default values on the provided client config for accessing the Kubernetes API or returns an error if any of the defaults are impossible or invalid.\n\n```go\nfunc TLSConfigFor(config *Config) (*tls.Config, error)\n```\nTLSConfigFor returns a tls.Config that will provide the transport level security defined by the provided Config. Will return nil if no transport level security is requested.\n\n```go\nfunc TransportFor(config *Config) (http.RoundTripper, error)\n```\nTransportFor returns an http.RoundTripper that will provide the authentication or transport level security defined by the provided Config. Will return the default http.DefaultTransport if no special case behavior is needed.\n\n```go\nfunc ValidatePathSegmentName(name string, prefix bool) []string\n```\nValidatePathSegmentName validates the name can be safely encoded as a path segment\n\n## Types\n\n```go\ntype AuthProvider interface {\n\t// WrapTransport allows the plugin to create a modified RoundTripper that\n\t// attaches authorization headers (or other info) to requests.\n\tWrapTransport(http.RoundTripper) http.RoundTripper\n\t// Login allows the plugin to initialize its configuration. It must not\n\t// require direct user interaction.\n\tLogin() error\n}\n```\n\n```go\nfunc GetAuthProvider(clusterAddress string, apc *clientcmdapi.AuthProviderConfig, persister AuthProviderConfigPersister) (AuthProvider, error)\n```\n\n```go\ntype AuthProviderConfigPersister interface {\n\tPersist(map[string]string) error\n}\n```\nAuthProviderConfigPersister allows a plugin to persist configuration info for just itself.\n\n```go\ntype BackoffManager interface {\n\tUpdateBackoff(actualUrl *url.URL, err error, responseCode int)\n\tCalculateBackoff(actualUrl *url.URL) time.Duration\n\tSleep(d time.Duration)\n}\n```\n\n```go\ntype Config struct {\n\t// Host must be a host string, a host:port pair, or a URL to the base of the apiserver.\n\t// If a URL is given then the (optional) Path of that URL represents a prefix that must\n\t// be appended to all request URIs used to access the apiserver. This allows a frontend\n\t// proxy to easily relocate all of the apiserver endpoints.\n\tHost string\n\t// APIPath is a sub-path that points to an API root.\n\tAPIPath string\n\n\t// ContentConfig contains settings that affect how objects are transformed when\n\t// sent to the server.\n\tContentConfig\n\n\t// Server requires Basic authentication\n\tUsername string\n\tPassword string\n\n\t// Server requires Bearer authentication. This client will not attempt to use\n\t// refresh tokens for an OAuth2 flow.\n\t// TODO: demonstrate an OAuth2 compatible client.\n\tBearerToken string\n\n\t// Path to a file containing a BearerToken.\n\t// If set, the contents are periodically read.\n\t// The last successfully read value takes precedence over BearerToken.\n\tBearerTokenFile string\n\n\t// Impersonate is the configuration that RESTClient will use for impersonation.\n\tImpersonate ImpersonationConfig\n\n\t// Server requires plugin-specified authentication.\n\tAuthProvider *clientcmdapi.AuthProviderConfig\n\n\t// Callback to persist config for AuthProvider.\n\tAuthConfigPersister AuthProviderConfigPersister\n\n\t// Exec-based authentication provider.\n\tExecProvider *clientcmdapi.ExecConfig\n\n\t// TLSClientConfig contains settings to enable transport layer security\n\tTLSClientConfig\n\n\t// UserAgent is an optional field that specifies the caller of this request.\n\tUserAgent string\n\n\t// Transport may be used for custom HTTP behavior. This attribute may not\n\t// be specified with the TLS client certificate options. Use WrapTransport\n\t// to provide additional per-server middleware behavior.\n\tTransport http.RoundTripper\n\t// WrapTransport will be invoked for custom HTTP behavior after the underlying\n\t// transport is initialized (either the transport created from TLSClientConfig,\n\t// Transport, or http.DefaultTransport). The config may layer other RoundTrippers\n\t// on top of the returned RoundTripper.\n\t//\n\t// A future release will change this field to an array. Use config.Wrap()\n\t// instead of setting this value directly.\n\tWrapTransport transport.WrapperFunc\n\n\t// QPS indicates the maximum QPS to the master from this client.\n\t// If it's zero, the created RESTClient will use DefaultQPS: 5\n\tQPS float32\n\n\t// Maximum burst for throttle.\n\t// If it's zero, the created RESTClient will use DefaultBurst: 10.\n\tBurst int\n\n\t// Rate limiter for limiting connections to the master from this client. If present overwrites QPS/Burst\n\tRateLimiter flowcontrol.RateLimiter\n\n\t// The maximum length of time to wait before giving up on a server request. A value of zero means no timeout.\n\tTimeout time.Duration\n\n\t// Dial specifies the dial function for creating unencrypted TCP connections.\n\tDial func(ctx context.Context, network, address string) (net.Conn, error)\n}\n```\nConfig holds the common attributes that can be passed to a Kubernetes client on initialization.\n\n```go\nfunc AddUserAgent(config *Config, userAgent string) *Config\n```\n\n```go\nfunc AnonymousClientConfig(config *Config) *Config\n```\nAnonymousClientConfig returns a copy of the given config with all user credentials (cert/key, bearer token, and username/password) removed\n\n```go\nfunc CopyConfig(config *Config) *Config\n```\nCopyConfig returns a copy of the given config\n\n```go\nfunc InClusterConfig() (*Config, error)\n```\nInClusterConfig returns a config object which uses the service account kubernetes gives to pods. It's intended for clients that expect to be running inside a pod running on kubernetes. It will return ErrNotInCluster if called from a process not running in a kubernetes environment.\n\n```go\nfunc (c *Config) GoString() string\n```\nGoString implements fmt.GoStringer and sanitizes sensitive fields of Config to prevent accidental leaking via logs.\n\n```go\nfunc (c *Config) String() string\n```\nString implements fmt.Stringer and sanitizes sensitive fields of Config to prevent accidental leaking via logs.\n\n```go\nfunc (c *Config) TransportConfig() (*transport.Config, error)\n```\nTransportConfig converts a client config to an appropriate transport config.\n\n```go\nfunc (c *Config) Wrap(fn transport.WrapperFunc)\n```\nWrap adds a transport middleware function that will give the caller an opportunity to wrap the underlying http.RoundTripper prior to the first API call being made. The provided function is invoked after any existing transport wrappers are invoked.\n\n```go\ntype ContentConfig struct {\n\t// AcceptContentTypes specifies the types the client will accept and is optional.\n\t// If not set, ContentType will be used to define the Accept header\n\tAcceptContentTypes string\n\t// ContentType specifies the wire format used to communicate with the server.\n\t// This value will be set as the Accept header on requests made to the server, and\n\t// as the default content type on any object sent to the server. If not set,\n\t// \"application/json\" is used.\n\tContentType string\n\t// GroupVersion is the API version to talk to. Must be provided when initializing\n\t// a RESTClient directly. When initializing a Client, will be set with the default\n\t// code version.\n\tGroupVersion *schema.GroupVersion\n\t// NegotiatedSerializer is used for obtaining encoders and decoders for multiple\n\t// supported media types.\n\tNegotiatedSerializer runtime.NegotiatedSerializer\n}\n```\n\n```go\ntype Factory func(clusterAddress string, config map[string]string, persister AuthProviderConfigPersister) (AuthProvider, error)\n```\nFactory generates an AuthProvider plugin.\n\n\tclusterAddress is the address of the current cluster.\n\tconfig is the initial configuration for this plugin.\n\tpersister allows the plugin to save updated configuration.\n\n```go\ntype HTTPClient interface {\n\tDo(req *http.Request) (*http.Response, error)\n}\n```\nHTTPClient is an interface for testing a request object.\n\n```go\ntype ImpersonationConfig struct {\n\t// UserName is the username to impersonate on each request.\n\tUserName string\n\t// Groups are the groups to impersonate on each request.\n\tGroups []string\n\t// Extra is a free-form field which can be used to link some authentication information\n\t// to authorization information.  This field allows you to impersonate it.\n\tExtra map[string][]string\n}\n```\nImpersonationConfig has all the available impersonation options\n\n```go\ntype Interface interface {\n\tGetRateLimiter() flowcontrol.RateLimiter\n\tVerb(verb string) *Request\n\tPost() *Request\n\tPut() *Request\n\tPatch(pt types.PatchType) *Request\n\tGet() *Request\n\tDelete() *Request\n\tAPIVersion() schema.GroupVersion\n}\n```\nInterface captures the set of operations for generically interacting with Kubernetes REST apis.\n\n```go\ntype NoBackoff struct {\n}\n```\nNoBackoff is a stub implementation, can be used for mocking or else as a default.\n\n```go\nfunc (n *NoBackoff) CalculateBackoff(actualUrl *url.URL) time.Duration\n```\n\n```go\nfunc (n *NoBackoff) Sleep(d time.Duration)\n```\n\n```go\nfunc (n *NoBackoff) UpdateBackoff(actualUrl *url.URL, err error, responseCode int)\n```\n\n```go\ntype RESTClient struct {\n\n\t// TODO extract this into a wrapper interface via the RESTClient interface in kubectl.\n\tThrottle flowcontrol.RateLimiter\n\n\t// Set specific behavior of the client.  If not set http.DefaultClient will be used.\n\tClient *http.Client\n\t// contains filtered or unexported fields\n}\n```\nRESTClient imposes common Kubernetes API conventions on a set of resource paths. The baseURL is expected to point to an HTTP or HTTPS path that is the parent of one or more resources.  The server should return a decodable API resource object, or an api.Status object which contains information about the reason for any failure.\n\nMost consumers should use client.New() to get a Kubernetes API client.\n\n```go\nfunc NewRESTClient(baseURL *url.URL, versionedAPIPath string, config ContentConfig, maxQPS float32, maxBurst int, rateLimiter flowcontrol.RateLimiter, client *http.Client) (*RESTClient, error)\n```\nNewRESTClient creates a new RESTClient. This client performs generic REST functions such as Get, Put, Post, and Delete on specified paths.  Codec controls encoding and decoding of responses from the server.\n\n```go\nfunc RESTClientFor(config *Config) (*RESTClient, error)\n```\nRESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config object. Note that a RESTClient may require fields that are optional when initializing a Client. A RESTClient created by this method is generic - it expects to operate on an API that follows the Kubernetes conventions, but may not be the Kubernetes API.\n\n```go\nfunc UnversionedRESTClientFor(config *Config) (*RESTClient, error)\n```\nUnversionedRESTClientFor is the same as RESTClientFor, except that it allows the config.Version to be empty.\n\n```go\nfunc (c *RESTClient) APIVersion() schema.GroupVersion\n```\nAPIVersion returns the APIVersion this RESTClient is expected to use.\n\n```go\nfunc (c *RESTClient) Delete() *Request\n```\nDelete begins a DELETE request. Short for c.Verb(\"DELETE\").\n\n```go\nfunc (c *RESTClient) Get() *Request\n```\nGet begins a GET request. Short for c.Verb(\"GET\").\n\n```go\nfunc (c *RESTClient) GetRateLimiter() flowcontrol.RateLimiter\n```\nGetRateLimiter returns rate limier for a given client, or nil if it's called on a nil client\n\n```go\nfunc (c *RESTClient) Patch(pt types.PatchType) *Request\n```\nPatch begins a PATCH request. Short for c.Verb(\"Patch\").\n\n```go\nfunc (c *RESTClient) Post() *Request\n```\nPost begins a POST request. Short for c.Verb(\"POST\").\n\n```go\nfunc (c *RESTClient) Put() *Request\n```\nPut begins a PUT request. Short for c.Verb(\"PUT\").\n\n```go\nfunc (c *RESTClient) Verb(verb string) *Request\n```\nVerb begins a request with a verb (GET, POST, PUT, DELETE).\n\nExample usage of RESTClient's request building interface: c, err := NewRESTClient(...) if err != nil { ... } resp, err := c.Verb(\"GET\").\n\n\tPath(\"pods\").\n\tSelectorParam(\"labels\", \"area=staging\").\n\tTimeout(10*time.Second).\n\tDo()\n\nif err != nil { ... } list, ok := resp.(\\*api.PodList)\n\n```go\ntype Request struct {\n\t// contains filtered or unexported fields\n}\n```\nRequest allows for building up a request to a server in a chained fashion. Any errors are stored until the end of your call, so you only have to check once.\n\n```go\nfunc NewRequest(client HTTPClient, verb string, baseURL *url.URL, versionedAPIPath string, content ContentConfig, serializers Serializers, backoff BackoffManager, throttle flowcontrol.RateLimiter, timeout time.Duration) *Request\n```\nNewRequest creates a new request helper object for accessing runtime.Objects on a server.\n\n```go\nfunc (r *Request) AbsPath(segments ...string) *Request\n```\nAbsPath overwrites an existing path with the segments provided. Trailing slashes are preserved when a single segment is passed.\n\n```go\nfunc (r *Request) BackOff(manager BackoffManager) *Request\n```\nBackOff sets the request's backoff manager to the one specified, or defaults to the stub implementation if nil is provided\n\n```go\nfunc (r *Request) Body(obj interface{}) *Request\n```\nBody makes the request use obj as the body. Optional. If obj is a string, try to read a file of that name. If obj is a \\[]byte, send it directly. If obj is an io.Reader, use it directly. If obj is a runtime.Object, marshal it correctly, and set Content-Type header. If obj is a runtime.Object and nil, do nothing. Otherwise, set an error.\n\n```go\nfunc (r *Request) Context(ctx context.Context) *Request\n```\nContext adds a context to the request. Contexts are only used for timeouts, deadlines, and cancellations.\n\n```go\nfunc (r *Request) Do() Result\n```\nDo formats and executes the request. Returns a Result object for easy response processing.\n\nError type:\n\n  - If the request can't be constructed, or an error happened earlier while building its arguments: \\*RequestConstructionError\n  - If the server responds with a status: \\*errors.StatusError or \\*errors.UnexpectedObjectError\n  - http.Client.Do errors are returned directly.\n\n```go\nfunc (r *Request) DoRaw() ([]byte, error)\n```\nDoRaw executes the request but does not process the response body.\n\n```go\nfunc (r *Request) Name(resourceName string) *Request\n```\nName sets the name of a resource to access (\\\u003cresource\u003e/\\[ns/\\\u003cnamespace\u003e/]\\\u003cname\u003e)\n\n```go\nfunc (r *Request) Namespace(namespace string) *Request\n```\nNamespace applies the namespace scope to a request (\\\u003cresource\u003e/\\[ns/\\\u003cnamespace\u003e/]\\\u003cname\u003e)\n\n```go\nfunc (r *Request) NamespaceIfScoped(namespace string, scoped bool) *Request\n```\nNamespaceIfScoped is a convenience function to set a namespace if scoped is true\n\n```go\nfunc (r *Request) Param(paramName, s string) *Request\n```\nParam creates a query parameter with the given string value.\n\n```go\nfunc (r *Request) Prefix(segments ...string) *Request\n```\nPrefix adds segments to the relative beginning to the request path. These items will be placed before the optional Namespace, Resource, or Name sections. Setting AbsPath will clear any previously set Prefix segments\n\n```go\nfunc (r *Request) RequestURI(uri string) *Request\n```\nRequestURI overwrites existing path and parameters with the value of the provided server relative URI.\n\n```go\nfunc (r *Request) Resource(resource string) *Request\n```\nResource sets the resource to access (\\\u003cresource\u003e/\\[ns/\\\u003cnamespace\u003e/]\\\u003cname\u003e)\n\n```go\nfunc (r *Request) SetHeader(key string, values ...string) *Request\n```\n\n```go\nfunc (r *Request) SpecificallyVersionedParams(obj runtime.Object, codec runtime.ParameterCodec, version schema.GroupVersion) *Request\n```\n\n```go\nfunc (r *Request) Stream() (io.ReadCloser, error)\n```\nStream formats and executes the request, and offers streaming of the response. Returns io.ReadCloser which could be used for streaming of the response, or an error Any non-2xx http status code causes an error.  If we get a non-2xx code, we try to convert the body into an APIStatus object. If we can, we return that as an error.  Otherwise, we create an error that lists the http status and the content of the response.\n\n```go\nfunc (r *Request) SubResource(subresources ...string) *Request\n```\nSubResource sets a sub-resource path which can be multiple segments after the resource name but before the suffix.\n\n```go\nfunc (r *Request) Suffix(segments ...string) *Request\n```\nSuffix appends segments to the end of the path. These items will be placed after the prefix and optional Namespace, Resource, or Name sections.\n\n```go\nfunc (r *Request) Throttle(limiter flowcontrol.RateLimiter) *Request\n```\nThrottle receives a rate-limiter and sets or replaces an existing request limiter\n\n```go\nfunc (r *Request) Timeout(d time.Duration) *Request\n```\nTimeout makes the request use the given duration as an overall timeout for the request. Additionally, if set passes the value as \"timeout\" parameter in URL.\n\n```go\nfunc (r *Request) URL() *url.URL\n```\nURL returns the current working URL.\n\n```go\nfunc (r *Request) VersionedParams(obj runtime.Object, codec runtime.ParameterCodec) *Request\n```\nVersionedParams will take the provided object, serialize it to a map\\[string]\\[]string using the implicit RESTClient API version and the default parameter codec, and then add those as parameters to the request. Use this to provide versioned query parameters from client libraries. VersionedParams will not write query parameters that have omitempty set and are empty. If a parameter has already been set it is appended to (Params and VersionedParams are additive).\n\n```go\nfunc (r *Request) Watch() (watch.Interface, error)\n```\nWatch attempts to begin watching the requested location. Returns a watch.Interface, or an error.\n\n```go\nfunc (r *Request) WatchWithSpecificDecoders(wrapperDecoderFn func(io.ReadCloser) streaming.Decoder, embeddedDecoder runtime.Decoder) (watch.Interface, error)\n```\nWatchWithSpecificDecoders attempts to begin watching the requested location with a \\*different\\* decoder. Turns out that you want one \"standard\" decoder for the watch event and one \"personal\" decoder for the content Returns a watch.Interface, or an error.\n\n```go\ntype RequestConstructionError struct {\n\tErr error\n}\n```\nRequestConstructionError is returned when there's an error assembling a request.\n\n```go\nfunc (r *RequestConstructionError) Error() string\n```\nError returns a textual description of 'r'.\n\n```go\ntype ResponseWrapper interface {\n\tDoRaw() ([]byte, error)\n\tStream() (io.ReadCloser, error)\n}\n```\nResponseWrapper is an interface for getting a response. The response may be either accessed as a raw data (the whole output is put into memory) or as a stream.\n\n```go\ntype Result struct {\n\t// contains filtered or unexported fields\n}\n```\nResult contains the result of calling Request.Do().\n\n```go\nfunc (r Result) Error() error\n```\nError returns the error executing the request, nil if no error occurred. If the returned object is of type Status and has Status != StatusSuccess, the additional information in Status will be used to enrich the error. See the Request.Do() comment for what errors you might get.\n\n```go\nfunc (r Result) Get() (runtime.Object, error)\n```\nGet returns the result as an object, which means it passes through the decoder. If the returned object is of type Status and has .Status != StatusSuccess, the additional information in Status will be used to enrich the error.\n\n```go\nfunc (r Result) Into(obj runtime.Object) error\n```\nInto stores the result into obj, if possible. If obj is nil it is ignored. If the returned object is of type Status and has .Status != StatusSuccess, the additional information in Status will be used to enrich the error.\n\n```go\nfunc (r Result) Raw() ([]byte, error)\n```\nRaw returns the raw result.\n\n```go\nfunc (r Result) StatusCode(statusCode *int) Result\n```\nStatusCode returns the HTTP status code of the request. (Only valid if no error was returned.)\n\n```go\nfunc (r Result) WasCreated(wasCreated *bool) Result\n```\nWasCreated updates the provided bool pointer to whether the server returned 201 created or a different response.\n\n```go\ntype Serializers struct {\n\tEncoder             runtime.Encoder\n\tDecoder             runtime.Decoder\n\tStreamingSerializer runtime.Serializer\n\tFramer              runtime.Framer\n\tRenegotiatedDecoder func(contentType string, params map[string]string) (runtime.Decoder, error)\n}\n```\n\n```go\ntype TLSClientConfig struct {\n\t// Server should be accessed without verifying the TLS certificate. For testing only.\n\tInsecure bool\n\t// ServerName is passed to the server for SNI and is used in the client to check server\n\t// ceritificates against. If ServerName is empty, the hostname used to contact the\n\t// server is used.\n\tServerName string\n\n\t// Server requires TLS client certificate authentication\n\tCertFile string\n\t// Server requires TLS client certificate authentication\n\tKeyFile string\n\t// Trusted root certificates for server\n\tCAFile string\n\n\t// CertData holds PEM-encoded bytes (typically read from a client certificate file).\n\t// CertData takes precedence over CertFile\n\tCertData []byte\n\t// KeyData holds PEM-encoded bytes (typically read from a client certificate key file).\n\t// KeyData takes precedence over KeyFile\n\tKeyData []byte\n\t// CAData holds PEM-encoded bytes (typically read from a root certificates bundle).\n\t// CAData takes precedence over CAFile\n\tCAData []byte\n}\n```\n\\+k8s:deepcopy-gen=true TLSClientConfig contains settings to enable transport layer security\n\n```go\nfunc (in *TLSClientConfig) DeepCopy() *TLSClientConfig\n```\nDeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSClientConfig.\n\n```go\nfunc (in *TLSClientConfig) DeepCopyInto(out *TLSClientConfig)\n```\nDeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.\n\n```go\nfunc (c TLSClientConfig) GoString() string\n```\nGoString implements fmt.GoStringer and sanitizes sensitive fields of TLSClientConfig to prevent accidental leaking via logs.\n\n```go\nfunc (c TLSClientConfig) String() string\n```\nString implements fmt.Stringer and sanitizes sensitive fields of TLSClientConfig to prevent accidental leaking via logs.\n\n```go\ntype URLBackoff struct {\n\t// Uses backoff as underlying implementation.\n\tBackoff *flowcontrol.Backoff\n}\n```\nURLBackoff struct implements the semantics on top of Backoff which we need for URL specific exponential backoff.\n\n```go\nfunc (b *URLBackoff) CalculateBackoff(actualUrl *url.URL) time.Duration\n```\nCalculateBackoff takes a url and back's off exponentially, based on its knowledge of existing failures.\n\n```go\nfunc (b *URLBackoff) Disable()\n```\nDisable makes the backoff trivial, i.e., sets it to zero.  This might be used by tests which want to run 1000s of mock requests without slowing down.\n\n```go\nfunc (b *URLBackoff) Sleep(d time.Duration)\n```\n\n```go\nfunc (b *URLBackoff) UpdateBackoff(actualUrl *url.URL, err error, responseCode int)\n```\nUpdateBackoff updates backoff metadata\n\n","path":"github.com/UnityTech/client-go/rest","name":"rest","synopsis":"","isRedistributable":true}
