openapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// v1 openapi oprator.
	Identify(ctx context.Context, sendToPluginID string) (*openapi_v1.IdentifyResponse, error)
	AddonsIdentify(ctx context.Context, sendToPluginID string, req *openapi_v1.AddonsIdentifyRequest) (*openapi_v1.AddonsIdentifyResponse, error)
	Status(ctx context.Context, sendToPluginID string) (*openapi_v1.StatusResponse, error)
	TenantBind(ctx context.Context, sendToPluginID string, req *openapi_v1.TenantBindRequst) (*openapi_v1.TenantBindResponse, error)
	TenantUnbind(ctx context.Context, sendToPluginID string, req *openapi_v1.TenantUnbindRequst) (*openapi_v1.TenantUnbindResponse, error)
}

type DaprClient

type DaprClient struct {
	Client dapr.Client
	// contains filtered or unexported fields
}

func NewDaprClient

func NewDaprClient(appID string, c dapr.Client) *DaprClient

func (*DaprClient) AddonsIdentify

func (c *DaprClient) AddonsIdentify(ctx context.Context, sendToPluginID string, req *openapi_v1.AddonsIdentifyRequest) (*openapi_v1.AddonsIdentifyResponse, error)

POST AddonsIdentify.

func (*DaprClient) Identify

func (c *DaprClient) Identify(ctx context.Context, sendToPluginID string) (*openapi_v1.IdentifyResponse, error)

GET Identify.

func (*DaprClient) Status

func (c *DaprClient) Status(ctx context.Context, sendToPluginID string) (*openapi_v1.StatusResponse, error)

GET Status.

func (*DaprClient) TenantBind

func (c *DaprClient) TenantBind(ctx context.Context, sendToPluginID string, req *openapi_v1.TenantBindRequst) (*openapi_v1.TenantBindResponse, error)

POST Tenantbind.

func (*DaprClient) TenantUnbind

func (c *DaprClient) TenantUnbind(ctx context.Context, sendToPluginID string, req *openapi_v1.TenantUnbindRequst) (*openapi_v1.TenantUnbindResponse, error)

POST TenantUnbind.

Jump to

Keyboard shortcuts

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