1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#![warn(missing_docs)]
#![deny(broken_intra_doc_links)]
use std::path::PathBuf;
mod check;
mod start;
mod delete;
mod error;
mod sys;
#[cfg(feature = "cli")]
pub mod cli;
use fluvio_helm as helm;
pub use start::k8::{ClusterInstaller, ClusterConfig, ClusterConfigBuilder};
pub use start::local::{LocalInstaller, LocalConfig, LocalConfigBuilder};
pub use error::{ClusterError, K8InstallError, LocalInstallError, UninstallError, SysInstallError};
pub use helm::HelmError;
pub use check::{ClusterChecker, CheckStatus, CheckStatuses, CheckResult, CheckResults};
pub use check::{RecoverableCheck, UnrecoverableCheck, CheckFailed, CheckSuggestion};
pub use delete::ClusterUninstaller;
pub use sys::{SysConfig, SysConfigBuilder, SysInstaller};
pub(crate) const DEFAULT_NAMESPACE: &str = "default";
pub(crate) const DEFAULT_HELM_VERSION: &str = "3.3.4";
pub(crate) const DEFAULT_CHART_SYS_REPO: &str = "fluvio-sys";
pub(crate) const DEFAULT_CHART_APP_REPO: &str = "fluvio";
pub(crate) const DEFAULT_CHART_REMOTE: &str = "https://charts.fluvio.io";
pub struct StartStatus {
address: String,
port: u16,
#[allow(unused)]
pub(crate) checks: Option<CheckStatuses>,
}
impl StartStatus {
pub fn address(&self) -> &str {
&self.address
}
#[allow(unused)]
pub fn port(&self) -> u16 {
self.port
}
}
#[derive(Debug, Clone)]
pub enum ChartLocation {
Local(PathBuf),
Remote(String),
}