Versions in this module Expand all Collapse all v0 v0.1.3 Nov 27, 2023 v0.1.2 May 31, 2023 Changes in this version + func NewQiniuAuthTransport(accessKey, secretKey string, transport http.RoundTripper, useQBoxAuth bool) http.RoundTripper + func NewUserAgentTransport(userAgent string, transport http.RoundTripper) http.RoundTripper + type Bucket struct + ID string + KodoRegionID string + Name string + type KodoClient struct + func NewKodoClient(accessKey, secretKey string, ucUrl *url.URL, version, commitId string) *KodoClient + func (client *KodoClient) CleanObjects(ctx context.Context, bucketName string) error + func (client *KodoClient) CreateBucket(ctx context.Context, bucketName, regionID string) error + func (client *KodoClient) CreateIAMPolicy(ctx context.Context, name, bucketName string) error + func (client *KodoClient) CreateIAMUser(ctx context.Context, userName, password string) error + func (client *KodoClient) DeleteBucket(ctx context.Context, bucketName string) error + func (client *KodoClient) DeleteIAMPolicy(ctx context.Context, name string) error + func (client *KodoClient) DeleteIAMUser(ctx context.Context, userName string) error + func (client *KodoClient) FindBucketByName(ctx context.Context, bucketName string, useCache bool) (*Bucket, error) + func (client *KodoClient) FromKodoRegionIDToS3RegionID(ctx context.Context, regionID string) (*string, error) + func (client *KodoClient) GetBuckets(ctx context.Context) ([]*Bucket, error) + func (client *KodoClient) GetCentralApiEndpoint(ctx context.Context) (*url.URL, error) + func (client *KodoClient) GetIAMUserKeyPair(ctx context.Context, userName string) (string, string, error) + func (client *KodoClient) GetRegions(ctx context.Context) ([]*Region, error) + func (client *KodoClient) GetRsEndpoint(ctx context.Context, regionID string) (*url.URL, error) + func (client *KodoClient) GetRsfEndpoint(ctx context.Context, regionID string) (*url.URL, error) + func (client *KodoClient) GetS3Endpoint(ctx context.Context, regionID string) (*url.URL, error) + func (client *KodoClient) GrantIAMPolicyToUser(ctx context.Context, userName string, policyNames []string) error + func (client *KodoClient) RevokeIAMPolicyFromUser(ctx context.Context, userName string, policyNames []string) error + type KodoErrorResponseBody struct + Message string + func (err *KodoErrorResponseBody) Error() string + type KodoFSClient struct + func NewKodoFSClient(accessKey, secretKey string, masterUrl *url.URL, version, commitId string) *KodoFSClient + func (client *KodoFSClient) CreateAccessPoint(ctx context.Context, volumeName, description string) (string, error) + func (client *KodoFSClient) CreateVolume(ctx context.Context, volumeName, description, region string, fsType uint8, ...) (string, error) + func (client *KodoFSClient) GetAccessToken(ctx context.Context, accessPointId string) (string, error) + func (client *KodoFSClient) IsVolumeExists(ctx context.Context, volumeName string) (bool, error) + func (client *KodoFSClient) RemoveAccessPoint(ctx context.Context, accessPointId string) error + func (client *KodoFSClient) RemoveVolume(ctx context.Context, volumeName string) error + func (client *KodoFSClient) RenameVolume(ctx context.Context, oldVolumeName, newVolumeName string) error + type KodoFSErrorResponseBody struct + Code int32 + ErrorCode string + Message string + func (err *KodoFSErrorResponseBody) Error() string + type ListedObjectResult struct + Error error + ObjectName string + type QiniuAuthTransport struct + func (t *QiniuAuthTransport) RoundTrip(request *http.Request) (*http.Response, error) + type Region struct + Api *Service + KodoRegionID string + Rs *Service + Rsf *Service + S3 *Service + type Service struct + Domains []string + S3RegionID string + type UserAgentTransport struct + func (t *UserAgentTransport) RoundTrip(request *http.Request) (*http.Response, error)