api

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateResolver

type CertificateResolver interface {
	SignCertificateSigningRequest(ctx context.Context, csr string) (*externalschema.CertificationResult, error)
	RevokeCertificate(ctx context.Context) (bool, error)
	Configuration(ctx context.Context) (*externalschema.Configuration, error)
}

func NewCertificateResolver

func NewCertificateResolver(
	authenticator authentication.Authenticator,
	tokenService tokens.Service,
	certificatesService certificates.Service,
	csrSubjectConsts certificates.CSRSubjectConsts,
	directorURL string,
	certificateSecuredConnectorURL string,
	revocationList revocation.RevocationListRepository) CertificateResolver

type ExternalResolver

type ExternalResolver struct {
	CertificateResolver
}

func (*ExternalResolver) Mutation

func (*ExternalResolver) Query

type InternalResolver

type InternalResolver struct {
	TokenResolver
}

func (*InternalResolver) Mutation

func (*InternalResolver) Query

type TokenResolver

type TokenResolver interface {
	GenerateApplicationToken(ctx context.Context, appID string) (*externalschema.Token, error)
	GenerateRuntimeToken(ctx context.Context, runtimeID string) (*externalschema.Token, error)
	IsHealthy(ctx context.Context) (bool, error)
}

func NewTokenResolver

func NewTokenResolver(tokenService tokens.Service) TokenResolver

Jump to

Keyboard shortcuts

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