universalapi

package
v1.12.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package universalapi contains the implementation of APIs that are shared between gRPC and HTTP servers. On HTTP servers, they use protojson to convert data to/from JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UniversalAPI

type UniversalAPI struct {
	AppID                       string
	Logger                      logger.Logger
	Resiliency                  resiliency.Provider
	Actors                      actors.ActorRuntime
	CompStore                   *compstore.ComponentStore
	ShutdownFn                  func()
	GetComponentsCapabilitiesFn func() map[string][]string
	ExtendedMetadata            map[string]string
	AppConnectionConfig         config.AppConnectionConfig
	GlobalConfig                *config.Configuration
	// contains filtered or unexported fields
}

UniversalAPI contains the implementation of gRPC APIs that are also used by the HTTP server.

func (*UniversalAPI) CryptoGetUnwrapKeyFn added in v1.11.0

func (a *UniversalAPI) CryptoGetUnwrapKeyFn(ctx context.Context, componentName string, component contribCrypto.SubtleCrypto) encv1.UnwrapKeyFn

func (*UniversalAPI) CryptoGetWrapKeyFn added in v1.11.0

func (a *UniversalAPI) CryptoGetWrapKeyFn(ctx context.Context, componentName string, component contribCrypto.SubtleCrypto) encv1.WrapKeyFn

func (*UniversalAPI) CryptoValidateRequest added in v1.11.0

func (a *UniversalAPI) CryptoValidateRequest(componentName string) (contribCrypto.SubtleCrypto, error)

CryptoValidateRequest is an internal method that checks if the request is for a valid crypto component.

func (*UniversalAPI) GetMetadata added in v1.12.0

func (*UniversalAPI) GetSecret

func (*UniversalAPI) GetStateStore added in v1.11.0

func (a *UniversalAPI) GetStateStore(name string) (state.Store, error)

func (*UniversalAPI) GetWorkflowAlpha1 added in v1.11.0

GetWorkflowAlpha1 is the API handler for getting workflow details

func (*UniversalAPI) GetWorkflowBeta1 added in v1.12.0

GetWorkflowBeta1 is the API handler for getting workflow details

func (*UniversalAPI) InitUniversalAPI added in v1.12.0

func (a *UniversalAPI) InitUniversalAPI()

InitUniversalAPI completes the initialization of the UniversalAPI object.

func (*UniversalAPI) PauseWorkflowAlpha1 added in v1.11.0

func (a *UniversalAPI) PauseWorkflowAlpha1(ctx context.Context, in *runtimev1pb.PauseWorkflowRequest) (*emptypb.Empty, error)

PauseWorkflowAlpha1 is the API handler for pausing a workflow

func (*UniversalAPI) PauseWorkflowBeta1 added in v1.12.0

func (a *UniversalAPI) PauseWorkflowBeta1(ctx context.Context, in *runtimev1pb.PauseWorkflowRequest) (*emptypb.Empty, error)

PauseWorkflowBeta1 is the API handler for pausing a workflow

func (*UniversalAPI) PurgeWorkflowAlpha1 added in v1.11.0

func (a *UniversalAPI) PurgeWorkflowAlpha1(ctx context.Context, in *runtimev1pb.PurgeWorkflowRequest) (*emptypb.Empty, error)

PurgeWorkflowAlpha1 is the API handler for purging a workflow

func (*UniversalAPI) PurgeWorkflowBeta1 added in v1.12.0

func (a *UniversalAPI) PurgeWorkflowBeta1(ctx context.Context, in *runtimev1pb.PurgeWorkflowRequest) (*emptypb.Empty, error)

PurgeWorkflowBeta1 is the API handler for purging a workflow

func (*UniversalAPI) QueryStateAlpha1 added in v1.11.0

func (*UniversalAPI) RaiseEventWorkflowAlpha1 added in v1.11.0

func (a *UniversalAPI) RaiseEventWorkflowAlpha1(ctx context.Context, in *runtimev1pb.RaiseEventWorkflowRequest) (*emptypb.Empty, error)

RaiseEventWorkflowAlpha1 is the API handler for raising an event to a workflow

func (*UniversalAPI) RaiseEventWorkflowBeta1 added in v1.12.0

