identity

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 9 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)
}

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 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