Documentation ¶
Overview ¶
A package to manage the Lacework configuration file ($HOME/.lacework.toml)
Index ¶
Constants ¶
View Source
const ( ApiKeyMinLength = 55 ApiSecretMinLength = 30 )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
DefaultConfigPath returns the default path where the Lacework config file is located, which is at $HOME/.lacework.toml
func StoreProfileAt ¶
StoreProfileAt updates a single profile from the provided configuration file
Types ¶
type Profile ¶
type Profile struct { Account string `toml:"account"` Subaccount string `toml:"subaccount,omitempty"` ApiKey string `toml:"api_key" survey:"api_key"` ApiSecret string `toml:"api_secret" survey:"api_secret"` Version int `toml:"version,omitzero"` }
Profile represents a single profile within a configuration file
type Profiles ¶
Profiles is the representation of the $HOME/.lacework.toml
Example:
[default] account = "example" api_key = "EXAMPLE_0123456789" api_secret = "_0123456789" [dev] account = "dev" api_key = "DEV_0123456789" api_secret = "_0123456789" [prod] account = "coolcorp" subaccount = "prod-business" api_key = "PROD_0123456789" api_secret = "_0123456789" version = 2
func LoadProfiles ¶
LoadProfiles loads all the profiles from the default location ($HOME/.lacework.toml)
func LoadProfilesFrom ¶
LoadProfilesFrom loads all the profiles from the provided location
Click to show internal directories.
Click to hide internal directories.