github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/api/types/types_deprecated.go (about) 1 package types 2 3 import ( 4 "github.com/Prakhar-Agarwal-byte/moby/api/types/checkpoint" 5 "github.com/Prakhar-Agarwal-byte/moby/api/types/container" 6 "github.com/Prakhar-Agarwal-byte/moby/api/types/image" 7 "github.com/Prakhar-Agarwal-byte/moby/api/types/swarm" 8 "github.com/Prakhar-Agarwal-byte/moby/api/types/system" 9 ) 10 11 // CheckpointCreateOptions holds parameters to create a checkpoint from a container. 12 // 13 // Deprecated: use [checkpoint.CreateOptions]. 14 type CheckpointCreateOptions = checkpoint.CreateOptions 15 16 // CheckpointListOptions holds parameters to list checkpoints for a container 17 // 18 // Deprecated: use [checkpoint.ListOptions]. 19 type CheckpointListOptions = checkpoint.ListOptions 20 21 // CheckpointDeleteOptions holds parameters to delete a checkpoint from a container 22 // 23 // Deprecated: use [checkpoint.DeleteOptions]. 24 type CheckpointDeleteOptions = checkpoint.DeleteOptions 25 26 // Checkpoint represents the details of a checkpoint when listing endpoints. 27 // 28 // Deprecated: use [checkpoint.Summary]. 29 type Checkpoint = checkpoint.Summary 30 31 // Info contains response of Engine API: 32 // GET "/info" 33 // 34 // Deprecated: use [system.Info]. 35 type Info = system.Info 36 37 // Commit holds the Git-commit (SHA1) that a binary was built from, as reported 38 // in the version-string of external tools, such as containerd, or runC. 39 // 40 // Deprecated: use [system.Commit]. 41 type Commit = system.Commit 42 43 // PluginsInfo is a temp struct holding Plugins name 44 // registered with docker daemon. It is used by [system.Info] struct 45 // 46 // Deprecated: use [system.PluginsInfo]. 47 type PluginsInfo = system.PluginsInfo 48 49 // NetworkAddressPool is a temp struct used by [system.Info] struct. 50 // 51 // Deprecated: use [system.NetworkAddressPool]. 52 type NetworkAddressPool = system.NetworkAddressPool 53 54 // Runtime describes an OCI runtime. 55 // 56 // Deprecated: use [system.Runtime]. 57 type Runtime = system.Runtime 58 59 // SecurityOpt contains the name and options of a security option. 60 // 61 // Deprecated: use [system.SecurityOpt]. 62 type SecurityOpt = system.SecurityOpt 63 64 // KeyValue holds a key/value pair. 65 // 66 // Deprecated: use [system.KeyValue]. 67 type KeyValue = system.KeyValue 68 69 // ImageDeleteResponseItem image delete response item. 70 // 71 // Deprecated: use [image.DeleteResponse]. 72 type ImageDeleteResponseItem = image.DeleteResponse 73 74 // ImageSummary image summary. 75 // 76 // Deprecated: use [image.Summary]. 77 type ImageSummary = image.Summary 78 79 // ImageMetadata contains engine-local data about the image. 80 // 81 // Deprecated: use [image.Metadata]. 82 type ImageMetadata = image.Metadata 83 84 // ServiceCreateResponse contains the information returned to a client 85 // on the creation of a new service. 86 // 87 // Deprecated: use [swarm.ServiceCreateResponse]. 88 type ServiceCreateResponse = swarm.ServiceCreateResponse 89 90 // ServiceUpdateResponse service update response. 91 // 92 // Deprecated: use [swarm.ServiceUpdateResponse]. 93 type ServiceUpdateResponse = swarm.ServiceUpdateResponse 94 95 // ContainerStartOptions holds parameters to start containers. 96 // 97 // Deprecated: use [container.StartOptions]. 98 type ContainerStartOptions = container.StartOptions 99 100 // ResizeOptions holds parameters to resize a TTY. 101 // It can be used to resize container TTYs and 102 // exec process TTYs too. 103 // 104 // Deprecated: use [container.ResizeOptions]. 105 type ResizeOptions = container.ResizeOptions 106 107 // ContainerAttachOptions holds parameters to attach to a container. 108 // 109 // Deprecated: use [container.AttachOptions]. 110 type ContainerAttachOptions = container.AttachOptions 111 112 // ContainerCommitOptions holds parameters to commit changes into a container. 113 // 114 // Deprecated: use [container.CommitOptions]. 115 type ContainerCommitOptions = container.CommitOptions 116 117 // ContainerListOptions holds parameters to list containers with. 118 // 119 // Deprecated: use [container.ListOptions]. 120 type ContainerListOptions = container.ListOptions 121 122 // ContainerLogsOptions holds parameters to filter logs with. 123 // 124 // Deprecated: use [container.LogsOptions]. 125 type ContainerLogsOptions = container.LogsOptions 126 127 // ContainerRemoveOptions holds parameters to remove containers. 128 // 129 // Deprecated: use [container.RemoveOptions]. 130 type ContainerRemoveOptions = container.RemoveOptions 131 132 // DecodeSecurityOptions decodes a security options string slice to a type safe 133 // [system.SecurityOpt]. 134 // 135 // Deprecated: use [system.DecodeSecurityOptions]. 136 func DecodeSecurityOptions(opts []string) ([]system.SecurityOpt, error) { 137 return system.DecodeSecurityOptions(opts) 138 }