/
types_log_options.go
123 lines (105 loc) · 2.42 KB
/
types_log_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
111
112
113
114
115
116
117
118
119
120
121
122
123
// Code generated by go generate; DO NOT EDIT.
package containers
import (
"net/url"
"github.com/containers/podman/v5/pkg/bindings/internal/util"
)
// Changed returns true if named field has been set
func (o *LogOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
// ToParams formats struct fields to be passed to API service
func (o *LogOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
// WithFollow set field Follow to given value
func (o *LogOptions) WithFollow(value bool) *LogOptions {
o.Follow = &value
return o
}
// GetFollow returns value of field Follow
func (o *LogOptions) GetFollow() bool {
if o.Follow == nil {
var z bool
return z
}
return *o.Follow
}
// WithSince set field Since to given value
func (o *LogOptions) WithSince(value string) *LogOptions {
o.Since = &value
return o
}
// GetSince returns value of field Since
func (o *LogOptions) GetSince() string {
if o.Since == nil {
var z string
return z
}
return *o.Since
}
// WithStderr set field Stderr to given value
func (o *LogOptions) WithStderr(value bool) *LogOptions {
o.Stderr = &value
return o
}
// GetStderr returns value of field Stderr
func (o *LogOptions) GetStderr() bool {
if o.Stderr == nil {
var z bool
return z
}
return *o.Stderr
}
// WithStdout set field Stdout to given value
func (o *LogOptions) WithStdout(value bool) *LogOptions {
o.Stdout = &value
return o
}
// GetStdout returns value of field Stdout
func (o *LogOptions) GetStdout() bool {
if o.Stdout == nil {
var z bool
return z
}
return *o.Stdout
}
// WithTail set field Tail to given value
func (o *LogOptions) WithTail(value string) *LogOptions {
o.Tail = &value
return o
}
// GetTail returns value of field Tail
func (o *LogOptions) GetTail() string {
if o.Tail == nil {
var z string
return z
}
return *o.Tail
}
// WithTimestamps set field Timestamps to given value
func (o *LogOptions) WithTimestamps(value bool) *LogOptions {
o.Timestamps = &value
return o
}
// GetTimestamps returns value of field Timestamps
func (o *LogOptions) GetTimestamps() bool {
if o.Timestamps == nil {
var z bool
return z
}
return *o.Timestamps
}
// WithUntil set field Until to given value
func (o *LogOptions) WithUntil(value string) *LogOptions {
o.Until = &value
return o
}
// GetUntil returns value of field Until
func (o *LogOptions) GetUntil() string {
if o.Until == nil {
var z string
return z
}
return *o.Until
}