Documentation ¶
Index ¶
- type CloudDNSService
- func (c *CloudDNSService) ChangeCreate(ctx context.Context, project string, zone string, change *dns.Change) (*dns.Change, error)
- func (c *CloudDNSService) CreateManagedZone(ctx context.Context, project string, zone *dns.ManagedZone) (*dns.ManagedZone, error)
- func (c *CloudDNSService) GetManagedZone(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)
- func (c *CloudDNSService) ResourceRecordSetsGet(ctx context.Context, project string, zone string, name string, rtype string) (*dns.ResourceRecordSet, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudDNSService ¶
type CloudDNSService struct {
Service *dns.Service
}
CloudDNSService implements the DNS Service interface.
func NewCloudDNSService ¶ added in v0.2.3
func NewCloudDNSService(s *dns.Service) *CloudDNSService
NewCloudDNSService creates a new instance of the CloudDNSService.
func (*CloudDNSService) ChangeCreate ¶
func (c *CloudDNSService) ChangeCreate(ctx context.Context, project string, zone string, change *dns.Change) (*dns.Change, error)
ChangeCreate applies the given change set.
func (*CloudDNSService) CreateManagedZone ¶ added in v0.2.3
func (c *CloudDNSService) CreateManagedZone(ctx context.Context, project string, zone *dns.ManagedZone) (*dns.ManagedZone, error)
CreateManagedZone creates the given zone.
func (*CloudDNSService) GetManagedZone ¶ added in v0.2.3
func (c *CloudDNSService) GetManagedZone(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error)
GetManagedZone gets the named zone.
func (*CloudDNSService) ResourceRecordSetsGet ¶
func (c *CloudDNSService) ResourceRecordSetsGet(ctx context.Context, project string, zone string, name string, rtype string) (*dns.ResourceRecordSet, error)
ResourceRecordSetsGet gets an existing resource record set, if present.
type Service ¶
type Service interface { ResourceRecordSetsGet(ctx context.Context, project string, zone string, name string, type_ string) (*dns.ResourceRecordSet, error) ChangeCreate(ctx context.Context, project string, zone string, change *dns.Change) (*dns.Change, error) GetManagedZone(ctx context.Context, project, zoneName string) (*dns.ManagedZone, error) CreateManagedZone(ctx context.Context, project string, z *dns.ManagedZone) (*dns.ManagedZone, error) }
Service interface used by the dnsx logic.
Click to show internal directories.
Click to hide internal directories.