components

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Add(serviceable Serviceable) (Serviceable, error)
	Get(MatchDefinition, GetOptions) ([]Serviceable, error)
	Remove(Serviceable)
	Close()
}

type FunctionServiceable

type FunctionServiceable interface {
	Serviceable
	Config() *structureSpec.Function
}

type GetOptions

type GetOptions struct {
	Validation bool
	Branches   []string
	MatchIndex *matcherSpec.Index
}

GetOptions defines the parameters of serviceables returned by the Cache.Get() method

Validation: if set asset cid, and config commit are validated of the serviceable are validated

Branch: used by the validation method, if not set spec.DefaultBranch is used, currently this is the only branch handled by production deployed services.

MatchIndex: the required Match Index for a serviceable if not set then matcherSpec.HighMatch is used

type MatchDefinition

type MatchDefinition interface {
	String() string
	CachePrefix() string
}

type ServiceComponent

type ServiceComponent interface {
	substrate.Service
	CheckTns(MatchDefinition) ([]Serviceable, error)
	Cache() Cache
}

type Serviceable

type Serviceable interface {
	Match(MatchDefinition) matcherSpec.Index
	Validate(MatchDefinition) error
	Matcher() MatchDefinition
	Ready() error

	Project() string
	Application() string
	Id() string

	Commit() string
	Branch() string

	AssetId() string

	Service() ServiceComponent
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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