Documentation
¶
Overview ¶
Package remote acquires and caches remote Kustomize resources from HTTP files and Git repositories.
Index ¶
- func CachePath(cacheDir string, key string) string
- func DefaultCacheDir() (string, error)
- func IsPathInsideAny(targetPath string, roots []string) (bool, string, error)
- func NewCacheKey(request Request) (string, error)
- func NormalizeGitRepoCacheURL(raw string) (string, error)
- func NormalizeGitRepoURL(raw string) (string, error)
- func NormalizeURL(raw string) (string, error)
- func RedactCredentialError(message string, credentials Credentials, gitCredentials GitCredentials) string
- func RedactGitRepoURL(raw string) string
- func RedactURL(raw string) string
- func ResolveCacheDir(cacheDir string, forbiddenRoots []string) (string, error)
- type Acquirer
- type Credentials
- type DefaultAcquirer
- type GitCredentials
- type Options
- type Request
- type RequestKind
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCacheDir ¶
func IsPathInsideAny ¶
func NewCacheKey ¶
func NormalizeGitRepoURL ¶
func NormalizeURL ¶
func RedactCredentialError ¶
func RedactCredentialError(message string, credentials Credentials, gitCredentials GitCredentials) string
func RedactGitRepoURL ¶
Types ¶
type Credentials ¶
type DefaultAcquirer ¶
type GitCredentials ¶
type Options ¶
type Options struct {
CacheDir string
Offline bool
Refresh bool
ForbiddenRoots []string
Credentials Credentials
GitCredentials GitCredentials
}
type RequestKind ¶
type RequestKind string
const ( RequestHTTPFile RequestKind = "http-file" RequestGitRepo RequestKind = "git-repo" )
type Result ¶
type Result struct {
Path string
URL string
Revision string
FromCache bool
// Release releases any read lock or temporary resource associated with Path.
// Callers that receive a non-nil Release must call it exactly once after they
// finish copying from Path. Release implementations must be idempotent so
// defensive double-calls are harmless.
Release func()
}
Click to show internal directories.
Click to hide internal directories.