Documentation ¶
Index ¶
- type AWSObjectClient
- func (aws *AWSObjectClient) Auth(opts *ObjectOpts) error
- func (aws *AWSObjectClient) CreateBucket(bucketName string) error
- func (aws *AWSObjectClient) Credentials(userName, bucketName string) (string, string, error)
- func (aws *AWSObjectClient) DeleteBucket(bucketName string) error
- func (aws *AWSObjectClient) DeleteUser(userName string) error
- func (aws *AWSObjectClient) ListBuckets() ([]string, error)
- func (aws *AWSObjectClient) Provider() string
- type Client
- type GCPObjectClient
- func (gcp *GCPObjectClient) Auth(opts *ObjectOpts) error
- func (gcp *GCPObjectClient) CreateBucket(bucketName string) error
- func (gcp *GCPObjectClient) Credentials(userName, bucketName string) (string, string, error)
- func (gcp *GCPObjectClient) DeleteBucket(bucketName string) error
- func (gcp *GCPObjectClient) DeleteUser(userName string) error
- func (gcp *GCPObjectClient) ListBuckets() ([]string, error)
- func (gcp *GCPObjectClient) Provider() string
- type MinioObjectClient
- func (mc *MinioObjectClient) Auth(opts *ObjectOpts) error
- func (mc *MinioObjectClient) CreateBucket(bucketName string) error
- func (mc *MinioObjectClient) Credentials(userName, bucketName string) (string, string, error)
- func (mc *MinioObjectClient) DeleteBucket(bucketName string) error
- func (mc *MinioObjectClient) DeleteUser(userName string) error
- func (mc *MinioObjectClient) ListBuckets() ([]string, error)
- func (mc *MinioObjectClient) Provider() string
- type ObjectClient
- type ObjectOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSObjectClient ¶ added in v0.0.6
type AWSObjectClient struct { ObjectClient // contains filtered or unexported fields }
func (*AWSObjectClient) Auth ¶ added in v0.0.6
func (aws *AWSObjectClient) Auth(opts *ObjectOpts) error
func (*AWSObjectClient) CreateBucket ¶ added in v0.0.6
func (aws *AWSObjectClient) CreateBucket(bucketName string) error
func (*AWSObjectClient) Credentials ¶ added in v0.0.6
func (aws *AWSObjectClient) Credentials(userName, bucketName string) (string, string, error)
func (*AWSObjectClient) DeleteBucket ¶ added in v0.0.6
func (aws *AWSObjectClient) DeleteBucket(bucketName string) error
func (*AWSObjectClient) DeleteUser ¶ added in v0.0.6
func (aws *AWSObjectClient) DeleteUser(userName string) error
func (*AWSObjectClient) ListBuckets ¶ added in v0.0.6
func (aws *AWSObjectClient) ListBuckets() ([]string, error)
func (*AWSObjectClient) Provider ¶ added in v0.0.6
func (aws *AWSObjectClient) Provider() string
type Client ¶
type Client struct { *gitea.Client Instance *hyperv1.Gitea CA []byte // contains filtered or unexported fields }
func BuildFromOrg ¶
type GCPObjectClient ¶ added in v0.0.6
type GCPObjectClient struct { ObjectClient // contains filtered or unexported fields }
func (*GCPObjectClient) Auth ¶ added in v0.0.6
func (gcp *GCPObjectClient) Auth(opts *ObjectOpts) error
func (*GCPObjectClient) CreateBucket ¶ added in v0.0.6
func (gcp *GCPObjectClient) CreateBucket(bucketName string) error
func (*GCPObjectClient) Credentials ¶ added in v0.0.6
func (gcp *GCPObjectClient) Credentials(userName, bucketName string) (string, string, error)
func (*GCPObjectClient) DeleteBucket ¶ added in v0.0.6
func (gcp *GCPObjectClient) DeleteBucket(bucketName string) error
func (*GCPObjectClient) DeleteUser ¶ added in v0.0.6
func (gcp *GCPObjectClient) DeleteUser(userName string) error
func (*GCPObjectClient) ListBuckets ¶ added in v0.0.6
func (gcp *GCPObjectClient) ListBuckets() ([]string, error)
func (*GCPObjectClient) Provider ¶ added in v0.0.6
func (gcp *GCPObjectClient) Provider() string
type MinioObjectClient ¶ added in v0.0.6
type MinioObjectClient struct { ObjectClient // contains filtered or unexported fields }
func (*MinioObjectClient) Auth ¶ added in v0.0.6
func (mc *MinioObjectClient) Auth(opts *ObjectOpts) error
func (*MinioObjectClient) CreateBucket ¶ added in v0.0.6
func (mc *MinioObjectClient) CreateBucket(bucketName string) error
func (*MinioObjectClient) Credentials ¶ added in v0.0.6
func (mc *MinioObjectClient) Credentials(userName, bucketName string) (string, string, error)
func (*MinioObjectClient) DeleteBucket ¶ added in v0.0.6
func (mc *MinioObjectClient) DeleteBucket(bucketName string) error
func (*MinioObjectClient) DeleteUser ¶ added in v0.0.6
func (mc *MinioObjectClient) DeleteUser(userName string) error
func (*MinioObjectClient) ListBuckets ¶ added in v0.0.6
func (mc *MinioObjectClient) ListBuckets() ([]string, error)
func (*MinioObjectClient) Provider ¶ added in v0.0.6
func (mc *MinioObjectClient) Provider() string
type ObjectClient ¶ added in v0.0.6
type ObjectClient interface { // Authenticate with the Cloud Provider. Auth(opts *ObjectOpts) error // ListBuckets lists all buckets. ListBuckets() ([]string, error) // CreateBucket creates a new bucket. CreateBucket(bucketName string) error // DeleteBucket deletes a bucket. DeleteBucket(bucketName string) error // Create Cloud Provider specific credentials. Credentials(userName, bucketName string) (string, string, error) // Delete a user DeleteUser(userName string) error // Get the Cloud Provider Provider() string }
func NewObjectClient ¶ added in v0.0.6
func NewObjectClient(ctx context.Context, opts *ObjectOpts) (ObjectClient, error)
Click to show internal directories.
Click to hide internal directories.