Documentation ¶
Overview ¶
Package awsmerge contains logic to merge multiple AWS config files together. In Granted this is used to power the Profile Registry feature.
Package awsmerge contains logic to merge multiple AWS config files together. In Granted this is used to power the Profile Registry feature.
Package awsmerge contains logic to merge multiple AWS config files together. In Granted this is used to power the Profile Registry feature.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicateProfileError ¶
type DuplicateProfileError struct {
Name string
}
func (DuplicateProfileError) Error ¶
func (e DuplicateProfileError) Error() string
type Merger ¶
type Merger struct { }
func (Merger) RemoveRegistry ¶
RemoveRegistry removes a profile registry section from an AWS config file.
It removes a range around the generated profiles as follows:
[granted_registry_start test] // ... <generated profiles> [granted_registry_end test]
func (Merger) WithRegistry ¶
func (m Merger) WithRegistry(src *ini.File, dst *ini.File, opts RegistryOpts) (*ini.File, error)
WithRegistry merges AWS profiles from 'src' into the 'dst' INI config.
It applies a range around the generated profiles as follows:
[granted_registry_start test] // ... <generated profiles> [granted_registry_end test]