framework

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBInstanceSecretName = "dbinstance-secret"
	InstanceSecretName   = "instance-secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	// contains filtered or unexported fields
}

func New

func New(
	restConfig *rest.Config,
	kubeClient kubernetes.Interface,
	kubeformClient kfclient.Interface,
) *Framework

func (*Framework) CreateDroplet added in v0.1.0

func (f *Framework) CreateDroplet(obj *v1alpha1.Droplet) error

func (*Framework) CreateInstance

func (f *Framework) CreateInstance(obj *v1alpha1.Instance) error

func (*Framework) CreateModuleServiceAccount

func (f *Framework) CreateModuleServiceAccount(obj *v1alpha1.GoogleServiceAccount) error

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace() error

func (*Framework) CreateResourceGroup added in v0.1.0

func (f *Framework) CreateResourceGroup(obj *v1alpha1.ResourceGroup) error

func (*Framework) CreateS3Bucket added in v0.1.0

func (f *Framework) CreateS3Bucket(obj *v1alpha1.S3Bucket) error

func (*Framework) CreateSecret

func (f *Framework) CreateSecret(obj *core.Secret) error

func (*Framework) CreateServiceAccount

func (f *Framework) CreateServiceAccount(obj *v1alpha1.ServiceAccount) error

func (*Framework) DeleteDroplet added in v0.1.0

func (f *Framework) DeleteDroplet(meta metav1.ObjectMeta) error

func (*Framework) DeleteInstance

func (f *Framework) DeleteInstance(meta metav1.ObjectMeta) error

func (*Framework) DeleteModuleServiceAccount

func (f *Framework) DeleteModuleServiceAccount(meta metav1.ObjectMeta) error

func (*Framework) DeleteNamespace

func (f *Framework) DeleteNamespace() error

func (*Framework) DeleteResourceGroup added in v0.1.0

func (f *Framework) DeleteResourceGroup(meta metav1.ObjectMeta) error

func (*Framework) DeleteS3Bucket added in v0.1.0

func (f *Framework) DeleteS3Bucket(meta metav1.ObjectMeta) error

func (*Framework) DeleteSecret

func (f *Framework) DeleteSecret(obj v1.ObjectMeta) error

func (*Framework) DeleteServiceAccount

func (f *Framework) DeleteServiceAccount(meta metav1.ObjectMeta) error

func (*Framework) EventuallyCRD

func (f *Framework) EventuallyCRD() GomegaAsyncAssertion

func (*Framework) EventuallyDropletDeleted added in v0.1.0

func (f *Framework) EventuallyDropletDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyDropletRunning added in v0.1.0

func (f *Framework) EventuallyDropletRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyInstanceDeleted

func (f *Framework) EventuallyInstanceDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyInstanceRunning

func (f *Framework) EventuallyInstanceRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyModuleServiceAccountDeleted

func (f *Framework) EventuallyModuleServiceAccountDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyModuleServiceAccountRunning

func (f *Framework) EventuallyModuleServiceAccountRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyResourceGroupDeleted added in v0.1.0

func (f *Framework) EventuallyResourceGroupDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyResourceGroupRunning added in v0.1.0

func (f *Framework) EventuallyResourceGroupRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyS3BucketDeleted added in v0.1.0

func (f *Framework) EventuallyS3BucketDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyS3BucketRunning added in v0.1.0

func (f *Framework) EventuallyS3BucketRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyServiceAccountDeleted

func (f *Framework) EventuallyServiceAccountDeleted(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyServiceAccountRunning

func (f *Framework) EventuallyServiceAccountRunning(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) Invoke

func (f *Framework) Invoke() *Invocation

func (*Framework) Namespace

func (f *Framework) Namespace() string

type Invocation

type Invocation struct {
	*Framework
	// contains filtered or unexported fields
}

func (*Invocation) AwsProviderRef

func (i *Invocation) AwsProviderRef(name string) *core.Secret

func (*Invocation) AzureProviderRef

func (i *Invocation) AzureProviderRef(name string) *core.Secret

func (*Invocation) DBInstanceSensitiveData

func (i *Invocation) DBInstanceSensitiveData() *core.Secret

func (*Invocation) DigitalOceanProviderRef

func (i *Invocation) DigitalOceanProviderRef(name string) *core.Secret

func (*Invocation) Droplets added in v0.1.0

func (i *Invocation) Droplets(name string, secretName string) *v1alpha1.Droplet

func (*Invocation) GetRandomName added in v0.2.0

func (fi *Invocation) GetRandomName(extraSuffix string) string

func (*Invocation) GoogleProviderRef

func (i *Invocation) GoogleProviderRef(name string) *core.Secret

func (*Invocation) Instance

func (i *Invocation) Instance(name string, secretName string) *v1alpha1.Instance

func (*Invocation) InstanceSensitiveData

func (i *Invocation) InstanceSensitiveData() *core.Secret

func (*Invocation) KubeClient

func (fi *Invocation) KubeClient() kubernetes.Interface

func (*Invocation) KubeformClient

func (fi *Invocation) KubeformClient() kfclient.Interface

func (*Invocation) LinodeProviderRef

func (i *Invocation) LinodeProviderRef(name string) *core.Secret

func (*Invocation) ModuleServiceAccount

func (i *Invocation) ModuleServiceAccount(name string, secretName string) *v1alpha1.GoogleServiceAccount

func (*Invocation) ResourceGroup added in v0.1.0

func (i *Invocation) ResourceGroup(name string, secretName string) *v1alpha1.ResourceGroup

func (*Invocation) RestConfig

func (fi *Invocation) RestConfig() *rest.Config

func (*Invocation) S3Bucket added in v0.1.0

func (i *Invocation) S3Bucket(name, secretName string) *v1alpha1.S3Bucket

func (*Invocation) ServiceAccount

func (i *Invocation) ServiceAccount(name string, secretName string) *v1alpha1.ServiceAccount

Jump to

Keyboard shortcuts

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