Documentation ¶
Index ¶
- func NewSecretManager(kind string, f jxfactory.Factory, requirements *config.RequirementsConfig) (secretmgr.SecretManager, error)
- type KindResolver
- func (r *KindResolver) CreateSecretManager(secretsYAML string) (secretmgr.SecretManager, error)
- func (r *KindResolver) GetFactory() jxfactory.Factory
- func (r *KindResolver) LoadBootRunGitURLFromSecret() (string, error)
- func (r *KindResolver) SaveBootRunGitCloneSecret(secretsYAML string) error
- func (r *KindResolver) VerifySecrets() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretManager ¶
func NewSecretManager(kind string, f jxfactory.Factory, requirements *config.RequirementsConfig) (secretmgr.SecretManager, error)
NewSecretManager creates a secret manager from a kind string
Types ¶
type KindResolver ¶
type KindResolver struct { Factory jxfactory.Factory Kind string Dir string GitURL string // outputs which can be useful DevEnvironment *v1.Environment Requirements *config.RequirementsConfig }
KindResolver provides a simple way to resolve what kind of Secret Manager to use
func (*KindResolver) CreateSecretManager ¶
func (r *KindResolver) CreateSecretManager(secretsYAML string) (secretmgr.SecretManager, error)
CreateSecretManager detects from the current cluster which kind of SecretManager to use and then creates it
func (*KindResolver) GetFactory ¶
func (r *KindResolver) GetFactory() jxfactory.Factory
GetFactory lazy creates the factory if required
func (*KindResolver) LoadBootRunGitURLFromSecret ¶
func (r *KindResolver) LoadBootRunGitURLFromSecret() (string, error)
LoadBootRunGitURLFromSecret loads the boot run git clone URL from the secret
func (*KindResolver) SaveBootRunGitCloneSecret ¶
func (r *KindResolver) SaveBootRunGitCloneSecret(secretsYAML string) error
SaveBootRunGitCloneSecret saves the git URL used to clone the git repository with the necessary user and token so that we can clone private repositories
func (*KindResolver) VerifySecrets ¶
func (r *KindResolver) VerifySecrets() error
VerifySecrets verifies that the secrets are valid
Click to show internal directories.
Click to hide internal directories.