Documentation
¶
Overview ¶
* Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
Index ¶
- func GetDefaultFlavorGroups() map[FlavorGroups]bool
- func GetSupportedCerts() []string
- func GetUniqueCertType(certType string) string
- func GetUniqueCertTypes() []string
- func IsDefaultFlavorgroup(flavorGroupName string) bool
- func IsValidCertType(certType string) bool
- func IsValidDomainType(domain string) bool
- type AuditColumnData
- type AuditLogEntry
- type AuditTableData
- type CaCertTypes
- type CertLocation
- type CertTypes
- type CertificateStore
- type CertificatesPathStore
- type CertificatesStore
- func (cs *CertificatesStore) AddCertificatesToStore(certType, certFile string, certificate *x509.Certificate) error
- func (cs *CertificatesStore) GetKeyAndCertificates(certType string) (crypto.PrivateKey, []x509.Certificate, error)
- func (cs *CertificatesStore) GetPath(certType string) string
- func (cs *CertificatesStore) RetrieveCertificate(certType, commonName string) (*x509.Certificate, error)
- type ESXiClusterFilterCriteria
- type FlavorCreateRequest
- type FlavorFilterCriteria
- type FlavorGroupFilterCriteria
- type FlavorGroups
- type FlavorMetaKv
- type FlavorTemplateFilterCriteria
- type FlavorVerificationFC
- type HVSReport
- type HostCredential
- type HostFilterCriteria
- type HostInfoFetchCriteria
- type HostStatusFilterCriteria
- type HwUUID
- type OrderType
- type Queue
- type QueueFilterCriteria
- type QueueState
- type QuoteReportCache
- type ReportFilterCriteria
- type ReportLocator
- type TagCertificateCreateCriteria
- type TagCertificateDeployCriteria
- type TagCertificateFilterCriteria
- type TpmEndorsementFilterCriteria
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultFlavorGroups ¶
func GetDefaultFlavorGroups() map[FlavorGroups]bool
func GetSupportedCerts ¶
func GetSupportedCerts() []string
Get list of certificate types including ca certificate types
func GetUniqueCertType ¶
GetUniqueCertTypes returns a list of unique certificate types as strings
func GetUniqueCertTypes ¶
func GetUniqueCertTypes() []string
GetUniqueCertTypes returns a list of unique certificate types as strings
func IsDefaultFlavorgroup ¶
func IsValidCertType ¶
Validate if certificate type is present in all certificate types including ca certificate types
func IsValidDomainType ¶
Validate if domain is present in specific certificate types
Types ¶
type AuditColumnData ¶
type AuditLogEntry ¶
type AuditTableData ¶
type AuditTableData struct {
Columns []AuditColumnData
}
type CaCertTypes ¶
type CaCertTypes string
CaCertTypes is an enumerated set of ca certificate types
const ( CaCertTypesRootCa CaCertTypes = "root" CaCertTypesEndorsementCa CaCertTypes = "endorsement" CaCertTypesEkCa CaCertTypes = "ek" //endorsement is used instead to store cert CaCertTypesPrivacyCa CaCertTypes = "privacy" CaCertTypesAikCa CaCertTypes = "aik" //privacy is used instead to store cert CaCertTypesTagCa CaCertTypes = "tag" )
func GetCaCertTypes ¶
func GetCaCertTypes() []CaCertTypes
GetCaCertTypes returns a list of ca certificate types as strings
func (CaCertTypes) String ¶
func (cct CaCertTypes) String() string
type CertLocation ¶
type CertTypes ¶
type CertTypes string
CaCertTypes is an enumerated set of certificate types
func GetCertTypes ¶
func GetCertTypes() []CertTypes
type CertificateStore ¶
type CertificateStore struct { Key crypto.PrivateKey CertPath string Certificates []x509.Certificate }
CertificateStore holds file/directory path and certificates collection
type CertificatesPathStore ¶
type CertificatesPathStore map[string]CertLocation //map of certificate type and associated locations
CertificatesPathStore
type CertificatesStore ¶
type CertificatesStore map[string]*CertificateStore
CertificatesStore reads and caches map of certificate type and CertificateStore in application
func (*CertificatesStore) AddCertificatesToStore ¶
func (cs *CertificatesStore) AddCertificatesToStore(certType, certFile string, certificate *x509.Certificate) error
func (*CertificatesStore) GetKeyAndCertificates ¶
func (cs *CertificatesStore) GetKeyAndCertificates(certType string) (crypto.PrivateKey, []x509.Certificate, error)
func (*CertificatesStore) GetPath ¶
func (cs *CertificatesStore) GetPath(certType string) string
func (*CertificatesStore) RetrieveCertificate ¶
func (cs *CertificatesStore) RetrieveCertificate(certType, commonName string) (*x509.Certificate, error)
This function expects CN to be unique, use this only in that scenario
type FlavorCreateRequest ¶
type FlavorCreateRequest struct { ConnectionString string `json:"connection_string,omitempty"` FlavorCollection hvs.FlavorCollection `json:"flavor_collection,omitempty"` SignedFlavorCollection hvs.SignedFlavorCollection `json:"signed_flavor_collection,omitempty"` FlavorgroupNames []string `json:"flavorgroup_names,omitempty"` FlavorParts []hvs.FlavorPartName `json:"partial_flavor_types,omitempty"` }
func (FlavorCreateRequest) MarshalJSON ¶
func (fcr FlavorCreateRequest) MarshalJSON() ([]byte, error)
func (*FlavorCreateRequest) UnmarshalJSON ¶
func (fcr *FlavorCreateRequest) UnmarshalJSON(b []byte) error
type FlavorFilterCriteria ¶
type FlavorGroups ¶
type FlavorGroups string
const ( FlavorGroupsAutomatic FlavorGroups = "automatic" FlavorGroupsHostUnique FlavorGroups = "host_unique" FlavorGroupsPlatformSoftware FlavorGroups = "platform_software" FlavorGroupsWorkloadSoftware FlavorGroups = "workload_software" )
func (FlavorGroups) String ¶
func (dfg FlavorGroups) String() string
type FlavorMetaKv ¶
type FlavorMetaKv struct { Key string Value interface{} }
type FlavorVerificationFC ¶
type FlavorVerificationFC struct { FlavorFC FlavorFilterCriteria FlavorMeta map[hvs.FlavorPartName][]FlavorMetaKv FlavorPartsWithLatest map[hvs.FlavorPartName]bool }
type HostCredential ¶
type HostFilterCriteria ¶
type HostInfoFetchCriteria ¶
type HostStatusFilterCriteria ¶
type HostStatusFilterCriteria struct { Id uuid.UUID HostId uuid.UUID HostHardwareId uuid.UUID HostName string HostStatus string FromDate time.Time ToDate time.Time LatestPerHost bool NumberOfDays int Limit int }
HostStatusFilterCriteria holds the filter criteria for the HostStatus resource used by Search HostStatus API
type HwUUID ¶
HwUUID can be used with the standard sql package to represent a UUID value that can be NULL in the database
func (HwUUID) Interface ¶
func (u HwUUID) Interface() interface{}
Interface implements the nullable interface. It returns nil if the HwUUID is not valid, otherwise it returns the UUID value.
func (HwUUID) MarshalJSON ¶
MarshalJSON marshals the underlying value to a proper JSON representation.
func (*HwUUID) UnmarshalJSON ¶
UnmarshalJSON will unmarshal a JSON value into the proper representation of that value.
type OrderType ¶
type OrderType string
const ( Ascending OrderType = "asc" Descending = "desc" )
func GetOrderType ¶
type Queue ¶
type Queue struct { Id uuid.UUID `json:"id,omitempty"` Action string `json:"action"` Params map[string]interface{} `json:"action_params"` Created time.Time `json:"created,omitempty"` Updated time.Time `json:"updated,omitempty"` State QueueState `json:"state"` Message string `json:"message,omitempty"` }
type QueueFilterCriteria ¶
type QueueState ¶
type QueueState int
const ( QueueStateUnknown QueueState = iota QueueStateNew QueueStatePending QueueStateCompleted QueueStateReturned QueueStateTimeout QueueStateConnectionFailure QueueStateError )
func (QueueState) MarshalJSON ¶
func (s QueueState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the enum as a quoted json string
func (*QueueState) Unmarshal ¶
func (s *QueueState) Unmarshal(str string)
func (*QueueState) UnmarshalJSON ¶
func (s *QueueState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshalls a quoted json string to the enum value
func (QueueState) Valid ¶
func (s QueueState) Valid() bool
type QuoteReportCache ¶
type QuoteReportCache struct { QuoteDigest string TrustPcrList []int TrustReport *hvs.TrustReport }
type ReportFilterCriteria ¶
type TagCertificateCreateCriteria ¶
type TagCertificateCreateCriteria struct { // HardwareUUID The hardware UUID of the host to which the tag certificate is associated. // swagger:strfmt uuid HardwareUUID uuid.UUID `json:"hardware_uuid"` // SelectionContent is an array of one or more key-value pairs with the tag selection attributes. SelectionContent []hvs.TagKvAttribute `json:"selection_content,omitempty"` }
TagCertificateCreateCriteria holds the data used to create a TagCertificate
type TagCertificateDeployCriteria ¶
type TagCertificateDeployCriteria struct { // swagger:strfmt uuid CertID uuid.UUID `json:"certificate_id,omitempty"` }
TagCertificateDeployCriteria holds the data used to deploy a TagCertificate onto a host
type TagCertificateFilterCriteria ¶
type TagCertificateFilterCriteria struct { // swagger:strfmt uuid ID uuid.UUID `json:"id"` SubjectEqualTo string `json:"subjectEqualTo"` SubjectContains string `json:"subjectContains"` IssuerEqualTo string `json:"issuerEqualTo"` IssuerContains string `json:"issuerContains"` ValidOn time.Time `json:"validOn"` ValidBefore time.Time `json:"validBefore"` ValidAfter time.Time `json:"validAfter"` // swagger:strfmt uuid HardwareUUID uuid.UUID `json:"hardwareUuid"` }
TagCertificateFilterCriteria is passed to the TagCertificates Search API to filter the response
Source Files
¶
- audit_logs.go
- certificate_store.go
- certificate_types.go
- default_flavorgroups.go
- esxi_cluster_filter_criteria.go
- flavor.go
- flavorgroup_filter_criteria.go
- flavortemplate_filter_criteria.go
- hardware_uuid.go
- host_credential.go
- host_filter_criteria.go
- host_info_fetch_criteria.go
- hoststatus_filter_criteria.go
- hvsreport.go
- queue.go
- quote_report_cache.go
- report_filter_criteria.go
- tag_certificate_criteria.go
- tpm_endorsement_filter_criteria.go