kahless

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Overview

Package kahless is a set of functions to copy files to https://xena.greedo.xeserv.us/files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(mode os.FileMode, fileName string, contents io.Reader, destinationPath string) error

Copy copies a local file reader to the remote destination path. This copies the enitre contents of contents into ram. Don't use this function if doing so is a bad idea. Only works on files less than 2 GB.

func CopyFile

func CopyFile(fileName string, contents io.Reader) (string, error)

CopyFile copies a file to Greedo's public files folder and returns its public-facing URL.

func Dial

func Dial() (*ssh.Client, error)

Dial opens a SSH client to greedo.

func WebURL

func WebURL(fragment string) string

WebURL constructs a public-facing URL for a given resource by fragment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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