go-hsdp-api

module
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT

README

Build Status Maintainability Test Coverage PkgGoDev

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 functionality as needed.

  • Cartel c.q. Container Host management (examples)
  • IronIO tasks, codes and schedules management (examples)
  • HSDP IAM/IDM management
    • Groups
    • Organizations
    • Permissions
    • Roles
    • Users
    • Passwords
    • Propositions
    • Applications
    • Services
    • Devices
    • MFA Policies
    • Password Policies
  • Logging (examples)
  • Auditing
  • S3 Credentials Policy management
  • Hosted Application Streaming (HAS) management
  • Configuration
  • Console settings
    • Metrics Alerts
    • Metrics Autoscalers

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

Issues

Contact / Getting help

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

License

License is MIT. See LICENSE file

Directories

Path Synopsis
Package cartel provides support for HSDP Cartel services
Package cartel provides support for HSDP Cartel services
Code generated for package config by go-bindata DO NOT EDIT.
Code generated for package config by go-bindata DO NOT EDIT.
Package credentials provides support for HSDP S3 Credentials
Package credentials provides support for HSDP S3 Credentials
Package has provides support for HSDP Appstreaming service
Package has provides support for HSDP Appstreaming service
Package iam provides support for interacting with HSDP IAM/IDM services
Package iam provides support for interacting with HSDP IAM/IDM services
Package iron provides support for HSDP Iron services
Package iron provides support for HSDP Iron 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