Documentation
¶
Index ¶
- type Certificate
- func (r *Certificate) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
- func (r *Certificate) CreateOrUpdate(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)
- func (r *Certificate) Define(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- func (r *Certificate) GetClient() client.Client
- func (r *Certificate) GetHistogram() prometheus.Histogram
- func (r *Certificate) GetName() string
- func (r *Certificate) ShouldCleanup(*stewardv1alpha1.TenantControlPlane) bool
- func (r *Certificate) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) bool
- func (r *Certificate) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- type Config
- func (r *Config) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
- func (r *Config) CreateOrUpdate(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)
- func (r *Config) Define(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- func (r *Config) Delete(ctx context.Context, _ *stewardv1alpha1.TenantControlPlane) error
- func (r *Config) GetClient() client.Client
- func (r *Config) GetHistogram() prometheus.Histogram
- func (r *Config) GetName() string
- func (r *Config) ShouldCleanup(*stewardv1alpha1.TenantControlPlane) bool
- func (r *Config) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) bool
- func (r *Config) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- type Migrate
- func (d *Migrate) CleanUp(ctx context.Context, _ *stewardv1alpha1.TenantControlPlane) (bool, error)
- func (d *Migrate) CreateOrUpdate(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)
- func (d *Migrate) Define(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- func (d *Migrate) GetHistogram() prometheus.Histogram
- func (d *Migrate) GetName() string
- func (d *Migrate) ShouldCleanup(tcp *stewardv1alpha1.TenantControlPlane) bool
- func (d *Migrate) ShouldStatusBeUpdated(context.Context, *stewardv1alpha1.TenantControlPlane) bool
- func (d *Migrate) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- type MultiTenancy
- func (m *MultiTenancy) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
- func (m *MultiTenancy) CreateOrUpdate(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)
- func (m *MultiTenancy) Define(context.Context, *stewardv1alpha1.TenantControlPlane) error
- func (m *MultiTenancy) GetHistogram() prometheus.Histogram
- func (m *MultiTenancy) GetName() string
- func (m *MultiTenancy) ShouldCleanup(*stewardv1alpha1.TenantControlPlane) bool
- func (m *MultiTenancy) ShouldStatusBeUpdated(context.Context, *stewardv1alpha1.TenantControlPlane) bool
- func (m *MultiTenancy) UpdateTenantControlPlaneStatus(context.Context, *stewardv1alpha1.TenantControlPlane) error
- type Setup
- func (r *Setup) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
- func (r *Setup) CreateOrUpdate(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) (reconciliationResult controllerutil.OperationResult, err error)
- func (r *Setup) Define(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- func (r *Setup) Delete(ctx context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- func (r *Setup) GetClient() client.Client
- func (r *Setup) GetHistogram() prometheus.Histogram
- func (r *Setup) GetName() string
- func (r *Setup) ShouldCleanup(_ *stewardv1alpha1.TenantControlPlane) bool
- func (r *Setup) ShouldStatusBeUpdated(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) bool
- func (r *Setup) UpdateTenantControlPlaneStatus(_ context.Context, tenantControlPlane *stewardv1alpha1.TenantControlPlane) error
- type SetupResource
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 (r *Certificate) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
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 (r *Certificate) ShouldCleanup(*stewardv1alpha1.TenantControlPlane) bool
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 (r *Config) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
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 ¶
func (r *Config) Delete(ctx context.Context, _ *stewardv1alpha1.TenantControlPlane) error
Delete doesn't perform any deletion process: the Secret object has owner relationship with the TenantControlPlane object, which has been previously deleted.
func (*Config) GetHistogram ¶
func (r *Config) GetHistogram() prometheus.Histogram
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 (d *Migrate) CleanUp(ctx context.Context, _ *stewardv1alpha1.TenantControlPlane) (bool, error)
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) 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 (m *MultiTenancy) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
func (*MultiTenancy) CreateOrUpdate ¶
func (m *MultiTenancy) CreateOrUpdate(_ context.Context, tcp *stewardv1alpha1.TenantControlPlane) (controllerutil.OperationResult, error)
func (*MultiTenancy) Define ¶
func (m *MultiTenancy) Define(context.Context, *stewardv1alpha1.TenantControlPlane) error
func (*MultiTenancy) GetHistogram ¶
func (m *MultiTenancy) GetHistogram() prometheus.Histogram
func (*MultiTenancy) GetName ¶
func (m *MultiTenancy) GetName() string
func (*MultiTenancy) ShouldCleanup ¶
func (m *MultiTenancy) ShouldCleanup(*stewardv1alpha1.TenantControlPlane) bool
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 (r *Setup) CleanUp(context.Context, *stewardv1alpha1.TenantControlPlane) (bool, error)
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) GetHistogram ¶
func (r *Setup) GetHistogram() prometheus.Histogram
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
}
Click to show internal directories.
Click to hide internal directories.