Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// ResolveRelativeLink resolves a relative link from a given source
ResolveRelativeLink(source string, relativeLink string) (string, error)
// LoadRepository loads the repository content from a given resource url
LoadRepository(ctx context.Context, resourceURL string) error
// Tree returns files that are present in the given url tree
Tree(resourceURL string) ([]string, error)
// Read a resource content at uri into a byte array
Read(ctx context.Context, resourceURL string) ([]byte, error)
// ReadGitInfo reads the git info for a given resource URL
ReadGitInfo(ctx context.Context, resourceURL string) ([]byte, error)
// Client returns an HTTP client for accessing the given url
Client(url string) httpclient.Client
// ResourceURL returns a valid resource url object from a string url
ResourceURL(resourceURL string) (*repositoryhost.URL, error)
// LogRateLimits logs rate limit and remaining API calls for all resource handler backends
LogRateLimits(ctx context.Context)
}
Interface can register and return resource repoHosts for an url
func NewRegistry ¶
func NewRegistry(resourcerepoHosts ...repositoryhost.Interface) Interface
NewRegistry creates Registry object, optionally loading it with resourcerepoHosts if provided
Directories
¶
| Path | Synopsis |
|---|---|
|
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
|
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors |
|
repositoryhostfakes
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
|
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors |
Click to show internal directories.
Click to hide internal directories.