controlplane

package
v0.0.0-...-a93a756 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListRequest

type ListRequest struct {
	Start  *time.Time
	Finish *time.Time
	Limit  *uint64
}

ListRequest is a request structure with predicates used to retrieve a list of runs

type Repository

type Repository interface {
	Stats(context.Context) (*adagio.Stats, error)
	StartRun(context.Context, *adagio.GraphSpec) (*adagio.Run, error)
	InspectRun(ctx context.Context, id string) (*adagio.Run, error)
	ListRuns(context.Context, ListRequest) ([]*adagio.Run, error)
	ListAgents(context.Context) ([]*adagio.Agent, error)
}

Repository is an implementation of a backing repository which can report on the status of runs, list runs and agents and start new runs given a graph specification

type Service

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

Service is an adagio control plane server implementation which adapts call to a Repository implementation

func New

func New(repo Repository) *Service

New constructs and configures a new Service instance

func (*Service) Inspect

Inspect adapts a control plane inspect request into a repository InspectRun call and returns the result

func (*Service) ListAgents

ListAgents adapts a control plane ListRequest into a repository ListAgents call and returns the result

func (*Service) ListRuns

ListRuns adapts a control plane list request into a ListRuns call and returns the result

func (*Service) Start

Start adapts a control plane start request into a repository Start Run call and returns the result

func (*Service) Stats

Stats adapts a controle plane stats request into a repository Stats call and returns the result

Jump to

Keyboard shortcuts

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