-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
types_execstartandattach_options.go
110 lines (94 loc) · 2.76 KB
/
types_execstartandattach_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// Code generated by go generate; DO NOT EDIT.
package containers
import (
"bufio"
"io"
"net/url"
"github.com/containers/podman/v5/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *ExecStartAndAttachOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *ExecStartAndAttachOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithOutputStream set field OutputStream to given value
func (o *ExecStartAndAttachOptions) WithOutputStream(value io.Writer) *ExecStartAndAttachOptions {
o.OutputStream = &value
return o
}
// GetOutputStream returns value of field OutputStream
func (o *ExecStartAndAttachOptions) GetOutputStream() io.Writer {
if o.OutputStream == nil {
var z io.Writer
return z
}
return *o.OutputStream
}
// WithErrorStream set field ErrorStream to given value
func (o *ExecStartAndAttachOptions) WithErrorStream(value io.Writer) *ExecStartAndAttachOptions {
o.ErrorStream = &value
return o
}
// GetErrorStream returns value of field ErrorStream
func (o *ExecStartAndAttachOptions) GetErrorStream() io.Writer {
if o.ErrorStream == nil {
var z io.Writer
return z
}
return *o.ErrorStream
}
// WithInputStream set field InputStream to given value
func (o *ExecStartAndAttachOptions) WithInputStream(value bufio.Reader) *ExecStartAndAttachOptions {
o.InputStream = &value
return o
}
// GetInputStream returns value of field InputStream
func (o *ExecStartAndAttachOptions) GetInputStream() bufio.Reader {
if o.InputStream == nil {
var z bufio.Reader
return z
}
return *o.InputStream
}
// WithAttachOutput set field AttachOutput to given value
func (o *ExecStartAndAttachOptions) WithAttachOutput(value bool) *ExecStartAndAttachOptions {
o.AttachOutput = &value
return o
}
// GetAttachOutput returns value of field AttachOutput
func (o *ExecStartAndAttachOptions) GetAttachOutput() bool {
if o.AttachOutput == nil {
var z bool
return z
}
return *o.AttachOutput
}
// WithAttachError set field AttachError to given value
func (o *ExecStartAndAttachOptions) WithAttachError(value bool) *ExecStartAndAttachOptions {
o.AttachError = &value
return o
}
// GetAttachError returns value of field AttachError
func (o *ExecStartAndAttachOptions) GetAttachError() bool {
if o.AttachError == nil {
var z bool
return z
}
return *o.AttachError
}
// WithAttachInput set field AttachInput to given value
func (o *ExecStartAndAttachOptions) WithAttachInput(value bool) *ExecStartAndAttachOptions {
o.AttachInput = &value
return o
}
// GetAttachInput returns value of field AttachInput
func (o *ExecStartAndAttachOptions) GetAttachInput() bool {
if o.AttachInput == nil {
var z bool
return z
}
return *o.AttachInput
}