App

Struct App 

Source
pub struct App {
Show 79 fields pub running: bool, pub mode: Mode, pub config: AwsConfig, pub cloudwatch_client: CloudWatchClient, pub s3_client: S3Client, pub alarms_client: AlarmsClient, pub ecr_client: EcrClient, pub iam_client: IamClient, pub lambda_client: LambdaClient, pub cloudformation_client: CloudFormationClient, pub current_service: Service, pub tabs: Vec<Tab>, pub current_tab: usize, pub tab_picker_selected: usize, pub tab_filter: String, pub pending_key: Option<char>, pub log_groups_state: CloudWatchLogGroupsState, pub insights_state: CloudWatchInsightsState, pub alarms_state: CloudWatchAlarmsState, pub s3_state: S3State, pub ecr_state: EcrState, pub lambda_state: LambdaState, pub lambda_application_state: LambdaApplicationState, pub cfn_state: CfnState, pub iam_state: State, pub service_picker: ServicePickerState, pub service_selected: bool, pub profile: String, pub region: String, pub region_selector_index: usize, pub visible_columns: Vec<LogGroupColumn>, pub all_columns: Vec<LogGroupColumn>, pub column_selector_index: usize, pub preference_section: Preferences, pub visible_stream_columns: Vec<StreamColumn>, pub all_stream_columns: Vec<StreamColumn>, pub visible_event_columns: Vec<EventColumn>, pub all_event_columns: Vec<EventColumn>, pub visible_alarm_columns: Vec<AlarmColumn>, pub all_alarm_columns: Vec<AlarmColumn>, pub visible_bucket_columns: Vec<S3BucketColumn>, pub all_bucket_columns: Vec<S3BucketColumn>, pub visible_ecr_columns: Vec<Column>, pub all_ecr_columns: Vec<Column>, pub visible_ecr_image_columns: Vec<Column>, pub all_ecr_image_columns: Vec<Column>, pub visible_lambda_application_columns: Vec<LambdaApplicationColumn>, pub all_lambda_application_columns: Vec<LambdaApplicationColumn>, pub visible_deployment_columns: Vec<DeploymentColumn>, pub all_deployment_columns: Vec<DeploymentColumn>, pub visible_resource_columns: Vec<ResourceColumn>, pub all_resource_columns: Vec<ResourceColumn>, pub visible_cfn_columns: Vec<Column>, pub all_cfn_columns: Vec<Column>, pub visible_iam_columns: Vec<String>, pub all_iam_columns: Vec<String>, pub visible_role_columns: Vec<String>, pub all_role_columns: Vec<String>, pub visible_group_columns: Vec<String>, pub all_group_columns: Vec<String>, pub visible_policy_columns: Vec<String>, pub all_policy_columns: Vec<String>, pub view_mode: ViewMode, pub error_message: Option<String>, pub page_input: String, pub calendar_date: Option<Date>, pub calendar_selecting: CalendarField, pub cursor_pos: usize, pub current_session: Option<Session>, pub sessions: Vec<Session>, pub session_picker_selected: usize, pub session_filter: String, pub region_filter: String, pub region_picker_selected: usize, pub region_latencies: HashMap<String, u64>, pub profile_filter: String, pub profile_picker_selected: usize, pub available_profiles: Vec<AwsProfile>, pub snapshot_requested: bool,
}

Fields§

