Documentation ¶
Index ¶
Constants ¶
View Source
const ( FilePrefix = "file" NoPrefix = "" )
View Source
const ( HttpsPrefix = "https" HttpPrefix = "http" )
View Source
const ( InputKindFile = "file" InputKindDir = "dir" )
View Source
const ( SshPrefix = "ssh" DefaultPort = "22" DefaultPubFile = "id_ed25519" )
View Source
const (
GitHttpsPrefix = "git_https"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type InputValue ¶
func ReadDir ¶
func ReadDir(dir string) (InputValue, error)
ReadDir Reader protocol that reads content of provided directory.
func ReadFile ¶
func ReadFile(filePath string) (InputValue, error)
ReadFile Reader protocol that reads content from a file no matter the extension.
func ReadGitHttps ¶ added in v0.2.1
func ReadGitHttps(gitPath string) (InputValue, error)
func ReadHttps ¶
func ReadHttps(httpPath string) (InputValue, error)
ReadHttps Reader protocol that reads content of provided https url. It acts similarly to ReadFile since input is response body from url that is provided.
func ReadSsh ¶ added in v0.2.1
func ReadSsh(sshPath string) (InputValue, error)
ReadSsh Reader protocol that allows user to read content via ssh.
Click to show internal directories.
Click to hide internal directories.