support

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryInfo

type CategoryInfo struct {
	Code string
	Name string
}

CategoryInfo represents a support service category.

type Communication

type Communication struct {
	CaseID        string
	Body          string
	SubmittedBy   string
	TimeCreated   time.Time
	AttachmentSet []string
}

Communication represents a communication on a support case.

type ServiceInfo

type ServiceInfo struct {
	Code       string
	Name       string
	Categories []CategoryInfo
}

ServiceInfo represents a support service.

type SeverityLevel

type SeverityLevel struct {
	Code string
	Name string
}

SeverityLevel represents a support severity level.

type Store

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

Store manages Support resources in memory.

func NewStore

func NewStore(accountID, region string) *Store

NewStore returns a new empty Support Store.

func (*Store) AddCommunication

func (s *Store) AddCommunication(caseID, body, submittedBy string) error

AddCommunication adds a communication to a case.

func (*Store) CreateCase

func (s *Store) CreateCase(subject, serviceCode, severityCode, categoryCode, body, submittedBy, language string, ccEmails []string) (*SupportCase, error)

CreateCase creates a new support case.

func (*Store) GetCase

func (s *Store) GetCase(caseID string) (*SupportCase, bool)

GetCase retrieves a case by ID.

func (*Store) GetCommunications

func (s *Store) GetCommunications(caseID string) []*Communication

GetCommunications returns all communications for a case.

func (*Store) GetServices

func (s *Store) GetServices() []ServiceInfo

GetServices returns the list of support services.

func (*Store) GetSeverityLevels

func (s *Store) GetSeverityLevels() []SeverityLevel

GetSeverityLevels returns the severity levels.

func (*Store) GetTrustedAdvisorCheckResult

func (s *Store) GetTrustedAdvisorCheckResult(checkID string) (*TrustedAdvisorCheckResult, bool)

GetTrustedAdvisorCheckResult returns the result for a check.

func (*Store) ListCases

func (s *Store) ListCases(includeResolved bool) []*SupportCase

ListCases returns all cases, optionally filtered.

func (*Store) ListTrustedAdvisorChecks

func (s *Store) ListTrustedAdvisorChecks() []*TrustedAdvisorCheck

ListTrustedAdvisorChecks returns all Trusted Advisor checks.

func (*Store) ResolveCase

func (s *Store) ResolveCase(caseID string) (*SupportCase, error)

ResolveCase resolves a case.

type SupportCase

type SupportCase struct {
	CaseID               string
	DisplayID            string
	Subject              string
	Status               string
	ServiceCode          string
	SeverityCode         string
	CategoryCode         string
	CommunicationBody    string
	SubmittedBy          string
	TimeCreated          time.Time
	RecentCommunications []*Communication
	Language             string
	CCEmailAddresses     []string
}

SupportCase represents an AWS Support case.

type SupportService

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

SupportService is the cloudmock implementation of the AWS Support API.

func New

func New(accountID, region string) *SupportService

New returns a new SupportService for the given AWS account ID and region.

func (*SupportService) Actions

func (s *SupportService) Actions() []service.Action

Actions returns the list of Support API actions supported by this service.

func (*SupportService) HandleRequest

func (s *SupportService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)

HandleRequest routes an incoming Support request to the appropriate handler.

func (*SupportService) HealthCheck

func (s *SupportService) HealthCheck() error

HealthCheck always returns nil.

func (*SupportService) Name

func (s *SupportService) Name() string

Name returns the AWS service name used for routing.

type TrustedAdvisorCheck

type TrustedAdvisorCheck struct {
	ID          string
	Name        string
	Description string
	Category    string
	Metadata    []string
}

TrustedAdvisorCheck represents a Trusted Advisor check.

type TrustedAdvisorCheckResult

type TrustedAdvisorCheckResult struct {
	CheckID          string
	Status           string
	Timestamp        string
	ResourcesSummary map[string]int64
	FlaggedResources []map[string]string
}

TrustedAdvisorCheckResult represents the result of a Trusted Advisor check.

Jump to

Keyboard shortcuts

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