Help us shape the future of Go! Take the 2026 Go Developer Survey

kms

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 5

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 added in v0.1.4

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