Documentation
¶
Index ¶
- func GetOssDirectory(ctx context.Context, bucket *oss.Bucket, objectName, path string) error
- func IsOssDirectory(bucket *oss.Bucket, objectName string) (bool, error)
- func IsOssErrCode(err error, code string) bool
- func ListOssDirectory(ctx context.Context, bucket *oss.Bucket, objectKey string) (files []string, err error)
- type ArtifactDriver
- func (ossDriver *ArtifactDriver) Delete(ctx context.Context, artifact *wfv1.Artifact) error
- func (ossDriver *ArtifactDriver) IsDirectory(ctx context.Context, artifact *wfv1.Artifact) (bool, error)
- func (ossDriver *ArtifactDriver) ListObjects(ctx context.Context, artifact *wfv1.Artifact) ([]string, error)
- func (ossDriver *ArtifactDriver) Load(ctx context.Context, inputArtifact *wfv1.Artifact, path string) error
- func (ossDriver *ArtifactDriver) OpenStream(ctx context.Context, inputArtifact *wfv1.Artifact) (io.ReadCloser, error)
- func (ossDriver *ArtifactDriver) Save(ctx context.Context, path string, outputArtifact *wfv1.Artifact) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOssDirectory ¶
GetOssDirectory download an OSS "directory" to local path
func IsOssDirectory ¶
IsOssDirectory tests if the key is acting like a OSS directory. This just means it has at least one object which is prefixed with the given key
func IsOssErrCode ¶
IsOssErrCode tests if an err is an oss.ServiceError with the specified code
Types ¶
type ArtifactDriver ¶
type ArtifactDriver struct {
Endpoint string
AccessKey string
SecretKey string
SecurityToken string
UseSDKCreds bool
}
ArtifactDriver is a driver for OSS
func (*ArtifactDriver) IsDirectory ¶
func (ossDriver *ArtifactDriver) IsDirectory(ctx context.Context, artifact *wfv1.Artifact) (bool, error)
IsDirectory tests if the key is acting like a OSS directory
func (*ArtifactDriver) ListObjects ¶
func (*ArtifactDriver) Load ¶
func (ossDriver *ArtifactDriver) Load(ctx context.Context, inputArtifact *wfv1.Artifact, path string) error
Load downloads artifacts from OSS compliant storage, e.g., downloading an artifact into local path
func (*ArtifactDriver) OpenStream ¶
func (ossDriver *ArtifactDriver) OpenStream(ctx context.Context, inputArtifact *wfv1.Artifact) (io.ReadCloser, error)
OpenStream opens a stream reader for an artifact from OSS compliant storage
Click to show internal directories.
Click to hide internal directories.