§running: bool§mode: Mode§config: AwsConfig§cloudwatch_client: CloudWatchClient§s3_client: S3Client§alarms_client: AlarmsClient§ecr_client: EcrClient§iam_client: IamClient§lambda_client: LambdaClient§cloudformation_client: CloudFormationClient§current_service: Service§tabs: Vec<Tab>§current_tab: usize§tab_picker_selected: usize§tab_filter: String§pending_key: Option<char>§log_groups_state: CloudWatchLogGroupsState§insights_state: CloudWatchInsightsState§alarms_state: CloudWatchAlarmsState§s3_state: S3State§ecr_state: EcrState§lambda_state: LambdaState§lambda_application_state: LambdaApplicationState§cfn_state: CfnState§iam_state: State§service_picker: ServicePickerState§service_selected: bool§profile: String§region: String§region_selector_index: usize§visible_columns: Vec<LogGroupColumn>§all_columns: Vec<LogGroupColumn>§column_selector_index: usize§preference_section: Preferences§visible_stream_columns: Vec<StreamColumn>§all_stream_columns: Vec<StreamColumn>§visible_event_columns: Vec<EventColumn>§all_event_columns: Vec<EventColumn>§visible_alarm_columns: Vec<AlarmColumn>§all_alarm_columns: Vec<AlarmColumn>§visible_bucket_columns: Vec<S3BucketColumn>§all_bucket_columns: Vec<S3BucketColumn>§visible_ecr_columns: Vec<Column>§all_ecr_columns: Vec<Column>§visible_ecr_image_columns: Vec<Column>§all_ecr_image_columns: Vec<Column>§visible_lambda_application_columns: Vec<LambdaApplicationColumn>§all_lambda_application_columns: Vec<LambdaApplicationColumn>§visible_deployment_columns: Vec<DeploymentColumn>§all_deployment_columns: Vec<DeploymentColumn>§visible_resource_columns: Vec<ResourceColumn>§all_resource_columns: Vec<ResourceColumn>§visible_cfn_columns: Vec<Column>§all_cfn_columns: Vec<Column>§visible_iam_columns: Vec<String>§all_iam_columns: Vec<String>§visible_role_columns: Vec<String>§all_role_columns: Vec<String>§visible_group_columns: Vec<String>§all_group_columns: Vec<String>§visible_policy_columns: Vec<String>§all_policy_columns: Vec<String>§view_mode: ViewMode§error_message: Option<String>§page_input: String§calendar_date: Option<Date>§calendar_selecting: CalendarField§cursor_pos: usize§current_session: Option<Session>§sessions: Vec<Session>§session_picker_selected: usize§session_filter: String§region_filter: String§region_picker_selected: usize§region_latencies: HashMap<String, u64>§profile_filter: String§profile_picker_selected: usize§available_profiles: Vec<AwsProfile>§snapshot_requested: bool

Implementations§

Source§

impl App

Source

pub async fn new( profile: Option<String>, region: Option<String>, ) -> Result<Self>

Source

pub fn new_without_client(profile: String, region: Option<String>) -> Self

Source

pub fn handle_action(&mut self, action: Action)

Source

pub fn filtered_services(&self) -> Vec<&'static str>

Source

pub fn selected_log_group(&self) -> Option<&LogGroup>

Source

pub fn filtered_log_streams(&self) -> Vec<&LogStream>

Source

pub fn filtered_log_events(&self) -> Vec<&LogEvent>

Source

pub fn filtered_log_groups(&self) -> Vec<&LogGroup>

Source

pub fn filtered_ecr_repositories(&self) -> Vec<&EcrRepository>

Source

pub fn filtered_ecr_images(&self) -> Vec<&EcrImage>

Source

pub fn filtered_cloudformation_stacks(&self) -> Vec<&CfnStack>

Source

pub fn breadcrumbs(&self) -> String

Source

pub fn update_current_tab_breadcrumb(&mut self)

Source

pub fn get_console_url(&self) -> String

Source

pub async fn load_log_groups(&mut self) -> Result<()>

Source

pub async fn load_alarms(&mut self) -> Result<()>

Source

pub async fn load_s3_objects(&mut self) -> Result<()>

Source

pub async fn load_bucket_preview(&mut self, bucket_name: String) -> Result<()>

Source

pub async fn load_prefix_preview( &mut self, bucket_name: String, prefix: String, ) -> Result<()>

Source

pub async fn load_ecr_repositories(&mut self) -> Result<()>

Source

pub async fn load_ecr_images(&mut self) -> Result<()>

Source

pub async fn load_cloudformation_stacks(&mut self) -> Result<()>

Source

pub async fn load_role_policies(&mut self, role_name: &str) -> Result<()>

Source

pub async fn load_group_policies(&mut self, group_name: &str) -> Result<()>

Source

pub async fn load_group_users(&mut self, group_name: &str) -> Result<()>

Source

pub async fn load_policy_document( &mut self, role_name: &str, policy_name: &str, ) -> Result<()>

Source

pub async fn load_trust_policy(&mut self, role_name: &str) -> Result<()>

Source

pub async fn load_last_accessed_services( &mut self, _role_name: &str, ) -> Result<()>

Source

pub async fn load_role_tags(&mut self, role_name: &str) -> Result<()>

Source

pub async fn load_user_tags(&mut self, user_name: &str) -> Result<()>

Source

pub async fn load_log_streams(&mut self) -> Result<()>

Source

pub async fn load_log_events(&mut self) -> Result<()>

Source

pub async fn execute_insights_query(&mut self) -> Result<()>

Source§

impl App

Auto Trait Implementations§

§

impl !Freeze for App

§

impl !RefUnwindSafe for App

§

impl Send for App

§

impl !Sync for App

§

impl Unpin for App

§

impl !UnwindSafe for App

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more