resourcegroups

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package resourcegroups provides a client to make API requests to AWS Resource Groups

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceGroups

type ResourceGroups struct {
	// contains filtered or unexported fields
}

ResourceGroups wraps an AWS ResourceGroups client.

func New

New returns a ResourceGroup struct configured against the input session.

func (*ResourceGroups) GetResourcesByTags

func (rg *ResourceGroups) GetResourcesByTags(resourceType string, tags map[string]string) ([]string, error)

GetResourcesByTags internally sets the type to TAG_FILTERS_1_0 and generates the query with input resource type and tags.

type ResourceGroupsClient

type ResourceGroupsClient interface {
	GetResourcesByTags(resourceType string, tags map[string]string) ([]string, error)
}

ResourceGroupsClient wraps the API for ResourceGroups, for easier testing when used by other services

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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