Documentation ¶
Index ¶
- func PlaceFiles(files map[string]string) error
- type ContentFetcher
- type Fetcher
- func (f Fetcher) Fetch(content *testkube.TestContent) (path string, err error)
- func (f Fetcher) FetchGitDir(repo *testkube.Repository) (path string, err error)
- func (f Fetcher) FetchGitFile(repo *testkube.Repository) (path string, err error)
- func (f Fetcher) FetchString(str string) (path string, err error)
- func (f Fetcher) FetchURI(uri string) (path string, err error)
- type GitDirFetcher
- type GitFileFetcher
- type StringFetcher
- type URIFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlaceFiles ¶ added in v1.5.34
Types ¶
type ContentFetcher ¶
type ContentFetcher interface { StringFetcher URIFetcher GitDirFetcher GitFileFetcher Fetch(content *testkube.TestContent) (path string, err error) }
ContentFetcher is interface container for all possible fetchers
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
NewFetcher returns new file/dir fetcher based on given directory path
func (Fetcher) Fetch ¶
func (f Fetcher) Fetch(content *testkube.TestContent) (path string, err error)
func (Fetcher) FetchGitDir ¶
func (f Fetcher) FetchGitDir(repo *testkube.Repository) (path string, err error)
FetchGitDir returns path to locally checked out git repo with partial path
func (Fetcher) FetchGitFile ¶
func (f Fetcher) FetchGitFile(repo *testkube.Repository) (path string, err error)
FetchGitFile returns path to git based file saved in local temp directory
func (Fetcher) FetchString ¶
FetchString stores string content as file
type GitDirFetcher ¶
type GitDirFetcher interface {
FetchGitDir(repo *testkube.Repository) (path string, err error)
}
GitDirFetcher interface for fetching GitDir based content to local directory
type GitFileFetcher ¶
type GitFileFetcher interface {
FetchGitFile(repo *testkube.Repository) (path string, err error)
}
GitFileFetcher interface for fetching GitDir based content to local file
type StringFetcher ¶
StringFetcher interface for fetching string based content to file
type URIFetcher ¶
URIFetcher interface for fetching URI based content to file
Click to show internal directories.
Click to hide internal directories.