Documentation ¶
Index ¶
- func AddSuffixBeforeExt(filePath, suffix string) string
- func CreateConfigDir() (string, error)
- func GetConfigDir() (string, error)
- func GetFileNameWithoutExt(filePath string) string
- func LoadFromYaml[T any](filename string) (*T, error)
- func SaveToYaml[T any](filename string, data *T) error
- type FilePath
- type Filesystem
- func (f *Filesystem) DeleteCollection(collection *domain.Collection) error
- func (f *Filesystem) DeleteEnvironment(env *domain.Environment) error
- func (f *Filesystem) DeleteRequest(request *domain.Request) error
- func (f *Filesystem) GetCollectionRequestNewFilePath(collection *domain.Collection, name string) (*FilePath, error)
- func (f *Filesystem) GetCollectionsDir() (string, error)
- func (f *Filesystem) GetEnvironment(filepath string) (*domain.Environment, error)
- func (f *Filesystem) GetEnvironmentDir() (string, error)
- func (f *Filesystem) GetNewCollectionDir(name string) (*FilePath, error)
- func (f *Filesystem) GetNewEnvironmentFilePath(name string) (*FilePath, error)
- func (f *Filesystem) GetNewRequestFilePath(name string) (*FilePath, error)
- func (f *Filesystem) GetRequest(filepath string) (*domain.Request, error)
- func (f *Filesystem) GetRequestsDir() (string, error)
- func (f *Filesystem) LoadCollections() ([]*domain.Collection, error)
- func (f *Filesystem) LoadEnvironments() ([]*domain.Environment, error)
- func (f *Filesystem) LoadRequests() ([]*domain.Request, error)
- func (f *Filesystem) ReadPreferencesData() (*domain.Preferences, error)
- func (f *Filesystem) UpdateCollection(collection *domain.Collection) error
- func (f *Filesystem) UpdateEnvironment(env *domain.Environment) error
- func (f *Filesystem) UpdatePreferences(pref *domain.Preferences) error
- func (f *Filesystem) UpdateRequest(request *domain.Request) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSuffixBeforeExt ¶
AddSuffixBeforeExt to add a suffix before the file extension
func CreateConfigDir ¶
func GetConfigDir ¶
func GetFileNameWithoutExt ¶
func LoadFromYaml ¶
func SaveToYaml ¶
Types ¶
type Filesystem ¶
type Filesystem struct { }
func (*Filesystem) DeleteCollection ¶
func (f *Filesystem) DeleteCollection(collection *domain.Collection) error
func (*Filesystem) DeleteEnvironment ¶
func (f *Filesystem) DeleteEnvironment(env *domain.Environment) error
func (*Filesystem) DeleteRequest ¶
func (f *Filesystem) DeleteRequest(request *domain.Request) error
func (*Filesystem) GetCollectionRequestNewFilePath ¶
func (f *Filesystem) GetCollectionRequestNewFilePath(collection *domain.Collection, name string) (*FilePath, error)
func (*Filesystem) GetCollectionsDir ¶
func (f *Filesystem) GetCollectionsDir() (string, error)
func (*Filesystem) GetEnvironment ¶
func (f *Filesystem) GetEnvironment(filepath string) (*domain.Environment, error)
func (*Filesystem) GetEnvironmentDir ¶
func (f *Filesystem) GetEnvironmentDir() (string, error)
func (*Filesystem) GetNewCollectionDir ¶
func (f *Filesystem) GetNewCollectionDir(name string) (*FilePath, error)
func (*Filesystem) GetNewEnvironmentFilePath ¶
func (f *Filesystem) GetNewEnvironmentFilePath(name string) (*FilePath, error)
func (*Filesystem) GetNewRequestFilePath ¶
func (f *Filesystem) GetNewRequestFilePath(name string) (*FilePath, error)
func (*Filesystem) GetRequest ¶
func (f *Filesystem) GetRequest(filepath string) (*domain.Request, error)
func (*Filesystem) GetRequestsDir ¶
func (f *Filesystem) GetRequestsDir() (string, error)
func (*Filesystem) LoadCollections ¶
func (f *Filesystem) LoadCollections() ([]*domain.Collection, error)
func (*Filesystem) LoadEnvironments ¶
func (f *Filesystem) LoadEnvironments() ([]*domain.Environment, error)
func (*Filesystem) LoadRequests ¶
func (f *Filesystem) LoadRequests() ([]*domain.Request, error)
func (*Filesystem) ReadPreferencesData ¶
func (f *Filesystem) ReadPreferencesData() (*domain.Preferences, error)
func (*Filesystem) UpdateCollection ¶
func (f *Filesystem) UpdateCollection(collection *domain.Collection) error
func (*Filesystem) UpdateEnvironment ¶
func (f *Filesystem) UpdateEnvironment(env *domain.Environment) error
func (*Filesystem) UpdatePreferences ¶
func (f *Filesystem) UpdatePreferences(pref *domain.Preferences) error
func (*Filesystem) UpdateRequest ¶
func (f *Filesystem) UpdateRequest(request *domain.Request) error
type Repository ¶
type Repository interface { LoadCollections() ([]*domain.Collection, error) GetCollectionsDir() (string, error) UpdateCollection(collection *domain.Collection) error DeleteCollection(collection *domain.Collection) error GetNewCollectionDir(name string) (*FilePath, error) GetCollectionRequestNewFilePath(collection *domain.Collection, name string) (*FilePath, error) LoadEnvironments() ([]*domain.Environment, error) GetEnvironment(filepath string) (*domain.Environment, error) GetEnvironmentDir() (string, error) UpdateEnvironment(env *domain.Environment) error DeleteEnvironment(env *domain.Environment) error GetNewEnvironmentFilePath(name string) (*FilePath, error) ReadPreferencesData() (*domain.Preferences, error) UpdatePreferences(pref *domain.Preferences) error LoadRequests() ([]*domain.Request, error) GetRequest(filepath string) (*domain.Request, error) GetRequestsDir() (string, error) UpdateRequest(request *domain.Request) error DeleteRequest(request *domain.Request) error GetNewRequestFilePath(name string) (*FilePath, error) }
Click to show internal directories.
Click to hide internal directories.