Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Connect() error
- func (c *Client) CreateBucket(bucket string) error
- func (c *Client) DeleteBucket(bucket string, force bool) error
- func (c *Client) DownloadFile(bucket, file string) (*minio.Object, error)
- func (c *Client) ListBuckets() ([]string, error)
- func (c *Client) ListFiles(bucket string) ([]testkube.Artifact, error)
- func (c *Client) PlaceCopyFiles(buckets []string, prefix string) error
- func (c *Client) SaveCopyFile(bucket string, filePath string, reader io.Reader, objectSize int64) error
- func (c *Client) SaveFile(bucket, filePath string) error
- func (c *Client) ScrapeArtefacts(id string, directories ...string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArtifactsNotFound = errors.New("Execution doesn't have any artifacts associated with it")
ErrArtifactsNotFound contains error for not existing artifacts
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Endpoint string Log *zap.SugaredLogger // contains filtered or unexported fields }
Client for managing MinIO storage server
func (*Client) CreateBucket ¶
CreateBucket creates new S3 like bucket
func (*Client) DeleteBucket ¶
DeleteBucket deletes bucket by name
func (*Client) DownloadFile ¶
DownloadFile downloads file in bucket
func (*Client) ListBuckets ¶
ListBuckets lists available buckets
func (*Client) PlaceCopyFiles ¶ added in v1.6.35
PlaceCopyFiles saves the content of the buckets to the filesystem
func (*Client) SaveCopyFile ¶ added in v1.6.35
func (c *Client) SaveCopyFile(bucket string, filePath string, reader io.Reader, objectSize int64) error
SaveCopyFile saves a file to be copied into a running execution
Click to show internal directories.
Click to hide internal directories.