secrets

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 18 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 Secret tester.

Jump to

Keyboard shortcuts

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