objectstore

package
v2.0.0-...-6fac617 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

This package contains helper methods for using object stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBlob

func DownloadBlob(ctx context.Context, bucket *blob.Bucket, localDir, blobDir string) error

func MinioDefaultEndpoint

func MinioDefaultEndpoint() string

func OpenBucket

func OpenBucket(ctx context.Context, k8sClient kubernetes.Interface, namespace string, config *Config) (bucket *blob.Bucket, err error)

func UploadBlob

func UploadBlob(ctx context.Context, bucket *blob.Bucket, localPath, blobPath string) error

Types

type Config

type Config struct {
	Scheme      string
	BucketName  string
	Prefix      string
	QueryString string
}

func ParseBucketConfig

func ParseBucketConfig(path string) (*Config, error)

func ParseBucketConfigForArtifactURI

func ParseBucketConfigForArtifactURI(uri string) (*Config, error)

func (*Config) KeyFromURI

func (b *Config) KeyFromURI(uri string) (string, error)

func (*Config) PrefixedBucket

func (b *Config) PrefixedBucket() string

func (*Config) UriFromKey

func (b *Config) UriFromKey(blobKey string) string

Jump to

Keyboard shortcuts

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