trust

package
v0.0.0-...-cc6fb7d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.
	Revision int64 `json:"_revision"`

	// Timestamp of resource creation
	CreateTime int64 `json:"_create_time,omitempty"`

	// ID of the user who created this resource
	CreateUser string `json:"_create_user,omitempty"`

	// Timestamp of last modification
	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`

	// ID of the user who last modified this resource
	LastModifiedUser string `json:"_last_modified_user,omitempty"`

	// Indicates system owned resource
	SystemOwned bool `json:"_system_owned,omitempty"`

	// Description of this resource
	Description string `json:"description,omitempty"`

	// Defaults to ID if not set
	DisplayName string `json:"display_name,omitempty"`

	// Unique identifier of this resource
	Id string `json:"id,omitempty"`

	// The type of this resource.
	ResourceType string `json:"resource_type,omitempty"`

	// Opaque identifiers meaningful to the API user
	Tags []common.Tag `json:"tags,omitempty"`

	// list of X509Certificates
	Details []X509Certificate `json:"details,omitempty"`

	// pem encoded certificate data
	PemEncoded string `json:"pem_encoded"`

	// list of node IDs with services, that are using this certificate
	UsedBy []NodeIdServicesMap `json:"used_by,omitempty"`
}

type CertificateList

type CertificateList struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// Opaque cursor to be used for getting next page of records (supplied by current result page)
	Cursor string `json:"cursor,omitempty"`

	// Count of results found (across all pages), set only on first page
	ResultCount int64 `json:"result_count,omitempty"`

	SortAscending bool `json:"sort_ascending,omitempty"`

	// Field by which records are sorted
	SortBy string `json:"sort_by,omitempty"`

	// Certificate list
	Results []Certificate `json:"results,omitempty"`
}

type Crl

type Crl struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.
	Revision int64 `json:"_revision"`

	// Timestamp of resource creation
	CreateTime int64 `json:"_create_time,omitempty"`

	// ID of the user who created this resource
	CreateUser string `json:"_create_user,omitempty"`

	// Timestamp of last modification
	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`

	// ID of the user who last modified this resource
	LastModifiedUser string `json:"_last_modified_user,omitempty"`

	// Indicates system owned resource
	SystemOwned bool `json:"_system_owned,omitempty"`

	// Description of this resource
	Description string `json:"description,omitempty"`

	// Defaults to ID if not set
	DisplayName string `json:"display_name,omitempty"`

	// Unique identifier of this resource
	Id string `json:"id,omitempty"`

	// The type of this resource.
	ResourceType string `json:"resource_type,omitempty"`

	// Opaque identifiers meaningful to the API user
	Tags []common.Tag `json:"tags,omitempty"`

	// details of the X509Crl object
	Details *X509Crl `json:"details,omitempty"`

	// pem encoded crl data
	PemEncoded string `json:"pem_encoded"`
}

type CrlList

type CrlList struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// Opaque cursor to be used for getting next page of records (supplied by current result page)
	Cursor string `json:"cursor,omitempty"`

	// Count of results found (across all pages), set only on first page
	ResultCount int64 `json:"result_count,omitempty"`

	SortAscending bool `json:"sort_ascending,omitempty"`

	// Field by which records are sorted
	SortBy string `json:"sort_by,omitempty"`

	// CRL list
	Results []Crl `json:"results,omitempty"`
}

type CrlObjectData

