service

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 1 module, 1 package

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

phy-service-go

Go Reference Tests Go Report Card

さくらの専用サーバPHY向け高レベルAPIライブラリ

概要

さくらの専用サーバPHYのAPIをラップし、CRUD+L+Action操作を統一的な手順で行えるインターフェースを提供します。

インターフェースの例:

// サーバ操作の例
func (s *Service) Find(req *FindRequest) ([]*Server, error)
func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*Server, error)

func (s *Service) Install(req *InstallRequest) error
func (s *Service) InstallWithContext(ctx context.Context, req *InstallRequest) error

func (s *Service) Power(req *PowerRequest) error
func (s *Service) PowerWithContext(ctx context.Context, req *PowerRequest) error

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

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

.
├── dedicated-subnet
├── private-network
├── server
│   ├── port
│   └── port-channel
└── service

License

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

This project is published under Apache 2.0 License.

Documentation

Index

Constants

View Source
const Version = "0.1.2"

Version バージョン

Variables

This section is empty.

Functions

func Services added in v0.0.3

func Services(client *phy.Client) []services.Service

Services サービス一覧を返す

Types

This section is empty.

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

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