connector

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientProvider

func NewClientProvider(connectorURL string, timeout time.Duration) connectorClientProvider

Types

type CertificateResponse

type CertificateResponse struct {
	Result schema.CertificationResult `json:"result"`
}

type Client

type Client interface {
	Configuration(ctx context.Context, headers map[string]string) (schema.Configuration, apperrors.AppError)
	SignCSR(ctx context.Context, csr string, headers map[string]string) (schema.CertificationResult, apperrors.AppError)
	Revoke(ctx context.Context, headers map[string]string) apperrors.AppError
}

func NewClient

func NewClient(gqlClient *graphql.Client) Client

type ClientProvider

type ClientProvider interface {
	Client(r *http.Request) Client
}

type ConfigurationResponse

type ConfigurationResponse struct {
	Result schema.Configuration `json:"result"`
}

type RevokeResponse

type RevokeResponse struct {
	Result bool `json:"result"`
}

type TokenResponse

type TokenResponse struct {
	Result schema.Token `json:"result"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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