Back to

Package csrs

Latest Go to latest

The latest major version is .

Published: 4 days ago | License: Apache-2.0 | Module:


Package csrs implements tester for CertificateSigningRequest.


type Config

type Config struct {
	Logger    *zap.Logger
	LogWriter io.Writer

	Stopc chan struct{}

	S3API        s3iface.S3API
	S3BucketName string

	CWAPI cloudwatchiface.CloudWatchAPI

	Client        k8s_client.EKS
	ClientTimeout time.Duration

	Objects int

	// InitialRequestConditionType is the initial CSR condition type
	// to simulate CSR condition.
	// Valid values are:
	//   "" == "Approved"
	//   "" == "Denied"
	//   "Random"
	//   "Pending"
	//   ""
	InitialRequestConditionType string

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

Config configures CSR loader.

type Loader

type Loader interface {
	CollectMetrics() (writeLatencies metrics.Durations, writesSummary metrics.RequestsSummary, err error)

Loader defines CSR loader operations.

func New

func New(cfg Config) Loader

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier