ACME TLS ALPN
This commit is contained in:
parent
17ad5153b8
commit
139f280f35
258 changed files with 25528 additions and 1516 deletions
38
vendor/github.com/sacloud/libsacloud/sacloud/ssh_key.go
generated
vendored
Normal file
38
vendor/github.com/sacloud/libsacloud/sacloud/ssh_key.go
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
package sacloud
|
||||
|
||||
// SSHKey 公開鍵
|
||||
type SSHKey struct {
|
||||
*Resource // ID
|
||||
propName // 名称
|
||||
propDescription // 説明
|
||||
propCreatedAt // 作成日時
|
||||
|
||||
PublicKey string `json:",omitempty"` // 公開鍵
|
||||
Fingerprint string `json:",omitempty"` // フィンガープリント
|
||||
}
|
||||
|
||||
// SSHKeyGenerated 公開鍵生成戻り値(秘密鍵のダウンロード用)
|
||||
type SSHKeyGenerated struct {
|
||||
SSHKey
|
||||
PrivateKey string `json:",omitempty"` // 秘密鍵
|
||||
}
|
||||
|
||||
// GetPublicKey 公開鍵取得
|
||||
func (k *SSHKey) GetPublicKey() string {
|
||||
return k.PublicKey
|
||||
}
|
||||
|
||||
// SetPublicKey 公開鍵設定
|
||||
func (k *SSHKey) SetPublicKey(pKey string) {
|
||||
k.PublicKey = pKey
|
||||
}
|
||||
|
||||
// GetFingerprint フィンガープリント取得
|
||||
func (k *SSHKey) GetFingerprint() string {
|
||||
return k.Fingerprint
|
||||
}
|
||||
|
||||
// GetPrivateKey 秘密鍵取得
|
||||
func (k *SSHKeyGenerated) GetPrivateKey() string {
|
||||
return k.PrivateKey
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue