Documentation
¶
Overview ¶
Package minio contains all the require functions to setup a MinIO deployment and query this MinIO deployment using the MinIO API
Index ¶
- func CleanFiles(minioEnv *Env, path string) (string, error)
- func CountFiles(minioEnv *Env, path string) (value int, err error)
- func Deploy(minioEnv *Env, env *environment.TestingEnvironment) (*corev1.Pod, error)
- func GetFilePath(serverName, fileName string) string
- func ListFiles(minioEnv *Env, path string) (string, error)
- func TestBarmanConnectivity(namespace, clusterName, primaryPodName, minioID, minioKey string, ...) (bool, error)
- type Env
- type Setup
- type TagSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanFiles ¶
CleanFiles clean files on minio for a given path
func CountFiles ¶
CountFiles uses the minioClient in the given `namespace` to count the amount of files matching the given `path`
func Deploy ¶
func Deploy(minioEnv *Env, env *environment.TestingEnvironment) (*corev1.Pod, error)
Deploy will create a full MinIO deployment defined inthe minioEnv variable
func GetFilePath ¶
GetFilePath gets the MinIO file string for WAL/backup objects in a configured bucket
Types ¶
type Env ¶
type Env struct {
Client *corev1.Pod
CaPair *certs.KeyPair
CaSecretObj corev1.Secret
ServiceName string
Namespace string
CaSecretName string
TLSSecret string
Timeout uint
}
Env contains all the information related or required by MinIO deployment and used by the functions on every test
func (*Env) CreateCaSecret ¶
func (m *Env) CreateCaSecret(env *environment.TestingEnvironment, namespace string) error
CreateCaSecret creates the certificates required to authenticate against the MinIO service
type Setup ¶
type Setup struct {
PersistentVolumeClaim corev1.PersistentVolumeClaim
Deployment appsv1.Deployment
Service corev1.Service
}
Setup contains the resources needed for a working minio server deployment: a PersistentVolumeClaim, a Deployment and a Service