configurations

package
v0.1.144 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationInformationDataFromFile added in v0.1.127

func ConfigurationInformationDataFromFile(ctx context.Context, name string, p string, isSecret bool) (*basev0.ConfigurationInformation, error)

func ConsolidateInfo added in v0.1.123

ConsolidateInfo consolidate informations values per name

func ExtractFromPath added in v0.1.89

func ExtractFromPath(p string) string

ExtractFromPath gets modules/app/services/ServiceWithModule and we want to extract app/ServiceWithModule

func InformationUnmarshal added in v0.1.126

func InformationUnmarshal(info *basev0.ConfigurationInformation, v interface{}) error

func LoadConfigurationInformationsFromFiles added in v0.1.123

func LoadConfigurationInformationsFromFiles(ctx context.Context, dir string) ([]*basev0.ConfigurationInformation, error)

LoadConfigurationInformationsFromFiles returns all configurations infos Naming is path based with respect to dir

Types

type ConfigurationInformationLocalReader added in v0.1.89

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

func NewConfigurationLocalReader added in v0.1.89

func NewConfigurationLocalReader(_ context.Context, workspace *resources.Workspace) (*ConfigurationInformationLocalReader, error)

func (*ConfigurationInformationLocalReader) Configurations added in v0.1.89

func (local *ConfigurationInformationLocalReader) Configurations() []*basev0.Configuration

func (*ConfigurationInformationLocalReader) DNS added in v0.1.89

func (*ConfigurationInformationLocalReader) Identity added in v0.1.89

func (local *ConfigurationInformationLocalReader) Identity() string

func (*ConfigurationInformationLocalReader) Load added in v0.1.89

type ConfigurationInformationWrapper added in v0.1.89

type ConfigurationInformationWrapper struct {
	*basev0.ConfigurationInformation
}

type ConfigurationSource added in v0.1.89

type ConfigurationSource struct {
	ServiceWithModule *resources.ServiceWithModule
	Name              string
}

func FromService added in v0.1.89

func FromService(service *resources.ServiceIdentity, dep string) (*ConfigurationSource, error)

FromService satisfies this format - Name - unique:Name

type Loader added in v0.1.89

type Loader interface {
	Identity() string
	Load(ctx context.Context, env *resources.Environment) error
	Configurations() []*basev0.Configuration
	DNS() []*basev0.DNS
}

type Manager added in v0.1.89

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

func NewManager added in v0.1.89

func NewManager(_ context.Context, workspace *resources.Workspace) (*Manager, error)

func (*Manager) DNS added in v0.1.89

func (manager *Manager) DNS() []*basev0.DNS

func (*Manager) ExposeConfiguration added in v0.1.89

func (manager *Manager) ExposeConfiguration(ctx context.Context, service *resources.ServiceIdentity, confs ...*basev0.Configuration) error

func (*Manager) GetDNS added in v0.1.89

func (manager *Manager) GetDNS(ctx context.Context, svc *resources.ServiceIdentity, endpointName string) (*basev0.DNS, error)

func (*Manager) GetServiceConfiguration added in v0.1.89

func (manager *Manager) GetServiceConfiguration(_ context.Context, service *resources.ServiceIdentity) (*basev0.Configuration, error)

func (*Manager) GetServiceConfigurations added in v0.1.123

func (manager *Manager) GetServiceConfigurations(_ context.Context) ([]*basev0.Configuration, error)

func (*Manager) GetSharedServiceConfiguration added in v0.1.89

func (manager *Manager) GetSharedServiceConfiguration(_ context.Context, unique string) ([]*basev0.Configuration, error)

func (*Manager) GetWorkspaceConfigurations added in v0.1.123

func (manager *Manager) GetWorkspaceConfigurations(_ context.Context) ([]*basev0.Configuration, error)

func (*Manager) GetWorkspaceDependenciesConfigurations added in v0.1.123

func (manager *Manager) GetWorkspaceDependenciesConfigurations(ctx context.Context, deps ...string) ([]*basev0.Configuration, error)

func (*Manager) Load added in v0.1.89

func (manager *Manager) Load(ctx context.Context, env *resources.Environment) error

func (*Manager) LoadConfigurations added in v0.1.89

func (manager *Manager) LoadConfigurations(_ context.Context) error

LoadConfigurations fetch different loaders and consolidate

func (*Manager) LoadDNS added in v0.1.89

func (manager *Manager) LoadDNS(_ context.Context) error

func (*Manager) Restrict added in v0.1.89

func (manager *Manager) Restrict(_ context.Context, values []*resources.ServiceIdentity) error

func (*Manager) WithLoader added in v0.1.89

func (manager *Manager) WithLoader(loader Loader) *Manager

Jump to

Keyboard shortcuts

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