cache

package
v0.0.0-...-cc682f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFromCache

func GetFromCache(c client.Client, url string, skipCertVerify bool) ([]byte, error)

Returns the requested resource, either from the cache, or from the remote server. The cache is not meant to be a "high performance" or "heavily concurrent" cache.

func GetHTTPClient

func GetHTTPClient(accessToken []byte, transport *http.Transport) (*http.Client, error)

Retrieves a HTTP client. If the input access token is specified, an oauth2 generated http client is returned. If the access token is not specified a default http client is returned. The default http client will contain the input transport if specified.

func GetStackDataUsingGit

func GetStackDataUsingGit(c client.Client, gitRelease kabanerov1alpha2.GitReleaseInfo, skipCertVerification bool, namespace string, reqLogger logr.Logger) ([]byte, error)

Retrieves a stack index file content using GitHub APIs

func GetTLSCConfig

func GetTLSCConfig(c client.Client, skipCertVerify bool, logger logr.Logger) (*tls.Config, error)

Populates a TLS config struct based specified input. Returns nil if the default TLS config should be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL