Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
/ keyprotect-go Public archive

Golang client library for IBM keyprotect generated from the keyprotect openapi spec using openapi-generator

License

Notifications You must be signed in to change notification settings

IBM/keyprotect-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for keyprotect

IBM Key Protect helps you provision encrypted keys for apps across IBM Cloud. As you manage the lifecycle of your keys, you can benefit from knowing that your keys are secured by cloud-based FIPS 140-2 Level 3 hardware security modules (HSMs) that protect against theft of information. You can use the Key Protect API to store, generate, and retrieve your key material. Keys within the service can protect any type of data in your symmetric key based encryption solution.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./keyprotect"

Documentation for API Endpoints

All URIs are relative to https://%7Bregion%7D.kms.cloud.ibm.com

Class Method HTTP request Description
ImportTokensApi GetImportToken Get /api/v2/import_token Retrieve an import token
ImportTokensApi PostImportToken Post /api/v2/import_token Create an import token
KeysApi ActionOnKey Post /api/v2/keys/{id} Invoke an action on a key
KeysApi CreateKey Post /api/v2/keys Create a new key
KeysApi DeleteKey Delete /api/v2/keys/{id} Delete a key by ID
KeysApi GetKey Get /api/v2/keys/{id} Retrieve a key by ID
KeysApi GetKeyCollectionMetadata Head /api/v2/keys Retrieve the number of keys
KeysApi GetKeys Get /api/v2/keys Retrieve a list of keys
PoliciesApi GetPolicy Get /api/v2/keys/{id}/policies Retrieve a list of policies
PoliciesApi PutPolicy Put /api/v2/keys/{id}/policies Replace an existing policy

Documentation For Models

Documentation For Authorization

BearerAuth

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

About

Golang client library for IBM keyprotect generated from the keyprotect openapi spec using openapi-generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published