Documentation ¶
Index ¶
- func Annotation(k, v string) containers.Option[Metadata]
- func Label(k, v string) containers.Option[Metadata]
- func WithUI(ui fs.FS) containers.Option[System]
- type Config
- type Descriptor
- type Edge
- type Metadata
- type Phase
- type Pipeline
- type Pipelines
- type Resource
- type Server
- type System
- func (s *System) AddPipeline(pipeline *core.Pipeline) *System
- func (s *System) Configuration() (_ *Config, err error)
- func (s *System) Context() context.Context
- func (s *System) GetPipeline(name string) (*core.Pipeline, error)
- func (s *System) Pipelines() iter.Seq2[string, *core.Pipeline]
- func (s *System) Run() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotation ¶
func Annotation(k, v string) containers.Option[Metadata]
Annotation returns a functional option for Metadata which sets a single annotation k/v pair on the provided Metadata
func Label ¶
func Label(k, v string) containers.Option[Metadata]
Label returns a functional option for Metadata which sets a single label k/v pair on the provided Metadata
func WithUI ¶
func WithUI(ui fs.FS) containers.Option[System]
WithUI configures the provided fs.FS implementation to be served as the filesystem mounted on the root path in the API
glu.NewSystem(ctx, glu.Name("mysystem"), glu.WithUI(ui.FS())) see: github.com/get-glu/glu/tree/main/ui sub-module for the pre-built default UI.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a utility for extracting configured sources by their name derived from glu's conventional configuration format.
func (*Config) BoltDB ¶
BoltDB constructs and configures a boltdb instance from configuration. It caches built instances and returns the same instance for subsequent calls with the same name.
func (*Config) GitRepository ¶
func (c *Config) GitRepository(name string) (_ *git.Repository, proposer srcgit.Proposer, err error)
GitRepository constructs and configures an instance of a *git.Repository using the name to lookup the relevant configuration. It caches built instances and returns the same instance for subsequent calls with the same name.
func (*Config) OCIRepository ¶
func (c *Config) OCIRepository(name string) (_ *oci.Repository, err error)
OCIRepository constructs and configures an instance of a *oci.Repository using the name to lookup the relevant configuration. It caches built instances and returns the same instance for subsequent calls with the same name.
type Descriptor ¶
type Descriptor = core.Descriptor
Descriptor is an alias for the core Descriptor interface (see core.Descriptor)
type Pipeline ¶
Pipeline is an alias for the core Pipeline interface (see core.Pipeline)
func NewPipeline ¶
NewPipeline delegates to core.NewPipeline
type System ¶
type System struct {
// contains filtered or unexported fields
}
System is the primary entrypoint for build a set of Glu pipelines. It supports functions for adding new pipelines, registering triggers running the API server and handly command-line inputs.
func (*System) AddPipeline ¶
AddPipeline invokes a pipeline builder function provided by the caller. The function is provided with the systems configuration and (if successful) the system registers the resulting pipeline.
func (*System) Configuration ¶
func (*System) GetPipeline ¶
GetPipeline returns a pipeline by name.
func (*System) Pipelines ¶
Pipelines returns an iterator across all name and pipeline pairs previously registered on the system.