Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the preferred config file path for bndry.
If BNDRY_CONFIG is set, that path is used. Otherwise, bndry will reuse the first existing config file it finds in ~/.config/bndry/, falling back to config.yaml when nothing exists yet.
Types ¶
type Config ¶
type Config struct {
BoundaryAddr string `json:"boundary_addr" mapstructure:"boundary_addr"`
OIDCAuthMethodID string `json:"oidc_auth_method_id" mapstructure:"oidc_auth_method_id"`
AuthToken string `json:"auth_token,omitempty" mapstructure:"auth_token"`
DefaultProjectScopeID string `json:"default_project_scope_id" mapstructure:"default_project_scope_id"`
DefaultCatalogName string `json:"default_catalog_name" mapstructure:"default_catalog_name"`
DefaultHostSetName string `json:"default_host_set_name" mapstructure:"default_host_set_name"`
DefaultRoleName string `json:"default_role_name" mapstructure:"default_role_name"`
DefaultPrincipalID string `json:"default_principal_id,omitempty" mapstructure:"default_principal_id"`
DefaultTargetPort int `json:"default_target_port" mapstructure:"default_target_port"`
DefaultCreateRole bool `json:"default_create_role" mapstructure:"default_create_role"`
DefaultConnectAfterCreate bool `json:"default_connect_after_create" mapstructure:"default_connect_after_create"`
AutoSelectDefaultScope bool `json:"auto_select_default_scope" mapstructure:"auto_select_default_scope"`
LastHostCatalogID string `json:"last_host_catalog_id,omitempty" mapstructure:"last_host_catalog_id"`
}
Config stores universal defaults and saved values for bndry.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the built-in defaults for bndry configuration.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store persists bndry configuration on disk.
func (*Store) Load ¶
Load reads the effective configuration using Viper defaults, config files, and environment overrides.
Click to show internal directories.
Click to hide internal directories.