go-hsdp-api

module
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 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)
  • Secure Transport Layer (STL) / Edge
    • Device queries
    • Application Resources management
    • Device configuration management (firewall, logging)
  • Public Key Infrastructure (PKI) management
  • Identity and Access Management (IAM)
    • Groups
    • Organizations
    • Permissions
    • Roles
    • Users
    • Passwords
    • Propositions
    • Applications
    • Services
    • Devices
    • MFA Policies
    • Password Policies
    • Email Templates
  • 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
  • S3Creds Policy management
  • DICOM Store
    • Config management
  • Notification service
  • Hosted Application Streaming (HAS) management
  • Service Discovery
  • Console settings
    • Metrics Alerts
    • Metrics Autoscalers
  • IronIO tasks, codes and schedules management (examples)
  • Clinical Data Lake (CDL) management
    • Research Studies

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 audit provides support for interacting with the HSDP Audit service
Package audit provides support for interacting with the HSDP Audit service
helper/fhir/dstu2
Package dstu2 contains helper methods to construct AuditEvent resources
Package dstu2 contains helper methods to construct AuditEvent resources
Package cartel provides support for HSDP Cartel services
Package cartel provides support for HSDP Cartel services
Package cdl provides support for interacting with HSDP Clinical Data Lake services
Package cdl provides support for interacting with HSDP Clinical Data Lake services
cdr
Package cdr provides support for HSDP CDR services
Package cdr provides support for HSDP CDR services
helper/fhir/stu3
Package dstu3 contains helper methods for use with CDR
Package dstu3 contains helper methods for use with CDR
Package world provides info on HSDP services
Package world provides info on HSDP services
Package console provides support for HSDP Console APIs
Package console provides support for HSDP Console APIs
Package dicom provides support for HSDP DICOM services
Package dicom provides support for HSDP DICOM services
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 and IDM services
Package iam provides support for interacting with HSDP IAM and 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 notification provides support for interacting with HSDP Notification services
Package notification provides support for interacting with HSDP Notification services
Package pki provides support for HSDP PKI service
Package pki provides support for HSDP PKI service
Package s3creds provides support for HSDP S3 Credentials
Package s3creds provides support for HSDP S3 Credentials
Package stl provides support for HSDP STL services
Package stl provides support for HSDP STL services
Package tdr provides support for HSDP TDR operations
Package tdr provides support for HSDP TDR operations
Package tpns provides an interface for HSDP Third Party Notification Service (TPNS)
Package tpns provides an interface for HSDP Third Party Notification Service (TPNS)

Jump to

Keyboard shortcuts

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