keyPairs

package
v62.0.0-...-eaec136 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName - The name of service.
	ServiceName = "KeyPairs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteChainCertificateCommandInput

type DeleteChainCertificateCommandInput struct {
	KeyPairId          string
	ChainCertificateId string
}

DeleteChainCertificateCommandInput - Inputs for DeleteChainCertificateCommand

type DeleteKeyPairCommandInput

type DeleteKeyPairCommandInput struct {
	Id string
}

DeleteKeyPairCommandInput - Inputs for DeleteKeyPairCommand

type ExportKeyPairCertInput

type ExportKeyPairCertInput struct {
	Id string
}

ExportKeyPairCertInput - Inputs for ExportKeyPairCert

type ExportKeyPairInput

type ExportKeyPairInput struct {
	Body models.ExportParameters
	Id   string
}

ExportKeyPairInput - Inputs for ExportKeyPair

type GenerateCsrCommandInput

type GenerateCsrCommandInput struct {
	Id string
}

GenerateCsrCommandInput - Inputs for GenerateCsrCommand

type GenerateKeyPairCommandInput

type GenerateKeyPairCommandInput struct {
	Body models.NewKeyPairConfigView
}

GenerateKeyPairCommandInput - Inputs for GenerateKeyPairCommand

type GetKeyPairCommandInput

type GetKeyPairCommandInput struct {
	Id string
}

GetKeyPairCommandInput - Inputs for GetKeyPairCommand

type GetKeyPairsCommandInput

type GetKeyPairsCommandInput struct {
	Page          string
	NumberPerPage string
	Filter        string
	Alias         string
	SortKey       string
	Order         string
}

GetKeyPairsCommandInput - Inputs for GetKeyPairsCommand

type ImportCSRResponseCommandInput

type ImportCSRResponseCommandInput struct {
	Body models.CSRResponseImportDocView
	Id   string
}

ImportCSRResponseCommandInput - Inputs for ImportCSRResponseCommand

type ImportKeyPairCommandInput

type ImportKeyPairCommandInput struct {
	Body models.PKCS12FileImportDocView
}

ImportKeyPairCommandInput - Inputs for ImportKeyPairCommand

type KeyPairsAPI

