libs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName      = "cloudpile"
	CfgFile      string
	Listen       string
	CacheEnabled bool
	AWSConfigs   []AWSConfig
)
View Source
var NewRelicApp *newrelic.Application

Functions

func Deduplicate

func Deduplicate(s []string) []string

Deduplicate returns a new slice with duplicates values removed.

func InitConfig

func InitConfig()

func RemoveEmptyStrings

func RemoveEmptyStrings(s []string) []string

func Run

func Run(IDs []string, cacheInstance cache.Cache, forceRefresh bool) ([]resources.Item, error)

func Runner

func Runner()

Types

type AWSConfig

type AWSConfig struct {
	Type         string   `mapstructure:"type"`
	IAMRoleARN   string   `mapstructure:"iam_role_arn"`
	Profile      string   `mapstructure:"profile"`
	AccountAlias string   `mapstructure:"account_alias"`
	Regions      []string `mapstructure:"regions"`
	Resources    []string `mapstructure:"resources"`
}

Jump to

Keyboard shortcuts

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