go-hsdp-api

module
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 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)
  • PKI services
  • IAM/IDM management
    • Groups
    • Organizations
    • Permissions
    • Roles
    • Users
    • Passwords
    • Propositions
    • Applications
    • Services
    • Devices
    • MFA Policies
    • Password Policies
  • Logging (examples)
  • Auditing (examples)
  • Clinical Data Repository (CDR)
    • Tenant Onboarding
    • Subscription management
    • FHIR CRUD
    • FHIR Patch
  • Telemetry Data Repository (TDR)
    • Contract management
    • Data Item management
  • 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 pki provides support for HSDP CDR service We only intent to support the CDR FHIR STU3 and newer with this library.
Package pki provides support for HSDP CDR service We only intent to support the CDR FHIR STU3 and newer with this library.
Package cartel provides support for HSDP Cartel services
Package cartel provides support for HSDP Cartel services
cdr
Package pki provides support for HSDP CDR service We only intent to support the CDR FHIR STU3 and newer with this library.
Package pki provides support for HSDP CDR service We only intent to support the CDR FHIR STU3 and newer with this library.
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 pki provides support for HSDP PKI service
Package pki provides support for HSDP PKI service
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