Discover Packages
github.com/wakeful/trick
internal
parser
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrParseHCL = errors .New ("ParseHCL return a nil")
ErrSchemaConfig = errors .New ("unable to configure schema for config file")
ErrProfileNotSelected = errors .New ("select_profile is required")
)
type Chain struct {
TTL int64 `hcl:"ttl,optional"`
UseRoles []*UseRoles `hcl:"use,block"`
}
type Config struct {
SelectProfile string `hcl:"select_profile"`
Profiles []*Profile `hcl:"profile,block"`
}
type Profile struct {
Name string `hcl:"name,label"`
Region string `hcl:"region,optional"`
Chain *Chain `hcl:"chain,block"`
}
type UseRoles struct {
ARN string `hcl:"arn"`
Skip bool `hcl:"skip,optional"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.