factory

package
v0.0.93 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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