Skip to content

libreFS/madmin-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

597 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

madmin-go — libreFS Admin Go SDK

Go client library for administering libreFS servers. Forked from minio/madmin-go.

This document assumes that you have a working Golang setup.

Initialize Admin Client

package main

import (
    "fmt"

    "github.com/libreFS/madmin-go/v4"
)

func main() {
    // Use a secure connection.
    ssl := true

    // Initialize admin client object.
    mdmClnt, err := madmin.New("your-librefs.example.com:9000", "YOUR-ACCESSKEYID", "YOUR-SECRETKEY", ssl)
    if err != nil {
        fmt.Println(err)
        return
    }

    // Fetch service status.
	info, err := mdmClnt.ClusterInfo(context.Background())
    if err != nil {
        fmt.Println(err)
        return
    }
	fmt.Printf("%#v\n", info)
}

Documentation

All documentation is available on pkg.go.dev.

License

Licensed under the GNU AGPLv3 — see the LICENSE file.

About

The MinIO Admin Go Client SDK provides APIs to manage MinIO services

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 97.4%
  • Python 2.6%