sync

package
v0.0.0-...-e984f34 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedPlatform = errors.New("unsupported platform")

Functions

This section is empty.

Types

type SecretSyncer

type SecretSyncer interface {
	CreateSecret(path string, key string, value string) error
	UpdateSecret(path string, key string, value string) error
	DeleteSecret(path string, key string) error
}

func NewSyncer

func NewSyncer(cfg *config.Config) (SecretSyncer, error)

type VaultSyncer

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

func NewVaultSyncer

func NewVaultSyncer(cfg *config.Config) (*VaultSyncer, error)

func (*VaultSyncer) CreateSecret

func (s *VaultSyncer) CreateSecret(path, key, value string) error

func (*VaultSyncer) DeleteSecret

func (s *VaultSyncer) DeleteSecret(path string, key string) error

func (*VaultSyncer) UpdateSecret

func (s *VaultSyncer) UpdateSecret(path string, key string, value string) error

Jump to

Keyboard shortcuts

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