Documentation
¶
Index ¶
- type Client
- func (c *Client) ListBuildObjectNames(ctx context.Context, org, repo, build string) (map[string]string, error)
- func (c *Client) PresignedGetObject(ctx context.Context, object *api.Object) (string, error)
- func (c *Client) PresignedPutObject(ctx context.Context, path string, durationSeconds time.Duration) (string, error)
- func (c *Client) StatObject(ctx context.Context, object *types.Object) (*types.Object, error)
- type ClientOpt
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 NewTest ¶
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 ¶
PresignedGetObject generates a presigned URL for downloading an object.
func (*Client) PresignedPutObject ¶
Click to show internal directories.
Click to hide internal directories.