pub struct ImageStreamImport {
pub metadata: ObjectMeta,
pub spec: ImageStreamImportSpec,
pub status: ImageStreamImportStatus,
}
Expand description
The image stream import resource provides an easy way for a user to find and import container images from other container image registries into the server. Individual images or an entire image repository may be imported, and users may choose to see the results of the import prior to tagging the resulting images into the specified image stream.
This API is intended for end-user tools that need to see the metadata of the image prior to import (for instance, to generate an application from it). Clients that know the desired image can continue to create spec.tags directly into their image streams.
Fields§
§metadata: ObjectMeta
Standard object’s metadata.
spec: ImageStreamImportSpec
Spec is a description of the images that the user wishes to import
status: ImageStreamImportStatus
Status is the the result of importing the image
Implementations§
Source§impl ImageStreamImport
impl ImageStreamImport
Sourcepub fn create_namespaced_image_stream_import(
namespace: &str,
body: &ImageStreamImport,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_image_stream_import( namespace: &str, body: &ImageStreamImport, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create an ImageStreamImport
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for ImageStreamImport
impl Clone for ImageStreamImport
Source§fn clone(&self) -> ImageStreamImport
fn clone(&self) -> ImageStreamImport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ImageStreamImport
impl Debug for ImageStreamImport
Source§impl Default for ImageStreamImport
impl Default for ImageStreamImport
Source§fn default() -> ImageStreamImport
fn default() -> ImageStreamImport
Source§impl<'de> Deserialize<'de> for ImageStreamImport
impl<'de> Deserialize<'de> for ImageStreamImport
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Metadata for ImageStreamImport
impl Metadata for ImageStreamImport
Source§impl PartialEq for ImageStreamImport
impl PartialEq for ImageStreamImport
Source§impl Resource for ImageStreamImport
impl Resource for ImageStreamImport
Source§const API_VERSION: &'static str = "image.openshift.io/v1"
const API_VERSION: &'static str = "image.openshift.io/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more