Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddEntity(ctx context.Context, parentID uint, entity Entity) (uint64, error)
- func (c *Client) CreateAuthenticatedContext(ctx context.Context) (context.Context, error)
- func (c *Client) Delete(ctx context.Context, objectID uint) error
- func (c *Client) Deploy(ctx context.Context, entityID uint) error
- func (c *Client) GetEntityByName(ctx context.Context, parentID uint, name, objType string) (*EntityResponse, error)
- func (c *Client) Logout(ctx context.Context) error
- func (c *Client) LookupParentZoneID(ctx context.Context, viewID uint, fqdn string) (uint, string, error)
- func (c *Client) LookupViewID(ctx context.Context, configName, viewName string) (uint, error)
- type Entity
- type EntityResponse
Constants ¶
const ( ConfigType = "Configuration" ViewType = "View" ZoneType = "Zone" TXTType = "TXTRecord" )
Object types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddEntity ¶
AddEntity A generic method for adding configurations, DNS zones, and DNS resource records. https://docs.bluecatnetworks.com/r/Address-Manager-Legacy-v1-API-Guide/POST/v1/addEntity/9.5.0
func (*Client) CreateAuthenticatedContext ¶
func (*Client) Delete ¶
Delete Deletes an object using the generic delete method. https://docs.bluecatnetworks.com/r/Address-Manager-Legacy-v1-API-Guide/DELETE/v1/delete/9.5.0
func (*Client) Deploy ¶
Deploy the DNS config for the specified entity to the authoritative servers. https://docs.bluecatnetworks.com/r/Address-Manager-Legacy-v1-API-Guide/POST/v1/quickDeploy/9.5.0
func (*Client) GetEntityByName ¶
func (c *Client) GetEntityByName(ctx context.Context, parentID uint, name, objType string) (*EntityResponse, error)
GetEntityByName Returns objects from the database referenced by their database ID and with its properties fields populated. https://docs.bluecatnetworks.com/r/Address-Manager-Legacy-v1-API-Guide/GET/v1/getEntityById/9.5.0
func (*Client) Logout ¶
Logout Logs out of the current API session. https://docs.bluecatnetworks.com/r/Address-Manager-Legacy-v1-API-Guide/GET/v1/logout/9.5.0