minio

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ServiceName         = "minio-service"
	ServicePort         = 9000
	ServiceExternalPort = 30505 // some random port
	DeploymentName      = "minio"
	Image               = "minio/minio:RELEASE.2024-01-28T22-35-53Z"
	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) 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