awsmerge

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 9 Imported by: 0

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

func (m Merger) RemoveRegistry(src *ini.File, name string)

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]

type RegistryOpts

type RegistryOpts struct {
	Name                    string
	PrefixAllProfiles       bool
	PrefixDuplicateProfiles bool
}

Jump to

Keyboard shortcuts

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