[][src]Struct k8s_openapi::api::auditregistration::v1alpha1::AuditSink

pub struct AuditSink {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<AuditSinkSpec>,
}

AuditSink represents a cluster level audit sink

Fields

metadata: Option<ObjectMeta>spec: Option<AuditSinkSpec>

Spec defines the audit configuration spec

Methods

impl AuditSink[src]

pub fn create_audit_sink(
    body: &AuditSink,
    optional: CreateAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateAuditSinkResponse>), RequestError>
[src]

create an AuditSink

Use the returned crate::ResponseBody<CreateAuditSinkResponse> constructor, or CreateAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn delete_audit_sink(
    name: &str,
    optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteAuditSinkResponse>), RequestError>
[src]

delete an AuditSink

Use the returned crate::ResponseBody<DeleteAuditSinkResponse> constructor, or DeleteAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the AuditSink

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn delete_collection_audit_sink(
    delete_optional: DeleteOptional,
    list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionAuditSinkResponse>), RequestError>
[src]

delete collection of AuditSink

Use the returned crate::ResponseBody<DeleteCollectionAuditSinkResponse> constructor, or DeleteCollectionAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • delete_optional

    Delete options. Use Default::default() to not pass any.

  • list_optional

    List options. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn list_audit_sink(
    optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListAuditSinkResponse>), RequestError>
[src]

list or watch objects of kind AuditSink

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListAuditSinkResponse> constructor, or ListAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn patch_audit_sink(
    name: &str,
    body: &Patch,
    optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchAuditSinkResponse>), RequestError>
[src]

partially update the specified AuditSink

Use the returned crate::ResponseBody<PatchAuditSinkResponse> constructor, or PatchAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the AuditSink

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn read_audit_sink(
    name: &str,
    optional: ReadAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadAuditSinkResponse>), RequestError>
[src]

read the specified AuditSink

Use the returned crate::ResponseBody<ReadAuditSinkResponse> constructor, or ReadAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the AuditSink

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn replace_audit_sink(
    name: &str,
    body: &AuditSink,
    optional: ReplaceAuditSinkOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceAuditSinkResponse>), RequestError>
[src]

replace the specified AuditSink

Use the returned crate::ResponseBody<ReplaceAuditSinkResponse> constructor, or ReplaceAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the AuditSink

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl AuditSink[src]

pub fn watch_audit_sink(
    optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchAuditSinkResponse>), RequestError>
[src]

list or watch objects of kind AuditSink

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchAuditSinkResponse> constructor, or WatchAuditSinkResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for AuditSink[src]

impl Metadata for AuditSink[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for AuditSink[src]

impl Default for AuditSink[src]

impl PartialEq<AuditSink> for AuditSink[src]

impl Debug for AuditSink[src]

impl Serialize for AuditSink[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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