Documentation
¶
Index ¶
- func TimeRemaining(t time.Time) string
- type Config
- func (c Config) ChangePassword(f File, passphrase *validate.Passphrase)
- func (c Config) Load() (File, *validate.Passphrase, error)
- func (c Config) Login(f File, passphrase *validate.Passphrase)
- func (c Config) LoginTest(f File, passphrase *validate.Passphrase)
- func (c Config) Logout(f File, prefixList []string, passphrase *validate.Passphrase)
- func (c Config) Push(f File, prefixList []string, from string, to string, src tool.IStorage, ...)
- func (c Config) SendSMS(f File, passphrase *validate.Passphrase)
- func (c Config) SetStorageAWS(f File)
- func (c Config) SetStorageFilesystem(f File)
- func (c Config) View(f File, passphrase *validate.Passphrase)
- type File
- type Filesystem
- type Login
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Prefix string // contains filtered or unexported fields }
Config .
func (Config) ChangePassword ¶
func (c Config) ChangePassword(f File, passphrase *validate.Passphrase)
ChangePassword will change the config password.
func (Config) Load ¶
func (c Config) Load() (File, *validate.Passphrase, error)
Load the app configuration file.
func (Config) LoginTest ¶
func (c Config) LoginTest(f File, passphrase *validate.Passphrase)
LoginTest .
func (Config) Logout ¶
func (c Config) Logout(f File, prefixList []string, passphrase *validate.Passphrase)
Logout .
func (Config) Push ¶
func (c Config) Push(f File, prefixList []string, from string, to string, src tool.IStorage, dst tool.IStorage, passphrase *validate.Passphrase)
Push .
func (Config) SendSMS ¶
func (c Config) SendSMS(f File, passphrase *validate.Passphrase)
SendSMS will send a text message via AWS SNS.
func (Config) SetStorageAWS ¶
SetStorageAWS will set the AWS storage.
func (Config) SetStorageFilesystem ¶
SetStorageFilesystem will set the storage to the filesystem.
type File ¶
type File struct { ID string `json:"id"` Login Login `json:"login"` Storage Storage `json:"storage"` }
File is the demostack config file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.