Documentation
¶
Index ¶
- func CreateDirectoryRequest(rootPath string, extensions []string) (*utils.DirectoryRequest, error)
- func HasValidExtension(path string, extensions []string) bool
- func LoadService(ctx context.Context) error
- func RecreateDirectoryFromRequest(request *utils.DirectoryRequest, destPath string) error
- func Service() (*resources.Service, error)
- type Dependencies
- type Option
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectoryRequest ¶ added in v0.1.124
func CreateDirectoryRequest(rootPath string, extensions []string) (*utils.DirectoryRequest, error)
CreateDirectoryRequest walks through the given directory and creates a DirectoryRequest containing FileInfo for files with the specified extensions.
func HasValidExtension ¶ added in v0.1.124
HasValidExtension checks if the file has one of the specified extensions
func LoadService ¶
func RecreateDirectoryFromRequest ¶ added in v0.1.124
func RecreateDirectoryFromRequest(request *utils.DirectoryRequest, destPath string) error
Types ¶
type Dependencies ¶
type Dependencies struct {
// contains filtered or unexported fields
}
func WithDependencies ¶
func WithDependencies(ctx context.Context, opts ...OptionFunc) (*Dependencies, error)
func (*Dependencies) SetEnvironment ¶
func (l *Dependencies) SetEnvironment(ctx context.Context) error
func (*Dependencies) WaitForReady ¶
func (l *Dependencies) WaitForReady(ctx context.Context, opt *Option) error
type OptionFunc ¶ added in v0.1.114
type OptionFunc func(*Option)
func WithDebug ¶ added in v0.1.114
func WithDebug() OptionFunc
func WithNamingScope ¶ added in v0.1.123
func WithNamingScope(scope string) OptionFunc
func WithTimeout ¶ added in v0.1.114
func WithTimeout(timeout time.Duration) OptionFunc
Click to show internal directories.
Click to hide internal directories.