generated

package
v0.6.0-rc.5z Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 13 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 {
		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
	}

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

	Container_Status 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
	}

	KctlDescribeDetails struct {
		Ctxid    func(childComplexity int) int
		Describe 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 {
		ChangeOperatorStatus func(childComplexity int, input *model.OperatorStatusInput) int
	}

	NameSpace struct {
		Namespace func(childComplexity int) int
	}

	OAMCapability struct {
		Host          func(childComplexity int) int
		ID            func(childComplexity int) int
		Metadata      func(childComplexity int) int
		OamDefinition func(childComplexity int) int
		OamRefSchema  func(childComplexity int) int
		Restricted    func(childComplexity int) int
	}

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

	OperatorControllerStatusPerK8sContext struct {
		ContextID                func(childComplexity int) int
		OperatorControllerStatus func(childComplexity int) int
	}

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

	OperatorStatusPerK8sContext struct {
		ContextID      func(childComplexity int) int
		OperatorStatus 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, k8scontextID string) int
		DeployMeshsync         func(childComplexity int, k8scontextID string) 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, filter *model.ServiceMeshFilter) int
		GetAvailableNamespaces func(childComplexity int, k8sClusterIDs []string) int
		GetControlPlanes       func(childComplexity int, filter *model.ServiceMeshFilter) int
		GetDataPlanes          func(childComplexity int, filter *model.ServiceMeshFilter) int
		GetKubectlDescribe     func(childComplexity int, name string, kind string, namespace string) int
		GetMeshsyncStatus      func(childComplexity int, k8scontextID string) int
		GetNatsStatus          func(childComplexity int, k8scontextID string) int
		GetOperatorStatus      func(childComplexity int, k8scontextID string) int
		GetPerfResult          func(childComplexity int, id string) int
		GetPerformanceProfiles func(childComplexity int, selector model.PageFilter) int
		GetScopes              func(childComplexity int, name *string, id *string, trim *bool) int
		GetTraits              func(childComplexity int, name *string, id *string, trim *bool) int
		GetWorkloads           func(childComplexity int, name *string, id *string, trim *bool) int
		ResyncCluster          func(childComplexity int, selector *model.ReSyncActions, k8scontextID string) int
	}

	Subscription struct {
		ListenToAddonState        func(childComplexity int, filter *model.ServiceMeshFilter) int
		ListenToControlPlaneState func(childComplexity int, filter *model.ServiceMeshFilter) int
		ListenToDataPlaneState    func(childComplexity int, filter *model.ServiceMeshFilter) int
		ListenToMeshSyncEvents    func(childComplexity int, k8scontextIDs []string) int
		ListenToOperatorState     func(childComplexity int, k8scontextIDs []string) int
		SubscribeBrokerConnection func(childComplexity int) int
		SubscribePerfProfiles     func(childComplexity int, selector model.PageFilter) int
		SubscribePerfResults      func(childComplexity int, selector model.PageFilter, profileID string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

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

type QueryResolver

type QueryResolver interface {
	GetAvailableAddons(ctx context.Context, filter *model.ServiceMeshFilter) ([]*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, k8scontextID string) (*model.OperatorStatus, error)
	ResyncCluster(ctx context.Context, selector *model.ReSyncActions, k8scontextID string) (model.Status, error)
	GetMeshsyncStatus(ctx context.Context, k8scontextID string) (*model.OperatorControllerStatus, error)
	DeployMeshsync(ctx context.Context, k8scontextID string) (model.Status, error)
	GetNatsStatus(ctx context.Context, k8scontextID string) (*model.OperatorControllerStatus, error)
	ConnectToNats(ctx context.Context, k8scontextID string) (model.Status, error)
	GetAvailableNamespaces(ctx context.Context, k8sClusterIDs []string) ([]*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)
	GetWorkloads(ctx context.Context, name *string, id *string, trim *bool) ([]*model.OAMCapability, error)
	GetTraits(ctx context.Context, name *string, id *string, trim *bool) ([]*model.OAMCapability, error)
	GetScopes(ctx context.Context, name *string, id *string, trim *bool) ([]*model.OAMCapability, error)
	GetKubectlDescribe(ctx context.Context, name string, kind string, namespace string) (*model.KctlDescribeDetails, error)
}

type ResolverRoot

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

type SubscriptionResolver

type SubscriptionResolver interface {
	ListenToAddonState(ctx context.Context, filter *model.ServiceMeshFilter) (<-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, k8scontextIDs []string) (<-chan *model.OperatorStatusPerK8sContext, error)
	ListenToMeshSyncEvents(ctx context.Context, k8scontextIDs []string) (<-chan *model.OperatorControllerStatusPerK8sContext, error)
	SubscribePerfProfiles(ctx context.Context, selector model.PageFilter) (<-chan *model.PerfPageProfiles, error)
	SubscribePerfResults(ctx context.Context, selector model.PageFilter, profileID string) (<-chan *model.PerfPageResult, 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