actions

package
v0.0.0-...-9a17c7a Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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"}
)

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
}

type SortType

type SortType string
const (
	SortTypeAsc  SortType = "ASC"
	SortTypeDesc SortType = "DESC"
)

Jump to

Keyboard shortcuts

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