empty

package
v0.0.0-...-eabde3b Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: GPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// Name is the name of this frontend.
	Name = "empty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GAPI

type GAPI struct {
	// Wait should be true if we don't use any existing (stale) deploys.
	// This means that if you start an empty GAPI, then it will immediately
	// try to look for and run any existing deploys that have been stored in
	// the cluster that it has connected to. If this is true, then it will
	// only start on the next deploy. To be honest, we should probably never
	// wait, but this was accidentally how it was initially implemented, so
	// we'll change the default and add this in as a flag for now. We may
	// remove this in the future unless someone has a good reason for
	// needing it.
	Wait bool
	// contains filtered or unexported fields
}

GAPI implements the main lang GAPI interface.

func (*GAPI) Cleanup

func (obj *GAPI) Cleanup() error

Cleanup shuts the GAPI down and waits for it to finish before it returns. It cancels the context we wrapped in Next and blocks until the Next goroutine has exited. The context.Canceled that results from our own cancellation is filtered out, so this returns nil on a clean shutdown.

func (*GAPI) Cli

func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error)

Cli takes an *Info struct, and returns our deploy if activated, and if there are any validation problems, you should return an error. If there is no deploy, then you should return a nil deploy and a nil error.

func (*GAPI) Err

func (obj *GAPI) Err() error

Err will contain the last error when Next shuts down. It waits for all the running processes to exit before it returns.

func (*GAPI) Info

func (obj *GAPI) Info() *gapi.InfoResult

Info returns some data about the GAPI implementation.

func (*GAPI) Init

func (obj *GAPI) Init(data *gapi.Data) error

Init initializes the lang GAPI struct.

func (*GAPI) Next

func (obj *GAPI) Next(ctx context.Context) chan gapi.Next

Next returns nil errors every time there could be a new graph.

Jump to

Keyboard shortcuts

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