Cyclops 4 HPC is the purpose built stack to support large HPC centers with resource accounting and billing of cluster as well as cloud resources.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Diego Martin 0ea0435502 [U] Sync of latest codebase 3 years ago
..
.gitignore [U] Sync of latest codebase 3 years ago
.travis.yml [U] Sync of latest codebase 3 years ago
LICENSE [U] Sync of latest codebase 3 years ago
README.md [U] Sync of latest codebase 3 years ago
adminapi.go [U] Sync of latest codebase 3 years ago
bucket.go [U] Sync of latest codebase 3 years ago
doc.go [U] Sync of latest codebase 3 years ago
go.mod [U] Sync of latest codebase 3 years ago
go.sum [U] Sync of latest codebase 3 years ago
key.go [U] Sync of latest codebase 3 years ago
metadata.go [U] Sync of latest codebase 3 years ago
quota.go [U] Sync of latest codebase 3 years ago
radostime.go [U] Sync of latest codebase 3 years ago
usage.go [U] Sync of latest codebase 3 years ago
user.go [U] Sync of latest codebase 3 years ago

README.md

Mozilla Public License Go Report Card GoDoc Build Status

Package radosgwadmin wraps http://docs.ceph.com/docs/master/radosgw/adminops

Additionally, exposes some undocumented metadata operations (methods starting with 'M').

Requires Go 1.7 or newer. Tested with Jewel through Luminous releases of Ceph.

Example app:

    package main

    import (
        "context"
        "fmt"
        "time"

        rgw "github.com/myENA/radosgwadmin"
        rcl "github.com/myENA/restclient"
    )

    func main() {

        cfg := &rgw.Config{
            ClientConfig: rcl.ClientConfig{
                ClientTimeout:   rcl.Duration(time.Second * 10),
            },
            ServerURL:       "https://my.rgw.org/",
            AdminPath:       "admin",
            AccessKeyID:     "ABC123BLAHBLAHBLAH",
            SecretAccessKey: "IMASUPERSECRETACCESSKEY",
        }

        aa, err := rgw.NewAdminAPI(cfg)
        if err != nil {
            // do something, bail out.
        }
        users, err := aa.MListUsers(context.Background())
        if err != nil {
            // handle error
            return
        }
        fmt.Println(users)
    }

Input validation is provided by https://godoc.org/gopkg.in/go-playground/validator.v9