secret

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 11 Imported by: 0

Documentation

Overview

Package secret implements the secret handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretHandler

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

SecretHandler create a secret handler used to handle request for secret resource.

func NewSecretHandler

func NewSecretHandler(store store.Factory) *SecretHandler

NewSecretHandler creates a secret handler.

func (*SecretHandler) Create

func (s *SecretHandler) Create(c *gin.Context)

Create add new secret key pairs to the storage.

func (*SecretHandler) Delete

func (s *SecretHandler) Delete(c *gin.Context)

Delete delete a secret by the secret identifier.

func (*SecretHandler) DeleteCollection

func (s *SecretHandler) DeleteCollection(c *gin.Context)

DeleteCollection delete secrets by secret names.

func (*SecretHandler) Get

func (s *SecretHandler) Get(c *gin.Context)

Get get an policy by the secret identifier.

func (*SecretHandler) List

func (s *SecretHandler) List(c *gin.Context)

List list all the secrets.

func (*SecretHandler) Update

func (s *SecretHandler) Update(c *gin.Context)

Update update a key by the secret key identifier.

Jump to

Keyboard shortcuts

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