dto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMS

type DMS struct {
	Id                    string                        `json:"id"`
	Name                  string                        `json:"name"`
	SerialNumber          string                        `json:"serial_number,omitempty"`
	KeyMetadata           PrivateKeyMetadataWithStregth `json:"key_metadata"`
	Status                string                        `json:"status"`
	CsrBase64             string                        `json:"csr,omitempty"`
	CerificateBase64      string                        `json:"crt,omitempty"`
	Subject               Subject                       `json:"subject,omitempty"`
	AuthorizedCAs         []string                      `json:"authorized_cas,omitempty"`
	CreationTimestamp     string                        `json:"creation_timestamp,omitempty"`
	ModificationTimestamp string                        `json:"modification_timestamp,omitempty"`
	EnrolledDevices       int                           `json:"enrolled_devices"`
}

type DmsCreationResponse

type DmsCreationResponse struct {
	Dms     DMS    `json:"dms,omitempty"`
	PrivKey string `json:"priv_key,omitempty"`
}

type GetDmsResponse

type GetDmsResponse struct {
	TotalDmss int   `json:"total_dmss"`
	Dmss      []DMS `json:"dmss,omitempty"`
}

type PostCSRRequest

type PostCSRRequest struct {
	Csr     string `json:"csr" validate:"base64"`
	DmsName string `json:"name" validate:"required"`
}

type PostDmsCreationFormRequest

type PostDmsCreationFormRequest struct {
	DmsName     string             `json:"name" validate:"required"`
	Subject     Subject            `json:"subject" validate:"required"`
	KeyMetadata PrivateKeyMetadata `json:"key_metadata" validate:"required"`
}

type PrivateKeyMetadata

type PrivateKeyMetadata struct {
	KeyType string `json:"type" validate:"oneof='RSA' 'EC'"`
	KeyBits int    `json:"bits"`
}

type PrivateKeyMetadataWithStregth

type PrivateKeyMetadataWithStregth struct {
	KeyType     string `json:"type,omitempty"`
	KeyBits     int    `json:"bits,omitempty"`
	KeyStrength string `json:"strength,omitempty"`
}

type PutChangeDmsStatusRequest

type PutChangeDmsStatusRequest struct {
	Status string   `json:"status" validate:"oneof='PENDING_APPROVAL' 'APPROVED'  'DENIED'  'REVOKED'"`
	CAs    []string `json:"authorized_cas"`
	ID     string   `validate:"required"`
}

type Subject

type Subject struct {
	CN string `json:"common_name" validate:"required"`
	O  string `json:"organization,omitempty"`
	OU string `json:"organization_unit,omitempty"`
	C  string `json:"country,omitempty"`
	ST string `json:"state,omitempty"`
	L  string `json:"locality,omitempty"`
}

Jump to

Keyboard shortcuts

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