controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package aggregator contains an aggregator service client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents the client to the aggregator service.

func New

func New(options Options) Client

New creates a new client with the specified address and apiKey.

func (Client) GetRunStatus

func (ac Client) GetRunStatus(ctx context.Context) (*controller.RunStatus, error)

func (Client) GetRunningJobs

func (ac Client) GetRunningJobs(ctx context.Context) ([]string, error)

type Options

type Options struct {
	Host   string
	Port   int
	ApiKey string
}

type Query

type Query interface {
	GetRunningJobs(ctx context.Context) ([]string, error)
	GetRunStatus(ctx context.Context) (*controller.RunStatus, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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