secrets

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package secrets implements Secrets plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger *zap.Logger
	Stopc  chan struct{}

	Client        k8s_client.EKS
	ClientTimeout time.Duration

	Namespace string

	// NamePrefix is the prefix of Secret name.
	// If multiple Secret loader is running,
	// this must be unique per worker to avoid name conflicts.
	NamePrefix string

	Objects    int
	ObjectSize int

	WritesJSONPath string
	ReadsJSONPath  string
}

Config configures Secret loader.

type Loader added in v1.2.2

type Loader interface {
	Start()
	Stop()
	CollectMetrics() (writes metrics.RequestsSummary, reads metrics.RequestsSummary, err error)
}

Loader defines Secret loader operations.

func New

func New(cfg Config) Loader

Directories

Path Synopsis
Package local implements Secrets plugin.
Package local implements Secrets plugin.
Package remote implements Secrets plugin.
Package remote implements Secrets plugin.

Jump to

Keyboard shortcuts

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