Documentation
¶
Index ¶
- type APIClient
- func (c *APIClient) Delete(strID string, strDisks []string) error
- func (c *APIClient) DiskBuilderClient() *disk.APIClient
- func (c *APIClient) GetIP(strID string) (string, error)
- func (c *APIClient) Init()
- func (c *APIClient) IsExistsPacketFilter(id types.ID) (bool, error)
- func (c *APIClient) IsValidPlan(core, memory, gpu int) (bool, error)
- func (c *APIClient) PowerOff(strID string) error
- func (c *APIClient) PowerOn(strID string) error
- func (c *APIClient) ReadServer(ctx context.Context, id types.ID) (*sacloud.Server, error)
- func (c *APIClient) ServerBuilderClient() *server.APIClient
- func (c *APIClient) State(strID string) (string, error)
- func (c *APIClient) ValidateClientConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { AccessToken string AccessTokenSecret string Zone string Region string // 後方互換 Password string // config storeへ残しておくため // contains filtered or unexported fields }
APIClient client for SakuraCloud API
func NewAPIClient ¶
NewAPIClient returns new APIClient
func (*APIClient) DiskBuilderClient ¶ added in v1.5.0
DiskBuilderClient returns a api client for DiskBuilder
func (*APIClient) IsExistsPacketFilter ¶
IsExistsPacketFilter returns true is PakcetFilter is exists
func (*APIClient) IsValidPlan ¶
IsValidPlan validates plan
func (*APIClient) ReadServer ¶ added in v1.4.1
ReadServer returns server info
func (*APIClient) ServerBuilderClient ¶ added in v1.4.1
ServerBuilderClient returns a api client for ServerBuilder
func (*APIClient) ValidateClientConfig ¶
ValidateClientConfig validates client config
Click to show internal directories.
Click to hide internal directories.