generated

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT 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 {
	Build struct {
		Link      func(childComplexity int) int
		StartTime func(childComplexity int) int
		Status    func(childComplexity int) int
	}

	ClusterInfo struct {
		Name              func(childComplexity int) int
		Region            func(childComplexity int) int
		ReviewAppsEnabled func(childComplexity int) int
	}

	Mutation struct {
		CreateApp             func(childComplexity int, input model.AppInput) int
		CreateReviewApp       func(childComplexity int, input model.CreateReviewAppInput) int
		Deploy                func(childComplexity int, input model.AppInput) int
		DestroyApp            func(childComplexity int, input model.AppInput) int
		ManualApply           func(childComplexity int, input model.ManualApplyInput) int
		RemoveApp             func(childComplexity int, input model.AppInput) int
		Rollback              func(childComplexity int, input model.AppInput) int
		SetAppEnv             func(childComplexity int, input model.SetTupleInput) int
		SetAppVar             func(childComplexity int, input model.SetTupleInput) int
		SetCloudSourceRepo    func(childComplexity int, input model.AppInput) int
		SetExcludedResource   func(childComplexity int, input model.SetResourceInput) int
		SetGithubRepo         func(childComplexity int, input model.AppInput) int
		SetRacEnabled         func(childComplexity int, input model.SetRacEnabledInput) int
		SetRacExclusion       func(childComplexity int, input model.SetResourceInput) int
		SetRacVar             func(childComplexity int, input model.SetTupleInput) int
		SetSlackChannel       func(childComplexity int, input model.AppInput) int
		UnsetAppEnv           func(childComplexity int, input model.SetTupleInput) int
		UnsetAppVar           func(childComplexity int, input model.SetTupleInput) int
		UnsetExcludedResource func(childComplexity int, input model.SetResourceInput) int
		UnsetRacExclusion     func(childComplexity int, input model.SetResourceInput) int
		UnsetRacVar           func(childComplexity int, input model.SetTupleInput) int
		UpdateApp             func(childComplexity int, input model.AppInput) int
	}

	Query struct {
		GetApp         func(childComplexity int, name string) int
		GetAppEnv      func(childComplexity int, name string) int
		GetApps        func(childComplexity int) int
		GetClusterInfo func(childComplexity int) int
	}

	Resource struct {
		Encoded func(childComplexity int) int
		Kind    func(childComplexity int) int
		Name    func(childComplexity int) int
	}

	ReviewAppsConfig struct {
		Enabled           func(childComplexity int) int
		ExcludedResources func(childComplexity int) int
		Vars              func(childComplexity int) int
	}

	State struct {
		Current  func(childComplexity int) int
		Previous func(childComplexity int) int
	}

	TuberApp struct {
		CloudBuildStatuses func(childComplexity int) int
		CloudSourceRepo    func(childComplexity int) int
		CurrentTags        func(childComplexity int) int
		ExcludedResources  func(childComplexity int) int
		GithubRepo         func(childComplexity int) int
		ImageTag           func(childComplexity int) int
		Name               func(childComplexity int) int
		Paused             func(childComplexity int) int
		ReviewApp          func(childComplexity int) int
		ReviewApps         func(childComplexity int) int
		ReviewAppsConfig   func(childComplexity int) int
		SlackChannel       func(childComplexity int) int
		SourceAppName      func(childComplexity int) int
		State              func(childComplexity int) int
		TriggerID          func(childComplexity int) int
		Vars               func(childComplexity int) int
	}

	Tuple struct {
		Key   func(childComplexity int) int
		Value 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 {
	CreateApp(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	UpdateApp(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	RemoveApp(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	Deploy(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	DestroyApp(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	CreateReviewApp(ctx context.Context, input model.CreateReviewAppInput) (*model.TuberApp, error)
	SetAppVar(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	UnsetAppVar(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	SetAppEnv(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	UnsetAppEnv(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	SetExcludedResource(ctx context.Context, input model.SetResourceInput) (*model.TuberApp, error)
	UnsetExcludedResource(ctx context.Context, input model.SetResourceInput) (*model.TuberApp, error)
	Rollback(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	SetGithubRepo(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	SetCloudSourceRepo(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	SetSlackChannel(ctx context.Context, input model.AppInput) (*model.TuberApp, error)
	ManualApply(ctx context.Context, input model.ManualApplyInput) (*model.TuberApp, error)
	SetRacEnabled(ctx context.Context, input model.SetRacEnabledInput) (*model.TuberApp, error)
	SetRacVar(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	UnsetRacVar(ctx context.Context, input model.SetTupleInput) (*model.TuberApp, error)
	SetRacExclusion(ctx context.Context, input model.SetResourceInput) (*model.TuberApp, error)
	UnsetRacExclusion(ctx context.Context, input model.SetResourceInput) (*model.TuberApp, error)
}

type QueryResolver

type QueryResolver interface {
	GetAppEnv(ctx context.Context, name string) ([]*model.Tuple, error)
	GetApp(ctx context.Context, name string) (*model.TuberApp, error)
	GetApps(ctx context.Context) ([]*model.TuberApp, error)
	GetClusterInfo(ctx context.Context) (*model.ClusterInfo, error)
}

type ResolverRoot

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

type TuberAppResolver

type TuberAppResolver interface {
	ReviewApps(ctx context.Context, obj *model.TuberApp) ([]*model.TuberApp, error)

	CloudBuildStatuses(ctx context.Context, obj *model.TuberApp) ([]*model.Build, error)
}

Jump to

Keyboard shortcuts

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