controld

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidConfigCode = 40401
)

Variables

This section is empty.

Functions

func ParseRawUID added in v1.3.0

func ParseRawUID(rawUID string) (string, string)

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"`
	DeactivationPin *int64   `json:"deactivation_pin,omitempty"`
}

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

Jump to

Keyboard shortcuts

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