services

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const FirstRegion = "eu-north-1"

Variables

View Source
var AUTO_INIT bool
View Source
var Ec2DescribeInstancesParameter = &awclip.Parameters{
	Service: aws.String("ec2"),
	Action:  aws.String("describe-instances"),
	Output:  aws.String("text"),
	Region:  aws.String("eu-central-1"),
	Profile: aws.String("unknown"),
	Query:   aws.String("Reservations[*].Instances[*].[InstanceId]"),
}
View Source
var Ec2DescribeRegionsParameter = &awclip.Parameters{
	Service: aws.String("ec2"),
	Action:  aws.String("describe-regions"),
	Output:  aws.String("text"),
	Region:  aws.String("dontcare"),
	Profile: aws.String("unknown"),
	Query:   aws.String("Regions[].RegionName"),
}
View Source
var IamListUserPoliciesParamater = &awclip.Parameters{
	Service:    aws.String("iam"),
	Action:     aws.String("list-user-policies"),
	Output:     aws.String("text"),
	Region:     aws.String("*"),
	Profile:    aws.String("*"),
	Parameters: map[string]*string{"user-name": &any},
	Query:      aws.String(""),
}
View Source
var StsGetCallerIdentityParameter = &awclip.Parameters{
	Service: aws.String("sts"),
	Action:  aws.String("get-caller-identity"),
	Output:  aws.String(""),
	Region:  aws.String("dontcare"),
	Profile: aws.String("unknown"),
	Query:   aws.String(""),
}

Functions

func Autoinit

func Autoinit() bool

func Ec2DescribeInstancesProxy

func Ec2DescribeInstancesProxy(entry *awclip.CacheEntry) *string

func Ec2DescribeRegionsProxy

func Ec2DescribeRegionsProxy(newCacheEntry *awclip.CacheEntry) *string

func IamListUserPoliciesProxy added in v0.1.6

func IamListUserPoliciesProxy(entry *awclip.CacheEntry) *string

func PrefetchEc2DescribeInstancesProxy added in v0.1.6

func PrefetchEc2DescribeInstancesProxy(config *awclip.CacheEntry, client Ec2Interface, args []string) error

func PrefetchEc2DescribeInstancesProxyWrapper added in v0.1.6

func PrefetchEc2DescribeInstancesProxyWrapper(newCacheEntry *awclip.CacheEntry, args []string)

func StsGetCallerIdentityProxy

func StsGetCallerIdentityProxy(newCacheEntry *awclip.CacheEntry) *string

Types

type Ec2Interface

type Ec2Interface interface {
	DescribeInstances(ctx context.Context,
		params *ec2.DescribeInstancesInput,
		optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
	DescribeRegions(ctx context.Context,
		params *ec2.DescribeRegionsInput,
		optFns ...func(*ec2.Options)) (*ec2.DescribeRegionsOutput, error)
}

type GetCallerIdentity

type GetCallerIdentity struct {
	Account *string
	Arn     *string
	UserId  *string
}

type IamInterface added in v0.1.6

type IamInterface interface {
	ListUserPolicies(ctx context.Context,
		params *iam.ListUserPoliciesInput,
		optFns ...func(*iam.Options)) (*iam.ListUserPoliciesOutput, error)
}

type StSInterface

type StSInterface interface {
	GetCallerIdentity(ctx context.Context,
		params *sts.GetCallerIdentityInput,
		optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
}

Jump to

Keyboard shortcuts

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