Documentation ¶
Index ¶
- func NewAWSBucketRevision(name string) *terraformv1alpha1.Revision
- func NewAuthenticationSecret(namespace, name string) *v1.Secret
- func NewBackendTemplateSecret(namespace, name string) *v1.Secret
- func NewCloudResource(namespace, name string) *terraformv1alpha1.CloudResource
- func NewCloudResourceWithRevision(namespace, name string, revision *terraformv1alpha1.Revision) *terraformv1alpha1.CloudResource
- func NewCompletedPreloadJob(namespace, provider string) *batchv1.Job
- func NewCompletedTerraformJob(configuration *terraformv1alpha1.Configuration, stage string) *batchv1.Job
- func NewConfigurationPlan(name string) *terraformv1alpha1.Plan
- func NewConfigurationPodWatcher(resource client.Object, 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 NewFailedTerraformJob(configuration *terraformv1alpha1.Configuration, stage string) *batchv1.Job
- func NewJobTemplateConfigmap(namespace, name string) *v1.ConfigMap
- func NewMatchAllModuleConstraint(name string) *terraformv1alpha1.Policy
- func NewMatchAllPolicyConstraint(name string) *terraformv1alpha1.Policy
- func NewNamespace(name string) *v1.Namespace
- func NewPlan(name string, revisions ...*terraformv1alpha1.Revision) *terraformv1alpha1.Plan
- func NewPolicy(name string) *terraformv1alpha1.Policy
- func NewRunningPreloadJob(namespace, provider string) *batchv1.Job
- func NewRunningTerraformJob(configuration *terraformv1alpha1.Configuration, stage 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 NewAWSBucketRevision ¶ added in v0.4.0
func NewAWSBucketRevision(name string) *terraformv1alpha1.Revision
NewAWSBucketRevision returns a new Revision object
func NewAuthenticationSecret ¶ added in v0.3.30
NewAuthenticationSecret returns a valid provider secret for a configuration
func NewBackendTemplateSecret ¶ added in v0.3.1
NewBackendTemplateSecret returns a fake backend template secret
func NewCloudResource ¶ added in v0.4.0
func NewCloudResource(namespace, name string) *terraformv1alpha1.CloudResource
NewCloudResource returns a new CloudResource object
func NewCloudResourceWithRevision ¶ added in v0.4.0
func NewCloudResourceWithRevision(namespace, name string, revision *terraformv1alpha1.Revision) *terraformv1alpha1.CloudResource
NewCloudResourceWithRevision returns a new CloudResource object
func NewCompletedPreloadJob ¶ added in v0.3.25
NewCompletedPreloadJob returns a new running preload job
func NewCompletedTerraformJob ¶ added in v0.3.30
func NewCompletedTerraformJob(configuration *terraformv1alpha1.Configuration, stage string) *batchv1.Job
NewCompletedTerraformJob returns a new completed terraform job
func NewConfigurationPlan ¶ added in v0.4.0
func NewConfigurationPlan(name string) *terraformv1alpha1.Plan
NewConfigurationPlan returns a new ConfigurationPlan
func NewConfigurationPodWatcher ¶ added in v0.3.10
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 NewFailedTerraformJob ¶ added in v0.3.30
func NewFailedTerraformJob(configuration *terraformv1alpha1.Configuration, stage string) *batchv1.Job
NewFailedTerraformJob returns a new failed terraform job
func NewJobTemplateConfigmap ¶
NewJobTemplateConfigmap returns a custom job template configmap
func NewMatchAllModuleConstraint ¶ added in v0.4.0
func NewMatchAllModuleConstraint(name string) *terraformv1alpha1.Policy
NewMatchAllModuleConstraint returns a policy which matches all modules
func NewMatchAllPolicyConstraint ¶
func NewMatchAllPolicyConstraint(name string) *terraformv1alpha1.Policy
NewMatchAllPolicyConstraint returns a policy which matches all configurations
func NewNamespace ¶
NewNamespace returns a new namespace
func NewPlan ¶ added in v0.4.0
func NewPlan(name string, revisions ...*terraformv1alpha1.Revision) *terraformv1alpha1.Plan
NewPlan returns a new Plan object
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 NewRunningTerraformJob ¶ added in v0.3.30
func NewRunningTerraformJob(configuration *terraformv1alpha1.Configuration, stage string) *batchv1.Job
NewRunningTerraformJob returns a running terraform 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