Documentation
¶
Index ¶
- func GetSshHostHostCaPublicKeyV1(httpClient *resty.Client, sshHostId string) (string, error)
- func GetSshHostUserCaPublicKeyV1(httpClient *resty.Client, sshHostId string) (string, error)
- type AddSshHostV1Request
- type AddSshHostV1Response
- type AllowedPrincipals
- type GetSshHostsV1Request
- type GetSshHostsV1Response
- type IssueSshCredsV1Request
- type IssueSshCredsV1Response
- type IssueSshHostHostCertV1Request
- type IssueSshHostHostCertV1Response
- type IssueSshHostUserCertV1Request
- type IssueSshHostUserCertV1Response
- type SignSshPublicKeyV1Request
- type SignSshPublicKeyV1Response
- type SshHost
- type SshHostLoginMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSshHostHostCaPublicKeyV1 ¶ added in v0.5.8
Types ¶
type AddSshHostV1Request ¶ added in v0.5.5
type AddSshHostV1Request struct {
ProjectID string `json:"projectId"`
Hostname string `json:"hostname"`
Alias string `json:"alias,omitempty"`
UserCertTtl string `json:"userCertTtl,omitempty"`
HostCertTtl string `json:"hostCertTtl,omitempty"`
UserSshCaId string `json:"userSshCaId,omitempty"`
HostSshCaId string `json:"hostSshCaId,omitempty"`
LoginMappings []SshHostLoginMapping `json:"loginMappings,omitempty"`
}
type AddSshHostV1Response ¶ added in v0.5.5
type AddSshHostV1Response SshHost
func CallAddSshHostV1 ¶ added in v0.5.5
func CallAddSshHostV1(httpClient *resty.Client, body AddSshHostV1Request) (AddSshHostV1Response, error)
type AllowedPrincipals ¶ added in v0.5.7
type AllowedPrincipals struct {
Usernames []string `json:"usernames"`
}
type GetSshHostsV1Request ¶ added in v0.5.2
type GetSshHostsV1Request struct{}
type GetSshHostsV1Response ¶ added in v0.5.2
type GetSshHostsV1Response []SshHost
func GetSshHostsV1 ¶ added in v0.5.2
func GetSshHostsV1(httpClient *resty.Client, _ GetSshHostsV1Request) (GetSshHostsV1Response, error)
type IssueSshCredsV1Request ¶
type IssueSshCredsV1Request struct {
CertificateTemplateID string `json:"certificateTemplateId"`
KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm,omitempty"`
CertType util.SshCertType `json:"certType,omitempty"`
Principals []string `json:"principals"`
TTL string `json:"ttl,omitempty"`
KeyID string `json:"keyId,omitempty"`
}
type IssueSshCredsV1Response ¶
type IssueSshCredsV1Response struct {
SerialNumber string `json:"serialNumber"`
SignedKey string `json:"signedKey"`
PrivateKey string `json:"privateKey"`
PublicKey string `json:"publicKey"`
KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm"`
}
func CallIssueSshCredsV1 ¶
func CallIssueSshCredsV1(httpClient *resty.Client, request IssueSshCredsV1Request) (IssueSshCredsV1Response, error)
type IssueSshHostHostCertV1Request ¶ added in v0.5.4
type IssueSshHostHostCertV1Request struct {
PublicKey string `json:"publicKey"`
}
type IssueSshHostHostCertV1Response ¶ added in v0.5.4
type IssueSshHostHostCertV1Response struct {
SerialNumber string `json:"serialNumber"`
SignedKey string `json:"signedKey"`
}
func CallIssueSshHostHostCertV1 ¶ added in v0.5.4
func CallIssueSshHostHostCertV1(httpClient *resty.Client, sshHostId string, body IssueSshHostHostCertV1Request) (IssueSshHostHostCertV1Response, error)
type IssueSshHostUserCertV1Request ¶ added in v0.5.4
type IssueSshHostUserCertV1Request struct {
LoginUser string `json:"loginUser"`
}
type IssueSshHostUserCertV1Response ¶ added in v0.5.4
type IssueSshHostUserCertV1Response struct {
SerialNumber string `json:"serialNumber"`
SignedKey string `json:"signedKey"`
PrivateKey string `json:"privateKey"`
PublicKey string `json:"publicKey"`
KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm"`
}
func CallIssueSshHostUserCertV1 ¶ added in v0.5.4
func CallIssueSshHostUserCertV1(httpClient *resty.Client, sshHostId string, body IssueSshHostUserCertV1Request) (IssueSshHostUserCertV1Response, error)
type SignSshPublicKeyV1Request ¶
type SignSshPublicKeyV1Request struct {
CertificateTemplateID string `json:"certificateTemplateId"`
PublicKey string `json:"publicKey"`
CertType util.SshCertType `json:"certType,omitempty"`
Principals []string `json:"principals"`
TTL string `json:"ttl,omitempty"`
KeyID string `json:"keyId,omitempty"`
}
type SignSshPublicKeyV1Response ¶
type SignSshPublicKeyV1Response struct {
SerialNumber string `json:"serialNumber"`
SignedKey string `json:"signedKey"`
}
func CallSignSshPublicKeyV1 ¶
func CallSignSshPublicKeyV1(httpClient *resty.Client, request SignSshPublicKeyV1Request) (SignSshPublicKeyV1Response, error)
type SshHost ¶ added in v0.5.2
type SshHost struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Hostname string `json:"hostname"`
Alias string `json:"alias,omitempty"`
UserCertTtl string `json:"userCertTtl"`
HostCertTtl string `json:"hostCertTtl"`
UserSshCaId string `json:"userSshCaId"`
HostSshCaId string `json:"hostSshCaId"`
LoginMappings []SshHostLoginMapping `json:"loginMappings"`
}
type SshHostLoginMapping ¶ added in v0.5.2
type SshHostLoginMapping struct {
LoginUser string `json:"loginUser"`
AllowedPrincipals AllowedPrincipals `json:"allowedPrincipals"`
}
Click to show internal directories.
Click to hide internal directories.