Documentation ¶
Index ¶
- type Manager
- func (m *Manager) GetAndValidateSecret(ctx context.Context, controlPlane *controlplanev1beta1.CAPTControlPlane) (*corev1.Secret, error)
- func (m *Manager) GetCertificateAuthorityData(ctx context.Context, secret *corev1.Secret) (string, error)
- func (m *Manager) GetClusterEndpoint(ctx context.Context, workspace *unstructured.Unstructured, ...) (*clusterv1.APIEndpoint, error)
- func (m *Manager) ValidateEndpoint(endpoint *clusterv1.APIEndpoint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles secret management for CAPTControlPlane
func NewManager ¶
NewManager creates a new Manager instance
func (*Manager) GetAndValidateSecret ¶
func (m *Manager) GetAndValidateSecret(ctx context.Context, controlPlane *controlplanev1beta1.CAPTControlPlane) (*corev1.Secret, error)
GetAndValidateSecret retrieves and validates the connection secret
func (*Manager) GetCertificateAuthorityData ¶
func (m *Manager) GetCertificateAuthorityData(ctx context.Context, secret *corev1.Secret) (string, error)
GetCertificateAuthorityData gets the CA data from the secret
func (*Manager) GetClusterEndpoint ¶
func (m *Manager) GetClusterEndpoint(ctx context.Context, workspace *unstructured.Unstructured, secret *corev1.Secret) (*clusterv1.APIEndpoint, error)
GetClusterEndpoint gets the cluster endpoint from either workspace outputs or secret
func (*Manager) ValidateEndpoint ¶
func (m *Manager) ValidateEndpoint(endpoint *clusterv1.APIEndpoint) error
ValidateEndpoint validates the endpoint configuration
Click to show internal directories.
Click to hide internal directories.