Documentation ¶
Index ¶
- Variables
- type FileHelper
- type FileHelperType
- type FileSystem
- func (s *FileSystem) Create(name string) (afero.File, error)
- func (s *FileSystem) MkdirAll(path string, perm fs.FileMode) error
- func (s *FileSystem) NewWriter(w io.Writer) *zip.Writer
- func (s *FileSystem) Open(name string) (afero.File, error)
- func (s *FileSystem) ReadFile(filename string) ([]byte, error)
- func (s *FileSystem) UserHomeDir() (string, error)
- func (s *FileSystem) WriteFile(filename string, data []byte, perm fs.FileMode) error
- type FileSystemType
- type TokenHelper
- type TokenHelperType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UserWorkPath = ""
)
Functions ¶
This section is empty.
Types ¶
type FileHelper ¶
type FileHelper struct {
FileSystem FileSystemType
}
type FileHelperType ¶
type FileSystem ¶
type FileSystem struct { }
func (*FileSystem) UserHomeDir ¶
func (s *FileSystem) UserHomeDir() (string, error)
type FileSystemType ¶
type FileSystemType interface { Create(name string) (afero.File, error) MkdirAll(path string, perm fs.FileMode) error NewWriter(w io.Writer) *zip.Writer Open(name string) (afero.File, error) ReadFile(filename string) ([]byte, error) UserHomeDir() (string, error) WriteFile(filename string, data []byte, perm fs.FileMode) error }
type TokenHelper ¶
type TokenHelper struct {
FileHelper FileHelperType
}
func (*TokenHelper) GetOrganisation ¶
func (h *TokenHelper) GetOrganisation() (string, error)
func (*TokenHelper) GetToken ¶
func (h *TokenHelper) GetToken() (string, error)
func (*TokenHelper) SaveOrganisation ¶
func (h *TokenHelper) SaveOrganisation(organisationId string) error
func (*TokenHelper) SaveToken ¶
func (h *TokenHelper) SaveToken(token string) error
func (*TokenHelper) TokenExists ¶
func (h *TokenHelper) TokenExists() bool
Click to show internal directories.
Click to hide internal directories.