datastore

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 28 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               stewardv1alpha1.DataStore
	CertExpirationThreshold time.Duration
	// contains filtered or unexported fields
}

func (*Certificate) CleanUp

func (*Certificate) CreateOrUpdate

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

func (*Certificate) Define

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

func (*Certificate) GetClient

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

func (*Certificate) GetHistogram

func (r *Certificate) GetHistogram() prometheus.Histogram

func (*Certificate) GetName

func (r *Certificate) GetName() string

func (*Certificate) ShouldCleanup

func (*Certificate) ShouldStatusBeUpdated

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

func (*Certificate) UpdateTenantControlPlaneStatus

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

type Config

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

func (*Config) CleanUp

func (*Config) CreateOrUpdate

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

func (*Config) Define

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

func (*Config) Delete

Delete doesn't perform any deletion process: the Secret object has owner relationship with the TenantControlPlane object, which has been previously deleted.

func (*Config) GetClient

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

func (*Config) GetHistogram

func (r *Config) GetHistogram() prometheus.Histogram

func (*Config) GetName

func (r *Config) GetName() string

func (*Config) ShouldCleanup

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

func (*Config) ShouldStatusBeUpdated

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

func (*Config) UpdateTenantControlPlaneStatus

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

type Migrate

type Migrate struct {
	Client                client.Client
	StewardNamespace      string
	StewardServiceAccount string
	StewardServiceName    string
	ShouldCleanUp         bool
	MigrateImage          string
	// contains filtered or unexported fields
}

func (*Migrate) CleanUp

func (*Migrate) CreateOrUpdate

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

func (*Migrate) Define

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

func (*Migrate) GetHistogram

func (d *Migrate) GetHistogram() prometheus.Histogram

func (*Migrate) GetName

func (d *Migrate) GetName() string

func (*Migrate) ShouldCleanup

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

func (*Migrate) ShouldStatusBeUpdated

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

func (*Migrate) UpdateTenantControlPlaneStatus

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

type MultiTenancy

type MultiTenancy struct {
	DataStore stewardv1alpha1.DataStore
}

func (*MultiTenancy) CleanUp

func (*MultiTenancy) Define

func (*MultiTenancy) GetHistogram

func (m *MultiTenancy) GetHistogram() prometheus.Histogram

func (*MultiTenancy) GetName

func (m *MultiTenancy) GetName() string

func (*MultiTenancy) ShouldCleanup

func (*MultiTenancy) ShouldStatusBeUpdated

func (m *MultiTenancy) ShouldStatusBeUpdated(context.Context, *stewardv1alpha1.TenantControlPlane) bool

func (*MultiTenancy) UpdateTenantControlPlaneStatus

func (m *MultiTenancy) UpdateTenantControlPlaneStatus(context.Context, *stewardv1alpha1.TenantControlPlane) error

type Setup

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

func (*Setup) CleanUp

func (*Setup) CreateOrUpdate

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

func (*Setup) Define

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

func (*Setup) Delete

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

func (*Setup) GetClient

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

func (*Setup) GetHistogram

func (r *Setup) GetHistogram() prometheus.Histogram

func (*Setup) GetName

func (r *Setup) GetName() string

func (*Setup) ShouldCleanup

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

func (*Setup) ShouldStatusBeUpdated

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

func (*Setup) UpdateTenantControlPlaneStatus

func (r *Setup) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *stewardv1alpha1.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