sqs

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package sqs implements the 'aws sqs' sub-command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// AwsSqsEndpoint custom endpoint.
	AwsSqsEndpoint string

	// AwsCloudWatchEndpoint custom endpoint.
	AwsCloudWatchEndpoint string

	// AwsSQSQueuePrefix sqs queue prefix.
	AwsSQSQueuePrefix string

	// UnusedSince get list since xx.
	UnusedSince string

	// CheckTagNameUpdateDate is name for skip delete queue.
	CheckTagNameUpdateDate string
)
View Source
var (
	// Command performs the "list clusters" function.
	Command = &cobra.Command{
		Use:     "sqs",
		Aliases: []string{"sqs"},
		Short:   "AWS SQS",
		Long:    `This command will identify the queues to be cleaned.`,
		PreRun:  validation,
		Run:     printResult,
	}
)

Functions

func GetSQSMetricDataInput

func GetSQSMetricDataInput(start *time.Time, end *time.Time, queueURL *string) *cloudwatch.GetMetricDataInput

Types

type AWSClients added in v1.6.0

type AWSClients struct {
	CloudWatch *cloudwatch.CloudWatch
	SQS        *sqs.SQS
}

func NewAWSClients added in v1.6.0

func NewAWSClients() *AWSClients

func (*AWSClients) AwsSQSDelete added in v1.6.0

func (c *AWSClients) AwsSQSDelete(queues map[string]string) map[string][]string

func (*AWSClients) GetCloudWatchMetrics added in v1.6.0

func (c *AWSClients) GetCloudWatchMetrics(now *time.Time, queueURL *string) (*float64, error)

func (*AWSClients) IsDeadLetterQueue added in v1.6.0

func (c *AWSClients) IsDeadLetterQueue(queueURL *string) (bool, []string, error)

type Queue added in v1.6.0

type Queue struct {
	URL  string
	Name string
}

Jump to

Keyboard shortcuts

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