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 ¶
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
Click to show internal directories.
Click to hide internal directories.