generated

package
v0.6.0-rc-4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 12 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 {
	AddonList struct {
		Endpoint func(childComplexity int) int
		Name     func(childComplexity int) int
		Owner    func(childComplexity int) int
	}

	Container struct {
		ContainerName          func(childComplexity int) int
		ControlPlaneMemberName func(childComplexity int) int
		Image                  func(childComplexity int) int
		Ports                  func(childComplexity int) int
		Resources              func(childComplexity int) int
		Status                 func(childComplexity int) int
	}

	ContainerPort struct {
		ContainerPort func(childComplexity int) int
		Name          func(childComplexity int) int
		Protocol      func(childComplexity int) int
	}

	ContainerStatus struct {
		ContainerID         func(childComplexity int) int
		ContainerStatusName func(childComplexity int) int
		Image               func(childComplexity int) int
		ImageID             func(childComplexity int) int
		LastState           func(childComplexity int) int
		Ready               func(childComplexity int) int
		RestartCount        func(childComplexity int) int
		Started             func(childComplexity int) int
		State               func(childComplexity int) int
	}

	ControlPlane struct {
		Members func(childComplexity int) int
		Name    func(childComplexity int) int
	}

	ControlPlaneMember struct {
		Component  func(childComplexity int) int
		DataPlanes func(childComplexity int) int
		Name       func(childComplexity int) int
		Namespace  func(childComplexity int) int
		Version    func(childComplexity int) int
	}

	DataPlane struct {
		Name    func(childComplexity int) int
		Proxies func(childComplexity int) int
	}

	Error struct {
		Code        func(childComplexity int) int
		Description func(childComplexity int) int
	}

	MesheryResult struct {
		CreatedAt          func(childComplexity int) int
		Mesh               func(childComplexity int) int
		MesheryID          func(childComplexity int) int
		Name               func(childComplexity int) int
		PerformanceProfile func(childComplexity int) int
		RunnerResults      func(childComplexity int) int
		ServerBoardConfig  func(childComplexity int) int
		ServerMetrics      func(childComplexity int) int
		TestID             func(childComplexity int) int
		TestStartTime      func(childComplexity int) int
		UpdatedAt          func(childComplexity int) int
		UserID             func(childComplexity int) int
	}

	Mutation struct {
		ChangeAddonStatus    func(childComplexity int, input *model.AddonStatusInput) int
		ChangeOperatorStatus func(childComplexity int, input *model.OperatorStatusInput) int
	}

	NameSpace struct {
		Namespace func(childComplexity int) int
	}

	OperatorControllerStatus struct {
		Error   func(childComplexity int) int
		Name    func(childComplexity int) int
		Status  func(childComplexity int) int
		Version func(childComplexity int) int
	}

	OperatorStatus struct {
		Controllers func(childComplexity int) int
		Error       func(childComplexity int) int
		Status      func(childComplexity int) int
		Version     func(childComplexity int) int
	}

	PatternLocation struct {
		Branch func(childComplexity int) int
		Host   func(childComplexity int) int
		Path   func(childComplexity int) int
		Type   func(childComplexity int) int
	}

	PatternPageResult struct {
		Page       func(childComplexity int) int
		PageSize   func(childComplexity int) int
		Patterns   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	PatternResult struct {
		CanSupport  func(childComplexity int) int
		CreatedAt   func(childComplexity int) int
		Errmsg      func(childComplexity int) int
		ID          func(childComplexity int) int
		Location    func(childComplexity int) int
		Name        func(childComplexity int) int
		PatternFile func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
		UserID      func(childComplexity int) int
	}

	PerfPageProfiles struct {
		Page       func(childComplexity int) int
		PageSize   func(childComplexity int) int
		Profiles   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	PerfPageResult struct {
		Page       func(childComplexity int) int
		PageSize   func(childComplexity int) int
		Results    func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	PerfProfile struct {
		ConcurrentRequest func(childComplexity int) int
		ContentType       func(childComplexity int) int
		CreatedAt         func(childComplexity int) int
		Duration          func(childComplexity int) int
		Endpoints         func(childComplexity int) int
		ID                func(childComplexity int) int
		LastRun           func(childComplexity int) int
		LoadGenerators    func(childComplexity int) int
		Name              func(childComplexity int) int
		QPS               func(childComplexity int) int
		RequestBody       func(childComplexity int) int
		RequestCookies    func(childComplexity int) int
		RequestHeaders    func(childComplexity int) int
		ServiceMesh       func(childComplexity int) int
		TotalResults      func(childComplexity int) int
		UpdatedAt         func(childComplexity int) int
		UserID            func(childComplexity int) int
	}

	Query struct {
		ConnectToNats          func(childComplexity int) int
		DeployMeshsync         func(childComplexity int) int
		FetchAllResults        func(childComplexity int, selector model.PageFilter) int
		FetchPatterns          func(childComplexity int, selector model.PageFilter) int
		FetchResults           func(childComplexity int, selector model.PageFilter, profileID string) int
		GetAvailableAddons     func(childComplexity int, selector *model.MeshType) int
		GetAvailableNamespaces func(childComplexity int) int
		GetControlPlanes       func(childComplexity int, filter *model.ServiceMeshFilter) int
		GetDataPlanes          func(childComplexity int, filter *model.ServiceMeshFilter) int
		GetMeshsyncStatus      func(childComplexity int) int
		GetNatsStatus          func(childComplexity int) int
		GetOperatorStatus      func(childComplexity int) int
		GetPerfResult          func(childComplexity int, id string) int
		GetPerformanceProfiles func(childComplexity int, selector model.PageFilter) int
		ResyncCluster          func(childComplexity int, selector *model.ReSyncActions) int
	}

	Subscription struct {
		ListenToAddonState        func(childComplexity int, selector *model.MeshType) int
		ListenToControlPlaneState func(childComplexity int, filter *model.ServiceMeshFilter) int
		ListenToDataPlaneState    func(childComplexity int, filter *model.ServiceMeshFilter) int
		ListenToMeshSyncEvents    func(childComplexity int) int
		ListenToOperatorState     func(childComplexity int) int
		SubscribeBrokerConnection func(childComplexity int) int
		SubscribePerfProfile      func(childComplexity int, profileID string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	ChangeAddonStatus(ctx context.Context, input *model.AddonStatusInput) (model.Status, error)
	ChangeOperatorStatus(ctx context.Context, input *model.OperatorStatusInput) (model.Status, error)
}

type QueryResolver

type QueryResolver interface {
	GetAvailableAddons(ctx context.Context, selector *model.MeshType) ([]*model.AddonList, error)
	GetControlPlanes(ctx context.Context, filter *model.ServiceMeshFilter) ([]*model.ControlPlane, error)
	GetDataPlanes(ctx context.Context, filter *model.ServiceMeshFilter) ([]*model.DataPlane, error)
	GetOperatorStatus(ctx context.Context) (*model.OperatorStatus, error)
	ResyncCluster(ctx context.Context, selector *model.ReSyncActions) (model.Status, error)
	GetMeshsyncStatus(ctx context.Context) (*model.OperatorControllerStatus, error)
	DeployMeshsync(ctx context.Context) (model.Status, error)
	GetNatsStatus(ctx context.Context) (*model.OperatorControllerStatus, error)
	ConnectToNats(ctx context.Context) (model.Status, error)
	GetAvailableNamespaces(ctx context.Context) ([]*model.NameSpace, error)
	GetPerfResult(ctx context.Context, id string) (*model.MesheryResult, error)
	FetchResults(ctx context.Context, selector model.PageFilter, profileID string) (*model.PerfPageResult, error)
	GetPerformanceProfiles(ctx context.Context, selector model.PageFilter) (*model.PerfPageProfiles, error)
	FetchAllResults(ctx context.Context, selector model.PageFilter) (*model.PerfPageResult, error)
	FetchPatterns(ctx context.Context, selector model.PageFilter) (*model.PatternPageResult, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	ListenToAddonState(ctx context.Context, selector *model.MeshType) (<-chan []*model.AddonList, error)
	ListenToControlPlaneState(ctx context.Context, filter *model.ServiceMeshFilter) (<-chan []*model.ControlPlane, error)
	ListenToDataPlaneState(ctx context.Context, filter *model.ServiceMeshFilter) (<-chan []*model.DataPlane, error)
	ListenToOperatorState(ctx context.Context) (<-chan *model.OperatorStatus, error)
	ListenToMeshSyncEvents(ctx context.Context) (<-chan *model.OperatorControllerStatus, error)
	SubscribePerfProfile(ctx context.Context, profileID string) (<-chan *model.MesheryResult, error)
	SubscribeBrokerConnection(ctx context.Context) (<-chan bool, error)
}

Jump to

Keyboard shortcuts

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