summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/types_export_options.go
blob: 77850734c41ae8fcd3b39a135a67049a377844a1 (plain)
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
// Code generated by go generate; DO NOT EDIT.
package images

import (
	"net/url"

	"github.com/containers/podman/v4/pkg/bindings/internal/util"
)

// Changed returns true if named field has been set
func (o *ExportOptions) Changed(fieldName string) bool {
	return util.Changed(o, fieldName)
}

// ToParams formats struct fields to be passed to API service
func (o *ExportOptions) ToParams() (url.Values, error) {
	return util.ToParams(o)
}

// WithCompress set field Compress to given value
func (o *ExportOptions) WithCompress(value bool) *ExportOptions {
	o.Compress = &value
	return o
}

// GetCompress returns value of field Compress
func (o *ExportOptions) GetCompress() bool {
	if o.Compress == nil {
		var z bool
		return z
	}
	return *o.Compress
}

// WithFormat set field Format to given value
func (o *ExportOptions) WithFormat(value string) *ExportOptions {
	o.Format = &value
	return o
}

// GetFormat returns value of field Format
func (o *ExportOptions) GetFormat() string {
	if o.Format == nil {
		var z string
		return z
	}
	return *o.Format
}

// WithOciAcceptUncompressedLayers set field OciAcceptUncompressedLayers to given value
func (o *ExportOptions) WithOciAcceptUncompressedLayers(value bool) *ExportOptions {
	o.OciAcceptUncompressedLayers = &value
	return o
}

// GetOciAcceptUncompressedLayers returns value of field OciAcceptUncompressedLayers
func (o *ExportOptions) GetOciAcceptUncompressedLayers() bool {
	if o.OciAcceptUncompressedLayers == nil {
		var z bool
		return z
	}
	return *o.OciAcceptUncompressedLayers
}