Documentation
¶
Index ¶
- Variables
- func GetAPageSecrets(svc *secretsmanager.SecretsManager, token *string, maxResult int64) (*secretsmanager.ListSecretsOutput, error)
- func GetListSecrets(sort SecretSortOption) ([]*secretsmanager.SecretListEntry, error)
- func SortSecrets(secrets []*secretsmanager.SecretListEntry, sortOption SecretSortOption)
- type AWSSetting
- type SecretSort
- type SecretSortOption
- type SortType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SecretSortNameAsc = SecretSortOption{SecretSortName, SortTypeAsc, "Name A->Z", "Alphabet"} SecretSortNameDesc = SecretSortOption{SecretSortName, SortTypeDesc, "Name Z->A", "Alphabet"} SecretSortAccessedAtAsc = SecretSortOption{SecretSortAccessedAt, SortTypeAsc, "Show recent 'Accessed at'", "Newest to oldest"} SecretSortAccessedAtDesc = SecretSortOption{SecretSortAccessedAt, SortTypeDesc, "Show oldest 'Accessed at'", "Oldest to newest"} SecretSortCreatedAtAsc = SecretSortOption{SecretSortCreatedAt, SortTypeAsc, "Show recent 'Created at'", "Newest to oldest"} SecretSortCreatedAtDesc = SecretSortOption{SecretSortCreatedAt, SortTypeDesc, "Show oldest 'Created at'", "Oldest to newest"} SecretSortUpdatedAtAsc = SecretSortOption{SecretSortUpdatedAt, SortTypeAsc, "Show recent 'Updated at'", "Newest to oldest"} SecretSortUpdatedAtDesc = SecretSortOption{SecretSortUpdatedAt, SortTypeDesc, "Show oldest 'Updated at'", "Oldest to newest"} SecretSortRotatedAtAsc = SecretSortOption{SecretSortRotatedAt, SortTypeAsc, "Show recent 'Rotated at'", "Newest to oldest"} SecretSortRotatedAtDesc = SecretSortOption{SecretSortRotatedAt, SortTypeDesc, "Show oldest 'Rotated at'", "Oldest to newest"} )
View Source
var SecretSortPossibleValues = []SecretSortOption{ SecretSortNameAsc, SecretSortNameDesc, SecretSortAccessedAtAsc, SecretSortAccessedAtDesc, SecretSortCreatedAtAsc, SecretSortCreatedAtDesc, SecretSortUpdatedAtAsc, SecretSortUpdatedAtDesc, SecretSortRotatedAtAsc, SecretSortRotatedAtDesc, }
Functions ¶
func GetAPageSecrets ¶
func GetAPageSecrets(svc *secretsmanager.SecretsManager, token *string, maxResult int64) (*secretsmanager.ListSecretsOutput, error)
func GetListSecrets ¶
func GetListSecrets(sort SecretSortOption) ([]*secretsmanager.SecretListEntry, error)
func SortSecrets ¶
func SortSecrets(secrets []*secretsmanager.SecretListEntry, sortOption SecretSortOption)
Types ¶
type AWSSetting ¶
type AWSSetting struct {
Region string
}
func GetAWSSetting ¶
func GetAWSSetting() AWSSetting
type SecretSort ¶
type SecretSort string
const ( SecretSortName SecretSort = "Name" SecretSortAccessedAt SecretSort = "Accessed at" SecretSortCreatedAt SecretSort = "Created at" SecretSortUpdatedAt SecretSort = "Updated at" SecretSortRotatedAt SecretSort = "Rotated at" )
type SecretSortOption ¶
type SecretSortOption struct { Sort SecretSort SortType SortType NiceText string Description string }
Click to show internal directories.
Click to hide internal directories.