Documentation ¶
Index ¶
- func NewBackendTemplateSecret(namespace, name string) *v1.Secret
- func NewCompletedPreloadJob(namespace, provider string) *batchv1.Job
- func NewConfigurationPodWatcher(configuration *terraformv1alpha1.Configuration, stage string) *v1.Pod
- func NewCostsReport(configuration *terraformv1alpha1.Configuration) *v1.Secret
- func NewCostsSecret(namespace, name string) *v1.Secret
- func NewFailedPreloadJob(namespace, provider string) *batchv1.Job
- func NewJobTemplateConfigmap(namespace, name string) *v1.ConfigMap
- func NewMatchAllPolicyConstraint(name string) *terraformv1alpha1.Policy
- func NewNamespace(name string) *v1.Namespace
- func NewPolicy(name string) *terraformv1alpha1.Policy
- func NewRunningPreloadJob(namespace, provider string) *batchv1.Job
- func NewTerraformJob(configuration *terraformv1alpha1.Configuration, namespace, stage string) *batchv1.Job
- func NewTerraformState(configuration *terraformv1alpha1.Configuration) *v1.Secret
- func NewTerranettesContext(name string) *terraformv1alpha1.Context
- func NewValidAWSNotReadyProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
- func NewValidAWSProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
- func NewValidAWSProviderSecret(namespace, name string) *v1.Secret
- func NewValidAWSReadyProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
- func NewValidBucketConfiguration(namespace, name string) *terraformv1alpha1.Configuration
- type Factory
- func (f *Factory) GetClient() (client.Client, error)
- func (f *Factory) GetConfig() (cmd.Config, bool, error)
- func (f *Factory) GetKubeClient() (k8sclient.Interface, error)
- func (f *Factory) GetStreams() genericclioptions.IOStreams
- func (f *Factory) Printf(format string, a ...interface{})
- func (f *Factory) Println(format string, a ...interface{})
- func (f *Factory) SaveConfig(config cmd.Config) error
- func (f *Factory) Stdout() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackendTemplateSecret ¶ added in v0.3.1
NewBackendTemplateSecret returns a fake backend template secret
func NewCompletedPreloadJob ¶ added in v0.3.25
NewCompletedPreloadJob returns a new running preload job
func NewConfigurationPodWatcher ¶ added in v0.3.10
func NewConfigurationPodWatcher(configuration *terraformv1alpha1.Configuration, stage string) *v1.Pod
NewConfigurationPodWatcher returns a new configuration pod
func NewCostsReport ¶
func NewCostsReport(configuration *terraformv1alpha1.Configuration) *v1.Secret
NewCostsReport returns a secret used to mock a cost report for a configuration
func NewCostsSecret ¶
NewCostsSecret returns a fake costs secret
func NewFailedPreloadJob ¶ added in v0.3.25
NewFailedPreloadJob returns a new running preload job
func NewJobTemplateConfigmap ¶
NewJobTemplateConfigmap returns a custom job template configmap
func NewMatchAllPolicyConstraint ¶
func NewMatchAllPolicyConstraint(name string) *terraformv1alpha1.Policy
NewMatchAllPolicyConstraint returns a policy which matches all configurations
func NewNamespace ¶
NewNamespace returns a new namespace
func NewPolicy ¶
func NewPolicy(name string) *terraformv1alpha1.Policy
NewPolicy returns an empty policy
func NewRunningPreloadJob ¶ added in v0.3.25
NewRunningPreloadJob returns a new running preload job
func NewTerraformJob ¶
func NewTerraformJob(configuration *terraformv1alpha1.Configuration, namespace, stage string) *batchv1.Job
NewTerraformJob returns a new terraform job
func NewTerraformState ¶
func NewTerraformState(configuration *terraformv1alpha1.Configuration) *v1.Secret
NewTerraformState returns a fake state
func NewTerranettesContext ¶ added in v0.3.25
func NewTerranettesContext(name string) *terraformv1alpha1.Context
NewTerranettesContext returns a new Context
func NewValidAWSNotReadyProvider ¶
func NewValidAWSNotReadyProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
NewValidAWSNotReadyProvider returns a ready aws provider
func NewValidAWSProvider ¶
func NewValidAWSProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
NewValidAWSProvider returns a valid provider for aws
func NewValidAWSProviderSecret ¶
NewValidAWSProviderSecret returns a valid provider secret for aws
func NewValidAWSReadyProvider ¶
func NewValidAWSReadyProvider(name string, secret *v1.Secret) *terraformv1alpha1.Provider
NewValidAWSReadyProvider returns a ready aws provider
func NewValidBucketConfiguration ¶
func NewValidBucketConfiguration(namespace, name string) *terraformv1alpha1.Configuration
NewValidBucketConfiguration returns a valid configuration for aws bucket
Types ¶
type Factory ¶ added in v0.3.10
type Factory struct { Config cmd.Config KubeClient k8sclient.Interface RuntimeClient client.Client Streams genericclioptions.IOStreams }
Factory is a test factory for the cli
func (*Factory) GetKubeClient ¶ added in v0.3.10
GetKubeClient returns the kubernetes client
func (*Factory) GetStreams ¶ added in v0.3.10
func (f *Factory) GetStreams() genericclioptions.IOStreams
GetStreams returns the input and output streams for the command
func (*Factory) SaveConfig ¶ added in v0.3.10
SaveConfig saves the configuration to the file