keyPairsSigning

package
v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateKeyPairInput

type CreateKeyPairInput struct {
	Body models.NewKeyPairSettings
}

type DeleteKeyPairInput

type DeleteKeyPairInput struct {
	Id string
}

type DeleteKeyPairRotationSettingsInput

type DeleteKeyPairRotationSettingsInput struct {
	Id string
}

type ExportCertificateFileInput

type ExportCertificateFileInput struct {
	Id string
}

type ExportCsrInput

type ExportCsrInput struct {
	Id string
}

type ExportPKCS12FileInput

type ExportPKCS12FileInput struct {
	Body models.PKCS12ExportSettings
	Id   string
}

type GetKeyPairInput

type GetKeyPairInput struct {
	Id string
}

type GetRotationSettingsInput

type GetRotationSettingsInput struct {
	Id string
}

type ImportCsrResponseInput

type ImportCsrResponseInput struct {
	Body models.CSRResponse
	Id   string
}

type ImportKeyPairInput

type ImportKeyPairInput struct {
	Body models.PKCS12File
}

type KeyPairsSigningAPI

type KeyPairsSigningAPI interface {
	GetKeyPairs() (output *models.KeyPairViews, resp *http.Response, err error)
	GetKeyPairsWithContext(ctx context.Context) (output *models.KeyPairViews, resp *http.Response, err error)

	ImportKeyPair(input *ImportKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)
	ImportKeyPairWithContext(ctx context.Context, input *ImportKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

	CreateKeyPair(input *CreateKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)
	CreateKeyPairWithContext(ctx context.Context, input *CreateKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

	GetKeyPair(input *GetKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)
	GetKeyPairWithContext(ctx context.Context, input *GetKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

	DeleteKeyPair(input *DeleteKeyPairInput) (output *models.ApiResult, resp *http.Response, err error)
	DeleteKeyPairWithContext(ctx context.Context, input *DeleteKeyPairInput) (output *models.ApiResult, resp *http.Response, err error)

	ExportCsr(input *ExportCsrInput) (output *string, resp *http.Response, err error)
	ExportCsrWithContext(ctx context.Context, input *ExportCsrInput) (output *string, resp *http.Response, err error)

	ImportCsrResponse(input *ImportCsrResponseInput) (output *models.KeyPairView, resp *http.Response, err error)
	ImportCsrResponseWithContext(ctx context.Context, input *ImportCsrResponseInput) (output *models.KeyPairView, resp *http.Response, err error)

	ExportPKCS12File(input *ExportPKCS12FileInput) (resp *http.Response, err error)
	ExportPKCS12FileWithContext(ctx context.Context, input *ExportPKCS12FileInput) (resp *http.Response, err error)

	ExportCertificateFile(input *ExportCertificateFileInput) (output *string, resp *http.Response, err error)
	ExportCertificateFileWithContext(ctx context.Context, input *ExportCertificateFileInput) (output *string, resp *http.Response, err error)

	GetRotationSettings(input *GetRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)
	GetRotationSettingsWithContext(ctx context.Context, input *GetRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

	UpdateRotationSettings(input *UpdateRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)
	UpdateRotationSettingsWithContext(ctx context.Context, input *UpdateRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

	DeleteKeyPairRotationSettings(input *DeleteKeyPairRotationSettingsInput) (output *models.ApiResult, resp *http.Response, err error)
	DeleteKeyPairRotationSettingsWithContext(ctx context.Context, input *DeleteKeyPairRotationSettingsInput) (output *models.ApiResult, resp *http.Response, err error)
}

type KeyPairsSigningService

type KeyPairsSigningService struct {
	*client.PfClient
}

func New

New creates a new instance of the KeyPairsSigningService client.

func (*KeyPairsSigningService) CreateKeyPair

func (s *KeyPairsSigningService) CreateKeyPair(input *CreateKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

CreateKeyPair - Generate a new key pair. RequestType: POST Input: input *CreateKeyPairInput

func (*KeyPairsSigningService) CreateKeyPairWithContext

func (s *KeyPairsSigningService) CreateKeyPairWithContext(ctx context.Context, input *CreateKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

CreateKeyPairWithContext - Generate a new key pair. RequestType: POST Input: ctx context.Context, input *CreateKeyPairInput

func (*KeyPairsSigningService) DeleteKeyPair

func (s *KeyPairsSigningService) DeleteKeyPair(input *DeleteKeyPairInput) (output *models.ApiResult, resp *http.Response, err error)

DeleteKeyPair - Delete a key pair. RequestType: DELETE Input: input *DeleteKeyPairInput

func (*KeyPairsSigningService) DeleteKeyPairRotationSettings

func (s *KeyPairsSigningService) DeleteKeyPairRotationSettings(input *DeleteKeyPairRotationSettingsInput) (output *models.ApiResult, resp *http.Response, err error)

DeleteKeyPairRotationSettings - Delete rotation settings for a signing key pair. RequestType: DELETE Input: input *DeleteKeyPairRotationSettingsInput

func (*KeyPairsSigningService) DeleteKeyPairRotationSettingsWithContext

func (s *KeyPairsSigningService) DeleteKeyPairRotationSettingsWithContext(ctx context.Context, input *DeleteKeyPairRotationSettingsInput) (output *models.ApiResult, resp *http.Response, err error)

DeleteKeyPairRotationSettingsWithContext - Delete rotation settings for a signing key pair. RequestType: DELETE Input: ctx context.Context, input *DeleteKeyPairRotationSettingsInput

func (*KeyPairsSigningService) DeleteKeyPairWithContext

func (s *KeyPairsSigningService) DeleteKeyPairWithContext(ctx context.Context, input *DeleteKeyPairInput) (output *models.ApiResult, resp *http.Response, err error)

DeleteKeyPairWithContext - Delete a key pair. RequestType: DELETE Input: ctx context.Context, input *DeleteKeyPairInput

func (*KeyPairsSigningService) ExportCertificateFile

func (s *KeyPairsSigningService) ExportCertificateFile(input *ExportCertificateFileInput) (output *string, resp *http.Response, err error)

ExportCertificateFile - Download the certificate from a given key pair. RequestType: GET Input: input *ExportCertificateFileInput

func (*KeyPairsSigningService) ExportCertificateFileWithContext

func (s *KeyPairsSigningService) ExportCertificateFileWithContext(ctx context.Context, input *ExportCertificateFileInput) (output *string, resp *http.Response, err error)

ExportCertificateFileWithContext - Download the certificate from a given key pair. RequestType: GET Input: ctx context.Context, input *ExportCertificateFileInput

func (*KeyPairsSigningService) ExportCsr

func (s *KeyPairsSigningService) ExportCsr(input *ExportCsrInput) (output *string, resp *http.Response, err error)

ExportCsr - Generate a new certificate signing request (CSR) for this key pair. RequestType: GET Input: input *ExportCsrInput

func (*KeyPairsSigningService) ExportCsrWithContext

func (s *KeyPairsSigningService) ExportCsrWithContext(ctx context.Context, input *ExportCsrInput) (output *string, resp *http.Response, err error)

ExportCsrWithContext - Generate a new certificate signing request (CSR) for this key pair. RequestType: GET Input: ctx context.Context, input *ExportCsrInput

func (*KeyPairsSigningService) ExportPKCS12File

func (s *KeyPairsSigningService) ExportPKCS12File(input *ExportPKCS12FileInput) (resp *http.Response, err error)

ExportPKCS12File - Download the key pair in PKCS12 format. RequestType: POST Input: input *ExportPKCS12FileInput

func (*KeyPairsSigningService) ExportPKCS12FileWithContext

func (s *KeyPairsSigningService) ExportPKCS12FileWithContext(ctx context.Context, input *ExportPKCS12FileInput) (resp *http.Response, err error)

ExportPKCS12FileWithContext - Download the key pair in PKCS12 format. RequestType: POST Input: ctx context.Context, input *ExportPKCS12FileInput

func (*KeyPairsSigningService) GetKeyPair

func (s *KeyPairsSigningService) GetKeyPair(input *GetKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

GetKeyPair - Retrieve details of a key pair. RequestType: GET Input: input *GetKeyPairInput

func (*KeyPairsSigningService) GetKeyPairWithContext

func (s *KeyPairsSigningService) GetKeyPairWithContext(ctx context.Context, input *GetKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

GetKeyPairWithContext - Retrieve details of a key pair. RequestType: GET Input: ctx context.Context, input *GetKeyPairInput

func (*KeyPairsSigningService) GetKeyPairs

func (s *KeyPairsSigningService) GetKeyPairs() (output *models.KeyPairViews, resp *http.Response, err error)

GetKeyPairs - Get list of key pairs. RequestType: GET Input:

func (*KeyPairsSigningService) GetKeyPairsWithContext

func (s *KeyPairsSigningService) GetKeyPairsWithContext(ctx context.Context) (output *models.KeyPairViews, resp *http.Response, err error)

GetKeyPairsWithContext - Get list of key pairs. RequestType: GET Input: ctx context.Context,

func (*KeyPairsSigningService) GetRotationSettings

func (s *KeyPairsSigningService) GetRotationSettings(input *GetRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

GetRotationSettings - Retrieve details of rotation settings for a key pair. RequestType: GET Input: input *GetRotationSettingsInput

func (*KeyPairsSigningService) GetRotationSettingsWithContext

func (s *KeyPairsSigningService) GetRotationSettingsWithContext(ctx context.Context, input *GetRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

GetRotationSettingsWithContext - Retrieve details of rotation settings for a key pair. RequestType: GET Input: ctx context.Context, input *GetRotationSettingsInput

func (*KeyPairsSigningService) ImportCsrResponse

func (s *KeyPairsSigningService) ImportCsrResponse(input *ImportCsrResponseInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportCsrResponse - Import a CSR response for this key pair. RequestType: POST Input: input *ImportCsrResponseInput

func (*KeyPairsSigningService) ImportCsrResponseWithContext

func (s *KeyPairsSigningService) ImportCsrResponseWithContext(ctx context.Context, input *ImportCsrResponseInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportCsrResponseWithContext - Import a CSR response for this key pair. RequestType: POST Input: ctx context.Context, input *ImportCsrResponseInput

func (*KeyPairsSigningService) ImportKeyPair

func (s *KeyPairsSigningService) ImportKeyPair(input *ImportKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportKeyPair - Import a new key pair. RequestType: POST Input: input *ImportKeyPairInput

func (*KeyPairsSigningService) ImportKeyPairWithContext

func (s *KeyPairsSigningService) ImportKeyPairWithContext(ctx context.Context, input *ImportKeyPairInput) (output *models.KeyPairView, resp *http.Response, err error)

ImportKeyPairWithContext - Import a new key pair. RequestType: POST Input: ctx context.Context, input *ImportKeyPairInput

func (*KeyPairsSigningService) UpdateRotationSettings

func (s *KeyPairsSigningService) UpdateRotationSettings(input *UpdateRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

UpdateRotationSettings - Add rotation settings to a key pair RequestType: PUT Input: input *UpdateRotationSettingsInput

func (*KeyPairsSigningService) UpdateRotationSettingsWithContext

func (s *KeyPairsSigningService) UpdateRotationSettingsWithContext(ctx context.Context, input *UpdateRotationSettingsInput) (output *models.KeyPairRotationSettings, resp *http.Response, err error)

UpdateRotationSettingsWithContext - Add rotation settings to a key pair RequestType: PUT Input: ctx context.Context, input *UpdateRotationSettingsInput

type UpdateRotationSettingsInput

type UpdateRotationSettingsInput struct {
	Body models.KeyPairRotationSettings
	Id   string
}

Jump to

Keyboard shortcuts

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