secrets

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package secrets implements Secrets plugin.

Index

Constants

View Source
const ResultSuffixRead = "-secret-read.csv"

ResultSuffixRead is the suffix of the result file for "Secret" reads.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	Stopc     chan struct{}
	Sig       chan os.Signal
	EKSConfig *eksconfig.Config
	K8SClient k8sClientSetGetter
}

Config defines "Secrets" configuration.

type Tester

type Tester interface {
	// Create creates "Secret" objects to test "Secret" writes,
	// and "Pod" objects to test "Secret" reads.
	// ref. https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
	// Then, aggregate all reads results from remote nodes.
	Create() error
	// Delete deletes Secrets and Pods by deleting the namespace.
	Delete() error
	// AggregateResults aggregates all test results from remote nodes.
	AggregateResults() error
}

Tester defines "Secret" tester.

func New

func New(cfg Config) (Tester, error)

New creates a new Job tester.

Jump to

Keyboard shortcuts

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