// WithLogPath sets the log path for a container
332518
func WithLogPath(path string) func(context.Context, *containerd.Client, *containers.Container) error {
	return func(_ context.Context, _ *containerd.Client, c *containers.Container) error {
		ensureLabels(c)
		c.Labels[LogPathLabel] = path
		return nil
	}
}
851353
func (o *CreateURL) WithBasePath(bp string) *CreateURL {
	o.SetBasePath(bp)
	return o
}
169528
func (o *UpdateTaskURL) WithBasePath(bp string) *UpdateTaskURL {
	o.SetBasePath(bp)
	return o
}
268739
func WithPath(path string) OptionFunc {
	return func(c *CommitLog) error {
		if path == "" {
			return ErrEmptyPath
		}
		c.path = path
		return nil
	}
}
1300202
func (o *DeletePolicyURL) WithBasePath(bp string) *DeletePolicyURL {
	o.SetBasePath(bp)
	return o
}
432792
func (o *CreateTaskURL) WithBasePath(bp string) *CreateTaskURL {
	o.SetBasePath(bp)
	return o
}
710308
func (o *OrderGetURL) WithBasePath(bp string) *OrderGetURL {
	o.SetBasePath(bp)
	return o
}
703930
func (o *PetListURL) WithBasePath(bp string) *PetListURL {
	o.SetBasePath(bp)
	return o
}
1113780
func (o *GetFqdnCacheIDURL) WithBasePath(bp string) *GetFqdnCacheIDURL {
	o.SetBasePath(bp)
	return o
}
1184444
func (o *FindPetsByStatusURL) WithBasePath(bp string) *FindPetsByStatusURL {
	o.SetBasePath(bp)
	return o
}
1325714
func (o *AddCommentToTaskURL) WithBasePath(bp string) *AddCommentToTaskURL {
	o.SetBasePath(bp)
	return o
}
52132
func (o *LoginUserURL) WithBasePath(bp string) *LoginUserURL {
	o.SetBasePath(bp)
	return o
}
483642
func (o *AddOrderURL) WithBasePath(bp string) *AddOrderURL {
	o.SetBasePath(bp)
	return o
}
1274623
func (o *GetDebuginfoURL) WithBasePath(bp string) *GetDebuginfoURL {
	o.SetBasePath(bp)
	return o
}
871275
func (o *PatchPrefilterURL) WithBasePath(bp string) *PatchPrefilterURL {
	o.SetBasePath(bp)
	return o
}
709963
func (o *GetStatusURL) WithBasePath(bp string) *GetStatusURL {
	o.SetBasePath(bp)
	return o
}
1043527
func logPath(dir, id, stream string) string {
	return filepath.Join(dir, fmt.Sprintf("%s-%s.log", id, stream))
}