Orchestrator

Struct Orchestrator 

Source
pub struct Orchestrator { /* private fields */ }
Expand description

Fields that describe the resources which container orchestrators manage or act upon.

Implementations§

Source§

impl Orchestrator

Source

pub fn get_cluster_name(&self) -> Option<&String>

Name of the cluster.

Source

pub fn set_cluster_name(&mut self, cluster_name_arg: String)

Name of the cluster.

Source

pub fn get_cluster_id(&self) -> Option<&String>

Unique ID of the cluster.

Source

pub fn set_cluster_id(&mut self, cluster_id_arg: String)

Unique ID of the cluster.

Source

pub fn get_cluster_url(&self) -> Option<&String>

URL of the API used to manage the cluster.

Source

pub fn set_cluster_url(&mut self, cluster_url_arg: String)

URL of the API used to manage the cluster.

Source

pub fn get_cluster_version(&self) -> Option<&String>

The version of the cluster.

Source

pub fn set_cluster_version(&mut self, cluster_version_arg: String)

The version of the cluster.

Source

pub fn get_type(&self) -> Option<&String>

Orchestrator cluster type (e.g. kubernetes, nomad or cloudfoundry).

Source

pub fn set_type(&mut self, type_arg: String)

Orchestrator cluster type (e.g. kubernetes, nomad or cloudfoundry).

§Example

kubernetes

Source

pub fn get_organization(&self) -> Option<&String>

Organization affected by the event (for multi-tenant orchestrator setups).

Source

pub fn set_organization(&mut self, organization_arg: String)

Organization affected by the event (for multi-tenant orchestrator setups).

§Example

elastic

Source

pub fn get_namespace(&self) -> Option<&String>

Namespace in which the action is taking place.

Source

pub fn set_namespace(&mut self, namespace_arg: String)

Namespace in which the action is taking place.

§Example

kube-system

Source

pub fn get_resource_name(&self) -> Option<&String>

Name of the resource being acted upon.

Source

pub fn set_resource_name(&mut self, resource_name_arg: String)

Name of the resource being acted upon.

§Example

test-pod-cdcws

Source

pub fn get_resource_type(&self) -> Option<&String>

Type of resource being acted upon.

Source

pub fn set_resource_type(&mut self, resource_type_arg: String)

Type of resource being acted upon.

§Example

service

Source

pub fn get_resource_parent_type(&self) -> Option<&String>

Type or kind of the parent resource associated with the event being observed. In Kubernetes, this will be the name of a built-in workload resource (e.g., Deployment, StatefulSet, DaemonSet).

Source

pub fn set_resource_parent_type(&mut self, resource_parent_type_arg: String)

Type or kind of the parent resource associated with the event being observed. In Kubernetes, this will be the name of a built-in workload resource (e.g., Deployment, StatefulSet, DaemonSet).

§Example

DaemonSet

Source

pub fn get_resource_ip(&self) -> &Vec<String>

IP address assigned to the resource associated with the event being observed. In the case of a Kubernetes Pod, this array would contain only one element: the IP of the Pod (as opposed to the Node on which the Pod is running).

Source

pub fn add_resource_ip(&mut self, resource_ip_arg: String)

IP address assigned to the resource associated with the event being observed. In the case of a Kubernetes Pod, this array would contain only one element: the IP of the Pod (as opposed to the Node on which the Pod is running).

Source

pub fn get_resource_id(&self) -> Option<&String>

Unique ID of the resource being acted upon.

Source

pub fn set_resource_id(&mut self, resource_id_arg: String)

Unique ID of the resource being acted upon.

Source

pub fn get_api_version(&self) -> Option<&String>

API version being used to carry out the action

Source

pub fn set_api_version(&mut self, api_version_arg: String)

API version being used to carry out the action

§Example

v1beta1

Trait Implementations§

Source§

impl Clone for Orchestrator

Source§

fn clone(&self) -> Orchestrator

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Orchestrator

Source§

fn default() -> Orchestrator

Returns the “default value” for a type. Read more
Source§

impl Serialize for Orchestrator

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.