storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExists

func CacheExists() bool

func GetDevicesFromCache

func GetDevicesFromCache() ([]*client.DeviceEntry, error)

func GetHTTPLogWriter

func GetHTTPLogWriter() (io.Writer, error)

func GetToken

func GetToken() (string, error)

func Initialize

func Initialize() error

func ReadFile

func ReadFile(name StorageFile) ([]byte, error)

func WriteFile

func WriteFile(name StorageFile, b []byte) error

Types

type StorageFile

type StorageFile string
const DeviceCacheFile StorageFile = "devices"
const HTTPLogFile StorageFile = "http.log"
const LoginFile StorageFile = "login"

Jump to

Keyboard shortcuts

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