Versions in this module Expand all Collapse all v0 v0.0.1 Jul 2, 2024 Changes in this version + const ShipPrefix + var DefaultClient = singleton.NewSingleton(func() *http.Client { ... }) + var DefaultClientInsecureSkipVerify = true + type CUETemplater interface + GetImports func() []*build.Instance + GetName func() string + GetPath func() string + GetTemplates func() []string + type ExternalProviderFn struct + Fn string + func (in *ExternalProviderFn) Call(ctx context.Context, value cue.Value) (cue.Value, error) + type GenericProviderFn func(context.Context, *T) (*U, error) + func (fn GenericProviderFn[T, U]) Call(ctx context.Context, value cue.Value) (cue.Value, error) + type NativeProviderFn func(context.Context, cue.Value) (cue.Value, error) + func (fn NativeProviderFn) Call(ctx context.Context, value cue.Value) (cue.Value, error) + type Package interface + func NewExternalPackage(src *v1alpha1.Package) (Package, error) + func NewInternalPackage(name string, template string, fns map[string]ProviderFn) (Package, error) + type PackageManager struct + Externals *maps.SyncMap[string, Package] + Internals *maps.SyncMap[string, Package] + ResyncPeriod time.Duration + StopCh chan struct{} + func NewPackageManager(opts ...PackageManagerOption) *PackageManager + func (in *PackageManager) GetImports() []*build.Instance + func (in *PackageManager) GetPackages() []Package + func (in *PackageManager) GetProviders() map[string]Provider + func (in *PackageManager) ListenExternalPackages(stopCh <-chan struct{}) + func (in *PackageManager) LoadExternalPackages(ctx context.Context) error + func (in *PackageManager) LoadInternalPackages(pkgs ...Package) + type PackageManagerOption interface + ApplyTo func(*PackageManager) + type Provider interface + GetName func() string + GetProviderFn func(do string) ProviderFn + type ProviderFn interface + Call func(context.Context, cue.Value) (cue.Value, error) + type WithInternalPackage struct + func (in WithInternalPackage) ApplyTo(m *PackageManager) + type WithResyncPeriod time.Duration + func (in WithResyncPeriod) ApplyTo(m *PackageManager)