profile

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package profile handles connection profile management and resolution.

This package provides a clean separation of concerns for managing multiple connection profiles and resolving which profile to use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfileConfig

func GetProfileConfig(profileName string, cfg *config.Config) (*config.ProfileConfig, error)

GetProfileConfig returns the configuration for a specific profile.

func ListProfiles

func ListProfiles(cfg *config.Config) []string

ListProfiles returns a list of available profile names.

func ResolveProfile

func ResolveProfile(flagProfile string, cfg *config.Config) (string, error)

ResolveProfile determines which profile to use based on command line flags, environment variables, and configuration defaults.

func ValidateProfile

func ValidateProfile(profileName string, cfg *config.Config) error

ValidateProfile ensures the selected profile exists and is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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