Documentation ¶
Index ¶
- func ContainsString(strings []string, str string) bool
- func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *alidns.Client, _err error)
- func GetPublicIP() (ip string, err error)
- func GetPublicIP1() (string, error)
- func GetPublicIP2() (string, error)
- func HandleDelete(account *networkv1.AliDnsAccount, ingress *netv1.Ingress, handler Handler)
- func HandleUpdate(account *networkv1.AliDnsAccount, ingress *netv1.Ingress, ip string, ...)
- func RemoveString(strs []string, str string) []string
- func RulesEqual(lRules []netv1.IngressRule, rRules []netv1.IngressRule) bool
- func RulesToStrings(rules []netv1.IngressRule) []string
- type AliDnsAccount
- type AliDnsUtils
- func (dns *AliDnsUtils) CreateRecord(RR string, Value string, Type string) (string, error)
- func (dns *AliDnsUtils) DeleteRecord(recordId string) error
- func (dns *AliDnsUtils) DeleteRecordByRR(rr string) error
- func (dns *AliDnsUtils) FindRecordByRR(rr string) (*alidns.DescribeDomainRecordsResponseDomainRecordsRecord, error)
- func (dns *AliDnsUtils) GetRecordCount() (int64, error)
- func (dns *AliDnsUtils) ListRecords() ([]*alidns.DescribeDomainRecordsResponseDomainRecordsRecord, error)
- func (dns *AliDnsUtils) UpdateRecord(RecordId string, RR string, Value string, Type string) error
- type DebugHandler
- type ErrorHandler
- type Handler
- type InfoHandler
- type PublicIP
- type SuccessHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func CreateClient ¶
func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *alidns.Client, _err error)
*
- 使用AK&SK初始化账号Client
- @param accessKeyId
- @param accessKeySecret
- @return Client
- @throws Exception
func GetPublicIP ¶
func GetPublicIP1 ¶
func GetPublicIP2 ¶
func HandleDelete ¶
func HandleDelete(account *networkv1.AliDnsAccount, ingress *netv1.Ingress, handler Handler)
func HandleUpdate ¶
func RemoveString ¶
func RulesEqual ¶
func RulesEqual(lRules []netv1.IngressRule, rRules []netv1.IngressRule) bool
func RulesToStrings ¶
func RulesToStrings(rules []netv1.IngressRule) []string
Types ¶
type AliDnsAccount ¶
type AliDnsAccount = v1.AliDnsAccountSpec
type AliDnsUtils ¶
type AliDnsUtils struct {
// contains filtered or unexported fields
}
func NewAliDnsUtils ¶
func NewAliDnsUtils(account AliDnsAccount) (*AliDnsUtils, error)
func (*AliDnsUtils) CreateRecord ¶
func (*AliDnsUtils) DeleteRecord ¶
func (dns *AliDnsUtils) DeleteRecord(recordId string) error
func (*AliDnsUtils) DeleteRecordByRR ¶
func (dns *AliDnsUtils) DeleteRecordByRR(rr string) error
func (*AliDnsUtils) FindRecordByRR ¶
func (dns *AliDnsUtils) FindRecordByRR(rr string) (*alidns.DescribeDomainRecordsResponseDomainRecordsRecord, error)
func (*AliDnsUtils) GetRecordCount ¶
func (dns *AliDnsUtils) GetRecordCount() (int64, error)
func (*AliDnsUtils) ListRecords ¶
func (dns *AliDnsUtils) ListRecords() ([]*alidns.DescribeDomainRecordsResponseDomainRecordsRecord, error)
func (*AliDnsUtils) UpdateRecord ¶
type DebugHandler ¶
type DebugHandler = func(string, ...interface{})
type ErrorHandler ¶
type Handler ¶
type Handler struct { InfoHandler DebugHandler ErrorHandler SuccessHandler }
type InfoHandler ¶
type SuccessHandler ¶
type SuccessHandler = func(host string)
Click to show internal directories.
Click to hide internal directories.