Documentation ¶
Index ¶
- type Gcs
- func (s *Gcs) Buckets(ctx context.Context, projectID string) ([]string, error)
- func (s *Gcs) Close() error
- func (s *Gcs) CreateBucket(ctx context.Context, projectID, name string) error
- func (s *Gcs) Delete(ctx context.Context, bucket, name string) error
- func (s *Gcs) DeleteBucket(ctx context.Context, name string) error
- func (s *Gcs) Exists(ctx context.Context, bucket, name string) (bool, error)
- func (s *Gcs) ExistsBucket(ctx context.Context, projectID, name string) (bool, error)
- func (s *Gcs) List(ctx context.Context, bucket, prefix string) ([]string, error)
- func (s *Gcs) Read(ctx context.Context, bucket, name string) ([]byte, error)
- func (s *Gcs) Write(ctx context.Context, bucket, name, contentType string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gcs ¶
type Gcs struct {
// contains filtered or unexported fields
}
func (*Gcs) CreateBucket ¶
バケット作成 if not exists
func (*Gcs) DeleteBucket ¶
バケット削除 if exists
func (*Gcs) ExistsBucket ¶
バケット存在確認
Click to show internal directories.
Click to hide internal directories.