[−][src]Struct openshift_openapi::api::image::v1::ImageSignature
ImageSignature holds a signature of an image. It allows to verify image identity and possibly other claims as long as the signature is trusted. Based on this information it is possible to restrict runnable images to those matching cluster-wide policy. Mandatory fields should be parsed by clients doing image verification. The others are parsed from signature's content by the server. They serve just an informative purpose.
Fields
conditions: Option<Vec<SignatureCondition>>
Conditions represent the latest available observations of a signature's current state.
content: ByteString
Required: An opaque binary string which is an image's signature.
created: Option<Time>
If specified, it is the time of signature's creation.
image_identity: Option<String>
A human readable string representing image's identity. It could be a product name and version, or an image pull spec (e.g. "registry.access.redhat.com/rhel7/rhel:7.2").
issued_by: Option<SignatureIssuer>
If specified, it holds information about an issuer of signing certificate or key (a person or entity who signed the signing certificate or key).
issued_to: Option<SignatureSubject>
If specified, it holds information about a subject of signing certificate or key (a person or entity who signed the image).
metadata: Option<ObjectMeta>
Standard object's metadata.
signed_claims: Option<BTreeMap<String, String>>
Contains claims from the signature.
type_: String
Required: Describes a type of stored blob.
Implementations
impl ImageSignature
[src]
pub fn create_image_signature(
body: &ImageSignature,
optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]
body: &ImageSignature,
optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create an ImageSignature
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl ImageSignature
[src]
pub fn delete_image_signature(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteResponse<Self>>), RequestError>
delete an ImageSignature
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 ImageSignature
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Clone for ImageSignature
[src]
fn clone(&self) -> ImageSignature
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImageSignature
[src]
impl Default for ImageSignature
[src]
fn default() -> ImageSignature
[src]
impl<'de> Deserialize<'de> for ImageSignature
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Metadata for ImageSignature
[src]
impl PartialEq<ImageSignature> for ImageSignature
[src]
fn eq(&self, other: &ImageSignature) -> bool
[src]
fn ne(&self, other: &ImageSignature) -> bool
[src]
impl Resource for ImageSignature
[src]
const API_VERSION: &'static str
[src]
const GROUP: &'static str
[src]
const KIND: &'static str
[src]
const VERSION: &'static str
[src]
impl Serialize for ImageSignature
[src]
impl StructuralPartialEq for ImageSignature
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageSignature
impl Send for ImageSignature
impl Sync for ImageSignature
impl Unpin for ImageSignature
impl UnwindSafe for ImageSignature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,