Documentation
¶
Index ¶
- type CategoryInfo
- type Communication
- type ServiceInfo
- type SeverityLevel
- type Store
- func (s *Store) AddCommunication(caseID, body, submittedBy string) error
- func (s *Store) CreateCase(...) (*SupportCase, error)
- func (s *Store) GetCase(caseID string) (*SupportCase, bool)
- func (s *Store) GetCommunications(caseID string) []*Communication
- func (s *Store) GetServices() []ServiceInfo
- func (s *Store) GetSeverityLevels() []SeverityLevel
- func (s *Store) GetTrustedAdvisorCheckResult(checkID string) (*TrustedAdvisorCheckResult, bool)
- func (s *Store) ListCases(includeResolved bool) []*SupportCase
- func (s *Store) ListTrustedAdvisorChecks() []*TrustedAdvisorCheck
- func (s *Store) ResolveCase(caseID string) (*SupportCase, error)
- type SupportCase
- type SupportService
- type TrustedAdvisorCheck
- type TrustedAdvisorCheckResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryInfo ¶
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 ¶
SeverityLevel represents a support severity level.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages Support resources in memory.
func (*Store) AddCommunication ¶
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.