pkg/

directory
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT

Directories

Path Synopsis
api
Package api provides the functions to work with SiteHost API.
Package api provides the functions to work with SiteHost API.
accounts/client
Package client wraps the /accounts/client API endpoints — currently just /accounts/client/list_sub_accounts.json, the paginated list of sub-accounts under the calling client_id (reseller / parent-account view).
Package client wraps the /accounts/client API endpoints — currently just /accounts/client/list_sub_accounts.json, the paginated list of sub-accounts under the calling client_id (reseller / parent-account view).
bandwidth
Package bandwidth represents the SiteHost `/bandwidth` API endpoint.
Package bandwidth represents the SiteHost `/bandwidth` API endpoint.
cloud/db
Package db provides access to the `/cloud/db` API endpoint.
Package db provides access to the `/cloud/db` API endpoint.
cloud/db/grant
Package grant is used for interacting with the SiteHost `/cloud/db/grant` API endpoint.
Package grant is used for interacting with the SiteHost `/cloud/db/grant` API endpoint.
cloud/db/user
Package user represents the SiteHost `/cloud/db/user` API endpoint.
Package user represents the SiteHost `/cloud/db/user` API endpoint.
cloud/image
Package image provides access to the `/cloud/image` API endpoint.
Package image provides access to the `/cloud/image` API endpoint.
cloud/image/version
Package version provides access to the /cloud/image/version endpoints — listing build history for a custom image, fetching build logs, and deleting individual versions.
Package version provides access to the /cloud/image/version endpoints — listing build history for a custom image, fetching build logs, and deleting individual versions.
cloud/server
Package server provides access to the `/cloud/stack/server` API endpoint.
Package server provides access to the `/cloud/stack/server` API endpoint.
cloud/ssh/user
Package user provides access to the `/cloud/ssh/user` API endpoint.
Package user provides access to the `/cloud/ssh/user` API endpoint.
cloud/stack
Package stack represents a cloud stack operations under the `/cloud/stack` API endpoint.
Package stack represents a cloud stack operations under the `/cloud/stack` API endpoint.
cloud/stack/environment
Package environment represents a cloud stack environment operations under the `/cloud/stack/environment` API endpoint.
Package environment represents a cloud stack environment operations under the `/cloud/stack/environment` API endpoint.
cloud/stack/image
Package image provides access to the `/cloud/stack/image` API endpoint.
Package image provides access to the `/cloud/stack/image` API endpoint.
cloud/stack/ssl/letsencrypt
Package letsencrypt wraps SiteHost's Cloud-Container Let's Encrypt endpoints under /cloud/stack/ssl/lets_encrypt.
Package letsencrypt wraps SiteHost's Cloud-Container Let's Encrypt endpoints under /cloud/stack/ssl/lets_encrypt.
cloud/volume
Package volume represents our SiteHost `/cloud/volume` API endpoint — persistent volumes that can be attached to cloud containers.
Package volume represents our SiteHost `/cloud/volume` API endpoint — persistent volumes that can be attached to cloud containers.
dns
Package dns represents our SiteHost `/dns` API endpoint.
Package dns represents our SiteHost `/dns` API endpoint.
dns/template
Package template represents our SiteHost `/dns/domain_templates` API endpoint.
Package template represents our SiteHost `/dns/domain_templates` API endpoint.
info
Package info wraps SiteHost's /api/* endpoints.
Package info wraps SiteHost's /api/* endpoints.
job
Package job represents our SiteHost `/job` endpoint
Package job represents our SiteHost `/job` endpoint
mail
Package mail represents our SiteHost `/mail` API endpoint — shared mail service inspection (server info, domains, accounts, aliases, forwarders).
Package mail represents our SiteHost `/mail` API endpoint — shared mail service inspection (server info, domains, accounts, aliases, forwarders).
redirect
Package redirect wraps the /redirect API endpoint — currently just /redirect/list_redirects.json, the per-account inventory of HTTP redirect rules grouped by domain.
Package redirect wraps the /redirect API endpoint — currently just /redirect/list_redirects.json, the per-account inventory of HTTP redirect rules grouped by domain.
server
Package server wraps the SiteHost /server API endpoints — the VPS / Cloud Container Server lifecycle: provision, get, list, upgrade, snapshot, etc.
Package server wraps the SiteHost /server API endpoints — the VPS / Cloud Container Server lifecycle: provision, get, list, upgrade, snapshot, etc.
server/firewall
Package firewall represents our SiteHost `/server/firewall` API endpoint.
Package firewall represents our SiteHost `/server/firewall` API endpoint.
server/firewall/securitygroups
Package securitygroups represents our SiteHost `/server/firewall/security_groups` API endpoint.
Package securitygroups represents our SiteHost `/server/firewall/security_groups` API endpoint.
server/snapshot
Package snapshot represents our SiteHost `/server/snapshot` API endpoint — server-level disk snapshot management (list, create, delete, restore, lifetime).
Package snapshot represents our SiteHost `/server/snapshot` API endpoint — server-level disk snapshot management (list, create, delete, restore, lifetime).
srs
Package srs wraps the SiteHost /srs API — domain registration, transfer, contacts, and lifecycle ops via the Shared Registry System.
Package srs wraps the SiteHost /srs API — domain registration, transfer, contacts, and lifecycle ops via the Shared Registry System.
ssh/key
Package key represents our SiteHost `/ssh/key` API endpoint.
Package key represents our SiteHost `/ssh/key` API endpoint.
ssl
Package ssl represents our SiteHost `/ssl` API endpoint.
Package ssl represents our SiteHost `/ssl` API endpoint.
Package models hosts all sharing models between api endpoints.
Package models hosts all sharing models between api endpoints.
Package net contains assorted functions for working with net things like dns records and urls
Package net contains assorted functions for working with net things like dns records and urls
Package shtypes container wrappers for handling JSON types that may or may not be weird e.g.: numbers as strings or numbers, bools as anything that looks truthy it adds a little more flexibility around some of the types than the json.Number and related classes
Package shtypes container wrappers for handling JSON types that may or may not be weird e.g.: numbers as strings or numbers, bools as anything that looks truthy it adds a little more flexibility around some of the types than the json.Number and related classes

Jump to

Keyboard shortcuts

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