go-dorado-sdk

module
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2021 License: MIT

README

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL