Help us shape the future of Go! Take the 2026 Go Developer Survey

route53resolver

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryLogConfig

type QueryLogConfig struct {
	ID               string
	Arn              string
	Name             string
	DestinationArn   string
	Status           string
	AssociationCount int
	CreationTime     time.Time
}

QueryLogConfig represents a query logging configuration.

type QueryLogConfigAssociation

type QueryLogConfigAssociation struct {
	ID         string
	ConfigID   string
	ResourceID string
	Status     string
}

QueryLogConfigAssociation represents an association between a query log config and a VPC.

type ResolverEndpoint

type ResolverEndpoint struct {
	ID               string
	Arn              string
	Name             string
	Direction        string // INBOUND or OUTBOUND
	IPAddressCount   int
	IPAddresses      []string
	SecurityGroupIds []string
	Status           string
	StatusMessage    string
	HostVPCId        string
	CreationTime     time.Time
	ModificationTime time.Time
	// contains filtered or unexported fields
}

ResolverEndpoint represents a Route 53 Resolver endpoint.

type ResolverRule

type ResolverRule struct {
	ID                 string
	Arn                string
	Name               string
	DomainName         string
	RuleType           string // FORWARD, SYSTEM, RECURSIVE
	ResolverEndpointID string
	Status             string
	StatusMessage      string
	TargetIPs          []TargetAddress
	CreationTime       time.Time
	ModificationTime   time.Time
}

ResolverRule represents a resolver rule.

type ResolverTag

type ResolverTag struct {
	Key   string
	Value string
}

ResolverTag is a key-value tag for Route 53 Resolver resources.

type Route53ResolverService

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

Route53ResolverService is the cloudmock implementation of the Amazon Route 53 Resolver API.

func New

func New(accountID, region string) *Route53ResolverService

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

func (*Route53ResolverService) Actions

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

Actions returns the list of Route 53 Resolver API actions supported by this service.

func (*Route53ResolverService) HandleRequest

HandleRequest routes an incoming Route 53 Resolver request to the appropriate handler.

func (*Route53ResolverService) HealthCheck

func (s *Route53ResolverService) HealthCheck() error

HealthCheck always returns nil.

func (*Route53ResolverService) Name

func (s *Route53ResolverService) Name() string

Name returns the AWS service name used for routing.

type RuleAssociation

type RuleAssociation struct {
	ID             string
	Arn            string
	ResolverRuleID string
	VPCId          string
	Name           string
	Status         string
	StatusMessage  string
}

RuleAssociation represents an association between a rule and a VPC.

type Store

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

Store manages Route 53 Resolver resources in memory.

func NewStore

func NewStore(accountID, region string) *Store

NewStore returns a new empty Route 53 Resolver Store.

func (*Store) AssociateQueryLogConfig

func (s *Store) AssociateQueryLogConfig(configID, resourceID string) (*QueryLogConfigAssociation, error)

AssociateQueryLogConfig associates a query log config with a resource (VPC).

func (*Store) AssociateResolverRule

func (s *Store) AssociateResolverRule(ruleID, vpcID, name string) (*RuleAssociation, error)

AssociateResolverRule creates a rule-VPC association.

func (*Store) CreateQueryLogConfig

func (s *Store) CreateQueryLogConfig(name, destinationArn string) (*QueryLogConfig, error)

CreateQueryLogConfig creates a query log configuration.

func (*Store) CreateResolverEndpoint

func (s *Store) CreateResolverEndpoint(name, direction, vpcID string, securityGroupIDs []string, ipCount int) (*ResolverEndpoint, error)

CreateResolverEndpoint creates a new resolver endpoint.

func (*Store) CreateResolverRule

func (s *Store) CreateResolverRule(name, domainName, ruleType, endpointID string, targetIPs []TargetAddress) (*ResolverRule, error)

CreateResolverRule creates a new resolver rule.

func (*Store) DeleteQueryLogConfig

func (s *Store) DeleteQueryLogConfig(id string) (*QueryLogConfig, bool)

DeleteQueryLogConfig removes a query log config.

func (*Store) DeleteResolverEndpoint

func (s *Store) DeleteResolverEndpoint(id string) (*ResolverEndpoint, bool)

DeleteResolverEndpoint removes an endpoint.

func (*Store) DeleteResolverRule

func (s *Store) DeleteResolverRule(id string) (*ResolverRule, bool)

DeleteResolverRule removes a rule.

func (*Store) DisassociateQueryLogConfig

func (s *Store) DisassociateQueryLogConfig(assocID string) (*QueryLogConfigAssociation, bool)

DisassociateQueryLogConfig removes a query log config association.

func (*Store) DisassociateResolverRule

func (s *Store) DisassociateResolverRule(id string) (*RuleAssociation, bool)

DisassociateResolverRule removes a rule association.

func (*Store) GetQueryLogConfig

func (s *Store) GetQueryLogConfig(id string) (*QueryLogConfig, bool)

GetQueryLogConfig retrieves a query log config.

func (*Store) GetResolverEndpoint

func (s *Store) GetResolverEndpoint(id string) (*ResolverEndpoint, bool)

GetResolverEndpoint retrieves an endpoint.

func (*Store) GetResolverRule

func (s *Store) GetResolverRule(id string) (*ResolverRule, bool)

GetResolverRule retrieves a rule.

func (*Store) GetResolverRuleAssociation

func (s *Store) GetResolverRuleAssociation(id string) (*RuleAssociation, bool)

GetResolverRuleAssociation retrieves an association.

func (*Store) ListQueryLogConfigs

func (s *Store) ListQueryLogConfigs() []*QueryLogConfig

ListQueryLogConfigs returns all query log configs.

func (*Store) ListResolverEndpoints

func (s *Store) ListResolverEndpoints() []*ResolverEndpoint

ListResolverEndpoints returns all endpoints.

func (*Store) ListResolverRuleAssociations

func (s *Store) ListResolverRuleAssociations() []*RuleAssociation

ListResolverRuleAssociations returns all associations.

func (*Store) ListResolverRules

func (s *Store) ListResolverRules() []*ResolverRule

ListResolverRules returns all rules.

func (*Store) ListTagsForResource

func (s *Store) ListTagsForResource(resourceArn string) ([]ResolverTag, *service.AWSError)

ListTagsForResource returns tags for a resource by ARN.

func (*Store) TagResource

func (s *Store) TagResource(resourceArn string, tags []ResolverTag) *service.AWSError

TagResource adds or updates tags on a resource by ARN.

func (*Store) UntagResource

func (s *Store) UntagResource(resourceArn string, tagKeys []string) *service.AWSError

UntagResource removes tags from a resource by ARN.

func (*Store) UpdateResolverEndpoint

func (s *Store) UpdateResolverEndpoint(id, name string) (*ResolverEndpoint, bool)

UpdateResolverEndpoint updates the name of a resolver endpoint.

func (*Store) UpdateResolverRule

func (s *Store) UpdateResolverRule(id string, config map[string]any) (*ResolverRule, bool)

UpdateResolverRule updates a resolver rule from a config map.

type TargetAddress

type TargetAddress struct {
	IP   string
	Port int
}

TargetAddress represents a target IP for a resolver rule.

Jump to

Keyboard shortcuts

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