generated

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 11 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 ComplexityRoot

type ComplexityRoot struct {
	App struct {
		Chart     func(childComplexity int) int
		Name      func(childComplexity int) int
		Namespace func(childComplexity int) int
		Release   func(childComplexity int) int
	}

	Chart struct {
		Dependencies func(childComplexity int) int
		Deprecated   func(childComplexity int) int
		Description  func(childComplexity int) int
		Home         func(childComplexity int) int
		Icon         func(childComplexity int) int
		Keywords     func(childComplexity int) int
		Maintainers  func(childComplexity int) int
		Metadata     func(childComplexity int) int
		Name         func(childComplexity int) int
		Sources      func(childComplexity int) int
		Version      func(childComplexity int) int
	}

	Dependency struct {
		Chart      func(childComplexity int) int
		Repository func(childComplexity int) int
		Version    func(childComplexity int) int
	}

	Maintainer struct {
		Email func(childComplexity int) int
		Name  func(childComplexity int) int
	}

	Mutation struct {
		InstallApp   func(childComplexity int, input model.AppInput) int
		RollbackApp  func(childComplexity int, input model.AppRef) int
		UninstallApp func(childComplexity int, input model.AppRef) int
		UpdateApp    func(childComplexity int, input model.AppInput) int
	}

	Query struct {
		GetApp       func(childComplexity int, input model.AppRef) int
		GetHistory   func(childComplexity int, input model.HistoryFilter) int
		SearchApps   func(childComplexity int, input model.AppFilter) int
		SearchCharts func(childComplexity int, input model.ChartFilter) int
	}

	Release struct {
		Config      func(childComplexity int) int
		Description func(childComplexity int) int
		Notes       func(childComplexity int) int
		Status      func(childComplexity int) int
		Timestamps  func(childComplexity int) int
		Version     func(childComplexity int) int
	}

	Timestamps struct {
		Created func(childComplexity int) int
		Deleted func(childComplexity int) int
		Updated func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	InstallApp(ctx context.Context, input model.AppInput) (*model.App, error)
	UpdateApp(ctx context.Context, input model.AppInput) (*model.App, error)
	RollbackApp(ctx context.Context, input model.AppRef) (*model.App, error)
	UninstallApp(ctx context.Context, input model.AppRef) (*string, error)
}

type QueryResolver

type QueryResolver interface {
	GetApp(ctx context.Context, input model.AppRef) (*model.App, error)
	GetHistory(ctx context.Context, input model.HistoryFilter) ([]*model.App, error)
	SearchApps(ctx context.Context, input model.AppFilter) ([]*model.App, error)
	SearchCharts(ctx context.Context, input model.ChartFilter) ([]*model.Chart, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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