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.

            Source Files