secret

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretController

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

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

func NewSecretController

func NewSecretController(store store.Factory) *SecretController

NewSecretController creates a secret handler.

func (*SecretController) Create

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

Create add new secret key pairs to the storage.

func (*SecretController) Delete

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

Delete delete a secret by the secret identifier.

func (*SecretController) DeleteCollection

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

DeleteCollection delete secrets by secret names.

func (*SecretController) Get

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

Get get an policy by the secret identifier.

func (*SecretController) List

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

List list all the secrets.

func (*SecretController) Update

func (s *SecretController) 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