Documentation ¶
Index ¶
Constants ¶
View Source
const (
InvalidConfigCode = 40401
)
Variables ¶
This section is empty.
Functions ¶
func ParseRawUID ¶ added in v1.3.0
ParseRawUID parse the input raw UID, returning real UID and ClientID. The raw UID can have 2 forms:
- <uid> - <uid>/<client_id>
Types ¶
type ResolverConfig ¶
type ResolverConfig struct { DOH string `json:"doh"` Ctrld struct { CustomConfig string `json:"custom_config"` } `json:"ctrld"` Exclude []string `json:"exclude"` UID string `json:"uid"` }
ResolverConfig represents Control D resolver data.
func FetchResolverConfig ¶
func FetchResolverConfig(rawUID, version string, cdDev bool) (*ResolverConfig, error)
FetchResolverConfig fetch Control D config for given uid.
func FetchResolverUID ¶ added in v1.3.0
func FetchResolverUID(pt, version string, cdDev bool) (*ResolverConfig, error)
FetchResolverUID fetch resolver uid from provision token.
type UtilityErrorResponse ¶
type UtilityErrorResponse struct { ErrorField struct { Message string `json:"message"` Code int `json:"code"` } `json:"error"` }
func (UtilityErrorResponse) Error ¶
func (u UtilityErrorResponse) Error() string
Click to show internal directories.
Click to hide internal directories.