inertia: github.com/ubclaunchpad/inertia/client/internal Index | Files

package internal

import "github.com/ubclaunchpad/inertia/client/internal"

Package internal provides compiled scripts and other internal assets

Index

Package Files

compiled.go doc.go

Variables

var (
    // CTX is a context for webdav vfs
    CTX = context.Background()

    // FS is a virtual memory file system
    FS  = webdav.NewMemFS()

    // Handler is used to server files through a http handler
    Handler *webdav.Handler

    // HTTP is the http file system
    HTTP http.FileSystem = new(HTTPFS)
)
var FileScriptsDaemonDownSh = []byte("" /* 1186 byte string literal not displayed */)

FileScriptsDaemonDownSh is "scripts/daemon-down.sh"

var FileScriptsDaemonUpSh = []byte("" /* 7934 byte string literal not displayed */)

FileScriptsDaemonUpSh is "scripts/daemon-up.sh"

var FileScriptsDockerSh = []byte("" /* 7478 byte string literal not displayed */)

FileScriptsDockerSh is "scripts/docker.sh"

var FileScriptsInertiaDownSh = []byte("" /* 542 byte string literal not displayed */)

FileScriptsInertiaDownSh is "scripts/inertia-down.sh"

var FileScriptsKeygenSh = []byte("" /* 3078 byte string literal not displayed */)

FileScriptsKeygenSh is "scripts/keygen.sh"

var FileScriptsTokenSh = []byte("" /* 1206 byte string literal not displayed */)

FileScriptsTokenSh is "scripts/token.sh"

func ReadFile Uses

func ReadFile(path string) ([]byte, error)

ReadFile is adapTed from ioutil

func WalkDirs Uses

func WalkDirs(name string, includeDirsInList bool, files ...string) ([]string, error)

WalkDirs looks for files in the given dir and returns a list of files in it usage for all files in the b0x: WalkDirs("", false)

func WriteFile Uses

func WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile is adapTed from ioutil

type HTTPFS Uses

type HTTPFS struct {
    // Prefix allows to limit the path of all requests. F.e. a prefix "css" would allow only calls to /css/*
    Prefix string
}

HTTPFS implements http.FileSystem

func (*HTTPFS) Open Uses

func (hfs *HTTPFS) Open(path string) (http.File, error)

Open a file

Package internal imports 7 packages (graph) and is imported by 2 packages. Updated 2020-10-27. Refresh now. Tools for package owners.