type CrlObjectData struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.
	Revision int64 `json:"_revision"`

	// Timestamp of resource creation
	CreateTime int64 `json:"_create_time,omitempty"`

	// ID of the user who created this resource
	CreateUser string `json:"_create_user,omitempty"`

	// Timestamp of last modification
	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`

	// ID of the user who last modified this resource
	LastModifiedUser string `json:"_last_modified_user,omitempty"`

	// Indicates system owned resource
	SystemOwned bool `json:"_system_owned,omitempty"`

	// Description of this resource
	Description string `json:"description,omitempty"`

	// Defaults to ID if not set
	DisplayName string `json:"display_name,omitempty"`

	// Unique identifier of this resource
	Id string `json:"id,omitempty"`

	// The type of this resource.
	ResourceType string `json:"resource_type,omitempty"`

	// Opaque identifiers meaningful to the API user
	Tags []common.Tag `json:"tags,omitempty"`

	// pem encoded crl data
	PemEncoded string `json:"pem_encoded"`
}

type CryptoAlgorithm

type CryptoAlgorithm struct {

	// supported key sizes for the algorithm
	KeySize []int64 `json:"key_size,omitempty"`

	// crypto algorithm name
	Name string `json:"name,omitempty"`
}

type NodeIdServicesMap

type NodeIdServicesMap struct {

	// NodeId
	NodeId string `json:"node_id"`

	// list of ServiceTypes
	ServiceTypes []string `json:"service_types"`
}

type PrincipalIdentity

type PrincipalIdentity struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.
	Revision int64 `json:"_revision"`

	// Timestamp of resource creation
	CreateTime int64 `json:"_create_time,omitempty"`

	// ID of the user who created this resource
	CreateUser string `json:"_create_user,omitempty"`

	// Timestamp of last modification
	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`

	// ID of the user who last modified this resource
	LastModifiedUser string `json:"_last_modified_user,omitempty"`

	// Indicates system owned resource
	SystemOwned bool `json:"_system_owned,omitempty"`

	// Description of this resource
	Description string `json:"description,omitempty"`

	// Defaults to ID if not set
	DisplayName string `json:"display_name,omitempty"`

	// Unique identifier of this resource
	Id string `json:"id,omitempty"`

	// The type of this resource.
	ResourceType string `json:"resource_type,omitempty"`

	// Opaque identifiers meaningful to the API user
	Tags []common.Tag `json:"tags,omitempty"`

	// Id of the stored certificate
	CertificateId string `json:"certificate_id"`

	// Indicator whether the entities created by this principal should be protected
	IsProtected bool `json:"is_protected,omitempty"`

	// Name of the principal
	Name string `json:"name"`

	// Unique node-id of a principal
	NodeId string `json:"node_id"`

	// permission group
	PermissionGroup string `json:"permission_group"`
}

type PrincipalIdentityList

type PrincipalIdentityList struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// Opaque cursor to be used for getting next page of records (supplied by current result page)
	Cursor string `json:"cursor,omitempty"`

	// Count of results found (across all pages), set only on first page
	ResultCount int64 `json:"result_count,omitempty"`

	SortAscending bool `json:"sort_ascending,omitempty"`

	// Field by which records are sorted
	SortBy string `json:"sort_by,omitempty"`

	// PrincipalIdentity list
	Results []PrincipalIdentity `json:"results"`
}

type TrustManagementData

type TrustManagementData struct {

	// list of supported algorithms
	SupportedAlgorithms []CryptoAlgorithm `json:"supported_algorithms,omitempty"`
}

type TrustObjectData

type TrustObjectData struct {

	// The server will populate this field when returing the resource. Ignored on PUT and POST.
	Links []common.ResourceLink `json:"_links,omitempty"`

	Schema string `json:"_schema,omitempty"`

	Self *common.SelfResourceLink `json:"_self,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected.
	Revision int64 `json:"_revision"`

	// Timestamp of resource creation
	CreateTime int64 `json:"_create_time,omitempty"`

	// ID of the user who created this resource
	CreateUser string `json:"_create_user,omitempty"`

	// Timestamp of last modification
	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`

	// ID of the user who last modified this resource
	LastModifiedUser string `json:"_last_modified_user,omitempty"`

	// Indicates system owned resource
	SystemOwned bool `json:"_system_owned,omitempty"`

	// Description of this resource
	Description string `json:"description,omitempty"`

	// Defaults to ID if not set
	DisplayName string `json:"display_name,omitempty"`

	// Unique identifier of this resource
	Id string `json:"id,omitempty"`

	// The type of this resource.
	ResourceType string `json:"resource_type,omitempty"`

	// Opaque identifiers meaningful to the API user
	Tags []common.Tag `json:"tags,omitempty"`

	// Key algorithm contained in this certificate
	KeyAlgo string `json:"key_algo,omitempty"`

	// Password for private key encryption
	Passphrase string `json:"passphrase,omitempty"`

	// pem encoded certificate data
	PemEncoded string `json:"pem_encoded"`

	// private key data
	PrivateKey string `json:"private_key,omitempty"`
}

