config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config parses and stores the plugin's configurable settings (the plugins.configs.kiro sub-tree delivered by the host on register/reconfigure).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(request []byte)

Apply parses the config_yaml carried by a register/reconfigure request and stores it. Missing or malformed config leaves an empty config (interactive login then defaults to Builder ID).

Types

type Config

type Config struct {
	IDCStartURL string `yaml:"idc_start_url"`
	IDCRegion   string `yaml:"idc_region"`
}

Config holds the plugin's configurable settings. The login method is inferred from IDCStartURL rather than chosen explicitly: when it is set, interactive login goes through the organization's IAM Identity Center (IdC); when it is empty, login falls back to AWS Builder ID (a personal account). The CodeWhisperer/OIDC region is not configurable for Builder ID (it always uses the default, us-east-1); IdC uses IDCRegion.

func Get

func Get() Config

Get returns a copy of the current plugin config.

Jump to

Keyboard shortcuts

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