content

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 9 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentFetcher

type ContentFetcher interface {
	StringFetcher
	URIFetcher
	GitDirFetcher
	GitFileFetcher

	Fetch(content *testkube.ScriptContent) (path string, err error)
}

type Fetcher

type Fetcher struct {
}

func NewFetcher

func NewFetcher() Fetcher

func (Fetcher) Fetch

func (f Fetcher) Fetch(content *testkube.ScriptContent) (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

func (f Fetcher) FetchString(str string) (path string, err error)

FetchString stores string content as file

func (Fetcher) FetchURI

func (f Fetcher) FetchURI(uri string) (path string, err error)

FetchURI stores uri as local file

type GitDirFetcher

type GitDirFetcher interface {
	FetchGitDir(repo *testkube.Repository) (path string, err error)
}

type GitFileFetcher

type GitFileFetcher interface {
	FetchGitFile(repo *testkube.Repository) (path string, err error)
}

type StringFetcher

type StringFetcher interface {
	FetchString(str string) (path string, err error)
}

type URIFetcher

type URIFetcher interface {
	FetchURI(uri string) (path string, err error)
}

Jump to

Keyboard shortcuts

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