Skip to content

さくらのクラウド(オブジェクトストレージ)向け高レベルAPIライブラリ

License

Notifications You must be signed in to change notification settings

sacloud/object-storage-service-go

Repository files navigation

object-storage-service-go

Go Reference Tests Go Report Card

さくらのオブジェクトストレージ高レベルAPIライブラリ

概要

さくらのオブジェクトストレージAPIをラップし、CRUD+L操作を統一的な手順で行えるインターフェースを提供します。

インターフェースの例:

// パーミッション操作の例
func (s *Service) Create(req *CreateRequest) (*v1.Permission, error)
func (s *Service) CreateWithContext(ctx context.Context, req *CreateRequest) (*v1.Permission, error)

func (s *Service) Read(req *ReadRequest) (*v1.Permission, error)
func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*v1.Permission, error)

func (s *Service) Update(req *UpdateRequest) (*v1.Permission, error)
func (s *Service) UpdateWithContext(ctx context.Context, req *UpdateRequest) (*v1.Permission, error)

func (s *Service) Delete(req *DeleteRequest) error
func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error

func (s *Service) Find(req *FindRequest) ([]*v1.Permission, error)
func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*v1.Permission, error)

以下のリソースに対応しています。

.
├── account
│   └── accesskey
├── bucket
├── permission
│   ├── accesskey
│   └── bucketcontrol
└── site
    └── status

License

sacloud/object-storage-service-go Copyright (C) 2022-2023 The sacloud/object-storage-service-go Authors.

This project is published under Apache 2.0 License.

About

さくらのクラウド(オブジェクトストレージ)向け高レベルAPIライブラリ

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published