Giter Club home page Giter Club logo

waihona's People

Contributors

deven96 avatar wizzywit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

waihona's Issues

Refactor traits in `src/types` to use associative types

Instead of

trait Example<T>
where T: Debug {
 fn example(&self) -> T
}

We can use associative types that look cleaner

trait Example {
 type Item: Debug;

 fn example(&self) -> Self::Item
}

Feels a lot cleaner and well defined

Exists Returns false value in Azure

let containers = self.client
            .as_blob_service_client()
            .list_containers()
            .execute().await;
        containers
            .unwrap()
            .incomplete_vector
            .iter()
            .find(|item| item.name == bucket_name)
            .is_some()

might fail if containers > 5000 as incomplete_vector will not be the full list of containers

let mut _token = None;
let mut _found = false;
loop {
    let containers = self.client
                .as_blob_service_client()
                .list_containers()
                // there should be a method in the list builder that we can pass token back to
                .next_token(_token)
                .execute().await;
   let container_vec = containers.unwrap().incomplete_vector;
    _found = container_vec.iter().any(|item| item.name == bucket_name);
   if _found || container_vec.is_complete() {
       break;
   } else {
    // obtain the token for the next batch of 5000
    _token = container_vec.token().expect("").clone().to_owned();
   }
};
_found

CI/CD pipelines

  • Pipeline to test code
  • Improve test coverage
  • Pipeline to deploy library on tag
  • Cargo readme that adds examples to readme
  • #8

Write Documentation for library

Documentation must explain a few key things

Examples for using the various api's e.g get_blob, copy_blob, read, e.t.c

Show import of various traits in order to be able to use trait methods

Show supported cloudproviders and their structs on readme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.