secrets

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 18 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
	LogWriter io.Writer

	Stopc chan struct{}

	S3API        s3iface.S3API
	S3BucketName string

	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

	RequestsRawWritesJSONPath       string
	RequestsRawWritesJSONS3Key      string
	RequestsSummaryWritesJSONPath   string
	RequestsSummaryWritesJSONS3Key  string
	RequestsSummaryWritesTablePath  string
	RequestsSummaryWritesTableS3Key string

	RequestsRawReadsJSONPath       string
	RequestsRawReadsJSONS3Key      string
	RequestsSummaryReadsJSONPath   string
	RequestsSummaryReadsJSONS3Key  string
	RequestsSummaryReadsTablePath  string
	RequestsSummaryReadsTableS3Key string
}

Config configures Secret loader.

type Loader added in v1.2.2

type Loader interface {
	Start()
	Stop()
	CollectMetrics() (writeLatencies metrics.Durations, writesSummary metrics.RequestsSummary, readLatencies metrics.Durations, readsSummary 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