Documentation
¶
Index ¶
- Constants
- Variables
- func NewClient(params ...client.ClientParam) (*v1.Client, error)
- func NewClientWithApiUrl(apiUrl string, params ...client.ClientParam) (*v1.Client, error)
- func NewClientWithApiUrlAndClient(apiUrl string, apiClient *http.Client, params ...client.ClientParam) (*v1.Client, error)
- func WithZone(z string) client.ClientParam
- type ClientAPI
- type ClientOp
- func (op *ClientOp) Create(ctx context.Context, p CloudHSMClientCreateParams) (*v1.CloudHSMClient, error)
- func (op *ClientOp) Delete(ctx context.Context, id string) error
- func (op *ClientOp) List(ctx context.Context) ([]v1.CloudHSMClient, error)
- func (op *ClientOp) Read(ctx context.Context, id string) (*v1.CloudHSMClient, error)
- func (op *ClientOp) Update(ctx context.Context, id string, p CloudHSMClientUpdateParams) (*v1.CloudHSMClient, error)
- type CloudHSMAPI
- type CloudHSMClientCreateParams
- type CloudHSMClientUpdateParams
- type CloudHSMCreateParams
- type CloudHSMOp
- func (op *CloudHSMOp) Create(ctx context.Context, p CloudHSMCreateParams) (*v1.CreateCloudHSM, error)
- func (op *CloudHSMOp) Delete(ctx context.Context, id string) error
- func (op *CloudHSMOp) List(ctx context.Context) ([]v1.CloudHSM, error)
- func (op *CloudHSMOp) Read(ctx context.Context, id string) (*v1.CloudHSM, error)
- func (op *CloudHSMOp) Update(ctx context.Context, id string, p CloudHSMUpdateParams) (*v1.CloudHSM, error)
- type CloudHSMPeerCreateParams
- type CloudHSMSoftwareLicenseCreateParams
- type CloudHSMSoftwareLicenseUpdateParams
- type CloudHSMUpdateParams
- type EmptySecuritySource
- type Error
- type LicenseAPI
- type LicenseOp
- func (op *LicenseOp) Create(ctx context.Context, p CloudHSMSoftwareLicenseCreateParams) (*v1.CreateCloudHSMSoftwareLicense, error)
- func (op *LicenseOp) Delete(ctx context.Context, id string) error
- func (op *LicenseOp) List(ctx context.Context) ([]v1.CloudHSMSoftwareLicense, error)
- func (op *LicenseOp) Read(ctx context.Context, id string) (*v1.CloudHSMSoftwareLicense, error)
- func (op *LicenseOp) Update(ctx context.Context, id string, p CloudHSMSoftwareLicenseUpdateParams) (*v1.CloudHSMSoftwareLicense, error)
- type PeerAPI
- type PeerOp
Constants ¶
View Source
const (
// DefaultAPIRootURL デフォルトのAPIルートURL
DefaultAPIRootURL = "https://secure.sakura.ad.jp/cloud/zone/is1b/api/cloud/1.1/"
)
View Source
const Version = "0.2.0"
Variables ¶
View Source
var ( // UserAgent APIリクエスト時のユーザーエージェント UserAgent = fmt.Sprintf( "cloudhsm-api-go/%s (%s/%s; +https://github.com/sacloud/cloudhsm-api-go) %s", Version, runtime.GOOS, runtime.GOARCH, client.DefaultUserAgent, ) RequestCustomizers = []saht.RequestCustomizer{ func(req *http.Request) error { req.Header.Set("X-Sakura-Bigint-As-Int", "1") return nil }, } )
Functions ¶
func NewClientWithApiUrl ¶
func WithZone ¶ added in v0.2.0
func WithZone(z string) client.ClientParam
Types ¶
type ClientAPI ¶
type ClientAPI interface {
List(ctx context.Context) ([]v1.CloudHSMClient, error)
Create(ctx context.Context, request CloudHSMClientCreateParams) (*v1.CloudHSMClient, error)
Read(ctx context.Context, id string) (*v1.CloudHSMClient, error)
Update(ctx context.Context, id string, params CloudHSMClientUpdateParams) (*v1.CloudHSMClient, error)
Delete(ctx context.Context, id string) error
}
type ClientOp ¶
type ClientOp struct {
// contains filtered or unexported fields
}
func (*ClientOp) Create ¶
func (op *ClientOp) Create(ctx context.Context, p CloudHSMClientCreateParams) (*v1.CloudHSMClient, error)
func (*ClientOp) Update ¶
func (op *ClientOp) Update(ctx context.Context, id string, p CloudHSMClientUpdateParams) (*v1.CloudHSMClient, error)
type CloudHSMAPI ¶
type CloudHSMAPI interface {
List(ctx context.Context) ([]v1.CloudHSM, error)
Create(ctx context.Context, request CloudHSMCreateParams) (*v1.CreateCloudHSM, error)
Read(ctx context.Context, id string) (*v1.CloudHSM, error)
Update(ctx context.Context, id string, params CloudHSMUpdateParams) (*v1.CloudHSM, error)
Delete(ctx context.Context, id string) error
}
func NewCloudHSMOp ¶
func NewCloudHSMOp(client *v1.Client) CloudHSMAPI
type CloudHSMClientUpdateParams ¶
type CloudHSMClientUpdateParams struct {
Name string
}
type CloudHSMCreateParams ¶
type CloudHSMOp ¶
type CloudHSMOp struct {
// contains filtered or unexported fields
}
func (*CloudHSMOp) Create ¶
func (op *CloudHSMOp) Create(ctx context.Context, p CloudHSMCreateParams) (*v1.CreateCloudHSM, error)
func (*CloudHSMOp) Update ¶
func (op *CloudHSMOp) Update(ctx context.Context, id string, p CloudHSMUpdateParams) (*v1.CloudHSM, error)
type CloudHSMUpdateParams ¶
type EmptySecuritySource ¶
type EmptySecuritySource struct{}
func (EmptySecuritySource) BasicAuth ¶
func (this EmptySecuritySource) BasicAuth(ctx context.Context, operationName v1.OperationName) (v1.BasicAuth, error)
type LicenseAPI ¶
type LicenseAPI interface {
List(ctx context.Context) ([]v1.CloudHSMSoftwareLicense, error)
Create(ctx context.Context, request CloudHSMSoftwareLicenseCreateParams) (*v1.CreateCloudHSMSoftwareLicense, error)
Read(ctx context.Context, id string) (*v1.CloudHSMSoftwareLicense, error)
Update(ctx context.Context, id string, params CloudHSMSoftwareLicenseUpdateParams) (*v1.CloudHSMSoftwareLicense, error)
Delete(ctx context.Context, id string) error
}
func NewLicenseOp ¶
func NewLicenseOp(client *v1.Client) LicenseAPI
type LicenseOp ¶
type LicenseOp struct {
// contains filtered or unexported fields
}
func (*LicenseOp) Create ¶
func (op *LicenseOp) Create(ctx context.Context, p CloudHSMSoftwareLicenseCreateParams) (*v1.CreateCloudHSMSoftwareLicense, error)
func (*LicenseOp) Update ¶
func (op *LicenseOp) Update(ctx context.Context, id string, p CloudHSMSoftwareLicenseUpdateParams) (*v1.CloudHSMSoftwareLicense, error)
type PeerAPI ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.