This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "ruma-client-test" | |
version = "0.1.0" | |
[dependencies] | |
futures = "0.1.13" | |
tokio-service = "0.1.0" | |
[dependencies.hyper] | |
git = "https://github.com/hyperium/hyper" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In crate `endpoint`: | |
pub trait Endpoint { | |
type Request: TryInto<hyper::Request>; | |
type Response: TryFrom<hyper::Response>; | |
} | |
// In crate `client`: | |
pub struct Client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./algo | |
What provider would you like to use? | |
1. DigitalOcean | |
2. Amazon EC2 | |
3. Microsoft Azure | |
4. Google Compute Engine (only for testing, see issue #369) | |
5. Install to existing Ubuntu 16.04 server | |
Enter the number of your desired provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo journalctl -u kubelet | |
-- Logs begin at Fri 2017-04-14 13:36:03 PDT, end at Fri 2017-04-14 14:53:40 PDT. -- | |
Apr 14 13:36:03 pearkube-03 kubelet[30954]: I0414 13:36:02.080311 30954 reconciler.go:190] UnmountVolume operation started for volume "kubernetes.io/secret/5b810d2c-2033-11e7-8e6e-b827ebfa0d18-wrapped_wrapped_wrapped_wrapped_wrapped_wra | |
Apr 14 13:36:03 pearkube-03 kubelet[30954]: I0414 13:36:02.080599 30954 reconciler.go:190] UnmountVolume operation started for volume "kubernetes.io/secret/5b810d2c-2033-11e7-8e6e-b827ebfa0d18-wrapped_wrapped_wrapped_wrapped_wrapped_wra | |
Apr 14 13:36:03 pearkube-03 kubelet[30954]: I0414 13:36:02.081036 30954 reconciler.go:190] UnmountVolume operation started for volume "kubernetes.io/secret/5b810d2c-2033-11e7-8e6e-b827ebfa0d18-wrapped_wrapped_wrapped_wrapped_wrapped_wra | |
Apr 14 13:36:03 pearkube-03 kubelet[30954]: I0414 13:36:02.081583 30954 reconciler.go:190] UnmountVolume operation started for volume "kubernetes.io/secret/5b810d2c-2033-11e7-8e6e-b827ebfa0d1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter in function call due to conflicting requirements | |
--> src/main.rs:39:37 | |
| | |
39 | for item in self.collection.iter() { | |
| ^^^^ | |
| | |
note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the body at 36:90... | |
--> src/main.rs:36:91 | |
| | |
36 | fn dispatch(&self, input: &'static str) -> Box<Stream<Item = Success, Error = Error>> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait HasEndpoint { | |
type Endpoint: Endpoint; | |
} | |
trait Endpoint { | |
type Request: Default + ToString; | |
} | |
struct Foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root] | |
name = "ruma" | |
version = "0.1.0" | |
dependencies = [ | |
"argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", | |
"base64 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", | |
"bodyparser 0.5.0 (git+https://github.com/jimmycuadra/body-parser?branch=serde-0.9)", | |
"chrono 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)", | |
"clap 2.20.0 (registry+https://github.com/rust-lang/crates.io-index)", | |
"diesel 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait Endpoint<RQ, RS, S> where RQ: BuildRequest, RS: BuildResponse<S> { | |
fn build_request() -> RQ; | |
fn build_response() -> RS; | |
fn info() -> Info; | |
} | |
pub struct Info { | |
pub description: &'static str, | |
pub name: &'static str, | |
pub rate_limited: bool, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait Endpoint { | |
type Request: Request; | |
type Response: Response; | |
fn info() -> Info; | |
} | |
pub struct Info { | |
pub description: &'static str, | |
pub name: &'static str, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: "Template" | |
apiVersion: "v1" | |
metadata: | |
name: "kibana" | |
objects: | |
- kind: "Namespace" | |
apiVersion: "v1" | |
metadata: | |
name: "kibana" |