func (a *UniversalAPI) RaiseEventWorkflowBeta1(ctx context.Context, in *runtimev1pb.RaiseEventWorkflowRequest) (*emptypb.Empty, error)

RaiseEventWorkflowBeta1 is the API handler for raising an event to a workflow

func (*UniversalAPI) ResumeWorkflowAlpha1 added in v1.11.0

func (a *UniversalAPI) ResumeWorkflowAlpha1(ctx context.Context, in *runtimev1pb.ResumeWorkflowRequest) (*emptypb.Empty, error)

ResumeWorkflowAlpha1 is the API handler for resuming a workflow

func (*UniversalAPI) ResumeWorkflowBeta1 added in v1.12.0

func (a *UniversalAPI) ResumeWorkflowBeta1(ctx context.Context, in *runtimev1pb.ResumeWorkflowRequest) (*emptypb.Empty, error)

ResumeWorkflowBeta1 is the API handler for resuming a workflow

func (*UniversalAPI) SetActorRuntime added in v1.12.0

func (a *UniversalAPI) SetActorRuntime(actor actors.ActorRuntime)

func (*UniversalAPI) SetActorsInitDone added in v1.12.0

func (a *UniversalAPI) SetActorsInitDone()

SetActorsInitDone indicates that the actors runtime has been initialized, whether actors are available or not

func (*UniversalAPI) SetMetadata added in v1.12.0

SetMetadata Sets value in extended metadata of the sidecar.

func (*UniversalAPI) Shutdown added in v1.12.0

func (a *UniversalAPI) Shutdown(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)

Shutdown the sidecar.

func (*UniversalAPI) StartWorkflowAlpha1 added in v1.11.0

StartWorkflowAlpha1 is the API handler for starting a workflow

func (*UniversalAPI) StartWorkflowBeta1 added in v1.12.0

StartWorkflowBeta1 is the API handler for starting a workflow

func (*UniversalAPI) SubtleDecryptAlpha1 added in v1.11.0

SubtleDecryptAlpha1 decrypts a small message using a key stored in the vault.

func (*UniversalAPI) SubtleEncryptAlpha1 added in v1.11.0

SubtleEncryptAlpha1 encrypts a small message using a key stored in the vault.

func (*UniversalAPI) SubtleGetKeyAlpha1 added in v1.11.0

SubtleGetKeyAlpha1 returns the public part of an asymmetric key stored in the vault.

func (*UniversalAPI) SubtleSignAlpha1 added in v1.11.0

SubtleSignAlpha1 signs a message using a key stored in the vault.

func (*UniversalAPI) SubtleUnwrapKeyAlpha1 added in v1.11.0

SubtleUnwrapKeyAlpha1 unwraps a key using a key stored in the vault.

func (*UniversalAPI) SubtleVerifyAlpha1 added in v1.11.0

SubtleVerifyAlpha1 verifies the signature of a message using a key stored in the vault.

func (*UniversalAPI) SubtleWrapKeyAlpha1 added in v1.11.0

SubtleWrapKeyAlpha1 wraps a key using a key stored in the vault.

func (*UniversalAPI) TerminateWorkflowAlpha1 added in v1.11.0

func (a *UniversalAPI) TerminateWorkflowAlpha1(ctx context.Context, in *runtimev1pb.TerminateWorkflowRequest) (*emptypb.Empty, error)

TerminateWorkflowAlpha1 is the API handler for terminating a workflow

func (*UniversalAPI) TerminateWorkflowBeta1 added in v1.12.0

func (a *UniversalAPI) TerminateWorkflowBeta1(ctx context.Context, in *runtimev1pb.TerminateWorkflowRequest) (*emptypb.Empty, error)

TerminateWorkflowBeta1 is the API handler for terminating a workflow

func (*UniversalAPI) TryLockAlpha1 added in v1.11.0

func (*UniversalAPI) UnlockAlpha1 added in v1.11.0

func (*UniversalAPI) WaitForActorsReady added in v1.12.0

func (a *UniversalAPI) WaitForActorsReady(ctx context.Context)

WaitForActorsReady blocks until the actor runtime is set in the object (or until the context is canceled).

Jump to

Keyboard shortcuts

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