minio

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ServiceName      = "minio-service"
	ServiceAPIPort   = 9000 // API port
	ServiceWebUIPort = 9001 // WebUI port
	DeploymentName   = "minio"
	Image            = "minio/minio:RELEASE.2024-03-30T09-41-56Z"
	StorageClassName = "standard" // standard | gp2 | default
	VolumeClaimName  = "minio-data"
	VolumeMountPath  = "/data"
	PVCStorageSize   = "1Gi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Minio

type Minio struct {
	Clientset kubernetes.Interface
	Namespace string
}

func (*Minio) DeleteFromMinio added in v0.13.0

func (m *Minio) DeleteFromMinio(ctx context.Context, minioFilePath, bucketName string) error

DeleteFromMinio deletes a file from Minio and fails if the content does not exist

func (*Minio) DeployMinio

func (m *Minio) DeployMinio(ctx context.Context) error

func (*Minio) GetMinioURL

func (m *Minio) GetMinioURL(ctx context.Context, minioFilePath, bucketName string) (string, error)

GetMinioURL returns an S3-compatible URL for a Minio file

func (*Minio) IsMinioDeployed

func (m *Minio) IsMinioDeployed(ctx context.Context) (bool, error)

func (*Minio) PushToMinio

func (m *Minio) PushToMinio(ctx context.Context, localReader io.Reader, minioFilePath, bucketName string) error

PushToMinio pushes data (i.e. a reader) to Minio

Jump to

Keyboard shortcuts

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