Documentation ¶
Index ¶
- type Manager
- func (m *Manager) GetSecretString(ctx context.Context, secret *api.Secret, ns string) (string, error)
- func (m *Manager) GetSecrets(ctx context.Context, secret *api.Secret, ns string) (string, map[string][]byte, error)
- func (m *Manager) GetTLSContext(ctx context.Context, tlsCtx *api.TLSContext, ns string) (ca, public, private string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶ added in v1.7.0
type Manager struct {
// contains filtered or unexported fields
}
Manager will manage the way certificates are retrieved based in the given k8sClient and rootPath.
func NewManager ¶
NewManager returns a new manager.
func (*Manager) GetSecretString ¶ added in v1.7.0
func (m *Manager) GetSecretString(ctx context.Context, secret *api.Secret, ns string) (string, error)
GetSecretString returns a secret string stored in a k8s secret
func (*Manager) GetSecrets ¶ added in v1.7.0
func (m *Manager) GetSecrets(ctx context.Context, secret *api.Secret, ns string) (string, map[string][]byte, error)
GetSecrets returns either local or k8s secrets, giving precedence for local secrets if configured. The 'ns' parameter is used as the secret namespace if 'secret.Namespace' is an empty string.
func (*Manager) GetTLSContext ¶ added in v1.7.0
func (m *Manager) GetTLSContext(ctx context.Context, tlsCtx *api.TLSContext, ns string) (ca, public, private string, err error)
GetTLSContext returns a new ca, public and private certificates found based in the given api.TLSContext.
Click to show internal directories.
Click to hide internal directories.