Documentation
¶
Index ¶
- func IsRuntimeForProject(ctx context.Context, fs afero.Fs, dirPath string, sdkConfig hooks.SDKCLIConfig) bool
- type Python
- func (p *Python) HooksJSONTemplate() []byte
- func (p *Python) IgnoreDirectories() []string
- func (p *Python) InstallProjectDependencies(ctx context.Context, projectDirPath string, hookExecutor hooks.HookExecutor, ...) (output string, err error)
- func (p *Python) Name() string
- func (p *Python) PreparePackage(ctx context.Context, sdkConfig hooks.SDKCLIConfig, ...) error
- func (p *Python) SetVersion(version string)
- func (p *Python) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRuntimeForProject ¶
func IsRuntimeForProject(ctx context.Context, fs afero.Fs, dirPath string, sdkConfig hooks.SDKCLIConfig) bool
IsRuntimeForProject returns true if dirPath is a Python project
Types ¶
type Python ¶
type Python struct {
}
Python runtime type
func (*Python) HooksJSONTemplate ¶
HooksJSONTemplate returns the default hooks.json template
func (*Python) IgnoreDirectories ¶
IgnoreDirectories is a list of directories to ignore when packaging the runtime for deployment.
func (*Python) InstallProjectDependencies ¶
func (p *Python) InstallProjectDependencies(ctx context.Context, projectDirPath string, hookExecutor hooks.HookExecutor, ios iostreams.IOStreamer, fs afero.Fs, os types.Os) (output string, err error)
InstallProjectDependencies is unsupported by Python because a virtual environment is required before installing the project dependencies. TODO(@mbrooks) - should we confirm that the project is using Bolt Python?
func (*Python) PreparePackage ¶
func (p *Python) PreparePackage(ctx context.Context, sdkConfig hooks.SDKCLIConfig, hookExecutor hooks.HookExecutor, opts types.PreparePackageOpts) error
PreparePackage will prepare and copy the app in projectDirPath to tmpDirPath as a release-ready bundle.
func (*Python) SetVersion ¶
SetVersion sets the Version value
Click to show internal directories.
Click to hide internal directories.