gqlschema

package
v0.0.0-...-ecc6c17 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 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 {
	ManagementPlaneInfo *ManagementPlaneInfo `json:"managementPlaneInfo"`
	Subject             string               `json:"subject"`
	KeyAlgorithm        string               `json:"keyAlgorithm"`
}

type CertificationResult

type CertificationResult struct {
	Certificate       string `json:"certificate"`
	CaCertificate     string `json:"caCertificate"`
	ClientCertificate string `json:"clientCertificate"`
}

type ComplexityRoot

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

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

	ManagementPlaneInfo struct {
		DirectorURL func(childComplexity int) int
	}

	Mutation struct {
		GenerateApplicationToken      func(childComplexity int, appID string) int
		GenerateRuntimeToken          func(childComplexity int, runtimeID string) int
		RenewCertificate              func(childComplexity int, csr string) int
		RevokeCertificate             func(childComplexity int) int
		SignCertificateSigningRequest func(childComplexity int, csr string, token *string) int
	}

	Query struct {
		GetCertificateSignignRequestInfo func(childComplexity int, token *string) int
	}

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

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type ManagementPlaneInfo

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

type MutationResolver

type MutationResolver interface {
	GenerateApplicationToken(ctx context.Context, appID string) (*Token, error)
	GenerateRuntimeToken(ctx context.Context, runtimeID string) (*Token, error)
	SignCertificateSigningRequest(ctx context.Context, csr string, token *string) (*CertificationResult, error)
	RenewCertificate(ctx context.Context, csr string) (*CertificationResult, error)
	RevokeCertificate(ctx context.Context) (bool, error)
}

type QueryResolver

type QueryResolver interface {
	GetCertificateSignignRequestInfo(ctx context.Context, token *string) (*CertificateSigningRequestInfo, error)
}

type Resolver

type Resolver struct{}

func (*Resolver) Mutation

func (r *Resolver) Mutation() MutationResolver

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

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