type KeyPairsAPI interface {
	GetKeyPairsCommand(input *GetKeyPairsCommandInput) (output *models.KeyPairsView, resp *http.Response, err error)
	GenerateKeyPairCommand(input *GenerateKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	ImportKeyPairCommand(input *ImportKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	KeyAlgorithms() (output *models.KeyAlgorithmsView, resp *http.Response, err error)
	GetKeypairsCreatableGeneralNamesCommand() (output *models.SanTypes, resp *http.Response, err error)
	DeleteKeyPairCommand(input *DeleteKeyPairCommandInput) (resp *http.Response, err error)
	GetKeyPairCommand(input *GetKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	PatchKeyPairCommand(input *PatchKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	UpdateKeyPairCommand(input *UpdateKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	ExportKeyPairCert(input *ExportKeyPairCertInput) (output *string, resp *http.Response, err error)
	GenerateCsrCommand(input *GenerateCsrCommandInput) (output *string, resp *http.Response, err error)
	ImportCSRResponseCommand(input *ImportCSRResponseCommandInput) (output *models.KeyPairView, resp *http.Response, err error)
	ExportKeyPair(input *ExportKeyPairInput) (resp *http.Response, err error)
	DeleteChainCertificateCommand(input *DeleteChainCertificateCommandInput) (resp *http.Response, err error)
}

type KeyPairsService

type KeyPairsService struct {
	*client.Client
}

KeyPairsService provides the API operations for making requests to KeyPairs endpoint.

func New

func New(cfg *config.Config) *KeyPairsService

New createa a new instance of the KeyPairsService client.

Example:

cfg := config.NewConfig().WithUsername("Administrator").WithPassword("2Access").WithEndpoint(paURL)

//Create a KeyPairsService from the configuration
svc := keyPairs.New(cfg)

func (*KeyPairsService) DeleteChainCertificateCommand

func (s *KeyPairsService) DeleteChainCertificateCommand(input *DeleteChainCertificateCommandInput) (resp *http.Response, err error)

DeleteChainCertificateCommand - Delete a Chain Certificate RequestType: DELETE Input: input *DeleteChainCertificateCommandInput

func (*KeyPairsService) DeleteKeyPairCommand

func (s *KeyPairsService) DeleteKeyPairCommand(input *DeleteKeyPairCommandInput) (resp *http.Response, err error)

DeleteKeyPairCommand - Delete a Key Pair RequestType: DELETE Input: input *DeleteKeyPairCommandInput

func (*KeyPairsService) ExportKeyPair

func (s *KeyPairsService) ExportKeyPair(input *ExportKeyPairInput) (resp *http.Response, err error)

ExportKeyPair - Export a Key Pair in the PKCS12 file format RequestType: POST Input: input *ExportKeyPairInput

func (*KeyPairsService) ExportKeyPairCert

func (s *KeyPairsService) ExportKeyPairCert(input *ExportKeyPairCertInput) (output *string, resp *http.Response, err error)

ExportKeyPairCert - Export only the Certificate from a Key Pair RequestType: GET Input: input *ExportKeyPairCertInput

func (*KeyPairsService) GenerateCsrCommand

func (s *KeyPairsService) GenerateCsrCommand(input *GenerateCsrCommandInput) (output *string, resp *http.Response, err error)

GenerateCsrCommand - Generate a Certificate Signing Request for a Key Pair RequestType: GET Input: input *GenerateCsrCommandInput

func (*KeyPairsService) GenerateKeyPairCommand

func (s *KeyPairsService) GenerateKeyPairCommand(input *GenerateKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

GenerateKeyPairCommand - Generate a Key Pair RequestType: POST Input: input *GenerateKeyPairCommandInput

func (*KeyPairsService) GetKeyPairCommand

func (s *KeyPairsService) GetKeyPairCommand(input *GetKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

GetKeyPairCommand - Get a Key Pair RequestType: GET Input: input *GetKeyPairCommandInput

func (*KeyPairsService) GetKeyPairsCommand

func (s *KeyPairsService) GetKeyPairsCommand(input *GetKeyPairsCommandInput) (output *models.KeyPairsView, resp *http.Response, err error)

GetKeyPairsCommand - Get all Key Pairs RequestType: GET Input: input *GetKeyPairsCommandInput

func (*KeyPairsService) GetKeypairsCreatableGeneralNamesCommand

func (s *KeyPairsService) GetKeypairsCreatableGeneralNamesCommand() (output *models.SanTypes, resp *http.Response, err error)

GetKeypairsCreatableGeneralNamesCommand - Get the valid General Names for creating Subject Alternative Names RequestType: GET Input:

func (*KeyPairsService) ImportCSRResponseCommand

func (s *KeyPairsService) ImportCSRResponseCommand(input *ImportCSRResponseCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportCSRResponseCommand - Import a Certificate Signing Request response RequestType: POST Input: input *ImportCSRResponseCommandInput

func (*KeyPairsService) ImportKeyPairCommand

func (s *KeyPairsService) ImportKeyPairCommand(input *ImportKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportKeyPairCommand - Import a Key Pair from a PKCS12 file RequestType: POST Input: input *ImportKeyPairCommandInput

func (*KeyPairsService) KeyAlgorithms

func (s *KeyPairsService) KeyAlgorithms() (output *models.KeyAlgorithmsView, resp *http.Response, err error)

KeyAlgorithms - Get the key algorithms supported by Key Pair generation RequestType: GET Input:

func (*KeyPairsService) PatchKeyPairCommand

func (s *KeyPairsService) PatchKeyPairCommand(input *PatchKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

PatchKeyPairCommand - Update the chainCertificates of a Key Pair RequestType: PATCH Input: input *PatchKeyPairCommandInput

func (*KeyPairsService) UpdateKeyPairCommand

func (s *KeyPairsService) UpdateKeyPairCommand(input *UpdateKeyPairCommandInput) (output *models.KeyPairView, resp *http.Response, err error)

UpdateKeyPairCommand - Update a Key Pair RequestType: PUT Input: input *UpdateKeyPairCommandInput

type PatchKeyPairCommandInput

type PatchKeyPairCommandInput struct {
	Body models.ChainCertificatesDocView
	Id   string
}

PatchKeyPairCommandInput - Inputs for PatchKeyPairCommand

type UpdateKeyPairCommandInput

type UpdateKeyPairCommandInput struct {
	Body models.PKCS12FileImportDocView
	Id   string
}

UpdateKeyPairCommandInput - Inputs for UpdateKeyPairCommand

Jump to

Keyboard shortcuts

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