cli

package
v0.1.125 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasValidExtension added in v0.1.124

func HasValidExtension(path string, extensions []string) bool

HasValidExtension checks if the file has one of the specified extensions

func LoadService

func LoadService(ctx context.Context) error

func RecreateDirectory added in v0.1.125

func RecreateDirectory(request *utils.Directory, destPath string) error

func SerializeDirectory added in v0.1.125

func SerializeDirectory(rootPath string, extensions []string) (*utils.Directory, error)

SerializeDirectory walks through the given directory and creates a DirectoryRequest containing FileInfo for files with the specified extensions.

func Service

func Service() (*resources.Service, 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) Destroy

func (l *Dependencies) Destroy(ctx context.Context) error

func (*Dependencies) SetEnvironment

func (l *Dependencies) SetEnvironment(ctx context.Context) error

func (*Dependencies) Stop

func (l *Dependencies) Stop(ctx context.Context) error

func (*Dependencies) WaitForReady

func (l *Dependencies) WaitForReady(ctx context.Context, opt *Option) error

type Option

type Option struct {
	Debug       bool
	Timeout     time.Duration
	NamingScope string
}

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

Jump to

Keyboard shortcuts

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