intersight-simple-go

module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT

README

Tests GoDoc Go Report

This module provides a simple to use client for the Intersight API.

Features

  • Handles signature authentication and supports both v2 and v3 keys.
  • Faster compile time
  • Simple to use
  • Automatic configuration using environment variables

Installation

go get github.com/cgascoig/intersight-simple-go

Usage

Below is a simple example Go program that shows how to use this module

package main

import (
	"fmt"
	"log"

	"github.com/cgascoig/intersight-simple-go/intersight"
)

func main() {
	client, err := intersight.NewClient()
	if err != nil {
		log.Fatalf("Error creating client: %v", err)
	}

	result, err := client.Get("/api/v1/ntp/Policies")
	if err != nil {
		log.Fatalf("Error in API call: %v", err)
	}

	fmt.Printf("Result: \n%v", result)
}

Directories

Path Synopsis
Package intersight provides a simple to use client for the Intersight API.
Package intersight provides a simple to use client for the Intersight API.

Jump to

Keyboard shortcuts

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