report

package
v0.0.0-...-d5bad45 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMinioClient = errors.New("minio client not initialized")

ErrNoMinioClient is returned when the package was not initialized with `InitObjectStorageClient`

Functions

func InitObjectStorageClient

func InitObjectStorageClient(cfg Config) error

InitObjectStorageClient inits new minio backend client to work with S3 compatible storages

func PersistHandler

func PersistHandler(kubeClient *kk8s.Client, logger *zap.Logger) func(w http.ResponseWriter, r *http.Request)

PersistHandler method streams request to storage presigned URL

func ShowHandler

func ShowHandler() func(w http.ResponseWriter, r *http.Request)

ShowHandler method returns response from file bucket in defined object storage

Types

type Config

type Config struct {
	// S3 compatible configuration access keys and endpoints needed to store load test reports
	AWSAccessKeyID      string `envconfig:"AWS_ACCESS_KEY_ID" default:""`
	AWSSecretAccessKey  string `envconfig:"AWS_SECRET_ACCESS_KEY" default:""`
	AWSRegion           string `envconfig:"AWS_DEFAULT_REGION" default:""`
	AWSEndpointURL      string `envconfig:"AWS_ENDPOINT_URL" default:""`
	AWSBucketName       string `envconfig:"AWS_BUCKET_NAME" default:""`
	AWSUseHTTPS         bool   `envconfig:"AWS_USE_HTTPS" default:"false"`
	AWSPresignedExpires string `envconfig:"AWS_PRESIGNED_EXPIRES" default:""`
}

Config is the report package related basic config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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