operation

package
v0.0.0-...-8bc9604 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CLICKHOUSE_OPERATION_PREFIX         = "cho"
	KAFKA_OPERATION_PREFIX              = "kfo"
	TRANSFER_OPERATION_PREFIX           = "dtj"
	TRANSFER_ENDPOINTS_OPERATION_PREFIX = "dte"
)
View Source
const DefaultPollInterval = time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = OperationServiceClient

type Operation

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

func New

func New(client Client, proto *Proto) *Operation

func (*Operation) Client

func (o *Operation) Client() Client

func (*Operation) CreatedAt

func (o *Operation) CreatedAt() time.Time

func (*Operation) CreatedBy

func (o *Operation) CreatedBy() string

func (*Operation) Description

func (o *Operation) Description() string

func (*Operation) Done

func (o *Operation) Done() bool

func (*Operation) Error

func (o *Operation) Error() error

func (*Operation) ErrorStatus

func (o *Operation) ErrorStatus() *status.Status

func (*Operation) Failed

func (o *Operation) Failed() bool

func (*Operation) Id

func (o *Operation) Id() string

func (*Operation) Metadata

func (o *Operation) Metadata() map[string]string

func (*Operation) Ok

func (o *Operation) Ok() bool

func (*Operation) Poll

func (o *Operation) Poll(ctx context.Context, opts ...grpc.CallOption) error

Poll gets new state of operation from operation client. On success the operation state is updated. Returns error if update request failed.

func (*Operation) Proto

func (o *Operation) Proto() *Proto

func (*Operation) ResourceId

func (o *Operation) ResourceId() string

func (*Operation) Wait

func (o *Operation) Wait(ctx context.Context, opts ...grpc.CallOption) error

func (*Operation) WaitInterval

func (o *Operation) WaitInterval(ctx context.Context, pollInterval time.Duration, opts ...grpc.CallOption) error

type OperationServiceClient

type OperationServiceClient interface {
}

type Proto

type Proto = dc.Operation

Jump to

Keyboard shortcuts

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