v25

package
v1.0.9-3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapManager

type ConfigMapManager interface {
	GetCoreConfig(*current.IBPPeer) (*corev1.ConfigMap, error)
	CreateOrUpdate(*current.IBPPeer, initializer.CoreConfig) error
}

type DeploymentManager

type DeploymentManager interface {
	Get(metav1.Object) (client.Object, error)
	Delete(metav1.Object) error
	DeploymentStatus(metav1.Object) (appsv1.DeploymentStatus, error)
	GetScheme() *runtime.Scheme
}

type Migrate

type Migrate struct {
	DeploymentManager DeploymentManager
	ConfigMapManager  ConfigMapManager
	Client            k8sclient.Client
}

func (*Migrate) MigrationNeeded

func (m *Migrate) MigrationNeeded(instance metav1.Object) bool

func (*Migrate) SetChaincodeLauncherResourceOnCR

func (m *Migrate) SetChaincodeLauncherResourceOnCR(instance metav1.Object) error

SetChaincodeLauncherResourceOnCR will update the peer's CR by adding chaincode launcher resources. The default resources are defined in deployer's config map, which is part IBPConsole resource. The default resources are extracted for the chaincode launcher by reading the deployer's config map and updating the CR.

func (*Migrate) UpdateConfig

func (m *Migrate) UpdateConfig(instance metav1.Object, version string) error

func (*Migrate) UpgradeDBs

func (m *Migrate) UpgradeDBs(instance metav1.Object, timeouts config.DBMigrationTimeouts) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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