entity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityRecord

type ActivityRecord struct {
	RecordId          tkValueObject.ActivityRecordId           `json:"recordId"`
	RecordLevel       tkValueObject.ActivityRecordLevel        `json:"recordLevel"`
	RecordCode        tkValueObject.ActivityRecordCode         `json:"recordCode"`
	AffectedResources []tkValueObject.SystemResourceIdentifier `json:"affectedResources"`
	RecordDetails     any                                      `json:"recordDetails"`
	OperatorSri       *tkValueObject.SystemResourceIdentifier  `json:"operatorSri"`
	OperatorIpAddress *tkValueObject.IpAddress                 `json:"operatorIpAddress"`
	CreatedAt         tkValueObject.UnixTime                   `json:"createdAt"`
}

func NewActivityRecord

func NewActivityRecord(
	recordId tkValueObject.ActivityRecordId,
	recordLevel tkValueObject.ActivityRecordLevel,
	recordCode tkValueObject.ActivityRecordCode,
	affectedResources []tkValueObject.SystemResourceIdentifier,
	recordDetails any,
	operatorSri *tkValueObject.SystemResourceIdentifier,
	operatorIpAddress *tkValueObject.IpAddress,
	createdAt tkValueObject.UnixTime,
) ActivityRecord

type X509Certificate added in v0.2.0

type X509Certificate struct {
	SerialNumber  tkValueObject.X509SerialNumber  `json:"serialNumber"`
	VersionNumber tkValueObject.X509VersionNumber `json:"versionNumber"`

	SubjectCommonName        *tkValueObject.X509SubjectName       `json:"subjectCommonName"`
	SubjectAltNames          []tkValueObject.X509SubjectName      `json:"subjectAltNames"`
	SubjectDistinguishedName *tkValueObject.X509DistinguishedName `json:"subjectDistinguishedName"`

	IssuerCommonName        *tkValueObject.X509SubjectName       `json:"issuerCommonName"`
	IssuerDistinguishedName *tkValueObject.X509DistinguishedName `json:"issuerDistinguishedName"`

	ValidityNotBefore tkValueObject.UnixTime `json:"validityNotBefore"`
	ValidityNotAfter  tkValueObject.UnixTime `json:"validityNotAfter"`

	PublicKeyAlgorithm tkValueObject.X509PublicKeyAlgorithm `json:"publicKeyAlgorithm"`
	PublicKeySize      tkValueObject.X509PublicKeySize      `json:"publicKeySize"`
	PublicKeyValue     tkValueObject.X509PublicKeyValue     `json:"publicKeyValue"`

	SignatureAlgorithm tkValueObject.X509SignatureAlgorithm `json:"signatureAlgorithm"`
	SignatureValue     *tkValueObject.X509SignatureValue    `json:"signatureValue"`

	FingerprintSHA256 tkValueObject.X509Fingerprint `json:"fingerprintSha256"`
	FingerprintSHA1   tkValueObject.X509Fingerprint `json:"fingerprintSha1"`

	KeyUsage               []tkValueObject.X509KeyUsage         `json:"keyUsage"`
	ExtendedKeyUsage       []tkValueObject.X509ExtendedKeyUsage `json:"extendedKeyUsage"`
	BasicConstraints       *tkValueObject.X509BasicConstraints  `json:"basicConstraints"`
	SubjectKeyIdentifier   *tkValueObject.X509KeyIdentifier     `json:"subjectKeyIdentifier"`
	AuthorityKeyIdentifier *tkValueObject.X509KeyIdentifier     `json:"authorityKeyIdentifier"`

	CertificatePolicies []tkValueObject.X509CertificatePolicy `json:"certificatePolicies"`

	EnvelopedCertificate tkValueObject.X509EnvelopedCertificate `json:"envelopedCertificate"`
}

func NewX509Certificate added in v0.2.0

func NewX509Certificate(
	serialNumber tkValueObject.X509SerialNumber,
	versionNumber tkValueObject.X509VersionNumber,
	subjectCommonName *tkValueObject.X509SubjectName,
	subjectAltNames []tkValueObject.X509SubjectName,
	subjectDistinguishedName *tkValueObject.X509DistinguishedName,
	issuerCommonName *tkValueObject.X509SubjectName,
	issuerDistinguishedName *tkValueObject.X509DistinguishedName,
	validityNotBefore, validityNotAfter tkValueObject.UnixTime,
	publicKeyAlgorithm tkValueObject.X509PublicKeyAlgorithm,
	publicKeySize tkValueObject.X509PublicKeySize,
	publicKeyValue tkValueObject.X509PublicKeyValue,
	signatureAlgorithm tkValueObject.X509SignatureAlgorithm,
	signatureValue *tkValueObject.X509SignatureValue,
	fingerprintSHA256, fingerprintSHA1 tkValueObject.X509Fingerprint,
	keyUsage []tkValueObject.X509KeyUsage,
	extendedKeyUsage []tkValueObject.X509ExtendedKeyUsage,
	basicConstraints *tkValueObject.X509BasicConstraints,
	subjectKeyIdentifier, authorityKeyIdentifier *tkValueObject.X509KeyIdentifier,
	certificatePolicies []tkValueObject.X509CertificatePolicy,
	envelopedCertificate tkValueObject.X509EnvelopedCertificate,
) X509Certificate

func NewX509CertificateFromEnvelopedCertificate added in v0.2.0

func NewX509CertificateFromEnvelopedCertificate(
	envelopedCertificate tkValueObject.X509EnvelopedCertificate,
) (x509CertEntity X509Certificate, err error)

Jump to

Keyboard shortcuts

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