modulepackage
0.1.15
Repository: https://github.com/tecbiz-ch/nutanix-go-sdk.git
Documentation: pkg.go.dev
# README
nutanix-go-sdk: A Go library for the Nutanix Prism API
Package nutanix is a library for the Nutanix Prism API
The library’s documentation is available at GoDoc, the public API documentation is available at www.nutanix.dev.
Example
package main
import (
"context"
"fmt"
"log"
nutanix "github.com/tecbiz-ch/nutanix-go-sdk"
)
func main() {
configCreds := nutanix.Credentials{
Username: "admin",
Password: "password",
}
opts := []nutanix.ClientOption{
nutanix.WithCredentials(&configCreds),
nutanix.WithEndpoint("https://PC"),
nutanix.WithInsecure(), // Allow insecure
}
client := nutanix.NewClient(opts...)
ctx := context.Background()
mycluster, err = client.Cluster.Get(ctx, "mycluster")
list, err = client.VM.All(ctx)
}
License
MIT license
# Functions
NewClient creates a new client.
WithCredentials configures a Client to use the specified credentials for authentication.
WithDebugWriter configure a custom writer to debug request and responses.
WithEndpoint configures a Client to use the specified credentials for authentication.
WithHTTPClient allows to specify a custom http client.
WithSkipVerify returns a ClientOption that configure the client connection to not verify https connectins.
# Structs
AvailabilityZoneClient is a client for the project API.
CategoryClient is a client for the category API.
Client Config Configuration of the client.
ClusterClient is a client for the cluster API.
Credentials needed username and password.
FloatingIPClient is a client for the vpc API.
HostClient is a client for the host API.
ImageClient is a client for the image API.
ProjectClient is a client for the project API.
RoutingPolicyClient is a client for the vpc API.
SnapshotClient ..
SubnetClient is a client for the subnet API.
TaskClient is a client for the subnet API.
VMClient is a client for the VM API.
VMRecoveryPointClient is a client for the vm API.
VpcClient is a client for the vpc API.
# Type aliases
ClientOption ...