credhub

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExportSequence

func NewExportSequence(org, space string, instance *cf.ServiceInstance, om config.OpsManager, h ClientHolder, executor exec.Executor) flow.Flow

func NewImportSequence

func NewImportSequence(org, space string, instance *cf.ServiceInstance, om config.OpsManager, h ClientHolder, executor exec.Executor) flow.Flow

func RetrieveCredhubCredentials

func RetrieveCredhubCredentials(bc bosh.Client, om config.OpsManager, e exec.Executor, instance *cf.ServiceInstance, credsExtractor CredentialsExtractor) flow.StepFunc

func SetCredentials

func SetCredentials(instance *cf.ServiceInstance) flow.StepFunc

Types

type ClientHolder

type ClientHolder interface {
	SourceCFClient() cf.Client
	TargetCFClient() cf.Client
	SourceBoshClient() bosh.Client
	TargetBoshClient() bosh.Client
}

type CredentialsExtractor

type CredentialsExtractor func(s string) (map[string]interface{}, error)

type ExportValidator

type ExportValidator struct{}

func (ExportValidator) Validate

func (v ExportValidator) Validate(instance cf.ServiceInstance) error

type ImportValidator

type ImportValidator struct{}

func (ImportValidator) Validate

func (v ImportValidator) Validate(instance cf.ServiceInstance) error

type Migrator

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

func NewMigrator

func NewMigrator(flow flow.Flow, reader config.MigrationReader) *Migrator

func (*Migrator) Migrate

func (m *Migrator) Migrate(ctx context.Context) (*cf.ServiceInstance, error)

func (*Migrator) Validate

func (m *Migrator) Validate(si *cf.ServiceInstance, export bool) error

Jump to

Keyboard shortcuts

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