profiles

package
v0.361.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(project ProjectConfig) error

Init a new project with a default "local" profile.

Types

type Config

type Config struct {
	Name     string
	Endpoint *url.URL
}

type Profile

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

func Load

func Load(
	ctx context.Context,
	secretsRegistry *providers.Registry[configuration.Secrets],
	configRegistry *providers.Registry[configuration.Configuration],
	root string,
	profile string,
) (Profile, error)

Load a profile from the project.

func (*Profile) Config

func (p *Profile) Config() Config

Config is the static configuration for a Profile.

func (*Profile) ConfigurationManager

func (p *Profile) ConfigurationManager() *manager.Manager[configuration.Configuration]

func (*Profile) ProjectConfig

func (p *Profile) ProjectConfig() ProjectConfig

ProjectConfig is static project-wide configuration shared by all profiles.

func (*Profile) SecretsManager

func (p *Profile) SecretsManager() *manager.Manager[configuration.Secrets]

type ProjectConfig

type ProjectConfig internal.Project

Directories

Path Synopsis
Package internal manages the persistent profile configuration of the FTL CLI.
Package internal manages the persistent profile configuration of the FTL CLI.

Jump to

Keyboard shortcuts

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