Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorFromDecodedResponse[T, E any](method string, yield func() (any, error)) (res *T, err error)
- func NewClient(client saclient.ClientAPI) (*v1.Client, error)
- func NewClientWithAPIRootURL(client saclient.ClientAPI, apiRootURL string) (*v1.Client, error)
- type AIAPI
- type AIOp
- func (a *AIOp) Create(ctx context.Context, location string, sku v1.AiServiceSku) (*v1.PostDeploymentResponse, error)
- func (a *AIOp) Delete(ctx context.Context, id string) (err error)
- func (a *AIOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (a *AIOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (a *AIOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type CDNAPI
- type CDNCreateParams
- type CDNOp
- func (c *CDNOp) Create(ctx context.Context, params CDNCreateParams) (*v1.PostDeploymentResponse, error)
- func (c *CDNOp) Delete(ctx context.Context, id string) (err error)
- func (c *CDNOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (c *CDNOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (c *CDNOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type DDoSAPI
- type DDoSCreateParams
- type DDoSOp
- func (d *DDoSOp) Create(ctx context.Context, params DDoSCreateParams) (*v1.PostDeploymentResponse, error)
- func (d *DDoSOp) Delete(ctx context.Context, id string) (err error)
- func (d *DDoSOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (d *DDoSOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (d *DDoSOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type DWHAPI
- type DWHOp
- func (d *DWHOp) Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
- func (d *DWHOp) Delete(ctx context.Context, id string) (err error)
- func (d *DWHOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (d *DWHOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (d *DWHOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type DataLakeAPI
- type DataLakeCreateParams
- type DataLakeOp
- func (d *DataLakeOp) Create(ctx context.Context, params DataLakeCreateParams) (*v1.PostDeploymentResponse, error)
- func (d *DataLakeOp) Delete(ctx context.Context, id string) (err error)
- func (d *DataLakeOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (d *DataLakeOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (d *DataLakeOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type ETLAPI
- type ETLOp
- func (e *ETLOp) Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
- func (e *ETLOp) Delete(ctx context.Context, id string) (err error)
- func (e *ETLOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (e *ETLOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (e *ETLOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type Error
- type QueryAPI
- type QueryOp
- func (q *QueryOp) Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
- func (q *QueryOp) Delete(ctx context.Context, id string) (err error)
- func (q *QueryOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (q *QueryOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (q *QueryOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type SearchAPI
- type SearchCreateParams
- type SearchOp
- func (s *SearchOp) Create(ctx context.Context, params SearchCreateParams) (*v1.PostDeploymentResponse, error)
- func (s *SearchOp) Delete(ctx context.Context, id string) (err error)
- func (s *SearchOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (s *SearchOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (s *SearchOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type StreamingAPI
- type StreamingOp
- func (s *StreamingOp) Create(ctx context.Context, location, unitCount string) (*v1.PostDeploymentResponse, error)
- func (s *StreamingOp) Delete(ctx context.Context, id string) (err error)
- func (s *StreamingOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (s *StreamingOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (s *StreamingOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
- type VulnerabilityAPI
- type VulnerabilityCreateParams
- type VulnerabilityOp
- func (v *VulnerabilityOp) Create(ctx context.Context, params VulnerabilityCreateParams) (*v1.VulnerabilityResponseBody, error)
- func (v *VulnerabilityOp) Delete(ctx context.Context, id string) (err error)
- func (v *VulnerabilityOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (v *VulnerabilityOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- type WAFAPI
- type WAFCreateParams
- type WAFOp
- func (w *WAFOp) Create(ctx context.Context, params WAFCreateParams) (*v1.PostDeploymentResponse, error)
- func (w *WAFOp) Delete(ctx context.Context, id string) (err error)
- func (w *WAFOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
- func (w *WAFOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
- func (w *WAFOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
Constants ¶
View Source
const DefaultAPIRootURL = "https://secure.sakura.ad.jp/cloud/api/addon/1.0/"
DefaultAPIRootURL デフォルトのAPIルートURL
View Source
const Version = "0.0.1"
Variables ¶
View Source
var UserAgent = fmt.Sprintf( "addon-api-go/%s (%s/%s; +https://github.com/sacloud/addon-api-go)", Version, runtime.GOOS, runtime.GOARCH, )
UserAgent APIリクエスト時のユーザーエージェント
Functions ¶
Types ¶
type AIAPI ¶
type AIAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, location string, sku v1.AiServiceSku) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type AIOp ¶
func (*AIOp) Create ¶
func (a *AIOp) Create(ctx context.Context, location string, sku v1.AiServiceSku) (*v1.PostDeploymentResponse, error)
type CDNAPI ¶
type CDNAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params CDNCreateParams) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type CDNCreateParams ¶
type CDNCreateParams struct {
Location string
PricingLevel v1.PricingLevel
Patterns []string
Origin v1.FrontDoorOrigin
}
type CDNOp ¶
func (*CDNOp) Create ¶
func (c *CDNOp) Create(ctx context.Context, params CDNCreateParams) (*v1.PostDeploymentResponse, error)
type DDoSAPI ¶
type DDoSAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params DDoSCreateParams) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type DDoSCreateParams ¶
type DDoSCreateParams struct {
Location string
PricingLevel v1.PricingLevel
Patterns []string
Origin v1.FrontDoorOrigin
}
type DDoSOp ¶
func (*DDoSOp) Create ¶
func (d *DDoSOp) Create(ctx context.Context, params DDoSCreateParams) (*v1.PostDeploymentResponse, error)
type DWHAPI ¶
type DWHAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type DataLakeAPI ¶
type DataLakeAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params DataLakeCreateParams) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
func NewDataLakeOp ¶
func NewDataLakeOp(client *v1.Client) DataLakeAPI
type DataLakeCreateParams ¶
type DataLakeCreateParams struct {
Location string
Performance v1.DataLakePerformance
Redundancy v1.DataLakeRedundancy
}
type DataLakeOp ¶
func (*DataLakeOp) Create ¶
func (d *DataLakeOp) Create(ctx context.Context, params DataLakeCreateParams) (*v1.PostDeploymentResponse, error)
func (*DataLakeOp) List ¶
func (d *DataLakeOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
func (*DataLakeOp) Read ¶
func (d *DataLakeOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
func (*DataLakeOp) Status ¶
func (d *DataLakeOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
type ETLAPI ¶
type ETLAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewNotFoundError ¶
type QueryAPI ¶
type QueryAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, location string) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
func NewQueryOp ¶
type SearchAPI ¶
type SearchAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params SearchCreateParams) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
func NewSearchOp ¶
type SearchCreateParams ¶
type SearchOp ¶
func (*SearchOp) Create ¶
func (s *SearchOp) Create(ctx context.Context, params SearchCreateParams) (*v1.PostDeploymentResponse, error)
type StreamingAPI ¶
type StreamingAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, location, unitCount string) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
func NewStreamingOp ¶
func NewStreamingOp(client *v1.Client) StreamingAPI
type StreamingOp ¶
func (*StreamingOp) Create ¶
func (s *StreamingOp) Create(ctx context.Context, location, unitCount string) (*v1.PostDeploymentResponse, error)
func (*StreamingOp) Delete ¶
func (s *StreamingOp) Delete(ctx context.Context, id string) (err error)
func (*StreamingOp) List ¶
func (s *StreamingOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
func (*StreamingOp) Read ¶
func (s *StreamingOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
func (*StreamingOp) Status ¶
func (s *StreamingOp) Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
type VulnerabilityAPI ¶
type VulnerabilityAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params VulnerabilityCreateParams) (*v1.VulnerabilityResponseBody, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
}
func NewVulnerabilityOp ¶
func NewVulnerabilityOp(client *v1.Client) VulnerabilityAPI
type VulnerabilityCreateParams ¶
type VulnerabilityCreateParams struct {
Location string
Os v1.ServerOsType
}
type VulnerabilityOp ¶
func (*VulnerabilityOp) Create ¶
func (v *VulnerabilityOp) Create(ctx context.Context, params VulnerabilityCreateParams) (*v1.VulnerabilityResponseBody, error)
func (*VulnerabilityOp) Delete ¶
func (v *VulnerabilityOp) Delete(ctx context.Context, id string) (err error)
func (*VulnerabilityOp) List ¶
func (v *VulnerabilityOp) List(ctx context.Context) (ret []v1.ResourceGroupResource, err error)
func (*VulnerabilityOp) Read ¶
func (v *VulnerabilityOp) Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
type WAFAPI ¶
type WAFAPI interface {
List(ctx context.Context) ([]v1.ResourceGroupResource, error)
Create(ctx context.Context, params WAFCreateParams) (*v1.PostDeploymentResponse, error)
Read(ctx context.Context, id string) (*v1.GetResourceResponse, error)
Delete(ctx context.Context, id string) error
Status(ctx context.Context, resourceGroupName, deploymentName string) (*v1.DeploymentStatus, error)
}
type WAFCreateParams ¶
type WAFCreateParams struct {
Location string
PricingLevel v1.PricingLevel
Patterns []string
Origin v1.FrontDoorOrigin
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.