kms

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KmsOperationID   = "/kms"
	CreateKeySetPath = KmsOperationID + "/keyset"
	ImportKeyPath    = KmsOperationID + "/import"
)

constants for KMS operations.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation contains basic common operations provided by controller REST API.

func New

func New(p provider) *Operation

New returns new kms operations rest client instance.

func (*Operation) CreateKeySet

func (o *Operation) CreateKeySet(rw http.ResponseWriter, req *http.Request)

CreateKeySet swagger:route POST /kms/keyset kms createKeySet

Create key set.

Responses:

default: genericError
    200: createKeySetRes

func (*Operation) GetRESTHandlers

func (o *Operation) GetRESTHandlers() []rest.Handler

GetRESTHandlers get all controller API handler available for this service.

func (*Operation) ImportKey

func (o *Operation) ImportKey(rw http.ResponseWriter, req *http.Request)

ImportKey swagger:route POST /kms/import kms importKey

Import key.

Responses:

default: genericError

Jump to

Keyboard shortcuts

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