minio

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Options *minio.Options
	// https://pkg.go.dev/github.com/sirupsen/logrus#Entry
	Logger *logrus.Entry
	// contains filtered or unexported fields
}

Client implements the Storage interface using MinIO.

func New

func New(endpoint string, opts ...ClientOpt) (*Client, error)

New creates a new MinIO client.

func NewTest

func NewTest(endpoint, accessKey, secretKey, bucket string, secure bool) (*Client, error)

NewTest returns a Storage implementation that integrates with a local MinIO instance.

This function is intended for running tests only.

func (*Client) ListBuildObjectNames

func (c *Client) ListBuildObjectNames(ctx context.Context, org, repo, build string) (map[string]string, error)

ListBuildObjectNames lists the names of objects in a bucket for a specific build.

func (*Client) PresignedGetObject

func (c *Client) PresignedGetObject(ctx context.Context, object *api.Object) (string, error)

PresignedGetObject generates a presigned URL for downloading an object.

func (*Client) PresignedPutObject

func (c *Client) PresignedPutObject(ctx context.Context, path string, durationSeconds time.Duration) (string, error)

func (*Client) StatObject

func (c *Client) StatObject(ctx context.Context, object *types.Object) (*types.Object, error)

StatObject retrieves the metadata of an object from the MinIO storage.

type ClientOpt

type ClientOpt func(client *Client) error

ClientOpt represents a configuration option to initialize the MinIO client.

func WithOptions

func WithOptions(enable, secure bool, endpoint, accessKey, secretKey, bucket, token, driver string) ClientOpt

WithOptions sets multiple options in the MinIO client.

Jump to

Keyboard shortcuts

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