kbfs

package
v0.0.0-...-1b8ee3a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	KeybaseBinaryPath string
}

func (*Operation) Delete

func (ko *Operation) Delete(filename string) error

Delete the specified KBFS file

func (*Operation) FileExists

func (ko *Operation) FileExists(filename string) (bool, error)

Returns whether the given KBFS file exists

func (*Operation) List

func (ko *Operation) List(path string) ([]string, error)

List KBFS files in the given KBFS path

func (*Operation) Read

func (ko *Operation) Read(filename string) ([]byte, error)

Reads the specified KBFS file into a byte array

func (*Operation) Write

func (ko *Operation) Write(filename string, contents string, appendToFile bool) error

Write contents to the specified KBFS file. If appendToFile, appends onto the end of the file. Otherwise, overwrites and truncates the file.

Jump to

Keyboard shortcuts

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