externalschema

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type CertificateSigningRequestInfo

type CertificateSigningRequestInfo struct {
	Subject      string `json:"subject"`
	KeyAlgorithm string `json:"keyAlgorithm"`
}

type CertificationResult

type CertificationResult struct {
	CertificateChain  string `json:"certificateChain"`
	CaCertificate     string `json:"caCertificate"`
	ClientCertificate string `json:"clientCertificate"`
}

type ComplexityRoot

type ComplexityRoot struct {
	CertificateSigningRequestInfo struct {
		KeyAlgorithm func(childComplexity int) int
		Subject      func(childComplexity int) int
	}

	CertificationResult struct {
		CaCertificate     func(childComplexity int) int
		CertificateChain  func(childComplexity int) int
		ClientCertificate func(childComplexity int) int
	}

	Configuration struct {
		CertificateSigningRequestInfo func(childComplexity int) int
		ManagementPlaneInfo           func(childComplexity int) int
		Token                         func(childComplexity int) int
	}

	ManagementPlaneInfo struct {
		CertificateSecuredConnectorURL func(childComplexity int) int
		DirectorURL                    func(childComplexity int) int
	}

	Mutation struct {
		RevokeCertificate             func(childComplexity int) int
		SignCertificateSigningRequest func(childComplexity int, csr string) int
	}

	Query struct {
		Configuration func(childComplexity int) int
	}

	Token struct {
		Token func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type Configuration

type Configuration struct {
	Token                         *Token                         `json:"token"`
	CertificateSigningRequestInfo *CertificateSigningRequestInfo `json:"certificateSigningRequestInfo"`
	ManagementPlaneInfo           *ManagementPlaneInfo           `json:"managementPlaneInfo"`
}

type DirectiveRoot

type DirectiveRoot struct {
}

type ManagementPlaneInfo

type ManagementPlaneInfo struct {
	DirectorURL                    *string `json:"directorURL"`
	CertificateSecuredConnectorURL *string `json:"certificateSecuredConnectorURL"`
}

type MutationResolver

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

type QueryResolver

type QueryResolver interface {
	Configuration(ctx context.Context) (*Configuration, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

type Token

type Token struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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