Documentation
¶
Index ¶
- type Certificate
- type IoTService
- type Job
- type JobExecution
- type Policy
- type Store
- func (s *Store) AddThingToThingGroup(thingName, groupName string) *service.AWSError
- func (s *Store) AttachPolicy(policyName, targetArn string) *service.AWSError
- func (s *Store) AttachThingPrincipal(thingName, principal string) *service.AWSError
- func (s *Store) CancelJob(jobID string) *service.AWSError
- func (s *Store) CreateJob(jobID, description, documentSource, document string, targetArns []string) (*Job, *service.AWSError)
- func (s *Store) CreateKeysAndCertificate(setAsActive bool) (*Certificate, *service.AWSError)
- func (s *Store) CreatePolicy(name, document string) (*Policy, *service.AWSError)
- func (s *Store) CreateThing(name, thingTypeName string, attributes map[string]string) (*Thing, *service.AWSError)
- func (s *Store) CreateThingGroup(name, parentGroupName string, properties map[string]any) (*ThingGroup, *service.AWSError)
- func (s *Store) CreateThingType(name string, properties map[string]any) (*ThingType, *service.AWSError)
- func (s *Store) CreateTopicRule(name, sql, description string, actions []map[string]any, ruleDisabled bool) (*TopicRule, *service.AWSError)
- func (s *Store) DeleteCertificate(certId string) *service.AWSError
- func (s *Store) DeletePolicy(name string) *service.AWSError
- func (s *Store) DeleteThing(name string) *service.AWSError
- func (s *Store) DeleteThingGroup(name string) *service.AWSError
- func (s *Store) DeleteThingType(name string) *service.AWSError
- func (s *Store) DeleteTopicRule(name string) *service.AWSError
- func (s *Store) DescribeCertificate(certId string) (*Certificate, *service.AWSError)
- func (s *Store) DescribeJob(jobID string) (*Job, *service.AWSError)
- func (s *Store) DescribeThing(name string) (*Thing, *service.AWSError)
- func (s *Store) DescribeThingGroup(name string) (*ThingGroup, *service.AWSError)
- func (s *Store) DescribeThingType(name string) (*ThingType, *service.AWSError)
- func (s *Store) DetachPolicy(policyName, targetArn string) *service.AWSError
- func (s *Store) DetachThingPrincipal(thingName, principal string) *service.AWSError
- func (s *Store) GetPolicy(name string) (*Policy, *service.AWSError)
- func (s *Store) GetTopicRule(name string) (*TopicRule, *service.AWSError)
- func (s *Store) ListAttachedPolicies(targetArn string) []*Policy
- func (s *Store) ListCertificates() []*Certificate
- func (s *Store) ListJobs() []*Job
- func (s *Store) ListPolicies() []*Policy
- func (s *Store) ListTagsForResource(arn string) (map[string]string, *service.AWSError)
- func (s *Store) ListTargetsForPolicy(policyName string) ([]string, *service.AWSError)
- func (s *Store) ListThingGroups() []*ThingGroup
- func (s *Store) ListThingPrincipals(thingName string) ([]string, *service.AWSError)
- func (s *Store) ListThingTypes() []*ThingType
- func (s *Store) ListThings() []*Thing
- func (s *Store) ListTopicRules() []*TopicRule
- func (s *Store) RemoveThingFromThingGroup(thingName, groupName string) *service.AWSError
- func (s *Store) TagResource(arn string, tags map[string]string) *service.AWSError
- func (s *Store) UntagResource(arn string, tagKeys []string) *service.AWSError
- func (s *Store) UpdateCertificate(certId, newStatus string) *service.AWSError
- func (s *Store) UpdateThing(name, thingTypeName string, attributes map[string]string, removeThingType bool) *service.AWSError
- type Thing
- type ThingGroup
- type ThingType
- type TopicRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type IoTService ¶
type IoTService struct {
// contains filtered or unexported fields
}
IoTService is the cloudmock implementation of the AWS IoT Core API.
func New ¶
func New(accountID, region string) *IoTService
New returns a new IoTService for the given AWS account ID and region.
func (*IoTService) Actions ¶
func (s *IoTService) Actions() []service.Action
Actions returns the list of IoT API actions supported by this service.
func (*IoTService) HandleRequest ¶
func (s *IoTService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming IoT request to the appropriate handler.
func (*IoTService) HealthCheck ¶
func (s *IoTService) HealthCheck() error
HealthCheck always returns nil.
func (*IoTService) Name ¶
func (s *IoTService) Name() string
Name returns the AWS service name used for routing.
type JobExecution ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddThingToThingGroup ¶
func (*Store) AttachPolicy ¶
func (*Store) AttachThingPrincipal ¶
func (*Store) CreateKeysAndCertificate ¶
func (s *Store) CreateKeysAndCertificate(setAsActive bool) (*Certificate, *service.AWSError)
func (*Store) CreatePolicy ¶
func (*Store) CreateThing ¶
func (*Store) CreateThingGroup ¶
func (*Store) CreateThingType ¶
func (*Store) CreateTopicRule ¶
func (*Store) DeleteCertificate ¶
func (*Store) DescribeCertificate ¶
func (s *Store) DescribeCertificate(certId string) (*Certificate, *service.AWSError)
func (*Store) DescribeThing ¶
func (*Store) DescribeThingGroup ¶
func (s *Store) DescribeThingGroup(name string) (*ThingGroup, *service.AWSError)
func (*Store) DescribeThingType ¶
func (*Store) DetachPolicy ¶
func (*Store) DetachThingPrincipal ¶
func (*Store) GetTopicRule ¶
func (*Store) ListAttachedPolicies ¶
func (*Store) ListCertificates ¶
func (s *Store) ListCertificates() []*Certificate
func (*Store) ListPolicies ¶
func (*Store) ListTagsForResource ¶
func (*Store) ListTargetsForPolicy ¶
ListTargetsForPolicy returns the targets (ARNs) a policy is attached to.
func (*Store) ListThingGroups ¶
func (s *Store) ListThingGroups() []*ThingGroup
func (*Store) ListThingPrincipals ¶
ListThingPrincipals returns the principals (certificates) attached to a thing.
func (*Store) ListThingTypes ¶
func (*Store) ListThings ¶
func (*Store) ListTopicRules ¶
func (*Store) RemoveThingFromThingGroup ¶
func (*Store) TagResource ¶
func (*Store) UntagResource ¶
func (*Store) UpdateCertificate ¶
UpdateCertificate changes the status of a certificate.
type ThingGroup ¶
Click to show internal directories.
Click to hide internal directories.