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 ArtifactResolver ¶
type ArtifactResolver interface {
Type(ctx context.Context, obj *graph.Artifact, filter *graph.InstanceFilter) (*graph.ArtifactType, error)
}
type ComplexityRoot ¶
type ComplexityRoot struct { Artifact struct { CreateTimeSinceEpoch func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int LastUpdateTimeSinceEpoch func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int State func(childComplexity int) int Type func(childComplexity int, filter *graph.InstanceFilter) int TypeID func(childComplexity int) int URI func(childComplexity int) int } ArtifactProperty struct { ArtifactID func(childComplexity int) int IsCustomProperty func(childComplexity int) int Name func(childComplexity int) int PropertyValue func(childComplexity int) int } ArtifactType struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } BoolValue struct { Value func(childComplexity int) int } Context struct { Associations func(childComplexity int) int Attributions func(childComplexity int) int Children func(childComplexity int) int CreateTimeSinceEpoch func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int LastUpdateTimeSinceEpoch func(childComplexity int) int Name func(childComplexity int) int Parent func(childComplexity int) int Properties func(childComplexity int) int Type func(childComplexity int) int TypeID func(childComplexity int) int } ContextProperty struct { ContextID func(childComplexity int) int IsCustomProperty func(childComplexity int) int Name func(childComplexity int) int PropertyValue func(childComplexity int) int } ContextType struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } DoubleValue struct { Value func(childComplexity int) int } Event struct { Artifact func(childComplexity int) int ArtifactID func(childComplexity int) int Execution func(childComplexity int) int ExecutionID func(childComplexity int) int ID func(childComplexity int) int MillisecondsSinceEpoch func(childComplexity int) int Type func(childComplexity int) int } EventPath struct { EventID func(childComplexity int) int IsIndexStep func(childComplexity int) int StepIndex func(childComplexity int) int StepKey func(childComplexity int) int } Execution struct { CreateTimeSinceEpoch func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int LastKnownState func(childComplexity int) int LastUpdateTimeSinceEpoch func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int Type func(childComplexity int) int TypeID func(childComplexity int) int } ExecutionProperty struct { ExecutionID func(childComplexity int) int IsCustomProperty func(childComplexity int) int Name func(childComplexity int) int PropertyValue func(childComplexity int) int } ExecutionType struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } IntValue struct { Value func(childComplexity int) int } MlmdDataset struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdDeploy struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdEvaluate struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdMetrics struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdModel struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdProcess struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdStatistics struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdTrain struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } MlmdTransform struct { Description func(childComplexity int) int ExternalID func(childComplexity int) int ID func(childComplexity int) int InputType func(childComplexity int) int Name func(childComplexity int) int OutputType func(childComplexity int) int Properties func(childComplexity int) int TypeKind func(childComplexity int) int Version func(childComplexity int) int } Query struct { ArtifactTypes func(childComplexity int, filter *graph.TypeFilter) int Artifacts func(childComplexity int, filter *graph.InstanceFilter) int ContextTypes func(childComplexity int, filter *graph.TypeFilter) int Contexts func(childComplexity int, filter *graph.InstanceFilter) int Events func(childComplexity int) int ExecutionTypes func(childComplexity int, filter *graph.TypeFilter) int Executions func(childComplexity int, filter *graph.InstanceFilter) int MlmdDataset func(childComplexity int, filter *graph.InstanceFilter) int Types func(childComplexity int, filter *graph.TypeFilter) int } StringValue struct { Value func(childComplexity int) int } TypeProperty struct { DataType func(childComplexity int) int Name func(childComplexity int) int TypeID func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { Types(ctx context.Context, filter *graph.TypeFilter) ([]graph.Type, error) ArtifactTypes(ctx context.Context, filter *graph.TypeFilter) ([]*graph.ArtifactType, error) ContextTypes(ctx context.Context, filter *graph.TypeFilter) ([]*graph.ContextType, error) ExecutionTypes(ctx context.Context, filter *graph.TypeFilter) ([]*graph.ExecutionType, error) Artifacts(ctx context.Context, filter *graph.InstanceFilter) ([]*graph.Artifact, error) Contexts(ctx context.Context, filter *graph.InstanceFilter) ([]*graph.Context, error) Executions(ctx context.Context, filter *graph.InstanceFilter) ([]*graph.Execution, error) Events(ctx context.Context) ([]*graph.Event, error) MlmdDataset(ctx context.Context, filter *graph.InstanceFilter) ([]*graph.MlmdDataset, error) }
type Resolver ¶
type Resolver struct{}
func (*Resolver) Artifact ¶
func (r *Resolver) Artifact() ArtifactResolver
Artifact returns ArtifactResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Artifact() ArtifactResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.