Skip to content

lovi-cloud/go-dorado-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-dorado-sdk: Golang SDK for Huawei OceanStor Dorado

go-dorado-sdk is Golang SDK for Huawei OceanStor Dorado. It provides operationally from Golang.

Support Products

  • OceanStor Dorado V3

Usage

  • Enable REST API
  • Create system-user that call REST API
package main

import (
    "github.com/lovi-cloud/go-dorado-sdk/dorado"
)

func main() {
	username := "username"
	password := "password"
	localIps := []string{"https://192.0.2.100:8088", "https://192.0.2.101:8088"}
	remoteIps := []string{"https://192.0.2.200:8088", "https://192.0.2.201:8088"}
	portgroupName := "Port_Group"

	client, err := dorado.NewClient(localIps, remoteIps, username, password, portgroupName, nil)

    // etc...
}

Reference documents