datastore

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Client    client.Client
	Name      string
	DataStore kamajiv1alpha1.DataStore
	// contains filtered or unexported fields
}

func (*Certificate) CleanUp

func (*Certificate) CreateOrUpdate

func (r *Certificate) CreateOrUpdate(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)

func (*Certificate) Define

func (r *Certificate) Define(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

func (*Certificate) GetClient

func (r *Certificate) GetClient() client.Client

func (*Certificate) GetName

func (r *Certificate) GetName() string

func (*Certificate) ShouldCleanup

func (*Certificate) ShouldStatusBeUpdated

func (r *Certificate) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) bool

func (*Certificate) UpdateTenantControlPlaneStatus

func (r *Certificate) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

type Config

type Config struct {
	Client     client.Client
	ConnString string
	DataStore  kamajiv1alpha1.DataStore
	// contains filtered or unexported fields
}

func (*Config) CleanUp

func (*Config) CreateOrUpdate

func (r *Config) CreateOrUpdate(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)

func (*Config) Define

func (r *Config) Define(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

func (*Config) Delete added in v0.3.5

func (*Config) GetClient

func (r *Config) GetClient() client.Client

func (*Config) GetName

func (r *Config) GetName() string

func (*Config) ShouldCleanup

func (r *Config) ShouldCleanup(*kamajiv1alpha1.TenantControlPlane) bool

func (*Config) ShouldStatusBeUpdated

func (r *Config) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) bool

func (*Config) UpdateTenantControlPlaneStatus

func (r *Config) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

type Migrate added in v0.2.0

type Migrate struct {
	Client               client.Client
	KamajiNamespace      string
	KamajiServiceAccount string
	KamajiServiceName    string
	ShouldCleanUp        bool
	MigrateImage         string
	// contains filtered or unexported fields
}

func (*Migrate) CleanUp added in v0.2.0

func (*Migrate) CreateOrUpdate added in v0.2.0

func (d *Migrate) CreateOrUpdate(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)

func (*Migrate) Define added in v0.2.0

func (d *Migrate) Define(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

func (*Migrate) GetName added in v0.2.0

func (d *Migrate) GetName() string

func (*Migrate) ShouldCleanup added in v0.2.0

func (d *Migrate) ShouldCleanup(tcp *kamajiv1alpha1.TenantControlPlane) bool

func (*Migrate) ShouldStatusBeUpdated added in v0.2.0

func (d *Migrate) ShouldStatusBeUpdated(context.Context, *kamajiv1alpha1.TenantControlPlane) bool

func (*Migrate) UpdateTenantControlPlaneStatus added in v0.2.0

func (d *Migrate) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

type Setup

type Setup struct {
	Client     client.Client
	Connection datastore.Connection
	DataStore  kamajiv1alpha1.DataStore
	// contains filtered or unexported fields
}

func (*Setup) CleanUp

func (*Setup) CreateOrUpdate

func (r *Setup) CreateOrUpdate(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) (reconciliationResult controllerutil.OperationResult, err error)

func (*Setup) Define

func (r *Setup) Define(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

func (*Setup) Delete

func (r *Setup) Delete(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

func (*Setup) GetClient

func (r *Setup) GetClient() client.Client

func (*Setup) GetName

func (r *Setup) GetName() string

func (*Setup) ShouldCleanup

func (r *Setup) ShouldCleanup(_ *kamajiv1alpha1.TenantControlPlane) bool

func (*Setup) ShouldStatusBeUpdated

func (r *Setup) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) bool

func (*Setup) UpdateTenantControlPlaneStatus

func (r *Setup) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error

type SetupResource

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

Jump to

Keyboard shortcuts

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