Documentation ¶
Index ¶
- Constants
- type APIClient
- func (c APIClient) CheckCurrentTaskState(serviceName string) error
- func (c APIClient) CheckOVHTask(err chan<- error, domain string, id int64)
- func (c APIClient) DeleteNameServers(serviceName string) error
- func (c APIClient) GetNameServersFromAPI(serviceName string) (map[string]NameServerOvhResponse, error)
- func (c APIClient) GetNameServersType(serviceName string) (NameServerType, error)
- func (c APIClient) SetNameServerType(serviceName string, nsType string) error
- func (c APIClient) UpdateNameServers(serviceName string, data *NameServerUpdateRequest) (NameServerTask, error)
- type NameServerCreatePayload
- type NameServerOvhResponse
- type NameServerTask
- type NameServerType
- type NameServerUpdateRequest
- type OVHCredentials
- type OvhAuthCurrentCredential
- type TaskReposnse
Constants ¶
View Source
const ( NSExternal string = "external" NSHosted string = "hosted" )
View Source
const CHECK_STATUS_WAIT_TIME time.Duration = 15 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
func (APIClient) CheckCurrentTaskState ¶
func (APIClient) CheckOVHTask ¶
func (APIClient) DeleteNameServers ¶
func (APIClient) GetNameServersFromAPI ¶
func (c APIClient) GetNameServersFromAPI(serviceName string) (map[string]NameServerOvhResponse, error)
func (APIClient) GetNameServersType ¶
func (c APIClient) GetNameServersType(serviceName string) (NameServerType, error)
func (APIClient) SetNameServerType ¶
func (APIClient) UpdateNameServers ¶
func (c APIClient) UpdateNameServers(serviceName string, data *NameServerUpdateRequest) (NameServerTask, error)
type NameServerCreatePayload ¶
type NameServerOvhResponse ¶
type NameServerOvhResponse struct { Host *string `json:"host,omitempty"` Id int `json:"id"` IP *string `json:"ip,omitempty"` IsUsed bool `json:"isUsed"` ToDelete bool `json:"toDelete"` }
func (*NameServerOvhResponse) GetHost ¶
func (n *NameServerOvhResponse) GetHost() string
func (*NameServerOvhResponse) GetIP ¶
func (n *NameServerOvhResponse) GetIP() string
type NameServerTask ¶
type NameServerType ¶
type NameServerType struct {
NameServerType string `json:"nameServerType"`
}
type NameServerUpdateRequest ¶
type NameServerUpdateRequest struct {
NameServers []*NameServerCreatePayload `json:"nameServers"`
}
type OVHCredentials ¶
type OvhAuthCurrentCredential ¶
type OvhAuthCurrentCredential struct { OvhSupport bool `json:"ovhSupport"` Status string `json:"status"` ApplicationId int64 `json:"applicationId"` CredentialId int64 `json:"credentialId"` Rules []ovh.AccessRule `json:"rules"` Expiration time.Time `json:"expiration"` LastUse time.Time `json:"lastUse"` Creation time.Time `json:"creation"` }
type TaskReposnse ¶
type TaskReposnse struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.