[][src]Struct openshift_openapi::api::image::v1::ImageSignature

pub struct ImageSignature {
    pub conditions: Option<Vec<SignatureCondition>>,
    pub content: ByteString,
    pub created: Option<Time>,
    pub image_identity: Option<String>,
    pub issued_by: Option<SignatureIssuer>,
    pub issued_to: Option<SignatureSubject>,
    pub metadata: Option<ObjectMeta>,
    pub signed_claims: Option<BTreeMap<String, String>>,
    pub type_: String,
}

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]

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]

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]

impl Debug for ImageSignature[src]

impl Default for ImageSignature[src]

impl<'de> Deserialize<'de> for ImageSignature[src]

impl Metadata for ImageSignature[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<ImageSignature> for ImageSignature[src]

impl Resource for ImageSignature[src]

impl Serialize for ImageSignature[src]

impl StructuralPartialEq for ImageSignature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.