providers

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromPath added in v0.1.39

func ExtractFromPath(p string) string

ExtractFromPath gets applications/app/services/svc and we want to extract app/svc

func LoadProjectProviderFromDir added in v0.1.35

func LoadProjectProviderFromDir(ctx context.Context, dir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)

func LoadProviderFromEnvFiles

func LoadProviderFromEnvFiles(ctx context.Context, projectDir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)

func LoadServiceProvidersFromDir added in v0.1.39

func LoadServiceProvidersFromDir(ctx context.Context, projectDir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)

Types

type InfoSource

type InfoSource struct {
	*configurations.ServiceWithApplication
	Name string
}

func FromService

func FromService(service *configurations.Service, dep string) (*InfoSource, error)

FromService satisfies this format: - Name - unique:Name

type Provider

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

func New

func New(ctx context.Context, project *configurations.Project) (*Provider, error)

func (*Provider) AddProjectProviderInformation

func (provider *Provider) AddProjectProviderInformation(ctx context.Context, name string, data map[string]string) error

func (*Provider) GetProjectProviderInformation

func (provider *Provider) GetProjectProviderInformation(ctx context.Context, name string) (*basev0.ProviderInformation, error)

func (*Provider) GetProjectProviderInformations added in v0.1.26

func (provider *Provider) GetProjectProviderInformations(_ context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)

func (*Provider) GetProviderDependenciesInformations added in v0.1.21

func (provider *Provider) GetProviderDependenciesInformations(ctx context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)

func (*Provider) GetProviderInformations added in v0.1.21

func (provider *Provider) GetProviderInformations(ctx context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)

func (*Provider) GetSharedInformation added in v0.1.24

func (provider *Provider) GetSharedInformation(ctx context.Context, uniques ...string) ([]*basev0.ProviderInformation, error)

func (*Provider) Share

func (provider *Provider) Share(ctx context.Context, infos []*basev0.ProviderInformation) error

type ProviderInformationWrapper added in v0.1.35

type ProviderInformationWrapper struct {
	*basev0.ProviderInformation
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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