pub struct ImageStreamTag {
pub conditions: Option<Vec<TagEventCondition>>,
pub generation: i64,
pub image: Image,
pub lookup_policy: ImageLookupPolicy,
pub metadata: ObjectMeta,
pub tag: TagReference,
}
Expand description
ImageStreamTag represents an Image that is retrieved by tag name from an ImageStream.
Fields§
§conditions: Option<Vec<TagEventCondition>>
conditions is an array of conditions that apply to the image stream tag.
generation: i64
generation is the current generation of the tagged image - if tag is provided and this value is not equal to the tag generation, a user has requested an import that has not completed, or conditions will be filled out indicating any error.
image: Image
image associated with the ImageStream and tag.
lookup_policy: ImageLookupPolicy
lookupPolicy indicates whether this tag will handle image references in this namespace.
metadata: ObjectMeta
Standard object’s metadata.
tag: TagReference
tag is the spec tag associated with this image stream tag, and it may be null if only pushes have occurred to this image stream.
Implementations§
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn create_namespaced_image_stream_tag(
namespace: &str,
body: &ImageStreamTag,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_image_stream_tag( namespace: &str, body: &ImageStreamTag, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create an ImageStreamTag
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.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn delete_namespaced_image_stream_tag(
name: &str,
namespace: &str,
optional: DeleteOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
pub fn delete_namespaced_image_stream_tag( name: &str, namespace: &str, optional: DeleteOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
delete an ImageStreamTag
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::DeleteResponse
<Self>>
constructor, or k8s_openapi::DeleteResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the ImageStreamTag
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn list_image_stream_tag_for_all_namespaces(
optional: ListOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
pub fn list_image_stream_tag_for_all_namespaces( optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
list objects of kind ImageStreamTag
This operation only supports listing all items of this type.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ListResponse
<Self>>
constructor, or k8s_openapi::ListResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn list_namespaced_image_stream_tag(
namespace: &str,
optional: ListOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
pub fn list_namespaced_image_stream_tag( namespace: &str, optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Self>>), RequestError>
list objects of kind ImageStreamTag
This operation only supports listing all items of this type.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ListResponse
<Self>>
constructor, or k8s_openapi::ListResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn patch_namespaced_image_stream_tag(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
pub fn patch_namespaced_image_stream_tag( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Self>>), RequestError>
partially update the specified ImageStreamTag
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::PatchResponse
<Self>>
constructor, or k8s_openapi::PatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the ImageStreamTag
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn read_namespaced_image_stream_tag(
name: &str,
namespace: &str,
optional: ReadNamespacedImageStreamTagOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedImageStreamTagResponse>), RequestError>
pub fn read_namespaced_image_stream_tag( name: &str, namespace: &str, optional: ReadNamespacedImageStreamTagOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedImageStreamTagResponse>), RequestError>
read the specified ImageStreamTag
Use the returned k8s_openapi::ResponseBody
<
ReadNamespacedImageStreamTagResponse
>
constructor, or ReadNamespacedImageStreamTagResponse
directly, to parse the HTTP response.
§Arguments
-
name
name of the ImageStreamTag
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn replace_namespaced_image_stream_tag(
name: &str,
namespace: &str,
body: &ImageStreamTag,
optional: ReplaceOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
pub fn replace_namespaced_image_stream_tag( name: &str, namespace: &str, body: &ImageStreamTag, optional: ReplaceOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Self>>), RequestError>
replace the specified ImageStreamTag
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ReplaceResponse
<Self>>
constructor, or k8s_openapi::ReplaceResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the ImageStreamTag
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn watch_image_stream_tag_for_all_namespaces(
optional: WatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
pub fn watch_image_stream_tag_for_all_namespaces( optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
list objects of kind ImageStreamTag
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::WatchResponse
<Self>>
constructor, or k8s_openapi::WatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl ImageStreamTag
impl ImageStreamTag
Sourcepub fn watch_namespaced_image_stream_tag(
namespace: &str,
optional: WatchOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
pub fn watch_namespaced_image_stream_tag( namespace: &str, optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Self>>), RequestError>
list objects of kind ImageStreamTag
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::WatchResponse
<Self>>
constructor, or k8s_openapi::WatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for ImageStreamTag
impl Clone for ImageStreamTag
Source§fn clone(&self) -> ImageStreamTag
fn clone(&self) -> ImageStreamTag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ImageStreamTag
impl Debug for ImageStreamTag
Source§impl Default for ImageStreamTag
impl Default for ImageStreamTag
Source§fn default() -> ImageStreamTag
fn default() -> ImageStreamTag
Source§impl<'de> Deserialize<'de> for ImageStreamTag
impl<'de> Deserialize<'de> for ImageStreamTag
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 ListableResource for ImageStreamTag
impl ListableResource for ImageStreamTag
Source§impl Metadata for ImageStreamTag
impl Metadata for ImageStreamTag
Source§impl PartialEq for ImageStreamTag
impl PartialEq for ImageStreamTag
Source§impl Resource for ImageStreamTag
impl Resource for ImageStreamTag
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