github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/bindings/images/types.go (about) 1 package images 2 3 import ( 4 buildahDefine "github.com/containers/buildah/define" 5 ) 6 7 //go:generate go run ../generator/generator.go RemoveOptions 8 // RemoveOptions are optional options for image removal 9 type RemoveOptions struct { 10 // All removes all images 11 All *bool 12 // Forces removes all containers based on the image 13 Force *bool 14 // Ignore if a specified image does not exist and do not throw an error. 15 Ignore *bool 16 } 17 18 //go:generate go run ../generator/generator.go DiffOptions 19 // DiffOptions are optional options image diffs 20 type DiffOptions struct { 21 // By the default diff will compare against the parent layer. Change the Parent if you want to compare against something else. 22 Parent *string 23 // Change the type the backend should match. This can be set to "all", "container" or "image". 24 DiffType *string 25 } 26 27 //go:generate go run ../generator/generator.go ListOptions 28 // ListOptions are optional options for listing images 29 type ListOptions struct { 30 // All lists all image in the image store including dangling images 31 All *bool 32 // filters that can be used to get a more specific list of images 33 Filters map[string][]string 34 } 35 36 //go:generate go run ../generator/generator.go GetOptions 37 // GetOptions are optional options for inspecting an image 38 type GetOptions struct { 39 // Size computes the amount of storage the image consumes 40 Size *bool 41 } 42 43 //go:generate go run ../generator/generator.go TreeOptions 44 // TreeOptions are optional options for a tree-based representation 45 // of the image 46 type TreeOptions struct { 47 // WhatRequires ... 48 WhatRequires *bool 49 } 50 51 //go:generate go run ../generator/generator.go HistoryOptions 52 // HistoryOptions are optional options image history 53 type HistoryOptions struct { 54 } 55 56 //go:generate go run ../generator/generator.go LoadOptions 57 // LoadOptions are optional options for loading an image 58 type LoadOptions struct { 59 // Reference is the name of the loaded image 60 Reference *string 61 } 62 63 //go:generate go run ../generator/generator.go ExportOptions 64 // ExportOptions are optional options for exporting images 65 type ExportOptions struct { 66 // Compress the image 67 Compress *bool 68 // Format of the output 69 Format *string 70 // Accept uncompressed layers when copying OCI images. 71 OciAcceptUncompressedLayers *bool 72 } 73 74 //go:generate go run ../generator/generator.go PruneOptions 75 // PruneOptions are optional options for pruning images 76 type PruneOptions struct { 77 // Prune all images 78 All *bool 79 // Prune images even when they're used by external containers 80 External *bool 81 // Filters to apply when pruning images 82 Filters map[string][]string 83 } 84 85 //go:generate go run ../generator/generator.go TagOptions 86 // TagOptions are optional options for tagging images 87 type TagOptions struct { 88 } 89 90 //go:generate go run ../generator/generator.go UntagOptions 91 // UntagOptions are optional options for untagging images 92 type UntagOptions struct { 93 } 94 95 //go:generate go run ../generator/generator.go ImportOptions 96 // ImportOptions are optional options for importing images 97 type ImportOptions struct { 98 // Changes to be applied to the image 99 Changes *[]string 100 // Message to be applied to the image 101 Message *string 102 // Reference is a tag to be applied to the image 103 Reference *string 104 // Url to option image to import. Cannot be used with the reader 105 URL *string 106 // OS for the imported image 107 OS *string 108 // Architecture for the imported image 109 Architecture *string 110 // Variant for the imported image 111 Variant *string 112 } 113 114 //go:generate go run ../generator/generator.go PushOptions 115 // PushOptions are optional options for importing images 116 type PushOptions struct { 117 // All indicates whether to push all images related to the image list 118 All *bool 119 // Authfile is the path to the authentication file. Ignored for remote 120 // calls. 121 Authfile *string 122 // Compress tarball image layers when pushing to a directory using the 'dir' transport. 123 Compress *bool 124 // Manifest type of the pushed image 125 Format *string 126 // Password for authenticating against the registry. 127 Password *string 128 // SkipTLSVerify to skip HTTPS and certificate verification. 129 SkipTLSVerify *bool 130 // Username for authenticating against the registry. 131 Username *string 132 } 133 134 //go:generate go run ../generator/generator.go SearchOptions 135 // SearchOptions are optional options for searching images on registries 136 type SearchOptions struct { 137 // Authfile is the path to the authentication file. Ignored for remote 138 // calls. 139 Authfile *string 140 // Filters for the search results. 141 Filters map[string][]string 142 // Limit the number of results. 143 Limit *int 144 // SkipTLSVerify to skip HTTPS and certificate verification. 145 SkipTLSVerify *bool 146 // ListTags search the available tags of the repository 147 ListTags *bool 148 } 149 150 //go:generate go run ../generator/generator.go PullOptions 151 // PullOptions are optional options for pulling images 152 type PullOptions struct { 153 // AllTags can be specified to pull all tags of an image. Note 154 // that this only works if the image does not include a tag. 155 AllTags *bool 156 // Arch will overwrite the local architecture for image pulls. 157 Arch *string 158 // Authfile is the path to the authentication file. Ignored for remote 159 // calls. 160 Authfile *string 161 // OS will overwrite the local operating system (OS) for image 162 // pulls. 163 OS *string 164 // Policy is the pull policy. Supported values are "missing", "never", 165 // "newer", "always". An empty string defaults to "always". 166 Policy *string 167 // Password for authenticating against the registry. 168 Password *string 169 // Quiet can be specified to suppress pull progress when pulling. Ignored 170 // for remote calls. 171 Quiet *bool 172 // SkipTLSVerify to skip HTTPS and certificate verification. 173 SkipTLSVerify *bool 174 // Username for authenticating against the registry. 175 Username *string 176 // Variant will overwrite the local variant for image pulls. 177 Variant *string 178 } 179 180 // BuildOptions are optional options for building images 181 type BuildOptions struct { 182 buildahDefine.BuildOptions 183 } 184 185 //go:generate go run ../generator/generator.go ExistsOptions 186 // ExistsOptions are optional options for checking if an image exists 187 type ExistsOptions struct { 188 }