go-hsdp-api

module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT

README

Build Status Maintainability Test Coverage GoDoc Slack

go-hsdp-api

A HSDP API client enabling Go programs to interact with various HSDP APIs in a simple and uniform way

Supported APIs

The current implement covers only a subset of HSDP APIs. Basically we implement functonality as needed.

  • IAM token authorization
  • Group management
  • Organization management
  • Permission management
  • Role managemnet
  • User management
  • Password management
  • Device management
  • Proposition management
  • Application management
  • Service management
  • Logging
  • Auditing
  • S3 Credentials Policy management
  • MFA Policies management

Usage

package main

import (
        "fmt"

        "github.com/philips-software/go-hsdp-api/iam"
)

func main() {
        client, _ := iam.NewClient(nil, &iam.Config{
                OAuth2ClientID: "ClientID",
                OAuth2Secret:   "ClientPWD",
                SharedKey:      "KeyHere",
                SecretKey:      "SecretHere",
                IAMURL:         "https://iam-stage.foo-bar.com",
                IDMURL:         "https://idm-stage.foo-bar.com",
        })
        err := client.Login("iam.login@aemian.com", "Password!@#")
        if err != nil {
                fmt.Printf("Error logging in: %v\n", err)
                return
        }
        introspect, _, _ := client.Introspect()
        if introspect != nil {
                fmt.Printf("Introspect response: %v\n", introspect)
        }
}

TODO

  • Increase API coverage
  • Increase code coverage

Issues

Author

Andy Lo-A-Foe (andy.lo-a-foe@philips.com)

License

License is MIT. See LICENSE file

Directories

Path Synopsis
Package credentials provides support for HSDP S3 Credentials
Package credentials provides support for HSDP S3 Credentials
Package iam provides support for interacting with HSDP IAM/IDM services
Package iam provides support for interacting with HSDP IAM/IDM services
Package logging provides support for HSDP Logging services
Package logging provides support for HSDP Logging services
Package tdr provides support for HSDP TDR operations Contract management and DataItem creation and retrieval are supported
Package tdr provides support for HSDP TDR operations Contract management and DataItem creation and retrieval are supported
Package tpns provides an interface for HSDP TPNS (Third Party Notification Service)
Package tpns provides an interface for HSDP TPNS (Third Party Notification Service)

Jump to

Keyboard shortcuts

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