github.com/containers/podman/v4@v4.9.4/pkg/bindings/system/types_events_options.go (about) 1 // Code generated by go generate; DO NOT EDIT. 2 package system 3 4 import ( 5 "net/url" 6 7 "github.com/containers/podman/v4/pkg/bindings/internal/util" 8 ) 9 10 // Changed returns true if named field has been set 11 func (o *EventsOptions) Changed(fieldName string) bool { 12 return util.Changed(o, fieldName) 13 } 14 15 // ToParams formats struct fields to be passed to API service 16 func (o *EventsOptions) ToParams() (url.Values, error) { 17 return util.ToParams(o) 18 } 19 20 // WithFilters set field Filters to given value 21 func (o *EventsOptions) WithFilters(value map[string][]string) *EventsOptions { 22 o.Filters = value 23 return o 24 } 25 26 // GetFilters returns value of field Filters 27 func (o *EventsOptions) GetFilters() map[string][]string { 28 if o.Filters == nil { 29 var z map[string][]string 30 return z 31 } 32 return o.Filters 33 } 34 35 // WithSince set field Since to given value 36 func (o *EventsOptions) WithSince(value string) *EventsOptions { 37 o.Since = &value 38 return o 39 } 40 41 // GetSince returns value of field Since 42 func (o *EventsOptions) GetSince() string { 43 if o.Since == nil { 44 var z string 45 return z 46 } 47 return *o.Since 48 } 49 50 // WithStream set field Stream to given value 51 func (o *EventsOptions) WithStream(value bool) *EventsOptions { 52 o.Stream = &value 53 return o 54 } 55 56 // GetStream returns value of field Stream 57 func (o *EventsOptions) GetStream() bool { 58 if o.Stream == nil { 59 var z bool 60 return z 61 } 62 return *o.Stream 63 } 64 65 // WithUntil set field Until to given value 66 func (o *EventsOptions) WithUntil(value string) *EventsOptions { 67 o.Until = &value 68 return o 69 } 70 71 // GetUntil returns value of field Until 72 func (o *EventsOptions) GetUntil() string { 73 if o.Until == nil { 74 var z string 75 return z 76 } 77 return *o.Until 78 }