pub struct Orchestrator { /* private fields */ }Expand description
Fields that describe the resources which container orchestrators manage or act upon.
Implementations§
Source§impl Orchestrator
impl Orchestrator
Sourcepub fn get_cluster_name(&self) -> Option<&String>
pub fn get_cluster_name(&self) -> Option<&String>
Name of the cluster.
Sourcepub fn set_cluster_name(&mut self, cluster_name_arg: String)
pub fn set_cluster_name(&mut self, cluster_name_arg: String)
Name of the cluster.
Sourcepub fn get_cluster_id(&self) -> Option<&String>
pub fn get_cluster_id(&self) -> Option<&String>
Unique ID of the cluster.
Sourcepub fn set_cluster_id(&mut self, cluster_id_arg: String)
pub fn set_cluster_id(&mut self, cluster_id_arg: String)
Unique ID of the cluster.
Sourcepub fn get_cluster_url(&self) -> Option<&String>
pub fn get_cluster_url(&self) -> Option<&String>
URL of the API used to manage the cluster.
Sourcepub fn set_cluster_url(&mut self, cluster_url_arg: String)
pub fn set_cluster_url(&mut self, cluster_url_arg: String)
URL of the API used to manage the cluster.
Sourcepub fn get_cluster_version(&self) -> Option<&String>
pub fn get_cluster_version(&self) -> Option<&String>
The version of the cluster.
Sourcepub fn set_cluster_version(&mut self, cluster_version_arg: String)
pub fn set_cluster_version(&mut self, cluster_version_arg: String)
The version of the cluster.
Sourcepub fn get_type(&self) -> Option<&String>
pub fn get_type(&self) -> Option<&String>
Orchestrator cluster type (e.g. kubernetes, nomad or cloudfoundry).
Sourcepub fn get_organization(&self) -> Option<&String>
pub fn get_organization(&self) -> Option<&String>
Organization affected by the event (for multi-tenant orchestrator setups).
Sourcepub fn set_organization(&mut self, organization_arg: String)
pub fn set_organization(&mut self, organization_arg: String)
Sourcepub fn get_namespace(&self) -> Option<&String>
pub fn get_namespace(&self) -> Option<&String>
Namespace in which the action is taking place.
Sourcepub fn set_namespace(&mut self, namespace_arg: String)
pub fn set_namespace(&mut self, namespace_arg: String)
Sourcepub fn get_resource_name(&self) -> Option<&String>
pub fn get_resource_name(&self) -> Option<&String>
Name of the resource being acted upon.
Sourcepub fn set_resource_name(&mut self, resource_name_arg: String)
pub fn set_resource_name(&mut self, resource_name_arg: String)
Sourcepub fn get_resource_type(&self) -> Option<&String>
pub fn get_resource_type(&self) -> Option<&String>
Type of resource being acted upon.
Sourcepub fn set_resource_type(&mut self, resource_type_arg: String)
pub fn set_resource_type(&mut self, resource_type_arg: String)
Sourcepub fn get_resource_parent_type(&self) -> Option<&String>
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).
Sourcepub fn set_resource_parent_type(&mut self, resource_parent_type_arg: String)
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
Sourcepub fn get_resource_ip(&self) -> &Vec<String>
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).
Sourcepub fn add_resource_ip(&mut self, resource_ip_arg: String)
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).
Sourcepub fn get_resource_id(&self) -> Option<&String>
pub fn get_resource_id(&self) -> Option<&String>
Unique ID of the resource being acted upon.
Sourcepub fn set_resource_id(&mut self, resource_id_arg: String)
pub fn set_resource_id(&mut self, resource_id_arg: String)
Unique ID of the resource being acted upon.
Sourcepub fn get_api_version(&self) -> Option<&String>
pub fn get_api_version(&self) -> Option<&String>
API version being used to carry out the action
Sourcepub fn set_api_version(&mut self, api_version_arg: String)
pub fn set_api_version(&mut self, api_version_arg: String)
Trait Implementations§
Source§impl Clone for Orchestrator
impl Clone for Orchestrator
Source§fn clone(&self) -> Orchestrator
fn clone(&self) -> Orchestrator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more