identity

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity interface {
	ProbeController(ctx context.Context) (string, bool, error)
	ProbeForever(ctx context.Context) (string, error)
	GetReplicationCapabilities(ctx context.Context) (ReplicationCapabilitySet, []*replication.SupportedActions, error)
	GetMigrationCapabilities(ctx context.Context) (MigrationCapabilitySet, error)
}

Identity is an interface that defines calls used for querying identity and state of the driver

func New

func New(conn *grpc.ClientConn, log logr.Logger, timeout time.Duration, frequency time.Duration) Identity

New return new Identity interface implementation

func NewFakeIdentityClient

func NewFakeIdentityClient(name string) Identity

NewFakeIdentityClient returns fake identity client

type MigrationCapabilitySet added in v1.3.0

type MigrationCapabilitySet map[migration.MigrateTypes]bool

MigrationCapabilitySet represents map of supported migration capabilities

type ReplicationCapabilitySet

type ReplicationCapabilitySet map[replication.ReplicationCapability_RPC_Type]bool

ReplicationCapabilitySet represents map of supported replication capabilities

Jump to

Keyboard shortcuts

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