Documentation ¶
Index ¶
- Variables
- type Option
- type PersistentWorkerInstance
- func (pwi *PersistentWorkerInstance) Attributes() []attribute.KeyValue
- func (pwi *PersistentWorkerInstance) Close(context.Context) error
- func (pwi *PersistentWorkerInstance) Run(ctx context.Context, config *runconfig.RunConfig) (err error)
- func (pwi *PersistentWorkerInstance) WorkingDirectory(projectDir string, dirtyMode bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPopulateFailed = errors.New("failed to populate working directory")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.53.0
type Option func(parallels *PersistentWorkerInstance)
func WithLogger ¶ added in v0.53.0
func WithLogger(logger logger.Lightweight) Option
type PersistentWorkerInstance ¶
type PersistentWorkerInstance struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) (*PersistentWorkerInstance, error)
func (*PersistentWorkerInstance) Attributes ¶ added in v0.114.2
func (pwi *PersistentWorkerInstance) Attributes() []attribute.KeyValue
func (*PersistentWorkerInstance) Close ¶ added in v0.45.0
func (pwi *PersistentWorkerInstance) Close(context.Context) error
func (*PersistentWorkerInstance) WorkingDirectory ¶
func (pwi *PersistentWorkerInstance) WorkingDirectory(projectDir string, dirtyMode bool) string
Click to show internal directories.
Click to hide internal directories.