service

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkSlice

func ChunkSlice[T any](slice []T, chunkSize int) [][]T

func ChunkSliceString

func ChunkSliceString(slice []string, chunkSize int) [][]string

func LastDays

func LastDays(days time.Duration) *time.Time

Types

type AbstractResource

type AbstractResource struct {
	AccountID ptypes.AwsAccountID
	Region    ptypes.AwsRegion
	ID        string
	ARN       *arn.ARN
	CreatedAt time.Time
	Type      cfg.ResourceType
}

func (AbstractResource) GetAccountID

func (e AbstractResource) GetAccountID() ptypes.AwsAccountID

func (AbstractResource) GetArn

func (e AbstractResource) GetArn() string

func (AbstractResource) GetCreatedAt

func (e AbstractResource) GetCreatedAt() time.Time

func (AbstractResource) GetId

func (e AbstractResource) GetId() string

func (AbstractResource) GetIdOrArn

func (e AbstractResource) GetIdOrArn() string

func (AbstractResource) GetRegion

func (e AbstractResource) GetRegion() ptypes.AwsRegion

func (AbstractResource) GetType

func (e AbstractResource) GetType() cfg.ResourceType

type EntityInterface

type EntityInterface interface {
	ResourceInterface
	GetName() string
	GetTags() map[string]string
	GetTagValue(string) string
}

type ResourceInterface

type ResourceInterface interface {
	GetAccountID() ptypes.AwsAccountID
	GetRegion() ptypes.AwsRegion
	GetCreatedAt() time.Time
	GetArn() string
	GetId() string
	GetIdOrArn() string
	GetType() cfg.ResourceType
	GetTags() map[string]string
}

Jump to

Keyboard shortcuts

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