Documentation
¶
Index ¶
- type AnnotationValue
- type CertIdentifier
- type CertKeyMetadata
- type CertKeyPair
- type CertKeyPairDetails
- type CertKeyPairList
- type CertKeyPairSpec
- type CertKeyPairStatus
- type CertificateAuthorityBundle
- type CertificateAuthorityBundleList
- type CertificateAuthorityBundleSpec
- type CertificateAuthorityBundleStatus
- type ClientCertDetails
- type ConfigMapInfoByNamespaceName
- type ConfigMapRefByNamespaceName
- type InClusterConfigMapLocation
- type InClusterSecretLocation
- type OnDiskCertKeyPairLocation
- type OnDiskLocation
- type OnDiskLocationWithMetadata
- type PKIList
- type PKIRegistryCABundle
- type PKIRegistryCertKeyPair
- type PKIRegistryCertKeyPairInfo
- type PKIRegistryCertificateAuthorityInfo
- type PKIRegistryInClusterCABundle
- type PKIRegistryInClusterCertKeyPair
- type PKIRegistryOnDiskCABundle
- type PKIRegistryOnDiskCertKeyPair
- type PerInClusterResourceData
- type PerOnDiskResourceData
- type SecretInfoByNamespaceName
- type SecretRefByNamespaceName
- type ServingCertDetails
- type SignerCertDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationValue ¶
type CertIdentifier ¶
type CertIdentifier struct {
CommonName string
SerialNumber string
PubkeyModulus string
Issuer *CertIdentifier
}
type CertKeyMetadata ¶
type CertKeyPair ¶
type CertKeyPair struct {
// LogicalName is an inexact representation of what this is for. It may be empty. It will usually be some hardcoded
// heuristic trying to determine it.
LogicalName string
Description string
// Name is CommonName::SerialNumber
Name string
Spec CertKeyPairSpec
Status CertKeyPairStatus
}
type CertKeyPairDetails ¶
type CertKeyPairDetails struct {
CertType string
SignerDetails *SignerCertDetails
ServingCertDetails *ServingCertDetails
ClientCertDetails *ClientCertDetails
}
type CertKeyPairList ¶
type CertKeyPairList struct {
Items []CertKeyPair
}
type CertKeyPairSpec ¶
type CertKeyPairSpec struct {
SecretLocations []InClusterSecretLocation
OnDiskLocations []OnDiskCertKeyPairLocation
CertMetadata CertKeyMetadata
Details CertKeyPairDetails
}
type CertKeyPairStatus ¶
type CertKeyPairStatus struct {
Errors []string
}
type CertificateAuthorityBundle ¶
type CertificateAuthorityBundle struct {
// LogicalName is an inexact representation of what this is for. It may be empty. It will usually be some hardcoded
// heuristic trying to determine it.
LogicalName string
Description string
// Name is CommonName::SerialNumber
Name string
Spec CertificateAuthorityBundleSpec
Status CertificateAuthorityBundleStatus
}
func (*CertificateAuthorityBundle) DeepCopy ¶
func (t *CertificateAuthorityBundle) DeepCopy() *CertificateAuthorityBundle
do better
type CertificateAuthorityBundleList ¶
type CertificateAuthorityBundleList struct {
Items []CertificateAuthorityBundle
}
type CertificateAuthorityBundleSpec ¶
type CertificateAuthorityBundleSpec struct {
ConfigMapLocations []InClusterConfigMapLocation
OnDiskLocations []OnDiskLocation
CertificateMetadata []CertKeyMetadata
}
type CertificateAuthorityBundleStatus ¶
type CertificateAuthorityBundleStatus struct {
Errors []string
}
type ClientCertDetails ¶
type ClientCertDetails struct {
Organizations []string
}
type ConfigMapInfoByNamespaceName ¶
type ConfigMapInfoByNamespaceName map[InClusterConfigMapLocation]PKIRegistryCertificateAuthorityInfo
type ConfigMapRefByNamespaceName ¶
type ConfigMapRefByNamespaceName []InClusterConfigMapLocation
func (ConfigMapRefByNamespaceName) Len ¶
func (n ConfigMapRefByNamespaceName) Len() int
func (ConfigMapRefByNamespaceName) Less ¶
func (n ConfigMapRefByNamespaceName) Less(i, j int) bool
func (ConfigMapRefByNamespaceName) Swap ¶
func (n ConfigMapRefByNamespaceName) Swap(i, j int)
type InClusterSecretLocation ¶
type OnDiskCertKeyPairLocation ¶
type OnDiskCertKeyPairLocation struct {
Cert OnDiskLocation
Key OnDiskLocation
}
type OnDiskLocation ¶
type OnDiskLocation struct {
Path string
}
type OnDiskLocationWithMetadata ¶
type OnDiskLocationWithMetadata struct {
OnDiskLocation
User string
Group string
Permissions string
SELinuxOptions string
}
type PKIList ¶
type PKIList struct {
// LogicalName is an inexact representation of what this is for. It may be empty. It will usually be some hardcoded
// heuristic trying to find it.
LogicalName string
Description string
InClusterResourceData PerInClusterResourceData
OnDiskResourceData PerOnDiskResourceData
CertificateAuthorityBundles CertificateAuthorityBundleList
CertKeyPairs CertKeyPairList
}
type PKIRegistryCABundle ¶
type PKIRegistryCABundle struct {
InClusterLocation *PKIRegistryInClusterCABundle
OnDiskLocation *PKIRegistryOnDiskCABundle
}
type PKIRegistryCertKeyPair ¶
type PKIRegistryCertKeyPair struct {
InClusterLocation *PKIRegistryInClusterCertKeyPair
OnDiskLocation *PKIRegistryOnDiskCertKeyPair
}
type PKIRegistryCertKeyPairInfo ¶
type PKIRegistryCertKeyPairInfo struct {
// SelectedCertMetadataAnnotations is a specified subset of annotations. NOT all annotations.
// The caller will specify which annotations he wants.
SelectedCertMetadataAnnotations []AnnotationValue `json:"selectedCertMetadataAnnotations,omitempty"`
// OwningJiraComponent is a component name when a new OCP issue is filed in Jira
// Deprecated
OwningJiraComponent string `json:"owningJiraComponent"`
// Description is a one sentence description of the certificate pair purpose
// Deprecated
Description string `json:"description"`
}
PKIRegistryCertKeyPairInfo holds information about certificate key pair
type PKIRegistryCertificateAuthorityInfo ¶
type PKIRegistryCertificateAuthorityInfo struct {
// SelectedCertMetadataAnnotations is a specified subset of annotations. NOT all annotations.
// The caller will specify which annotations he wants.
SelectedCertMetadataAnnotations []AnnotationValue `json:"selectedCertMetadataAnnotations,omitempty"`
// OwningJiraComponent is a component name when a new OCP issue is filed in Jira
// Deprecated
OwningJiraComponent string `json:"owningJiraComponent"`
// Description is a one sentence description of the certificate pair purpose
// Deprecated
Description string `json:"description"`
}
PKIRegistryCertificateAuthorityInfo holds information about certificate authority bundle
type PKIRegistryInClusterCABundle ¶
type PKIRegistryInClusterCABundle struct {
// ConfigMapLocation points to the configmap location
ConfigMapLocation InClusterConfigMapLocation `json:"configMapLocation"`
// CABundleInfo stores metadata for the certificate authority bundle
CABundleInfo PKIRegistryCertificateAuthorityInfo `json:"certificateAuthorityBundleInfo"`
}
PKIRegistryInClusterCABundle holds information about certificate authority bundle
type PKIRegistryInClusterCertKeyPair ¶
type PKIRegistryInClusterCertKeyPair struct {
// SecretLocation points to the secret location
SecretLocation InClusterSecretLocation `json:"secretLocation"`
// CertKeyInfo stores metadata for certificate key pair
CertKeyInfo PKIRegistryCertKeyPairInfo `json:"certKeyInfo"`
}
PKIRegistryInClusterCertKeyPair identifies certificate key pair and stores its metadata
type PKIRegistryOnDiskCABundle ¶
type PKIRegistryOnDiskCABundle struct {
// OnDiskLocation points to the ca bundle location on disk
OnDiskLocation OnDiskLocation `json:"onDiskLocation"`
// CABundleInfo stores metadata for the certificate authority bundle
CABundleInfo PKIRegistryCertificateAuthorityInfo `json:"certificateAuthorityBundleInfo"`
}
PKIRegistryOnDiskCABundle identifies certificate key pair on disk and stores its metadata
type PKIRegistryOnDiskCertKeyPair ¶
type PKIRegistryOnDiskCertKeyPair struct {
// OnDiskLocation points to the certkeypair location on disk
OnDiskLocation OnDiskLocation `json:"onDiskLocation"`
// CertKeyInfo stores metadata for certificate key pair
CertKeyInfo PKIRegistryCertKeyPairInfo `json:"certKeyInfo"`
}
PKIRegistryOnDiskCertKeyPair identifies certificate key pair on disk and stores its metadata
type PerInClusterResourceData ¶
type PerInClusterResourceData struct {
// +mapType:=atomic
CertificateAuthorityBundles []PKIRegistryInClusterCABundle `json:"certificateAuthorityBundles"`
// +mapType:=atomic
CertKeyPairs []PKIRegistryInClusterCertKeyPair `json:"certKeyPairs"`
}
PerInClusterResourceData tracks metadata that corresponds to specific secrets and configmaps. This data should not duplicate the analysis of the certkeypair lists, but is pulled from annotations on the resources. It will be stitched together by a generator after the fact.
type PerOnDiskResourceData ¶
type PerOnDiskResourceData struct {
// +mapType:=atomic
TLSArtifact []OnDiskLocationWithMetadata `json:"tlsArtifact"`
}
PerOnDiskResourceData tracks metadata that corresponds to specific files on disk. This data should not duplicate the analysis of the certkeypair lists, but is pulled from files on disk. It will be stitched together by a generator after the fact.
type SecretInfoByNamespaceName ¶
type SecretInfoByNamespaceName map[InClusterSecretLocation]PKIRegistryCertKeyPairInfo
type SecretRefByNamespaceName ¶
type SecretRefByNamespaceName []InClusterSecretLocation
func (SecretRefByNamespaceName) Len ¶
func (n SecretRefByNamespaceName) Len() int
func (SecretRefByNamespaceName) Less ¶
func (n SecretRefByNamespaceName) Less(i, j int) bool
func (SecretRefByNamespaceName) Swap ¶
func (n SecretRefByNamespaceName) Swap(i, j int)
type ServingCertDetails ¶
type SignerCertDetails ¶
type SignerCertDetails struct {
}