service

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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.

Documentation

Index

Constants

View Source
const Version = "v0.1.0"

Version バージョン

Variables

View Source
var UserAgent = fmt.Sprintf(
	"object-storage-service-go/%s (%s/%s; +https://github.com/sacloud/object-storage-service-go) %s",
	Version,
	runtime.GOOS,
	runtime.GOARCH,
	objectstorage.UserAgent,
)

UserAgent APIリクエスト時のユーザーエージェント

Functions

func NewClient

func NewClient() *objectstorage.Client

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址