api

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueSshCredsV1Request

type IssueSshCredsV1Request struct {
	ProjectID    string                `json:"projectId"`
	TemplateName string                `json:"templateName"`
	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 {
	ProjectID    string                `json:"projectId"`
	TemplateName string                `json:"templateName"`
	PublicKey    string                `json:"publicKey"`
	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 SignSshPublicKeyV1Response

type SignSshPublicKeyV1Response struct {
	SerialNumber string `json:"serialNumber"`
	SignedKey    string `json:"signedKey"`
}

func CallSignSshPublicKeyV1

func CallSignSshPublicKeyV1(httpClient *resty.Client, request SignSshPublicKeyV1Request) (SignSshPublicKeyV1Response, error)

Jump to

Keyboard shortcuts

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