secrets

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

func NewManager(client client.Client) *Manager

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

Jump to

Keyboard shortcuts

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