api

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSshHostUserCaPublicKeyV1 added in v0.5.2

func GetSshHostUserCaPublicKeyV1(httpClient *resty.Client, sshHostId string) (string, error)

Types

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 IssueSshCredsFromHostV1Response added in v0.5.2

type IssueSshCredsFromHostV1Response struct {
	SerialNumber string                `json:"serialNumber"`
	SignedKey    string                `json:"signedKey"`
	PrivateKey   string                `json:"privateKey"`
	PublicKey    string                `json:"publicKey"`
	KeyAlgorithm util.CertKeyAlgorithm `json:"keyAlgorithm"`
}

func CallIssueSshCredsFromHostV1 added in v0.5.2

func CallIssueSshCredsFromHostV1(httpClient *resty.Client, sshHostId string) (IssueSshCredsFromHostV1Response, 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 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"`
	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 []string `json:"allowedPrincipals"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL