Documentation ¶
Index ¶
- func ExtractFromPath(p string) string
- func LoadProjectProviderFromDir(ctx context.Context, dir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)
- func LoadProviderFromEnvFiles(ctx context.Context, projectDir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)
- func LoadServiceProvidersFromDir(ctx context.Context, projectDir string, env *configurations.Environment) ([]*basev0.ProviderInformation, error)
- type InfoSource
- type Provider
- func (provider *Provider) AddProjectProviderInformation(ctx context.Context, name string, data map[string]string) error
- func (provider *Provider) GetProjectProviderInformation(ctx context.Context, name string) (*basev0.ProviderInformation, error)
- func (provider *Provider) GetProjectProviderInformations(_ context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)
- func (provider *Provider) GetProviderDependenciesInformations(ctx context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)
- func (provider *Provider) GetProviderInformations(ctx context.Context, service *configurations.Service) ([]*basev0.ProviderInformation, error)
- func (provider *Provider) GetSharedInformation(ctx context.Context, uniques ...string) ([]*basev0.ProviderInformation, error)
- func (provider *Provider) Share(ctx context.Context, infos []*basev0.ProviderInformation) error
- type ProviderInformationWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFromPath ¶ added in v0.1.39
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 (*Provider) AddProjectProviderInformation ¶
func (*Provider) GetProjectProviderInformation ¶
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
type ProviderInformationWrapper ¶ added in v0.1.35
type ProviderInformationWrapper struct { *basev0.ProviderInformation // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.