profile

package
v1.33.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package profile provides functionality to parse AWS named profiles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config represents the local AWS config file.

func NewConfig

func NewConfig() (*Config, error)

NewConfig returns a new parsed Config object from $HOME/.aws/config.

func (*Config) Names

func (c *Config) Names() []string

Names returns a list of profile names available in the user's config file. An error is returned if the config file can't be found or parsed.

Jump to

Keyboard shortcuts

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