resolver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertObjects added in v0.1.7

func ConvertObjects(input []*objectInput) []*pb.Object

ConvertObjects converts an array of objectInput to an array of protobuf objects

func ConvertProperties added in v0.1.7

func ConvertProperties(input []*propertyInput) []*pb.Property

Converts an array of propertyInput to an array of protobuf properties

func NewModule added in v0.1.11

func NewModule(ctx context.Context, args NewModuleArgs) (*moduleResolver, error)

Types

type NewModuleArgs added in v0.1.11

type NewModuleArgs struct {
	Module *model.Module
	Name   string
}

type Resolver

type Resolver struct{}

func (*Resolver) CancelJob added in v0.1.7

func (r *Resolver) CancelJob(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	JobId       string
}) (*jobResolver, error)

func (*Resolver) Configuration

func (r *Resolver) Configuration(ctx context.Context, args struct {
	ID        string
	Namespace string
}) (*configurationResolver, error)

func (*Resolver) Configurations

func (r *Resolver) Configurations(ctx context.Context, args struct {
	Namespace string
	First     *int32
	After     *string
}) (*configurationsConnectionResolver, error)

func (*Resolver) CreateConfiguration added in v0.1.7

func (r *Resolver) CreateConfiguration(ctx context.Context, args struct {
	Conf configurationInput
}) (*configurationResolver, error)

func (*Resolver) CreateRole

func (r *Resolver) CreateRole(ctx context.Context, args *struct {
	Name string
}) (*roleResolver, error)

func (*Resolver) CreateUser

func (r *Resolver) CreateUser(ctx context.Context, args *struct {
	Email    string
	Password string
}) (*userResolver, error)

func (*Resolver) CurrentExperiment added in v0.1.2

func (r *Resolver) CurrentExperiment(ctx context.Context) (*experimentResolver, error)

func (*Resolver) DeleteConfiguration added in v0.1.7

func (r *Resolver) DeleteConfiguration(ctx context.Context, args struct {
	Id        string
	Namespace string
}) (*configurationResolver, error)

func (*Resolver) Experiment added in v0.1.2

func (r *Resolver) Experiment(ctx context.Context, args struct {
	ID string
}) (*experimentResolver, error)

func (*Resolver) Experiments added in v0.1.13

func (r *Resolver) Experiments(ctx context.Context, args struct {
	ServiceName string
}) (*configurationResolver, error)

func (*Resolver) Job added in v0.1.2

func (r *Resolver) Job(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	ID          string
}) (*jobResolver, error)

func (*Resolver) Jobs added in v0.1.2

func (r *Resolver) Jobs(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	First       *int32
	After       *string
}) (*jobsConnectionResolver, error)

func (*Resolver) ManagerStatus added in v0.2.1

func (r *Resolver) ManagerStatus(ctx context.Context) (*[]*propertyResolver, error)

func (*Resolver) Module added in v0.1.2

func (r *Resolver) Module(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
}) (*moduleResolver, error)

func (*Resolver) ModuleConfiguration added in v0.1.2

func (r *Resolver) ModuleConfiguration(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
}) (*configurationResolver, error)

func (*Resolver) ModuleJob added in v0.1.7

func (r *Resolver) ModuleJob(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	ID          string
}) (*jobResolver, error)

func (*Resolver) ModuleJobs added in v0.1.7

func (r *Resolver) ModuleJobs(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	First       *int32
	After       *string
}) (*jobsConnectionResolver, error)

func (*Resolver) ModuleProperties added in v0.1.8

func (r *Resolver) ModuleProperties(ctx context.Context, args struct {
	ServiceName   string
	ModuleName    string
	PropertyNames *[]*string
}) (*[]*propertyResolver, error)

func (*Resolver) ModuleProperty added in v0.1.8

func (r *Resolver) ModuleProperty(ctx context.Context, args struct {
	ServiceName  string
	ModuleName   string
	PropertyName string
}) (*propertyResolver, error)

func (*Resolver) ModuleSettings added in v0.1.7

func (r *Resolver) ModuleSettings(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
}) (*[]*propertyResolver, error)

func (*Resolver) ModuleStatus added in v0.1.7

func (r *Resolver) ModuleStatus(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
}) (*statusResolver, error)

func (*Resolver) Modules added in v0.1.2

func (r *Resolver) Modules(ctx context.Context, args struct {
	First *int32
	After *string
}) (*modulesConnectionResolver, error)

func (*Resolver) Role

func (r *Resolver) Role(ctx context.Context, args struct {
	Name string
}) (*roleResolver, error)

func (*Resolver) Roles

func (r *Resolver) Roles(ctx context.Context, args struct {
	First *int32
	After *string
}) (*rolesConnectionResolver, error)

func (*Resolver) SetModuleProperties added in v0.1.8

func (r *Resolver) SetModuleProperties(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	Properties  *[]*propertyInput
}) (*[]*propertyResolver, error)

func (*Resolver) SetModuleProperty added in v0.1.8

func (r *Resolver) SetModuleProperty(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	Property    propertyInput
}) (*propertyResolver, error)

func (*Resolver) SetModuleRecipe added in v0.1.10

func (r *Resolver) SetModuleRecipe(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	RecipeID    string
}) (*[]*propertyResolver, error)

func (*Resolver) SubmitExpBundleJob added in v0.2.1

func (r *Resolver) SubmitExpBundleJob(ctx context.Context, args struct {
	ServiceName   string
	ExperimentIds []*string
}) (*jobResolver, error)

func (*Resolver) SubmitExpDeleteJob added in v0.1.13

func (r *Resolver) SubmitExpDeleteJob(ctx context.Context, args struct {
	ServiceName   string
	ExperimentIds []*string
}) (*jobResolver, error)

func (*Resolver) SubmitExpUpdateJob added in v0.2.0

func (r *Resolver) SubmitExpUpdateJob(ctx context.Context, args struct {
	ServiceName string
}) (*jobResolver, error)

func (*Resolver) SubmitJob added in v0.1.2

func (r *Resolver) SubmitJob(ctx context.Context, args struct {
	ServiceName string
	ModuleName  string
	Action      string
	ActionValue *string
	Properties  *[]*propertyInput
}) (*jobResolver, error)

func (*Resolver) SubmitManagerCommand added in v0.2.1

func (r *Resolver) SubmitManagerCommand(ctx context.Context, args struct {
	Command string
}) (*jobResolver, error)

func (*Resolver) UpdateConfiguration added in v0.1.7

func (r *Resolver) UpdateConfiguration(ctx context.Context, args struct {
	Id        string
	Namespace string
	Conf      configurationInput
}) (*configurationResolver, error)

func (*Resolver) User

func (r *Resolver) User(ctx context.Context, args struct {
	Email string
}) (*userResolver, error)

func (*Resolver) Users

func (r *Resolver) Users(ctx context.Context, args struct {
	First *int32
	After *string
}) (*usersConnectionResolver, error)

Jump to

Keyboard shortcuts

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