util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HarvesterAPIClient

type HarvesterAPIClient interface {
	GetRelationships(context.Context, api.ConsentStatus) ([]*entity.Relationship, error)
	UpdateRelationship(context.Context, uuid.UUID, api.ConsentStatus) (*entity.Relationship, error)
}

HarvesterAPIClient represents an API client for the Harvester.

func NewUDSClient

func NewUDSClient(socketPath string, httpClient *http.Client) (HarvesterAPIClient, error)

NewUDSClient creates a Harvester API client that connects to the Harvester using a Unix Domain Socket (UDS) specified by the socketPath parameter.

Jump to

Keyboard shortcuts

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