This file contains hidden or 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
// warp version 0.2.2 | |
use warp::{Filter, Rejection}; | |
use bytes::{Bytes, Buf}; | |
#[tokio::main] | |
async fn main() { | |
let port: u16 = 8080; | |
let api = warp::any() |
This file contains hidden or 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
import os | |
import sys | |
import base64 | |
import json | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-c", "--serviceaccount", help="Gardener service account key path") | |
parser.add_argument("-p", "--project", help="Gardener Project") | |
parser.add_argument("-o", "--output", help="Output Type", default="") |
This file contains hidden or 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
// [dependencies] | |
// tokio = { version = "0.2", features = ["macros"] } | |
// warp = "0.2.2" | |
use warp::Filter; | |
use warp::http::HeaderMap; | |
use std::convert::Infallible; | |
#[tokio::main] | |
async fn main() { |