type X509Certificate

type X509Certificate struct {

	// One of the DSA cryptogaphic algorithm's strength parameters, base
	DsaPublicKeyG string `json:"dsa_public_key_g,omitempty"`

	// One of the DSA cryptogaphic algorithm's strength parameters, prime
	DsaPublicKeyP string `json:"dsa_public_key_p,omitempty"`

	// One of the DSA cryptogaphic algorithm's strength parameters, sub-prime
	DsaPublicKeyQ string `json:"dsa_public_key_q,omitempty"`

	// One of the DSA cryptogaphic algorithm's strength parameters
	DsaPublicKeyY string `json:"dsa_public_key_y,omitempty"`

	// True if this is a CA certificate
	IsCa bool `json:"is_ca,omitempty"`

	// True if this certificate is valid
	IsValid bool `json:"is_valid,omitempty"`

	// the certificate issuers complete distinguished name
	Issuer string `json:"issuer,omitempty"`

	// the certificate issuer's common name
	IssuerCn string `json:"issuer_cn,omitempty"`

	// the time in epoch milliseconds at which the certificate becomes invalid
	NotAfter int64 `json:"not_after,omitempty"`

	// the time in epoch milliseconds at which the certificate becomes valid
	NotBefore int64 `json:"not_before,omitempty"`

	// Cryptographic algorithm used by the public key for data encryption
	PublicKeyAlgo string `json:"public_key_algo,omitempty"`

	// size measured in bits of the public/private keys used in a cryptographic algorithm
	PublicKeyLength int64 `json:"public_key_length,omitempty"`

	// An RSA public key is made up of the modulus and the public exponent. Exponent is a power number
	RsaPublicKeyExponent string `json:"rsa_public_key_exponent,omitempty"`

	// An RSA public key is made up of the modulus and the public exponent. Modulus is wrap around number
	RsaPublicKeyModulus string `json:"rsa_public_key_modulus,omitempty"`

	// certificate's serial number
	SerialNumber string `json:"serial_number,omitempty"`

	// the signature value(the raw signature bits) used for signing and validate the cert
	Signature string `json:"signature,omitempty"`

	// the algorithm used by the Certificate Authority to sign the certificate
	SignatureAlgorithm string `json:"signature_algorithm,omitempty"`

	// the certificate owners complete distinguished name
	Subject string `json:"subject,omitempty"`

	// the certificate owner's common name
	SubjectCn string `json:"subject_cn,omitempty"`

	// Certificate version (default v1)
	Version string `json:"version,omitempty"`
}

type X509Crl

type X509Crl struct {

	// list of X509CrlEntry
	CrlEntries []X509CrlEntry `json:"crl_entries,omitempty"`

	// Issuer's distinguished name(DN)
	Issuer string `json:"issuer,omitempty"`

	// Next update time for the CRL
	NextUpdate string `json:"next_update,omitempty"`

	// CRL's version number either 1 or 2
	Version string `json:"version,omitempty"`
}

A CRL is a time-stamped list identifying revoked certificates.

type X509CrlEntry

type X509CrlEntry struct {

	// Revocation date
	RevocationDate string `json:"revocation_date,omitempty"`

	// the revoked certificate's serial number
	SerialNumber string `json:"serial_number,omitempty"`
}

Each revoked certificate is identified in a CRL by its certificate serial number.

Jump to

Keyboard shortcuts

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