// WithOutputPath returns the TaskState output data selector
341389
func (ss *SuccessState) WithOutputPath(outputPath string) TransitionState {
	ss.outputPath = outputPath
	return ss
}
709963
func (o *GetStatusURL) WithBasePath(bp string) *GetStatusURL {
	o.SetBasePath(bp)
	return o
}
1313143
func DeleteDatapath(ctx context.Context, ifName, direction string) error {
	args := []string{"filter", "delete", "dev", ifName, direction, "pref", "1", "handle", "1", "bpf"}
	cmd := exec.CommandContext(ctx, "tc", args...).WithFilters(libbpfFixupMsg)
	_, err := cmd.CombinedOutput(log, true)
	if err != nil {
		return fmt.Errorf("Failed to remove tc filter: %s", err)
	}

	return nil
}
632935
func (s *Output) SetOutputKey(v string) *Output {
	s.OutputKey = &v
	return s
}
225901
func (wu *WaitUntil) WithOutputPath(outputPath string) TransitionState {
	wu.outputPath = outputPath
	return wu
}
607326
func (f *PrintFlags) WithDefaultOutput(output string) *PrintFlags {
	f.OutputFormat = &output
	return f
}
636756
func (o *GetUserByNameURL) WithBasePath(bp string) *GetUserByNameURL {
	o.SetBasePath(bp)
	return o
}
778285
func (c *Container) NetNsPath() (string, error) {
	if c.state == nil {
		return "", fmt.Errorf("container state is not populated")
	}

	if c.netns == "" {
		return fmt.Sprintf("/proc/%d/ns/net", c.state.Pid), nil
	}

	return c.netns, nil
}
1219467
func (o *PostIPAMURL) WithBasePath(bp string) *PostIPAMURL {
	o.SetBasePath(bp)
	return o
}
696182
func (o *PutStatusProbeURL) WithBasePath(bp string) *PutStatusProbeURL {
	o.SetBasePath(bp)
	return o
}
428897
func (ps *PassState) WithInputPath(inputPath string) TransitionState {
	ps.inputPath = inputPath
	return ps
}
429633
func (s *GlobalConfiguration) SetOutputTimingSource(v string) *GlobalConfiguration {
	s.OutputTimingSource = &v
	return s
}
747373
func WithOutputStream(out io.Writer) DockerCliOption {
	return func(cli *DockerCli) error {
		cli.out = streams.NewOut(out)
		return nil
	}
}
943519
func (ss *SuccessState) WithInputPath(inputPath string) TransitionState {
	ss.inputPath = inputPath
	return ss
}
510105
func (s *SyncState) RemoveOutputValue(addr addrs.AbsOutputValue) {
	s.lock.Lock()
	defer s.lock.Unlock()

	ms := s.state.Module(addr.Module)
	if ms == nil {
		return
	}
	ms.RemoveOutputValue(addr.OutputValue.Name)
	s.maybePruneModule(addr.Module)
}
641757
func (r *RemoteCmd) cleanOutputLine(line string) string {
	// Trim surrounding whitespace
	line = strings.TrimRightFunc(line, unicode.IsSpace)

	// Trim up to the first carriage return, since that text would be
	// lost anyways.
	idx := strings.LastIndex(line, "\r")
	if idx > -1 {
		line = line[idx+1:]
	}

	return line
}
1244323
func ExecPath() (string, string, error) {
	path, err := getExecPath()
	if err != nil {
		return "", "", err
	}
	return filepath.Dir(path), filepath.Base(path), nil
}