azureml-go-sdk

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 0 Imported by: 0

README

Azure ML Go SDK

Actions Status codecov

Go SDK for configuring Azure Machine Learning workspaces.

The library is still under development and at the moment it only supports CRUD operations over Datastores of AML Workspaces.

Getting Started

Installation

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.

go get github.com/orobix/azureml-go-sdk

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/orobix/azureml-go-sdk

Quick Examples

Init the client
import (
  "github.com/orobix/azureml-go-sdk/workspace"
)

config := workspace.Config{
  ClientId:       "", // the client ID of the Service Principal used for authenticating with Azure
  ClientSecret:   "", // the client secret of the Service Principal used for authenticating with Azure
  TenantId:       "", // the tenant ID to which the Service Principal used for authenticating with Azure belongs to
  SubscriptionId: "", // the Azure Subscription ID of the subscription containing the AML Workspace
}

ws, err := workspace.New(config, true)
Get all the Datastores of a workspace
datastores, err := ws.GetDatastores( "rg-name", "workspace-name" )
Get a specific Datastore of a workspace
datastore, err := ws.GetDatastore( "rg-name", "workspace-name", "datastore-name" )

License

This project is licensed under the MIT License.

Copyright (c) 2021 Michele Zanotti.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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