tda

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tda implements the IndyKite TrustedDataAccess Service API Client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, opts ...api.ClientOption) (*Client, error)

NewClient creates a new Trusted Data Control gRPC Client.

func NewTestClient

func NewTestClient(client accesspb.TrustedDataAccessAPIClient) (*Client, error)

NewTestClient creates a new Trusted Data Control gRPC Client for Testing.

func (*Client) Close

func (c *Client) Close() error

Close closes the connection to the API service. The user should invoke this when the client is no longer required.

func (*Client) DataAccess

func (c *Client) DataAccess(
	ctx context.Context,
	req *tdapb.DataAccessRequest,
	opts ...grpc.CallOption,
) (*tdapb.DataAccessResponse, error)

func (*Client) GrantConsent

func (c *Client) GrantConsent(
	ctx context.Context,
	req *tdapb.GrantConsentRequest,
	opts ...grpc.CallOption,
) (*tdapb.GrantConsentResponse, error)

func (*Client) ListConsents

func (c *Client) ListConsents(
	ctx context.Context,
	req *tdapb.ListConsentsRequest,
	opts ...grpc.CallOption,
) (*tdapb.ListConsentsResponse, error)

func (*Client) RevokeConsent

func (c *Client) RevokeConsent(
	ctx context.Context,
	req *tdapb.RevokeConsentRequest,
	opts ...grpc.CallOption,
) (*tdapb.RevokeConsentResponse, error)

Jump to

Keyboard shortcuts

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